#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 */
struct option {
  char *member_0;
  char member_3;
  int /*<<< orphan*/ member_2;
  int /*<<< orphan*/ member_1;
};

/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int getopt_long(int, char **, char const *, struct option *, int *);
int /*<<< orphan*/ no_argument;
char *optarg;
int /*<<< orphan*/ printf(char *, char *, ...);
int /*<<< orphan*/ required_argument;
int /*<<< orphan*/ snprintf(char *, size_t, char *, char *);
int /*<<< orphan*/ sprintf(char *, char *);
scalar_t__ strcmp(char *, char *);
void _parse_args(int argc, char *argv[], char *cmd, size_t len, int *rev) {
  int ver;
  int help;
  int opt_char;
  int option_index;
  const char *optstring = "vhc:r";
  struct option long_options[] = {{"version", no_argument, 0, 'v'},
                                  {"help", no_argument, 0, 'h'},
                                  {"command", required_argument, 0, 'c'},
                                  {"reverse", no_argument, 0, 'r'},
                                  {0, 0, 0, 0}};
  ver = 0;
  help = 0;
  cmd[0] = '\0';
  *rev = 0;
  while (1) {
    option_index = 0;
    opt_char = getopt_long(argc, argv, optstring, long_options, &option_index);
    if (opt_char == -1)
      break;
    switch (opt_char) {
    case 0:
      break;
    case 'v':
      ver = 1;
      break;
    case 'h':
      help = 1;
      break;
    case 'r':
      *rev = 1;
      break;
    case 'c': {
      snprintf(cmd, len, "%s", optarg);
      break;
    }
    }
  }
  if (ver) {
    printf("pipe-open version %s\n", "1");
    exit(0);
  }
  if (help) {
    printf("pipe-open version %s options\n", "1");
    printf("  %s   %s\n", "-v, --version                ",
           "Print version information");
    printf("  %s   %s\n", "-h, --help                   ", "Print option help");
    printf("  %s   %s\n", "-c, --command <shell command>",
           "Command to execute");
    printf("  %s   %s\n", "-r, --reverse                ",
           "Print the command output reversed");
    exit(0);
  }
  if (strcmp("", cmd) == 0) {
    sprintf(cmd, "ls -ltr");
  }
}


