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

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int getopt_long(int, char **, char *, struct option const *, int *);
int /*<<< orphan*/ no_argument;
char *optarg;
int /*<<< orphan*/ optional_argument;
int optopt;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ required_argument;
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  int opt;
  int option_index = 0;
  int number = 1;
  char *optstring = ":hf:na";
  char *pstr = NULL;
  const struct option long_options[] = {{"help", no_argument, NULL, 'h'},
                                        {"file", required_argument, NULL, 'f'},
                                        {"number", no_argument, &number, 9},
                                        {"arg", optional_argument, NULL, 'a'},
                                        {0, 0, 0, 0}};
  while (1) {
    opt = getopt_long(argc, argv, optstring, long_options, &option_index);
    if (opt == -1)
      break;
    switch (opt) {
    case 0:
      printf("long option, number = %d\n", number);
      break;
    case 'h':
      printf("help\n");
      break;
    case 'f':
      pstr = optarg;
      printf("file name = %s\n", pstr);
      break;
    case 'n':
      printf("short option, number = %d\n", number);
      break;
    case 'a':
      printf("optional argument\n");
      break;
    case ':':
      fprintf(stderr, "Missing argument (-%c)\n", optopt);
      break;
    case '?':
      fprintf(stderr, "Unrecognized option (-%c)\n", optopt);
      break;
    default:
      fprintf(stderr, "Unexpected case in switch()\n");
      break;
    }
    printf("option_index = %d\n", option_index);
    printf("\n");
  }
  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,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
