#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;
  int *member_2;
  int member_3;
  int /*<<< orphan*/ member_1;
};

/* Variables and functions */
int /*<<< orphan*/ free(char *);
int getopt_long(int, char **, char *, struct option *, int *);
int /*<<< orphan*/ no_argument;
int /*<<< orphan*/ optarg;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ required_argument;
char *strdup(int /*<<< orphan*/);
int main(int argc, char **argv) {
  int opt;
  int opt_index;
  int do_append = 0;
  int do_create = 0;
  int do_verbose = 0;
  char *filename = NULL;
  struct option long_options[] = {{"append", no_argument, &do_append, 1},
                                  {"create", no_argument, &do_create, 1},
                                  {"file", required_argument, NULL, 'f'},
                                  {"verbose", no_argument, NULL, 'v'},
                                  {0, 0, 0, 0}};
  printf("getopt_long demo program.\n");
  while ((opt = getopt_long(argc, argv, ":vf:", long_options, &opt_index)) !=
         -1) {
    switch (opt) {
    case 'f':
      filename = strdup(optarg);
      break;
    case 'v':
      do_verbose = 1;
      break;
    case 0:
      break;
    default:
      break;
    }
  }
  printf("User input is: \n");
  printf("    append   flag is %s set.\n", (do_append == 1) ? "" : "NOT");
  printf("    create   flag is %s set.\n", (do_create == 1) ? "" : "NOT");
  printf("    verbose  flag is %s set.\n", (do_verbose == 1) ? "" : "NOT");
  printf("    filename = %s\n", filename ? filename : "NOT set");
  free(filename);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movq   $0x0,-0x30(%rbp)
lea    -0xb0(%rbp),%rdi
lea    0xe6c(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0x2e2e(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0xa8(%rbp)
lea    -0x1c(%rbp),%rax
mov    %eax,-0xa0(%rbp)
movl   $0x1,-0x9c(%rbp)
add    $0x18,%rdi
lea    0xe3c(%rip),%rax
mov    %rax,-0x98(%rbp)
mov    0x2df7(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x90(%rbp)
lea    -0x20(%rbp),%rax
mov    %eax,-0x88(%rbp)
movl   $0x1,-0x84(%rbp)
add    $0x18,%rdi
lea    0xe0c(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0x2dd3(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x78(%rbp)
movl   $0x0,-0x70(%rbp)
movl   $0x66,-0x6c(%rbp)
add    $0x18,%rdi
lea    0xde6(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0x2d98(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x76,-0x54(%rbp)
add    $0x18,%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1060 <memset@plt>
lea    0xdb7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    -0xb0(%rbp),%rcx
lea    0xdb6(%rip),%rdx
lea    -0x18(%rbp),%r8
call   1040 <getopt_long@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xffffffff,%eax
je     1305 <main+0x1b5>
mov    -0x14(%rbp),%eax
mov    %eax,-0xb4(%rbp)
test   %eax,%eax
je     12f6 <main+0x1a6>
jmp    12ab <main+0x15b>
mov    -0xb4(%rbp),%eax
sub    $0x66,%eax
je     12d3 <main+0x183>
jmp    12bf <main+0x16f>
mov    -0xb4(%rbp),%eax
sub    $0x76,%eax
je     12ea <main+0x19a>
jmp    12fb <main+0x1ab>
mov    0x2d1e(%rip),%rax
mov    (%rax),%edi
call   1070 <strdup@plt>
mov    %rax,-0x30(%rbp)
jmp    1300 <main+0x1b0>
movl   $0x1,-0x24(%rbp)
jmp    1300 <main+0x1b0>
jmp    1300 <main+0x1b0>
jmp    1300 <main+0x1b0>
jmp    126b <main+0x11b>
lea    0xd2f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x1c(%rbp),%ecx
lea    0xd4d(%rip),%rsi
lea    0xd27(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rsi
lea    0xd1a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%ecx
lea    0xd27(%rip),%rsi
lea    0xd01(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rsi
lea    0xd16(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x24(%rbp),%ecx
lea    0xd01(%rip),%rsi
lea    0xcdb(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rsi
lea    0xd0e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpq   $0x0,-0x30(%rbp)
je     13a0 <main+0x250>
mov    -0x30(%rbp),%rax
mov    %rax,-0xc0(%rbp)
jmp    13b3 <main+0x263>
lea    0xd16(%rip),%rax
mov    %rax,-0xc0(%rbp)
jmp    13b3 <main+0x263>
mov    -0xc0(%rbp),%rsi
lea    0xce9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
lea    0xe83(%rip),%rax
mov    %rax,0x20(%rsp)
mov    0x2e47(%rip),%rax
movslq (%rax),%rax
mov    %rax,0x28(%rsp)
lea    0xc(%rsp),%rcx
mov    %ecx,0x30(%rsp)
movl   $0x1,0x34(%rsp)
lea    0xe5e(%rip),%rcx
mov    %rcx,0x38(%rsp)
mov    %rax,0x40(%rsp)
lea    0x8(%rsp),%rcx
mov    %ecx,0x48(%rsp)
movl   $0x1,0x4c(%rsp)
lea    0xe43(%rip),%rcx
mov    %rcx,0x50(%rsp)
mov    0x2e09(%rip),%rcx
movslq (%rcx),%rcx
mov    %rcx,0x58(%rsp)
movabs $0x6600000000,%rcx
mov    %rcx,0x60(%rsp)
lea    0xe1e(%rip),%rcx
mov    %rcx,0x68(%rsp)
mov    %rax,0x70(%rsp)
movabs $0x7600000000,%rax
mov    %rax,0x78(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x80(%rsp)
movq   $0x0,0x90(%rsp)
lea    0xe6d(%rip),%rdi
call   1040 <puts@plt>
lea    0xe06(%rip),%rax
mov    %rax,0x10(%rsp)
xor    %r14d,%r14d
lea    0xdd4(%rip),%r12
lea    0x20(%rsp),%r13
lea    0x1c(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %r15,%r8
call   1050 <getopt_long@plt>
cmp    $0xffffffff,%eax
je     12a3 <main+0x153>
cmp    $0x76,%eax
je     1295 <main+0x145>
cmp    $0x66,%eax
jne    1260 <main+0x110>
mov    0x2d6f(%rip),%rax
mov    (%rax),%edi
call   1070 <strdup@plt>
mov    %rax,%r14
jmp    1260 <main+0x110>
lea    0xda1(%rip),%rax
mov    %rax,0x10(%rsp)
jmp    1260 <main+0x110>
lea    0xe09(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x1,0xc(%rsp)
lea    0xd82(%rip),%rbp
lea    0xd7c(%rip),%rbx
mov    %rbx,%rsi
cmove  %rbp,%rsi
lea    0xd50(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
cmpl   $0x1,0x8(%rsp)
cmove  %rbp,%rbx
lea    0xd5b(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd68(%rip),%rdi
mov    0x10(%rsp),%rsi
xor    %eax,%eax
call   1060 <printf@plt>
test   %r14,%r14
lea    0xd83(%rip),%rsi
cmovne %r14,%rsi
lea    0xd65(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.option = type { i8*, i32*, i32, i32 }
@.str = [7 x i8] c"append\00"
@no_argument = global i32 0
@.str.1 = [7 x i8] c"create\00"
@.str.2 = [5 x i8] c"file\00"
@required_argument = global i32 0
@.str.3 = [8 x i8] c"verbose\00"
@.str.4 = [27 x i8] c"getopt_long demo program.\0A\00"
@.str.5 = [5 x i8] c":vf:\00"
@optarg = global i32 0
@.str.6 = [17 x i8] c"User input is: \0A\00"
@.str.7 = [30 x i8] c" append flag is %s set.\0A\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [4 x i8] c"NOT\00"
@.str.10 = [30 x i8] c" create flag is %s set.\0A\00"
@.str.11 = [30 x i8] c" verbose flag is %s set.\0A\00"
@.str.12 = [19 x i8] c" filename = %s\0A\00"
@.str.13 = [8 x i8] c"NOT set\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 i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca [5 x %struct.option]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i8* null, i8** %11
%13 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %12, i64 0, i64 0
%14 = getelementptr inbounds %struct.option, %struct.option* %13, i32 0, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8** %14
%15 = getelementptr inbounds %struct.option, %struct.option* %13, i32 0, i32 1
%16 = load i32, i32* @no_argument
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to i32*
store i32* %18, i32** %15
%19 = getelementptr inbounds %struct.option, %struct.option* %13, i32 0, i32 2
%20 = ptrtoint i32* %8 to i32
store i32 %20, i32* %19
%21 = getelementptr inbounds %struct.option, %struct.option* %13, i32 0, i32 3
store i32 1, i32* %21
%22 = getelementptr inbounds %struct.option, %struct.option* %13, i64 1
%23 = getelementptr inbounds %struct.option, %struct.option* %22, i32 0, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %23
%24 = getelementptr inbounds %struct.option, %struct.option* %22, i32 0, i32 1
%25 = load i32, i32* @no_argument
%26 = sext i32 %25 to i64
%27 = inttoptr i64 %26 to i32*
store i32* %27, i32** %24
%28 = getelementptr inbounds %struct.option, %struct.option* %22, i32 0, i32 2
%29 = ptrtoint i32* %9 to i32
store i32 %29, i32* %28
%30 = getelementptr inbounds %struct.option, %struct.option* %22, i32 0, i32 3
store i32 1, i32* %30
%31 = getelementptr inbounds %struct.option, %struct.option* %22, i64 1
%32 = getelementptr inbounds %struct.option, %struct.option* %31, i32 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, 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 = sext i32 %34 to i64
%36 = inttoptr i64 %35 to i32*
store i32* %36, i32** %33
%37 = getelementptr inbounds %struct.option, %struct.option* %31, i32 0, i32 2
store i32 0, i32* %37
%38 = getelementptr inbounds %struct.option, %struct.option* %31, i32 0, i32 3
store i32 102, i32* %38
%39 = getelementptr inbounds %struct.option, %struct.option* %31, i64 1
%40 = getelementptr inbounds %struct.option, %struct.option* %39, i32 0, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %40
%41 = getelementptr inbounds %struct.option, %struct.option* %39, i32 0, i32 1
%42 = load i32, i32* @no_argument
%43 = sext i32 %42 to i64
%44 = inttoptr i64 %43 to i32*
store i32* %44, i32** %41
%45 = getelementptr inbounds %struct.option, %struct.option* %39, i32 0, i32 2
store i32 0, i32* %45
%46 = getelementptr inbounds %struct.option, %struct.option* %39, i32 0, i32 3
store i32 118, i32* %46
%47 = getelementptr inbounds %struct.option, %struct.option* %39, i64 1
%48 = bitcast %struct.option* %47 to i8*
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
br label %50
50: ; preds = %64, %2
%51 = load i32, i32* %4
%52 = load i8**, i8*** %5
%53 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %12, i64 0, i64 0
%54 = call i32 @getopt_long(i32 %51, i8** %52, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), %struct.option* %53, i32* %7)
store i32 %54, i32* %6
%55 = icmp ne i32 %54, -1
br i1 %55, label %56, label %65
56: ; preds = %50
%57 = load i32, i32* %6
switch i32 %57, label %63 [
i32 102, label %58
i32 118, label %61
i32 0, label %62
]
58: ; preds = %56
%59 = load i32, i32* @optarg
%60 = call i8* @strdup(i32 %59)
store i8* %60, i8** %11
br label %64
61: ; preds = %56
store i32 1, i32* %10
br label %64
62: ; preds = %56
br label %64
63: ; preds = %56
br label %64
64: ; preds = %63, %62, %61, %58
br label %50
65: ; preds = %50
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
%67 = load i32, i32* %8
%68 = icmp eq i32 %67, 1
%69 = zext i1 %68 to i64
%70 = select i1 %68, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0)
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i8* %70)
%72 = load i32, i32* %9
%73 = icmp eq i32 %72, 1
%74 = zext i1 %73 to i64
%75 = select i1 %73, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0)
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i8* %75)
%77 = load i32, i32* %10
%78 = icmp eq i32 %77, 1
%79 = zext i1 %78 to i64
%80 = select i1 %78, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0)
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i8* %80)
%82 = load i8*, i8** %11
%83 = icmp ne i8* %82, null
br i1 %83, label %84, label %86
84: ; preds = %65
%85 = load i8*, i8** %11
br label %87
86: ; preds = %65
br label %87
87: ; preds = %86, %84
%88 = phi i8* [ %85, %84 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), %86 ]
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), i8* %88)
%90 = load i8*, i8** %11
%91 = call i32 @free(i8* %90)
ret i32 0
}

LLVM IR (-O2):
%struct.option = type { i8*, i32*, i32, i32 }
@.str = [7 x i8] c"append\00"
@no_argument = global i32 0
@.str.1 = [7 x i8] c"create\00"
@.str.2 = [5 x i8] c"file\00"
@required_argument = global i32 0
@.str.3 = [8 x i8] c"verbose\00"
@.str.5 = [5 x i8] c":vf:\00"
@optarg = global i32 0
@.str.7 = [30 x i8] c" append flag is %s set.\0A\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [4 x i8] c"NOT\00"
@.str.10 = [30 x i8] c" create flag is %s set.\0A\00"
@.str.11 = [30 x i8] c" verbose flag is %s set.\0A\00"
@.str.12 = [19 x i8] c" filename = %s\0A\00"
@.str.13 = [8 x i8] c"NOT set\00"
@str = [26 x i8] c"getopt_long demo program.\00"
@str.14 = [16 x i8] c"User input is: \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [5 x %struct.option]
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%9 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%10 = bitcast [5 x %struct.option]* %6 to i8*
%11 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 0
%12 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 0, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8** %12
%13 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 0, i32 1
%14 = load i32, i32* @no_argument
%15 = sext i32 %14 to i64
%16 = inttoptr i64 %15 to i32*
store i32* %16, i32** %13
%17 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 0, i32 2
%18 = ptrtoint i32* %4 to i64
%19 = trunc i64 %18 to i32
store i32 %19, i32* %17
%20 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 0, i32 3
store i32 1, i32* %20
%21 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 1, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %21
%22 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 1, i32 1
store i32* %16, i32** %22
%23 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 1, i32 2
%24 = ptrtoint i32* %5 to i64
%25 = trunc i64 %24 to i32
store i32 %25, i32* %23
%26 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 1, i32 3
store i32 1, i32* %26
%27 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 2, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %27
%28 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 2, i32 1
%29 = load i32, i32* @required_argument
%30 = sext i32 %29 to i64
%31 = inttoptr i64 %30 to i32*
store i32* %31, i32** %28
%32 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 2, i32 2
store i32 0, i32* %32
%33 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 2, i32 3
store i32 102, i32* %33
%34 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 3, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %34
%35 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 3, i32 1
store i32* %16, i32** %35
%36 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 3, i32 2
store i32 0, i32* %36
%37 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 3, i32 3
store i32 118, i32* %37
%38 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 4
%39 = bitcast %struct.option* %38 to i8*
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
br label %41
41: ; preds = %46, %2
%42 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), %2 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), %46 ]
%43 = phi i8* [ null, %2 ], [ %45, %46 ]
br label %44
44: ; preds = %41, %48
%45 = phi i8* [ %43, %41 ], [ %50, %48 ]
br label %46
46: ; preds = %44, %46
%47 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), %struct.option* %11, i32* %3)
switch i32 %47, label %46 [
i32 -1, label %51
i32 102, label %48
i32 118, label %41
]
48: ; preds = %46
%49 = load i32, i32* @optarg
%50 = call i8* @strdup(i32 %49)
br label %44
51: ; preds = %46
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.14, i64 0, i64 0))
%53 = load i32, i32* %4
%54 = icmp eq i32 %53, 1
%55 = select i1 %54, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i8* %55)
%57 = load i32, i32* %5
%58 = icmp eq i32 %57, 1
%59 = select i1 %58, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0)
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i8* %59)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i8* %42)
%62 = icmp eq i8* %45, null
%63 = select i1 %62, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %45
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), i8* %63)
%65 = call i32 @free(i8* %45)
ret i32 0
}