x86 assembly (clang, -O0):
<_parse_args>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
lea    0xe6b(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    -0xc0(%rbp),%rdi
lea    0xe5f(%rip),%rax
mov    %rax,-0xc0(%rbp)
mov    0x2e1b(%rip),%rax
mov    (%rax),%eax
mov    %al,-0xb8(%rbp)
movl   $0x0,-0xb4(%rbp)
movl   $0x76,-0xb0(%rbp)
add    $0x18,%rdi
lea    0xee9(%rip),%rax
mov    %rax,-0xa8(%rbp)
mov    0x2de6(%rip),%rax
mov    (%rax),%eax
mov    %al,-0xa0(%rbp)
movl   $0x0,-0x9c(%rbp)
movl   $0x68,-0x98(%rbp)
add    $0x18,%rdi
lea    0xdfd(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    0x2dc1(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x88(%rbp)
movl   $0x0,-0x84(%rbp)
movl   $0x63,-0x80(%rbp)
add    $0x18,%rdi
lea    0xdd3(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0x2d82(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x70(%rbp)
movl   $0x0,-0x6c(%rbp)
movl   $0x72,-0x68(%rbp)
add    $0x18,%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1060 <memset@plt>
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x18(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x0,(%rax)
movl   $0x0,-0x38(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x40(%rbp),%rdx
lea    -0xc0(%rbp),%rcx
lea    -0x38(%rbp),%r8
call   1030 <getopt_long@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0xffffffff,-0x34(%rbp)
jne    12c4 <_parse_args+0x154>
jmp    1379 <_parse_args+0x209>
mov    -0x34(%rbp),%eax
mov    %eax,-0xc4(%rbp)
test   %eax,%eax
je     132a <_parse_args+0x1ba>
jmp    12da <_parse_args+0x16a>
mov    -0xc4(%rbp),%eax
sub    $0x63,%eax
je     1356 <_parse_args+0x1e6>
jmp    12ee <_parse_args+0x17e>
mov    -0xc4(%rbp),%eax
sub    $0x68,%eax
je     133b <_parse_args+0x1cb>
jmp    1302 <_parse_args+0x192>
mov    -0xc4(%rbp),%eax
sub    $0x72,%eax
je     1347 <_parse_args+0x1d7>
jmp    1316 <_parse_args+0x1a6>
mov    -0xc4(%rbp),%eax
sub    $0x76,%eax
je     132f <_parse_args+0x1bf>
jmp    1374 <_parse_args+0x204>
jmp    1374 <_parse_args+0x204>
movl   $0x1,-0x2c(%rbp)
jmp    1374 <_parse_args+0x204>
movl   $0x1,-0x30(%rbp)
jmp    1374 <_parse_args+0x204>
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    1374 <_parse_args+0x204>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    0x2c93(%rip),%rax
mov    (%rax),%rcx
lea    0xcaf(%rip),%rdx
call   1050 <snprintf@plt>
jmp    1290 <_parse_args+0x120>
cmpl   $0x0,-0x2c(%rbp)
je     139f <_parse_args+0x22f>
lea    0xc97(%rip),%rdi
lea    0xca6(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
cmpl   $0x0,-0x30(%rbp)
je     1435 <_parse_args+0x2c5>
lea    0xc89(%rip),%rdi
lea    0xc80(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc92(%rip),%rdi
lea    0xc96(%rip),%rsi
lea    0xcad(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc76(%rip),%rdi
lea    0xcb2(%rip),%rsi
lea    0xcc9(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc5a(%rip),%rdi
lea    0xcc6(%rip),%rsi
lea    0xcdd(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc3e(%rip),%rdi
lea    0xcdb(%rip),%rsi
lea    0xcf2(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
mov    -0x18(%rbp),%rsi
lea    0xc21(%rip),%rdi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    145f <_parse_args+0x2ef>
mov    -0x18(%rbp),%rdi
lea    0xce1(%rip),%rsi
call   1080 <sprintf@plt>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_parse_args>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rcx,0x20(%rsp)
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xee4(%rip),%rax
mov    %rax,0x30(%rsp)
mov    0x2e52(%rip),%rax
mov    (%rax),%al
mov    %al,0x38(%rsp)
movabs $0x7600000000,%rcx
mov    %rcx,0x3c(%rsp)
lea    0xf7b(%rip),%rcx
mov    %rcx,0x48(%rsp)
mov    %al,0x50(%rsp)
movabs $0x6800000000,%rcx
mov    %rcx,0x54(%rsp)
lea    0xea5(%rip),%rcx
mov    %rcx,0x60(%rsp)
mov    0x2e1b(%rip),%rcx
mov    (%rcx),%cl
mov    %cl,0x68(%rsp)
movabs $0x6300000000,%rcx
mov    %rcx,0x6c(%rsp)
lea    0xe85(%rip),%rcx
mov    %rcx,0x78(%rsp)
mov    %al,0x80(%rsp)
movabs $0x7200000000,%rax
mov    %rax,0x84(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x90(%rsp)
movq   $0x0,0xa0(%rsp)
mov    %rdx,0x18(%rsp)
movb   $0x0,(%rdx)
mov    %r8,0x28(%rsp)
movl   $0x0,(%r8)
movl   $0x0,0x10(%rsp)
mov    $0x1,%al
mov    %eax,0xc(%rsp)
lea    0xe11(%rip),%r13
lea    0x30(%rsp),%r14
lea    0x14(%rsp),%r15
lea    0xdb0(%rip),%r12
jmp    126b <_parse_args+0x11b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x28(%rsp),%rax
movl   $0x1,(%rax)
movl   $0x0,0x14(%rsp)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r13,%rdx
mov    %r14,%rcx
mov    %r15,%r8
call   1030 <getopt_long@plt>
lea    -0x63(%rax),%ecx
cmp    $0x13,%ecx
ja     12b9 <_parse_args+0x169>
movslq (%r12,%rcx,4),%rax
add    %r12,%rax
jmp    *%rax
mov    0x2d5a(%rip),%rax
mov    (%rax),%rcx
mov    0x18(%rsp),%rdi
mov    0x20(%rsp),%rsi
lea    0xdbc(%rip),%rdx
call   1050 <snprintf@plt>
jmp    126b <_parse_args+0x11b>
cmp    $0xffffffff,%eax
jne    126b <_parse_args+0x11b>
jmp    12d4 <_parse_args+0x184>
movl   $0x0,0xc(%rsp)
jmp    126b <_parse_args+0x11b>
movl   $0x1,0x10(%rsp)
jmp    126b <_parse_args+0x11b>
cmpl   $0x0,0x10(%rsp)
jne    131a <_parse_args+0x1ca>
testb  $0x1,0xc(%rsp)
mov    0x18(%rsp),%rbx
je     1336 <_parse_args+0x1e6>
lea    0xdc3(%rip),%rdi
mov    %rbx,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1308 <_parse_args+0x1b8>
movabs $0x72746c2d20736c,%rax
mov    %rax,(%rbx)
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd50(%rip),%rdi
lea    0xd5f(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
call   1070 <exit@plt>
lea    0xd4c(%rip),%rdi
lea    0xd43(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd55(%rip),%rbx
lea    0xd59(%rip),%rsi
lea    0xd70(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd79(%rip),%rsi
lea    0xd90(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd91(%rip),%rsi
lea    0xda8(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdaa(%rip),%rsi
lea    0xdc1(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
%struct.option = type { i8*, i8, i32, i32 }
@.str = [6 x i8] c"vhc:r\00"
@.str.1 = [8 x i8] c"version\00"
@no_argument = global i32 0
@.str.2 = [5 x i8] c"help\00"
@.str.3 = [8 x i8] c"command\00"
@required_argument = global i32 0
@.str.4 = [8 x i8] c"reverse\00"
@.str.5 = [3 x i8] c"%s\00"
@optarg = global i8* null
@.str.6 = [22 x i8] c"pipe-open version %s\0A\00"
@.str.7 = [2 x i8] c"1\00"
@.str.8 = [30 x i8] c"pipe-open version %s options\0A\00"
@.str.9 = [11 x i8] c" %s %s\0A\00"
@.str.10 = [30 x i8] c"-v, --version \00"
@.str.11 = [26 x i8] c"Print version information\00"
@.str.12 = [30 x i8] c"-h, --help \00"
@.str.13 = [18 x i8] c"Print option help\00"
@.str.14 = [30 x i8] c"-c, --command <shell command>\00"
@.str.15 = [19 x i8] c"Command to execute\00"
@.str.16 = [30 x i8] c"-r, --reverse \00"
@.str.17 = [34 x i8] c"Print the command output reversed\00"
@.str.18 = [1 x i8] zeroinitializer
@.str.19 = [8 x i8] c"ls -ltr\00"
define void @_parse_args(i32 %0, i8** %1, i8* %2, i64 %3, i32* %4) {
%6 = alloca i32
%7 = alloca i8**
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i32*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i8*
%16 = alloca [5 x %struct.option]
store i32 %0, i32* %6
store i8** %1, i8*** %7
store i8* %2, i8** %8
store i64 %3, i64* %9
store i32* %4, i32** %10
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %15
%17 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %16, i64 0, i64 0
%18 = getelementptr inbounds %struct.option, %struct.option* %17, i32 0, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8** %18
%19 = getelementptr inbounds %struct.option, %struct.option* %17, i32 0, i32 1
%20 = load i32, i32* @no_argument
%21 = trunc i32 %20 to i8
store i8 %21, i8* %19
%22 = getelementptr inbounds %struct.option, %struct.option* %17, i32 0, i32 2
store i32 0, i32* %22
%23 = getelementptr inbounds %struct.option, %struct.option* %17, i32 0, i32 3
store i32 118, i32* %23
%24 = getelementptr inbounds %struct.option, %struct.option* %17, i64 1
%25 = getelementptr inbounds %struct.option, %struct.option* %24, i32 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %25
%26 = getelementptr inbounds %struct.option, %struct.option* %24, i32 0, i32 1
%27 = load i32, i32* @no_argument
%28 = trunc i32 %27 to i8
store i8 %28, i8* %26
%29 = getelementptr inbounds %struct.option, %struct.option* %24, i32 0, i32 2
store i32 0, i32* %29
%30 = getelementptr inbounds %struct.option, %struct.option* %24, i32 0, i32 3
store i32 104, i32* %30
%31 = getelementptr inbounds %struct.option, %struct.option* %24, i64 1
%32 = getelementptr inbounds %struct.option, %struct.option* %31, i32 0, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %32
%33 = getelementptr inbounds %struct.option, %struct.option* %31, i32 0, i32 1
%34 = load i32, i32* @required_argument
%35 = trunc i32 %34 to i8
store i8 %35, i8* %33
%36 = getelementptr inbounds %struct.option, %struct.option* %31, i32 0, i32 2
store i32 0, i32* %36
%37 = getelementptr inbounds %struct.option, %struct.option* %31, i32 0, i32 3
store i32 99, i32* %37
%38 = getelementptr inbounds %struct.option, %struct.option* %31, i64 1
%39 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8** %39
%40 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 1
%41 = load i32, i32* @no_argument
%42 = trunc i32 %41 to i8
store i8 %42, i8* %40
%43 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 2
store i32 0, i32* %43
%44 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 3
store i32 114, i32* %44
%45 = getelementptr inbounds %struct.option, %struct.option* %38, i64 1
%46 = bitcast %struct.option* %45 to i8*
store i32 0, i32* %11
store i32 0, i32* %12
%47 = load i8*, i8** %8
%48 = getelementptr inbounds i8, i8* %47, i64 0
store i8 0, i8* %48
%49 = load i32*, i32** %10
store i32 0, i32* %49
br label %50
50: ; preds = %5, %71
store i32 0, i32* %14
%51 = load i32, i32* %6
%52 = load i8**, i8*** %7
%53 = load i8*, i8** %15
%54 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %16, i64 0, i64 0
%55 = call i32 @getopt_long(i32 %51, i8** %52, i8* %53, %struct.option* %54, i32* %14)
store i32 %55, i32* %13
%56 = load i32, i32* %13
%57 = icmp eq i32 %56, -1
br i1 %57, label %58, label %59
58: ; preds = %50
br label %72
59: ; preds = %50
%60 = load i32, i32* %13
switch i32 %60, label %71 [
i32 0, label %61
i32 118, label %62
i32 104, label %63
i32 114, label %64
i32 99, label %66
]
61: ; preds = %59
br label %71
62: ; preds = %59
store i32 1, i32* %11
br label %71
63: ; preds = %59
store i32 1, i32* %12
br label %71
64: ; preds = %59
%65 = load i32*, i32** %10
store i32 1, i32* %65
br label %71
66: ; preds = %59
%67 = load i8*, i8** %8
%68 = load i64, i64* %9
%69 = load i8*, i8** @optarg
%70 = call i32 @snprintf(i8* %67, i64 %68, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %69)
br label %71
71: ; preds = %59, %66, %64, %63, %62, %61
br label %50
72: ; preds = %58
%73 = load i32, i32* %11
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %78
75: ; preds = %72
%76 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%77 = call i32 @exit(i32 0)
unreachable
78: ; preds = %72
%79 = load i32, i32* %12
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %88
81: ; preds = %78
%82 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%83 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0))
%84 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0))
%85 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0))
%86 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.17, i64 0, i64 0))
%87 = call i32 @exit(i32 0)
unreachable
88: ; preds = %78
%89 = load i8*, i8** %8
%90 = call i64 @strcmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.18, i64 0, i64 0), i8* %89)
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %88
%93 = load i8*, i8** %8
%94 = call i32 @sprintf(i8* %93, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.19, i64 0, i64 0))
br label %95
95: ; preds = %92, %88
ret void
}

LLVM IR (-O2):
%struct.option = type { i8*, i8, i32, i32 }
@.str = [6 x i8] c"vhc:r\00"
@.str.1 = [8 x i8] c"version\00"
@no_argument = global i32 0
@.str.2 = [5 x i8] c"help\00"
@.str.3 = [8 x i8] c"command\00"
@required_argument = global i32 0
@.str.4 = [8 x i8] c"reverse\00"
@.str.5 = [3 x i8] c"%s\00"
@optarg = global i8* null
@.str.6 = [22 x i8] c"pipe-open version %s\0A\00"
@.str.7 = [2 x i8] c"1\00"
@.str.8 = [30 x i8] c"pipe-open version %s options\0A\00"
@.str.9 = [11 x i8] c" %s %s\0A\00"
@.str.10 = [30 x i8] c"-v, --version \00"
@.str.11 = [26 x i8] c"Print version information\00"
@.str.12 = [30 x i8] c"-h, --help \00"
@.str.13 = [18 x i8] c"Print option help\00"
@.str.14 = [30 x i8] c"-c, --command <shell command>\00"
@.str.15 = [19 x i8] c"Command to execute\00"
@.str.16 = [30 x i8] c"-r, --reverse \00"
@.str.17 = [34 x i8] c"Print the command output reversed\00"
@.str.18 = [1 x i8] zeroinitializer
define void @_parse_args(i32 %0, i8** %1, i8* %2, i64 %3, i32* nocapture writeonly %4) {
%6 = alloca i32
%7 = alloca [5 x %struct.option]
%8 = bitcast i32* %6 to i8*
%9 = bitcast [5 x %struct.option]* %7 to i8*
%10 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 0
%11 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 0, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8** %11
%12 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 0, i32 1
%13 = load i32, i32* @no_argument
%14 = trunc i32 %13 to i8
store i8 %14, i8* %12
%15 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 0, i32 2
store i32 0, i32* %15
%16 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 0, i32 3
store i32 118, i32* %16
%17 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 1, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %17
%18 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 1, i32 1
store i8 %14, i8* %18
%19 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 1, i32 2
store i32 0, i32* %19
%20 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 1, i32 3
store i32 104, i32* %20
%21 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 2, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %21
%22 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 2, i32 1
%23 = load i32, i32* @required_argument
%24 = trunc i32 %23 to i8
store i8 %24, i8* %22
%25 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 2, i32 2
store i32 0, i32* %25
%26 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 2, i32 3
store i32 99, i32* %26
%27 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 3, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8** %27
%28 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 3, i32 1
store i8 %14, i8* %28
%29 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 3, i32 2
store i32 0, i32* %29
%30 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 3, i32 3
store i32 114, i32* %30
%31 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %7, i64 0, i64 4
%32 = bitcast %struct.option* %31 to i8*
store i8 0, i8* %2
store i32 0, i32* %4
br label %33
33: ; preds = %38, %5
%34 = phi i1 [ true, %5 ], [ false, %38 ]
%35 = phi i32 [ 0, %5 ], [ %37, %38 ]
br label %36
36: ; preds = %38, %33
%37 = phi i32 [ %35, %33 ], [ 1, %38 ]
br label %38
38: ; preds = %40, %36
store i32 0, i32* %6
%39 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), %struct.option* %10, i32* %6)
switch i32 %39, label %40 [
i32 -1, label %45
i32 99, label %42
i32 118, label %36
i32 104, label %33
i32 114, label %41
]
40: ; preds = %38, %42, %41
br label %38
41: ; preds = %38
store i32 1, i32* %4
br label %40
42: ; preds = %38
%43 = load i8*, i8** @optarg
%44 = call i32 @snprintf(i8* %2, i64 %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %43)
br label %40
45: ; preds = %38
%46 = icmp eq i32 %37, 0
br i1 %46, label %50, label %47
47: ; preds = %45
%48 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%49 = call i32 @exit(i32 0)
unreachable
50: ; preds = %45
br i1 %34, label %58, label %51
51: ; preds = %50
%52 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%53 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0))
%54 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0))
%55 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0))
%56 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.17, i64 0, i64 0))
%57 = call i32 @exit(i32 0)
unreachable
58: ; preds = %50
%59 = call i64 @strcmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.18, i64 0, i64 0), i8* %2)
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = bitcast i8* %2 to i64*
store i64 32216155307406188, i64* %62
br label %63
63: ; preds = %61, %58
ret void
}