lea    0xe92(%rip),%rax
mov    %rax,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
lea    -0xb0(%rbp),%rdi
lea    0xe7f(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0x2e22(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0xa8(%rbp)
movb   $0x0,-0xa0(%rbp)
movl   $0x68,-0x9c(%rbp)
add    $0x18,%rdi
lea    0xe50(%rip),%rax
mov    %rax,-0x98(%rbp)
mov    0x2e06(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x90(%rbp)
movb   $0x0,-0x88(%rbp)
movl   $0x66,-0x84(%rbp)
add    $0x18,%rdi
lea    0xe21(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0x2dbd(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x78(%rbp)
lea    -0x1c(%rbp),%rax
mov    %al,-0x70(%rbp)
movl   $0x9,-0x6c(%rbp)
add    $0x18,%rdi
lea    0xdfd(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0x2dba(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x60(%rbp)
movb   $0x0,-0x58(%rbp)
movl   $0x61,-0x54(%rbp)
add    $0x18,%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1050 <memset@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    -0xb0(%rbp),%rcx
lea    -0x18(%rbp),%r8
call   1030 <getopt_long@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
jne    1275 <main+0x135>
jmp    13ff <main+0x2bf>
mov    -0x14(%rbp),%eax
mov    %eax,-0xb4(%rbp)
test   %eax,%eax
je     1303 <main+0x1c3>
jmp    128b <main+0x14b>
mov    -0xb4(%rbp),%eax
sub    $0x3a,%eax
je     137a <main+0x23a>
jmp    129f <main+0x15f>
mov    -0xb4(%rbp),%eax
sub    $0x3f,%eax
je     139f <main+0x25f>
jmp    12b3 <main+0x173>
mov    -0xb4(%rbp),%eax
sub    $0x61,%eax
je     1367 <main+0x227>
jmp    12c7 <main+0x187>
mov    -0xb4(%rbp),%eax
sub    $0x66,%eax
je     132c <main+0x1ec>
jmp    12db <main+0x19b>
mov    -0xb4(%rbp),%eax
sub    $0x68,%eax
je     1319 <main+0x1d9>
jmp    12ef <main+0x1af>
mov    -0xb4(%rbp),%eax
sub    $0x6e,%eax
je     1351 <main+0x211>
jmp    13c4 <main+0x284>
mov    -0x1c(%rbp),%esi
lea    0xd0f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13db <main+0x29b>
lea    0xd16(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13db <main+0x29b>
mov    0x2cc5(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rsi
lea    0xcf7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13db <main+0x29b>
mov    -0x1c(%rbp),%esi
lea    0xcf1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13db <main+0x29b>
lea    0xcf9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13db <main+0x29b>
mov    0x2c3f(%rip),%rax
mov    (%rax),%edi
mov    0x2c4e(%rip),%rax
mov    (%rax),%edx
lea    0xce7(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    13db <main+0x29b>
mov    0x2c1a(%rip),%rax
mov    (%rax),%edi
mov    0x2c29(%rip),%rax
mov    (%rax),%edx
lea    0xcda(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    13db <main+0x29b>
mov    0x2bf5(%rip),%rax
mov    (%rax),%edi
lea    0xcd9(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%esi
lea    0xce5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xcd5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1248 <main+0x108>
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    $0x88,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
movl   $0x0,0xc(%rsp)
movl   $0x1,0x8(%rsp)
lea    0x1028(%rip),%rax
mov    %rax,0x10(%rsp)
mov    0x2e2f(%rip),%rax
movslq (%rax),%rax
mov    %rax,0x18(%rsp)
movb   $0x0,0x20(%rsp)
movl   $0x68,0x24(%rsp)
lea    0xf36(%rip),%rcx
mov    %rcx,0x28(%rsp)
mov    0x2e1f(%rip),%rcx
movslq (%rcx),%rcx
mov    %rcx,0x30(%rsp)
movb   $0x0,0x38(%rsp)
movl   $0x66,0x3c(%rsp)
lea    0xf13(%rip),%rcx
mov    %rcx,0x40(%rsp)
mov    %rax,0x48(%rsp)
lea    0x8(%rsp),%rax
mov    %al,0x50(%rsp)
movl   $0x9,0x54(%rsp)
lea    0xef8(%rip),%rax
mov    %rax,0x58(%rsp)
mov    0x2de5(%rip),%rax
movslq (%rax),%rax
mov    %rax,0x60(%rsp)
movb   $0x0,0x68(%rsp)
movl   $0x61,0x6c(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x70(%rsp)
movq   $0x0,0x80(%rsp)
lea    0x10(%rsp),%r12
lea    0xc(%rsp),%r13
lea    0xf4b(%rip),%r14
lea    0xdc4(%rip),%r15
jmp    1262 <main+0x112>
lea    0xf4e(%rip),%rdi
call   1040 <puts@plt>
mov    0xc(%rsp),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
lea    0xe66(%rip),%rdx
mov    %r12,%rcx
mov    %r13,%r8
call   1050 <getopt_long@plt>
lea    -0x3a(%rax),%ecx
cmp    $0x34,%ecx
ja     12a5 <main+0x155>
movslq (%r15,%rcx,4),%rax
add    %r15,%rax
jmp    *%rax
mov    0x2d2f(%rip),%rax
mov    (%rax),%edi
mov    0x2d3e(%rip),%rax
mov    (%rax),%edx
lea    0xe8d(%rip),%rsi
jmp    12eb <main+0x19b>
test   %eax,%eax
je     132d <main+0x1dd>
cmp    $0xffffffff,%eax
je     1344 <main+0x1f4>
mov    0x2d03(%rip),%rax
mov    (%rax),%edi
lea    0xe9d(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    124a <main+0xfa>
mov    0x2ce7(%rip),%rax
mov    (%rax),%edi
mov    0x2cf6(%rip),%rax
mov    (%rax),%edx
lea    0xe5d(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    124a <main+0xfa>
mov    0x2cfa(%rip),%rax
mov    (%rax),%rsi
lea    0xdfd(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    124a <main+0xfa>
lea    0xe8a(%rip),%rdi
jmp    1245 <main+0xf5>
mov    0x8(%rsp),%esi
lea    0xdea(%rip),%rdi
jmp    1338 <main+0x1e8>
mov    0x8(%rsp),%esi
lea    0xdb3(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    124a <main+0xfa>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.option = type { i8*, i32*, i8, i32 }
@.str = [7 x i8] c":hf:na\00"
@.str.1 = [5 x i8] c"help\00"
@no_argument = global i32 0
@.str.2 = [5 x i8] c"file\00"
@required_argument = global i32 0
@.str.3 = [7 x i8] c"number\00"
@.str.4 = [4 x i8] c"arg\00"
@optional_argument = global i32 0
@.str.5 = [26 x i8] c"long option, number = %d\0A\00"
@.str.6 = [6 x i8] c"help\0A\00"
@optarg = global i8* null
@.str.7 = [16 x i8] c"file name = %s\0A\00"
@.str.8 = [27 x i8] c"short option, number = %d\0A\00"
@.str.9 = [19 x i8] c"optional argument\0A\00"
@stderr = global i32 0
@.str.10 = [24 x i8] c"Missing argument (-%c)\0A\00"
@optopt = global i32 0
@.str.11 = [27 x i8] c"Unrecognized option (-%c)\0A\00"
@.str.12 = [29 x i8] c"Unexpected case in switch()\0A\00"
@.str.13 = [19 x i8] c"option_index = %d\0A\00"
@.str.14 = [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 i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca [5 x %struct.option]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
store i32 1, i32* %8
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8** %9
store i8* null, i8** %10
%12 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %11, i64 0, i64 0
%13 = getelementptr inbounds %struct.option, %struct.option* %12, i32 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %13
%14 = getelementptr inbounds %struct.option, %struct.option* %12, i32 0, i32 1
%15 = load i32, i32* @no_argument
%16 = sext i32 %15 to i64
%17 = inttoptr i64 %16 to i32*
store i32* %17, i32** %14
%18 = getelementptr inbounds %struct.option, %struct.option* %12, i32 0, i32 2
store i8 0, i8* %18
%19 = getelementptr inbounds %struct.option, %struct.option* %12, i32 0, i32 3
store i32 104, i32* %19
%20 = getelementptr inbounds %struct.option, %struct.option* %12, i64 1
%21 = getelementptr inbounds %struct.option, %struct.option* %20, i32 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %21
%22 = getelementptr inbounds %struct.option, %struct.option* %20, i32 0, i32 1
%23 = load i32, i32* @required_argument
%24 = sext i32 %23 to i64
%25 = inttoptr i64 %24 to i32*
store i32* %25, i32** %22
%26 = getelementptr inbounds %struct.option, %struct.option* %20, i32 0, i32 2
store i8 0, i8* %26
%27 = getelementptr inbounds %struct.option, %struct.option* %20, i32 0, i32 3
store i32 102, i32* %27
%28 = getelementptr inbounds %struct.option, %struct.option* %20, i64 1
%29 = getelementptr inbounds %struct.option, %struct.option* %28, i32 0, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %29
%30 = getelementptr inbounds %struct.option, %struct.option* %28, i32 0, i32 1
%31 = load i32, i32* @no_argument
%32 = sext i32 %31 to i64
%33 = inttoptr i64 %32 to i32*
store i32* %33, i32** %30
%34 = getelementptr inbounds %struct.option, %struct.option* %28, i32 0, i32 2
%35 = ptrtoint i32* %8 to i8
store i8 %35, i8* %34
%36 = getelementptr inbounds %struct.option, %struct.option* %28, i32 0, i32 3
store i32 9, i32* %36
%37 = getelementptr inbounds %struct.option, %struct.option* %28, i64 1
%38 = getelementptr inbounds %struct.option, %struct.option* %37, i32 0, i32 0
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %38
%39 = getelementptr inbounds %struct.option, %struct.option* %37, i32 0, i32 1
%40 = load i32, i32* @optional_argument
%41 = sext i32 %40 to i64
%42 = inttoptr i64 %41 to i32*
store i32* %42, i32** %39
%43 = getelementptr inbounds %struct.option, %struct.option* %37, i32 0, i32 2
store i8 0, i8* %43
%44 = getelementptr inbounds %struct.option, %struct.option* %37, i32 0, i32 3
store i32 97, i32* %44
%45 = getelementptr inbounds %struct.option, %struct.option* %37, i64 1
%46 = bitcast %struct.option* %45 to i8*
br label %47
47: ; preds = %2, %83
%48 = load i32, i32* %4
%49 = load i8**, i8*** %5
%50 = load i8*, i8** %9
%51 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %11, i64 0, i64 0
%52 = call i32 @getopt_long(i32 %48, i8** %49, i8* %50, %struct.option* %51, i32* %7)
store i32 %52, i32* %6
%53 = load i32, i32* %6
%54 = icmp eq i32 %53, -1
br i1 %54, label %55, label %56
55: ; preds = %47
br label %87
56: ; preds = %47
%57 = load i32, i32* %6
switch i32 %57, label %80 [
i32 0, label %58
i32 104, label %61
i32 102, label %63
i32 110, label %67
i32 97, label %70
i32 58, label %72
i32 63, label %76
]
58: ; preds = %56
%59 = load i32, i32* %8
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i32 %59)
br label %83
61: ; preds = %56
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %83
63: ; preds = %56
%64 = load i8*, i8** @optarg
store i8* %64, i8** %10
%65 = load i8*, i8** %10
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* %65)
br label %83
67: ; preds = %56
%68 = load i32, i32* %8
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i32 %68)
br label %83
70: ; preds = %56
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
br label %83
72: ; preds = %56
%73 = load i32, i32* @stderr
%74 = load i32, i32* @optopt
%75 = call i32 (i32, i8*, ...) @fprintf(i32 %73, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i32 %74)
br label %83
76: ; preds = %56
%77 = load i32, i32* @stderr
%78 = load i32, i32* @optopt
%79 = call i32 (i32, i8*, ...) @fprintf(i32 %77, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i32 %78)
br label %83
80: ; preds = %56
%81 = load i32, i32* @stderr
%82 = call i32 (i32, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0))
br label %83
83: ; preds = %80, %76, %72, %70, %67, %63, %61, %58
%84 = load i32, i32* %7
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), i32 %84)
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
br label %47
87: ; preds = %55
ret i32 0
}

LLVM IR (-O2):
%struct.option = type { i8*, i32*, i8, i32 }
@.str = [7 x i8] c":hf:na\00"
@no_argument = global i32 0
@.str.2 = [5 x i8] c"file\00"
@required_argument = global i32 0
@.str.3 = [7 x i8] c"number\00"
@.str.4 = [4 x i8] c"arg\00"
@optional_argument = global i32 0
@.str.5 = [26 x i8] c"long option, number = %d\0A\00"
@optarg = global i8* null
@.str.7 = [16 x i8] c"file name = %s\0A\00"
@.str.8 = [27 x i8] c"short option, number = %d\0A\00"
@stderr = global i32 0
@.str.10 = [24 x i8] c"Missing argument (-%c)\0A\00"
@optopt = global i32 0
@.str.11 = [27 x i8] c"Unrecognized option (-%c)\0A\00"
@.str.12 = [29 x i8] c"Unexpected case in switch()\0A\00"
@.str.13 = [19 x i8] c"option_index = %d\0A\00"
@str = [18 x i8] c"optional argument\00"
@str.15 = [5 x i8] c"help\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca [5 x %struct.option]
%6 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%7 = bitcast i32* %4 to i8*
store i32 1, i32* %4
%8 = bitcast [5 x %struct.option]* %5 to i8*
%9 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 0
%10 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @str.15, i64 0, i64 0), i8** %10
%11 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 0, i32 1
%12 = load i32, i32* @no_argument
%13 = sext i32 %12 to i64
%14 = inttoptr i64 %13 to i32*
store i32* %14, i32** %11
%15 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 0, i32 2
store i8 0, i8* %15
%16 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 0, i32 3
store i32 104, i32* %16
%17 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, 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]* %5, i64 0, i64 1, i32 1
%19 = load i32, i32* @required_argument
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i32*
store i32* %21, i32** %18
%22 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 1, i32 2
store i8 0, i8* %22
%23 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 1, i32 3
store i32 102, i32* %23
%24 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 2, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %24
%25 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 2, i32 1
store i32* %14, i32** %25
%26 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 2, i32 2
%27 = ptrtoint i32* %4 to i64
%28 = trunc i64 %27 to i8
store i8 %28, i8* %26
%29 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 2, i32 3
store i32 9, i32* %29
%30 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 3, i32 0
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %30
%31 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 3, i32 1
%32 = load i32, i32* @optional_argument
%33 = sext i32 %32 to i64
%34 = inttoptr i64 %33 to i32*
store i32* %34, i32** %31
%35 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 3, i32 2
store i8 0, i8* %35
%36 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 3, i32 3
store i32 97, i32* %36
%37 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %5, i64 0, i64 4
%38 = bitcast %struct.option* %37 to i8*
br label %39
39: ; preds = %65, %2
%40 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), %struct.option* %9, i32* %3)
switch i32 %40, label %62 [
i32 -1, label %69
i32 0, label %41
i32 104, label %44
i32 102, label %46
i32 110, label %49
i32 97, label %52
i32 58, label %54
i32 63, label %58
]
41: ; preds = %39
%42 = load i32, i32* %4
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i32 %42)
br label %65
44: ; preds = %39
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.15, i64 0, i64 0))
br label %65
46: ; preds = %39
%47 = load i8*, i8** @optarg
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* %47)
br label %65
49: ; preds = %39
%50 = load i32, i32* %4
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i32 %50)
br label %65
52: ; preds = %39
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
br label %65
54: ; preds = %39
%55 = load i32, i32* @stderr
%56 = load i32, i32* @optopt
%57 = call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i32 %56)
br label %65
58: ; preds = %39
%59 = load i32, i32* @stderr
%60 = load i32, i32* @optopt
%61 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i32 %60)
br label %65
62: ; preds = %39
%63 = load i32, i32* @stderr
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0))
br label %65
65: ; preds = %62, %58, %54, %52, %49, %46, %44, %41
%66 = load i32, i32* %3
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), i32 %66)
%68 = call i32 @putchar(i32 10)
br label %39
69: ; preds = %39
ret i32 0
}