#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int e_strcmp(char *, char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  int i;
  FILE *pint;
  int no_of_compulsory_arguments = 3;
  char oparg01[3] = "-a", oparg02[3] = "-b", oparg03[3] = "-c",
       oparg04[3] = "-d", oparg05[3] = "-e", oparg06[3] = "-f",
       oparg07[3] = "-g", oparg08[3] = "-h", oparg09[3] = "-i",
       oparg10[3] = "-j";
  char comparg01[100], comparg02[100], comparg03[10][100];
  int oparg01va01 = 0, oparg02va01 = 0;
  char *oparg03va01, oparg04va01[1000],
      oparg05va01[25] = "val1", oparg05va02[25] = "val2",
      oparg05va03[25] = "val3", oparg06va01[25] = "val2",
      oparg06va02[25] = "val2", oparg06va03[25] = "val2",
      oparg07va01[25] = "val2", oparg07va02[25] = "val2",
      oparg07va03[25] = "val2", oparg08va01[25] = "val2",
      oparg08va02[25] = "val2", oparg08va03[25] = "val2",
      oparg09va01[25] = "val2", oparg09va02[25] = "val2",
      oparg09va03[25] = "val2", oparg10va01[25] = "val2",
      oparg10va02[25] = "val2", oparg10va03[25] = "val2";
  if (argc < no_of_compulsory_arguments) {
    printf("Very few arguments\nsee       -help\n");
    exit(1);
  }
  for (i = 1; i < argc; ++i) {
    if (!e_strcmp(argv[i], "-help")) {
      printf("This is help info");
    }
    if ((*argv[0] + 0) == '-') {
      switch (e_strcmp(argv[i], "-a")) {
      case 0:
        oparg01va01 = 1;
        break;
      case 1:
        oparg02va01 = 1;
        break;
      case 2:
        oparg03va01 = argv[++i];
        break;
      case 3:
        pint = fopen(oparg04va01, "w");
        break;
      case 4:
        break;
      case 5:
        break;
      case 6:
        break;
      case 7:
        break;
      case 8:
        break;
      case 9:
        break;
      default:
        printf(
            "Dude there's no argument like %s\n How about trying -help  ?? \n",
            argv[i]);
        exit(1);
        break;
      }
    } else {
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x3,-0x24(%rbp)
mov    0x1102(%rip),%ax
mov    %ax,-0x27(%rbp)
mov    0x10fa(%rip),%al
mov    %al,-0x25(%rbp)
mov    0x10f1(%rip),%ax
mov    %ax,-0x2a(%rbp)
mov    0x10e9(%rip),%al
mov    %al,-0x28(%rbp)
mov    0x10e0(%rip),%ax
mov    %ax,-0x2d(%rbp)
mov    0x10d8(%rip),%al
mov    %al,-0x2b(%rbp)
mov    0x10cf(%rip),%ax
mov    %ax,-0x30(%rbp)
mov    0x10c7(%rip),%al
mov    %al,-0x2e(%rbp)
mov    0x10be(%rip),%ax
mov    %ax,-0x33(%rbp)
mov    0x10b6(%rip),%al
mov    %al,-0x31(%rbp)
mov    0x10ad(%rip),%ax
mov    %ax,-0x36(%rbp)
mov    0x10a5(%rip),%al
mov    %al,-0x34(%rbp)
mov    0x109c(%rip),%ax
mov    %ax,-0x39(%rbp)
mov    0x1094(%rip),%al
mov    %al,-0x37(%rbp)
mov    0x108b(%rip),%ax
mov    %ax,-0x3c(%rbp)
mov    0x1083(%rip),%al
mov    %al,-0x3a(%rbp)
mov    0x107a(%rip),%ax
mov    %ax,-0x3f(%rbp)
mov    0x1072(%rip),%al
mov    %al,-0x3d(%rbp)
mov    0x1069(%rip),%ax
mov    %ax,-0x42(%rbp)
mov    0x1061(%rip),%al
mov    %al,-0x40(%rbp)
movl   $0x0,-0x514(%rbp)
movl   $0x0,-0x518(%rbp)
mov    0xded(%rip),%rax
mov    %rax,-0x930(%rbp)
mov    0xde7(%rip),%rax
mov    %rax,-0x928(%rbp)
mov    0xde1(%rip),%rax
mov    %rax,-0x920(%rbp)
mov    0xddc(%rip),%al
mov    %al,-0x918(%rbp)
mov    0xdd7(%rip),%rax
mov    %rax,-0x950(%rbp)
mov    0xdd1(%rip),%rax
mov    %rax,-0x948(%rbp)
mov    0xdcb(%rip),%rax
mov    %rax,-0x940(%rbp)
mov    0xdc6(%rip),%al
mov    %al,-0x938(%rbp)
mov    0xdc1(%rip),%rax
mov    %rax,-0x970(%rbp)
mov    0xdbb(%rip),%rax
mov    %rax,-0x968(%rbp)
mov    0xdb5(%rip),%rax
mov    %rax,-0x960(%rbp)
mov    0xdb0(%rip),%al
mov    %al,-0x958(%rbp)
mov    0xdab(%rip),%rax
mov    %rax,-0x990(%rbp)
mov    0xda5(%rip),%rax
mov    %rax,-0x988(%rbp)
mov    0xd9f(%rip),%rax
mov    %rax,-0x980(%rbp)
mov    0xd9a(%rip),%al
mov    %al,-0x978(%rbp)
mov    0xd95(%rip),%rax
mov    %rax,-0x9b0(%rbp)
mov    0xd8f(%rip),%rax
mov    %rax,-0x9a8(%rbp)
mov    0xd89(%rip),%rax
mov    %rax,-0x9a0(%rbp)
mov    0xd84(%rip),%al
mov    %al,-0x998(%rbp)
mov    0xd7f(%rip),%rax
mov    %rax,-0x9d0(%rbp)
mov    0xd79(%rip),%rax
mov    %rax,-0x9c8(%rbp)
mov    0xd73(%rip),%rax
mov    %rax,-0x9c0(%rbp)
mov    0xd6e(%rip),%al
mov    %al,-0x9b8(%rbp)
mov    0xd69(%rip),%rax
mov    %rax,-0x9f0(%rbp)
mov    0xd63(%rip),%rax
mov    %rax,-0x9e8(%rbp)
mov    0xd5d(%rip),%rax
mov    %rax,-0x9e0(%rbp)
mov    0xd58(%rip),%al
mov    %al,-0x9d8(%rbp)
mov    0xd53(%rip),%rax
mov    %rax,-0xa10(%rbp)
mov    0xd4d(%rip),%rax
mov    %rax,-0xa08(%rbp)
mov    0xd47(%rip),%rax
mov    %rax,-0xa00(%rbp)
mov    0xd42(%rip),%al
mov    %al,-0x9f8(%rbp)
mov    0xd3d(%rip),%rax
mov    %rax,-0xa30(%rbp)
mov    0xd37(%rip),%rax
mov    %rax,-0xa28(%rbp)
mov    0xd31(%rip),%rax
mov    %rax,-0xa20(%rbp)
mov    0xd2c(%rip),%al
mov    %al,-0xa18(%rbp)
mov    0xd27(%rip),%rax
mov    %rax,-0xa50(%rbp)
mov    0xd21(%rip),%rax
mov    %rax,-0xa48(%rbp)
mov    0xd1b(%rip),%rax
mov    %rax,-0xa40(%rbp)
mov    0xd16(%rip),%al
mov    %al,-0xa38(%rbp)
mov    0xd11(%rip),%rax
mov    %rax,-0xa70(%rbp)
mov    0xd0b(%rip),%rax
mov    %rax,-0xa68(%rbp)
mov    0xd05(%rip),%rax
mov    %rax,-0xa60(%rbp)
mov    0xd00(%rip),%al
mov    %al,-0xa58(%rbp)
mov    0xcfb(%rip),%rax
mov    %rax,-0xa90(%rbp)
mov    0xcf5(%rip),%rax
mov    %rax,-0xa88(%rbp)
mov    0xcef(%rip),%rax
mov    %rax,-0xa80(%rbp)
mov    0xcea(%rip),%al
mov    %al,-0xa78(%rbp)
mov    0xce5(%rip),%rax
mov    %rax,-0xab0(%rbp)
mov    0xcdf(%rip),%rax
mov    %rax,-0xaa8(%rbp)
mov    0xcd9(%rip),%rax
mov    %rax,-0xaa0(%rbp)
mov    0xcd4(%rip),%al
mov    %al,-0xa98(%rbp)
mov    0xccf(%rip),%rax
mov    %rax,-0xad0(%rbp)
mov    0xcc9(%rip),%rax
mov    %rax,-0xac8(%rbp)
mov    0xcc3(%rip),%rax
mov    %rax,-0xac0(%rbp)
mov    0xcbe(%rip),%al
mov    %al,-0xab8(%rbp)
mov    0xcb9(%rip),%rax
mov    %rax,-0xaf0(%rbp)
mov    0xcb3(%rip),%rax
mov    %rax,-0xae8(%rbp)
mov    0xcad(%rip),%rax
mov    %rax,-0xae0(%rbp)
mov    0xca8(%rip),%al
mov    %al,-0xad8(%rbp)
mov    0xca3(%rip),%rax
mov    %rax,-0xb10(%rbp)
mov    0xc9d(%rip),%rax
mov    %rax,-0xb08(%rbp)
mov    0xc97(%rip),%rax
mov    %rax,-0xb00(%rbp)
mov    0xc92(%rip),%al
mov    %al,-0xaf8(%rbp)
mov    0xc8d(%rip),%rax
mov    %rax,-0xb30(%rbp)
mov    0xc87(%rip),%rax
mov    %rax,-0xb28(%rbp)
mov    0xc81(%rip),%rax
mov    %rax,-0xb20(%rbp)
mov    0xc7c(%rip),%al
mov    %al,-0xb18(%rbp)
mov    0xc77(%rip),%rax
mov    %rax,-0xb50(%rbp)
mov    0xc71(%rip),%rax
mov    %rax,-0xb48(%rbp)
mov    0xc6b(%rip),%rax
mov    %rax,-0xb40(%rbp)
mov    0xc66(%rip),%al
mov    %al,-0xb38(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    162c <main+0x4ec>
lea    0xc6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    177e <main+0x63e>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc59(%rip),%rsi
call   1040 <e_strcmp@plt>
cmp    $0x0,%eax
jne    166e <main+0x52e>
lea    0xc4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
add    $0x0,%eax
cmp    $0x2d,%eax
jne    1766 <main+0x626>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xbd2(%rip),%rsi
call   1040 <e_strcmp@plt>
mov    %eax,%ecx
mov    %rcx,-0xb58(%rbp)
sub    $0x9,%eax
ja     173d <main+0x5fd>
mov    -0xb58(%rbp),%rax
lea    0x944(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x1,-0x514(%rbp)
jmp    1761 <main+0x621>
movl   $0x1,-0x518(%rbp)
jmp    1761 <main+0x621>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x520(%rbp)
jmp    1761 <main+0x621>
lea    -0x910(%rbp),%rdi
lea    0xbb2(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x20(%rbp)
jmp    1761 <main+0x621>
jmp    1761 <main+0x621>
jmp    1761 <main+0x621>
jmp    1761 <main+0x621>
jmp    1761 <main+0x621>
jmp    1761 <main+0x621>
jmp    1761 <main+0x621>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xb75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
jmp    176b <main+0x62b>
jmp    176b <main+0x62b>
jmp    1770 <main+0x630>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1633 <main+0x4f3>
xor    %eax,%eax
add    $0xb60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x3e8,%rsp
cmp    $0x3,%edi
jl     1228 <main+0xd8>
mov    %rsi,%rbx
mov    %edi,%ebp
mov    $0x1,%r13d
lea    0xef7(%rip),%r14
mov    $0x3f3,%r15d
jmp    11a9 <main+0x59>
mov    %rsp,%rdi
lea    0xe87(%rip),%rsi
call   1060 <fopen@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r13d
cmp    %ebp,%r13d
jge    11f8 <main+0xa8>
movslq %r13d,%r12
mov    (%rbx,%r12,8),%rdi
mov    %r14,%rsi
call   1050 <e_strcmp@plt>
test   %eax,%eax
jne    11ca <main+0x7a>
lea    0xe3d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%rax
cmpb   $0x2d,(%rax)
jne    11a0 <main+0x50>
mov    (%rbx,%r12,8),%rdi
lea    0xe35(%rip),%rsi
call   1050 <e_strcmp@plt>
cmp    $0x9,%eax
ja     120c <main+0xbc>
bt     %eax,%r15d
jb     11a0 <main+0x50>
cmp    $0x2,%eax
jne    1184 <main+0x34>
add    $0x1,%r13d
jmp    11a0 <main+0x50>
xor    %eax,%eax
add    $0x3e8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%rbx,%r12,8),%rsi
lea    0xe00(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
lea    0xe27(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@__const.main.oparg01 = [3 x i8] c"-a\00"
@__const.main.oparg02 = [3 x i8] c"-b\00"
@__const.main.oparg03 = [3 x i8] c"-c\00"
@__const.main.oparg04 = [3 x i8] c"-d\00"
@__const.main.oparg05 = [3 x i8] c"-e\00"
@__const.main.oparg06 = [3 x i8] c"-f\00"
@__const.main.oparg07 = [3 x i8] c"-g\00"
@__const.main.oparg08 = [3 x i8] c"-h\00"
@__const.main.oparg09 = [3 x i8] c"-i\00"
@__const.main.oparg10 = [3 x i8] c"-j\00"
@__const.main.oparg05va01 = [25 x i8] c"val1\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg05va02 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg05va03 = [25 x i8] c"val3\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg06va01 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg06va02 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg06va03 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg07va01 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg07va02 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg07va03 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg08va01 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg08va02 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg08va03 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg09va01 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg09va02 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg09va03 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg10va01 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg10va02 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.oparg10va03 = [25 x i8] c"val2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [36 x i8] c"Very few arguments\0Asee -help\0A\00"
@.str.1 = [6 x i8] c"-help\00"
@.str.2 = [18 x i8] c"This is help info\00"
@.str.3 = [3 x i8] c"-a\00"
@.str.4 = [2 x i8] c"w\00"
@.str.5 = [63 x i8] c"Dude there's no argument like %s\0A How about trying -help ?? \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 i32
%9 = alloca [3 x i8]
%10 = alloca [3 x i8]
%11 = alloca [3 x i8]
%12 = alloca [3 x i8]
%13 = alloca [3 x i8]
%14 = alloca [3 x i8]
%15 = alloca [3 x i8]
%16 = alloca [3 x i8]
%17 = alloca [3 x i8]
%18 = alloca [3 x i8]
%19 = alloca [100 x i8]
%20 = alloca [100 x i8]
%21 = alloca [10 x [100 x i8]]
%22 = alloca i32
%23 = alloca i32
%24 = alloca i8*
%25 = alloca [1000 x i8]
%26 = alloca [25 x i8]
%27 = alloca [25 x i8]
%28 = alloca [25 x i8]
%29 = alloca [25 x i8]
%30 = alloca [25 x i8]
%31 = alloca [25 x i8]
%32 = alloca [25 x i8]
%33 = alloca [25 x i8]
%34 = alloca [25 x i8]
%35 = alloca [25 x i8]
%36 = alloca [25 x i8]
%37 = alloca [25 x i8]
%38 = alloca [25 x i8]
%39 = alloca [25 x i8]
%40 = alloca [25 x i8]
%41 = alloca [25 x i8]
%42 = alloca [25 x i8]
%43 = alloca [25 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 3, i32* %8
%44 = bitcast [3 x i8]* %9 to i8*
%45 = bitcast [3 x i8]* %10 to i8*
%46 = bitcast [3 x i8]* %11 to i8*
%47 = bitcast [3 x i8]* %12 to i8*
%48 = bitcast [3 x i8]* %13 to i8*
%49 = bitcast [3 x i8]* %14 to i8*
%50 = bitcast [3 x i8]* %15 to i8*
%51 = bitcast [3 x i8]* %16 to i8*
%52 = bitcast [3 x i8]* %17 to i8*
%53 = bitcast [3 x i8]* %18 to i8*
store i32 0, i32* %22
store i32 0, i32* %23
%54 = bitcast [25 x i8]* %26 to i8*
%55 = bitcast [25 x i8]* %27 to i8*
%56 = bitcast [25 x i8]* %28 to i8*
%57 = bitcast [25 x i8]* %29 to i8*
%58 = bitcast [25 x i8]* %30 to i8*
%59 = bitcast [25 x i8]* %31 to i8*
%60 = bitcast [25 x i8]* %32 to i8*
%61 = bitcast [25 x i8]* %33 to i8*
%62 = bitcast [25 x i8]* %34 to i8*
%63 = bitcast [25 x i8]* %35 to i8*
%64 = bitcast [25 x i8]* %36 to i8*
%65 = bitcast [25 x i8]* %37 to i8*
%66 = bitcast [25 x i8]* %38 to i8*
%67 = bitcast [25 x i8]* %39 to i8*
%68 = bitcast [25 x i8]* %40 to i8*
%69 = bitcast [25 x i8]* %41 to i8*
%70 = bitcast [25 x i8]* %42 to i8*
%71 = bitcast [25 x i8]* %43 to i8*
%72 = load i32, i32* %4
%73 = load i32, i32* %8
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %78
75: ; preds = %2
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%77 = call i32 @exit(i32 1)
unreachable
78: ; preds = %2
store i32 1, i32* %6
br label %79
79: ; preds = %137, %78
%80 = load i32, i32* %6
%81 = load i32, i32* %4
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %140
83: ; preds = %79
%84 = load i8**, i8*** %5
%85 = load i32, i32* %6
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8*, i8** %84, i64 %86
%88 = load i8*, i8** %87
%89 = call i32 @e_strcmp(i8* %88, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%90 = icmp ne i32 %89, 0
br i1 %90, label %93, label %91
91: ; preds = %83
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
br label %93
93: ; preds = %91, %83
%94 = load i8**, i8*** %5
%95 = getelementptr inbounds i8*, i8** %94, i64 0
%96 = load i8*, i8** %95
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = add nsw i32 %98, 0
%100 = icmp eq i32 %99, 45
br i1 %100, label %101, label %135
101: ; preds = %93
%102 = load i8**, i8*** %5
%103 = load i32, i32* %6
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8*, i8** %102, i64 %104
%106 = load i8*, i8** %105
%107 = call i32 @e_strcmp(i8* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
switch i32 %107, label %126 [
i32 0, label %108
i32 1, label %109
i32 2, label %110
i32 3, label %117
i32 4, label %120
i32 5, label %121
i32 6, label %122
i32 7, label %123
i32 8, label %124
i32 9, label %125
]
108: ; preds = %101
store i32 1, i32* %22
br label %134
109: ; preds = %101
store i32 1, i32* %23
br label %134
110: ; preds = %101
%111 = load i8**, i8*** %5
%112 = load i32, i32* %6
%113 = add nsw i32 %112, 1
store i32 %113, i32* %6
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i8*, i8** %111, i64 %114
%116 = load i8*, i8** %115
store i8* %116, i8** %24
br label %134
117: ; preds = %101
%118 = getelementptr inbounds [1000 x i8], [1000 x i8]* %25, i64 0, i64 0
%119 = call i32* @fopen(i8* %118, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %119, i32** %7
br label %134
120: ; preds = %101
br label %134
121: ; preds = %101
br label %134
122: ; preds = %101
br label %134
123: ; preds = %101
br label %134
124: ; preds = %101
br label %134
125: ; preds = %101
br label %134
126: ; preds = %101
%127 = load i8**, i8*** %5
%128 = load i32, i32* %6
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i8*, i8** %127, i64 %129
%131 = load i8*, i8** %130
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0), i8* %131)
%133 = call i32 @exit(i32 1)
unreachable
134: ; preds = %125, %124, %123, %122, %121, %120, %117, %110, %109, %108
br label %136
135: ; preds = %93
br label %136
136: ; preds = %135, %134
br label %137
137: ; preds = %136
%138 = load i32, i32* %6
%139 = add nsw i32 %138, 1
store i32 %139, i32* %6
br label %79
140: ; preds = %79
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [6 x i8] c"-help\00"
@.str.2 = [18 x i8] c"This is help info\00"
@.str.3 = [3 x i8] c"-a\00"
@.str.4 = [2 x i8] c"w\00"
@.str.5 = [63 x i8] c"Dude there's no argument like %s\0A How about trying -help ?? \0A\00"
@str = [35 x i8] c"Very few arguments\0Asee -help\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [1000 x i8]
%4 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%5 = icmp slt i32 %0, 3
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 @exit(i32 1)
unreachable
9: ; preds = %2, %33
%10 = phi i32 [ %35, %33 ], [ 1, %2 ]
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8*, i8** %1, i64 %11
%13 = load i8*, i8** %12
%14 = tail call i32 @e_strcmp(i8* %13, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %9
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
br label %18
18: ; preds = %16, %9
%19 = load i8*, i8** %1
%20 = load i8, i8* %19
%21 = icmp eq i8 %20, 45
br i1 %21, label %22, label %33
22: ; preds = %18
%23 = load i8*, i8** %12
%24 = tail call i32 @e_strcmp(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
switch i32 %24, label %29 [
i32 0, label %33
i32 1, label %33
i32 2, label %25
i32 3, label %27
i32 4, label %33
i32 5, label %33
i32 6, label %33
i32 7, label %33
i32 8, label %33
i32 9, label %33
]
25: ; preds = %22
%26 = add nsw i32 %10, 1
br label %33
27: ; preds = %22
%28 = call i32* @fopen(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %33
29: ; preds = %22
%30 = load i8*, i8** %12
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0), i8* %30)
%32 = tail call i32 @exit(i32 1)
unreachable
33: ; preds = %22, %22, %22, %22, %22, %22, %22, %22, %27, %25, %18
%34 = phi i32 [ %10, %22 ], [ %10, %22 ], [ %10, %22 ], [ %10, %22 ], [ %10, %22 ], [ %10, %22 ], [ %10, %27 ], [ %26, %25 ], [ %10, %18 ], [ %10, %22 ], [ %10, %22 ]
%35 = add nsw i32 %34, 1
%36 = icmp slt i32 %35, %0
br i1 %36, label %9, label %37
37: ; preds = %33
ret i32 0
}