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

/* Variables and functions */
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int getopt_long(int, char **, char *, struct option *, int *);
#define no_argument 129
char *optarg;
int optind;
int /*<<< orphan*/ printf(char *, ...);
#define required_argument 128
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ usage(char *, int /*<<< orphan*/);
int main(int argc, char **argv) {
  int c;
  int digit_optind = 0;
  while (1) {
    int this_option_optind = optind ? optind : 1;
    int option_index = 0;
    static struct option long_options[] = {
        {"add", required_argument, 0, 0},
        {"append", no_argument, 0, 0},
        {"delete", required_argument, 0, 0},
        {"verbose", no_argument, 0, 0},
        {"create", required_argument, 0, 'c'},
        {"file", required_argument, 0, 0},
        {0, 0, 0, 0}};
    c = getopt_long(argc, argv, "habc:d:012", long_options, &option_index);
    if (c == -1)
      break;
    switch (c) {
    case 0:
      printf("option %s", long_options[option_index].name);
      if (optarg)
        printf(" with arg %s", optarg);
      printf("\n");
      break;
    case 'h':
      usage(argv[0], stdout);
      exit(EXIT_SUCCESS);
      break;
    case '0':
    case '1':
    case '2':
      if (digit_optind != 0 && digit_optind != this_option_optind)
        printf("digits occur in two different argv-elements.\n");
      digit_optind = this_option_optind;
      printf("option %c\n", c);
      break;
    case 'a':
      printf("option a\n");
      break;
    case 'b':
      printf("option b\n");
      break;
    case 'c':
      printf("option c with value '%s'\n", optarg);
      break;
    case 'd':
      printf("option d with value '%s'\n", optarg);
      break;
    case '?':
      break;
    default:
      printf("?? getopt returned character code 0%o ??\n", c);
    }
  }
  if (optind < argc) {
    printf("non-option ARGV-elements: ");
    while (optind < argc)
      printf("%s ", argv[optind++]);
    printf("\n");
  }
  exit(EXIT_SUCCESS);
}


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)
movl   $0x0,-0x18(%rbp)
mov    0x2e7c(%rip),%rax
cmpl   $0x0,(%rax)
je     117e <main+0x3e>
mov    0x2e6c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
jmp    118b <main+0x4b>
mov    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    118b <main+0x4b>
mov    -0x24(%rbp),%eax
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe80(%rip),%rdx
lea    0x2ea3(%rip),%rcx
lea    -0x20(%rbp),%r8
call   1030 <getopt_long@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
jne    11c8 <main+0x88>
jmp    1393 <main+0x253>
mov    -0x14(%rbp),%eax
mov    %eax,-0x28(%rbp)
test   %eax,%eax
je     1255 <main+0x115>
jmp    11db <main+0x9b>
mov    -0x28(%rbp),%eax
add    $0xffffffd0,%eax
sub    $0x3,%eax
jb     12d8 <main+0x198>
jmp    11ef <main+0xaf>
mov    -0x28(%rbp),%eax
sub    $0x3f,%eax
je     1378 <main+0x238>
jmp    1200 <main+0xc0>
mov    -0x28(%rbp),%eax
sub    $0x61,%eax
je     1318 <main+0x1d8>
jmp    1211 <main+0xd1>
mov    -0x28(%rbp),%eax
sub    $0x62,%eax
je     132b <main+0x1eb>
jmp    1222 <main+0xe2>
mov    -0x28(%rbp),%eax
sub    $0x63,%eax
je     133e <main+0x1fe>
jmp    1233 <main+0xf3>
mov    -0x28(%rbp),%eax
sub    $0x64,%eax
je     135b <main+0x21b>
jmp    1244 <main+0x104>
mov    -0x28(%rbp),%eax
sub    $0x68,%eax
je     12b5 <main+0x175>
jmp    137d <main+0x23d>
movslq -0x20(%rbp),%rcx
lea    0x2df0(%rip),%rax
shl    $0x5,%rcx
add    %rcx,%rax
mov    0x10(%rax),%rsi
lea    0xdbf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2d78(%rip),%rax
cmpq   $0x0,(%rax)
je     12a2 <main+0x162>
mov    0x2d67(%rip),%rax
mov    (%rax),%rsi
lea    0xda0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe04(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    138e <main+0x24e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    0x2d0d(%rip),%rax
mov    (%rax),%esi
call   1050 <usage@plt>
mov    0x2cf7(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>
cmpl   $0x0,-0x18(%rbp)
je     12fc <main+0x1bc>
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
je     12fc <main+0x1bc>
lea    0xd53(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%esi
lea    0xd6a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    138e <main+0x24e>
lea    0xd62(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    138e <main+0x24e>
lea    0xd59(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    138e <main+0x24e>
mov    0x2cb3(%rip),%rax
mov    (%rax),%rsi
lea    0xd46(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    138e <main+0x24e>
mov    0x2c96(%rip),%rax
mov    (%rax),%rsi
lea    0xd43(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    138e <main+0x24e>
jmp    138e <main+0x24e>
mov    -0x14(%rbp),%esi
lea    0xd42(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    115d <main+0x1d>
mov    0x2c46(%rip),%rax
mov    (%rax),%eax
cmp    -0x8(%rbp),%eax
jge    1408 <main+0x2c8>
lea    0xd47(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2c26(%rip),%rax
mov    (%rax),%eax
cmp    -0x8(%rbp),%eax
jge    13fa <main+0x2ba>
mov    -0x10(%rbp),%rax
mov    0x2c10(%rip),%rcx
mov    (%rcx),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    0x2c02(%rip),%rdx
mov    %esi,(%rdx)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xd20(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13b3 <main+0x273>
lea    0xcac(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2bb9(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    0x2e6e(%rip),%rax
xor    %r15d,%r15d
jmp    119d <main+0x3d>
nopw   0x0(%rax,%rax,1)
lea    0x1069(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%r15d
mov    %rbx,%rax
mov    %rbp,%rsi
mov    %r14d,%edi
mov    %rax,%rbx
mov    (%rax),%r12d
test   %r12d,%r12d
mov    $0x1,%eax
cmove  %eax,%r12d
movl   $0x0,0x4(%rsp)
mov    %edi,%r14d
mov    %rsi,%rbp
lea    0x100a(%rip),%rdx
lea    0x2e95(%rip),%rcx
lea    0x4(%rsp),%r8
call   1050 <getopt_long@plt>
mov    %eax,%r13d
add    $0x1,%eax
cmp    $0x69,%eax
ja     125a <main+0xfa>
lea    0xe19(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
test   %r15d,%r15d
je     1180 <main+0x20>
cmp    %r12d,%r15d
je     1180 <main+0x20>
lea    0x1089(%rip),%rdi
call   1040 <puts@plt>
jmp    1180 <main+0x20>
movslq 0x4(%rsp),%rax
shl    $0x5,%rax
lea    0x2e45(%rip),%rcx
mov    0x10(%rax,%rcx,1),%rsi
lea    0xfb2(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2dc3(%rip),%rax
mov    (%rax),%rsi
test   %rsi,%rsi
je     124b <main+0xeb>
lea    0xf9f(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1194 <main+0x34>
lea    0xfce(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1194 <main+0x34>
lea    0x100a(%rip),%rdi
call   1040 <puts@plt>
jmp    1194 <main+0x34>
lea    0xff0(%rip),%rdi
call   1040 <puts@plt>
jmp    1194 <main+0x34>
mov    0x2d5f(%rip),%rax
mov    (%rax),%rsi
lea    0xf58(%rip),%rdi
jmp    12b6 <main+0x156>
mov    0x2d4c(%rip),%rax
mov    (%rax),%rsi
lea    0xf5f(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1194 <main+0x34>
cmp    %r14d,(%rbx)
jge    132b <main+0x1cb>
mov    %r14d,%r15d
lea    0xf88(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%rbx),%eax
cmp    %r14d,%eax
jge    130d <main+0x1ad>
lea    0xf8e(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
lea    0x1(%rax),%ecx
mov    %ecx,(%rbx)
cltq
mov    0x0(%rbp,%rax,8),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%rbx),%eax
cmp    %r15d,%eax
jl     12f0 <main+0x190>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    132b <main+0x1cb>
mov    0x0(%rbp),%rdi
mov    0x2cac(%rip),%rax
mov    (%rax),%esi
call   1070 <usage@plt>
mov    0x2c96(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>

LLVM IR (-O0):
%struct.option = type { i8*, i8, i8*, i32, i32 }
@optind = global i32 0
@main.long_options = internal global [7 x %struct.option] [%struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8 -128, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i8 -127, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0), i8 -128, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0), i8 -127, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0), i8 -128, i8* null, i32 99, i32 0 }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8 -128, i8* null, i32 0, i32 0 }, %struct.option zeroinitializer]
@.str = [4 x i8] c"add\00"
@.str.1 = [7 x i8] c"append\00"
@.str.2 = [7 x i8] c"delete\00"
@.str.3 = [8 x i8] c"verbose\00"
@.str.4 = [7 x i8] c"create\00"
@.str.5 = [5 x i8] c"file\00"
@.str.6 = [11 x i8] c"habc:d:012\00"
@.str.7 = [10 x i8] c"option %s\00"
@optarg = global i8* null
@.str.8 = [13 x i8] c" with arg %s\00"
@.str.9 = [2 x i8] c"\0A\00"
@stdout = global i32 0
@EXIT_SUCCESS = global i32 0
@.str.10 = [46 x i8] c"digits occur in two different argv-elements.\0A\00"
@.str.11 = [11 x i8] c"option %c\0A\00"
@.str.12 = [10 x i8] c"option a\0A\00"
@.str.13 = [10 x i8] c"option b\0A\00"
@.str.14 = [26 x i8] c"option c with value '%s'\0A\00"
@.str.15 = [26 x i8] c"option d with value '%s'\0A\00"
@.str.16 = [42 x i8] c"?? getopt returned character code 0%o ??\0A\00"
@.str.17 = [27 x i8] c"non-option ARGV-elements: \00"
@.str.18 = [4 x i8] c"%s \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
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
br label %10
10: ; preds = %2, %75
%11 = load i32, i32* @optind
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = load i32, i32* @optind
br label %16
15: ; preds = %10
br label %16
16: ; preds = %15, %13
%17 = phi i32 [ %14, %13 ], [ 1, %15 ]
store i32 %17, i32* %8
store i32 0, i32* %9
%18 = load i32, i32* %4
%19 = load i8**, i8*** %5
%20 = call i32 @getopt_long(i32 %18, i8** %19, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), %struct.option* getelementptr inbounds ([7 x %struct.option], [7 x %struct.option]* @main.long_options, i64 0, i64 0), i32* %9)
store i32 %20, i32* %6
%21 = load i32, i32* %6
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %24
23: ; preds = %16
br label %76
24: ; preds = %16
%25 = load i32, i32* %6
switch i32 %25, label %72 [
i32 0, label %26
i32 104, label %40
i32 48, label %48
i32 49, label %48
i32 50, label %48
i32 97, label %61
i32 98, label %63
i32 99, label %65
i32 100, label %68
i32 63, label %71
]
26: ; preds = %24
%27 = load i32, i32* %9
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* @main.long_options, i64 0, i64 %28
%30 = getelementptr inbounds %struct.option, %struct.option* %29, i32 0, i32 2
%31 = load i8*, i8** %30
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* %31)
%33 = load i8*, i8** @optarg
%34 = icmp ne i8* %33, null
br i1 %34, label %35, label %38
35: ; preds = %26
%36 = load i8*, i8** @optarg
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i8* %36)
br label %38
38: ; preds = %35, %26
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %75
40: ; preds = %24
%41 = load i8**, i8*** %5
%42 = getelementptr inbounds i8*, i8** %41, i64 0
%43 = load i8*, i8** %42
%44 = load i32, i32* @stdout
%45 = call i32 @usage(i8* %43, i32 %44)
%46 = load i32, i32* @EXIT_SUCCESS
%47 = call i32 @exit(i32 %46)
unreachable
48: ; preds = %24, %24, %24
%49 = load i32, i32* %7
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %57
51: ; preds = %48
%52 = load i32, i32* %7
%53 = load i32, i32* %8
%54 = icmp ne i32 %52, %53
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0))
br label %57
57: ; preds = %55, %51, %48
%58 = load i32, i32* %8
store i32 %58, i32* %7
%59 = load i32, i32* %6
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 %59)
br label %75
61: ; preds = %24
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
br label %75
63: ; preds = %24
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0))
br label %75
65: ; preds = %24
%66 = load i8*, i8** @optarg
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0), i8* %66)
br label %75
68: ; preds = %24
%69 = load i8*, i8** @optarg
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0), i8* %69)
br label %75
71: ; preds = %24
br label %75
72: ; preds = %24
%73 = load i32, i32* %6
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.16, i64 0, i64 0), i32 %73)
br label %75
75: ; preds = %72, %71, %68, %65, %63, %61, %57, %38
br label %10
76: ; preds = %23
%77 = load i32, i32* @optind
%78 = load i32, i32* %4
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %96
80: ; preds = %76
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0))
br label %82
82: ; preds = %86, %80
%83 = load i32, i32* @optind
%84 = load i32, i32* %4
%85 = icmp slt i32 %83, %84
br i1 %85, label %86, label %94
86: ; preds = %82
%87 = load i8**, i8*** %5
%88 = load i32, i32* @optind
%89 = add nsw i32 %88, 1
store i32 %89, i32* @optind
%90 = sext i32 %88 to i64
%91 = getelementptr inbounds i8*, i8** %87, i64 %90
%92 = load i8*, i8** %91
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* %92)
br label %82
94: ; preds = %82
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %96
96: ; preds = %94, %76
%97 = load i32, i32* @EXIT_SUCCESS
%98 = call i32 @exit(i32 %97)
unreachable
}

LLVM IR (-O2):
%struct.option = type { i8*, i8, i8*, i32, i32 }
@optind = global i32 0
@main.long_options = internal global [7 x %struct.option] [%struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8 -128, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i8 -127, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0), i8 -128, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0), i8 -127, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0), i8 -128, i8* null, i32 99, i32 0 }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8 -128, i8* null, i32 0, i32 0 }, %struct.option zeroinitializer]
@.str = [4 x i8] c"add\00"
@.str.1 = [7 x i8] c"append\00"
@.str.2 = [7 x i8] c"delete\00"
@.str.3 = [8 x i8] c"verbose\00"
@.str.4 = [7 x i8] c"create\00"
@.str.5 = [5 x i8] c"file\00"
@.str.6 = [11 x i8] c"habc:d:012\00"
@.str.7 = [10 x i8] c"option %s\00"
@optarg = global i8* null
@.str.8 = [13 x i8] c" with arg %s\00"
@stdout = global i32 0
@EXIT_SUCCESS = global i32 0
@.str.11 = [11 x i8] c"option %c\0A\00"
@.str.14 = [26 x i8] c"option c with value '%s'\0A\00"
@.str.15 = [26 x i8] c"option d with value '%s'\0A\00"
@.str.16 = [42 x i8] c"?? getopt returned character code 0%o ??\0A\00"
@.str.17 = [27 x i8] c"non-option ARGV-elements: \00"
@.str.18 = [4 x i8] c"%s \00"
@str = [9 x i8] c"option b\00"
@str.19 = [9 x i8] c"option a\00"
@str.20 = [45 x i8] c"digits occur in two different argv-elements.\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
br label %5
5: ; preds = %49, %2
%6 = phi i32 [ 0, %2 ], [ %50, %49 ]
%7 = load i32, i32* @optind
%8 = icmp eq i32 %7, 0
%9 = select i1 %8, i32 1, i32 %7
store i32 0, i32* %3
%10 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), %struct.option* getelementptr inbounds ([7 x %struct.option], [7 x %struct.option]* @main.long_options, i64 0, i64 0), i32* %3)
switch i32 %10, label %47 [
i32 -1, label %51
i32 0, label %11
i32 104, label %23
i32 48, label %29
i32 49, label %29
i32 50, label %29
i32 97, label %37
i32 98, label %39
i32 99, label %41
i32 100, label %44
i32 63, label %49
]
11: ; preds = %5
%12 = load i32, i32* %3
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* @main.long_options, i64 0, i64 %13, i32 2
%15 = load i8*, i8** %14
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* %15)
%17 = load i8*, i8** @optarg
%18 = icmp eq i8* %17, null
br i1 %18, label %21, label %19
19: ; preds = %11
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i8* %17)
br label %21
21: ; preds = %19, %11
%22 = call i32 @putchar(i32 10)
br label %49
23: ; preds = %5
%24 = load i8*, i8** %1
%25 = load i32, i32* @stdout
%26 = call i32 @usage(i8* %24, i32 %25)
%27 = load i32, i32* @EXIT_SUCCESS
%28 = call i32 @exit(i32 %27)
unreachable
29: ; preds = %5, %5, %5
%30 = icmp eq i32 %6, 0
%31 = icmp eq i32 %6, %9
%32 = select i1 %30, i1 true, i1 %31
br i1 %32, label %35, label %33
33: ; preds = %29
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.20, i64 0, i64 0))
br label %35
35: ; preds = %33, %29
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 %10)
br label %49
37: ; preds = %5
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.19, i64 0, i64 0))
br label %49
39: ; preds = %5
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
br label %49
41: ; preds = %5
%42 = load i8*, i8** @optarg
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0), i8* %42)
br label %49
44: ; preds = %5
%45 = load i8*, i8** @optarg
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0), i8* %45)
br label %49
47: ; preds = %5
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.16, i64 0, i64 0), i32 %10)
br label %49
49: ; preds = %21, %35, %37, %39, %41, %44, %47, %5
%50 = phi i32 [ %6, %47 ], [ %6, %44 ], [ %6, %41 ], [ %6, %39 ], [ %6, %37 ], [ %9, %35 ], [ %6, %21 ], [ %6, %5 ]
br label %5
51: ; preds = %5
%52 = load i32, i32* @optind
%53 = icmp slt i32 %52, %0
br i1 %53, label %54, label %69
54: ; preds = %51
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0))
%56 = load i32, i32* @optind
%57 = icmp slt i32 %56, %0
br i1 %57, label %58, label %67
58: ; preds = %54, %58
%59 = phi i32 [ %65, %58 ], [ %56, %54 ]
%60 = add nsw i32 %59, 1
store i32 %60, i32* @optind
%61 = sext i32 %59 to i64
%62 = getelementptr inbounds i8*, i8** %1, i64 %61
%63 = load i8*, i8** %62
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* %63)
%65 = load i32, i32* @optind
%66 = icmp slt i32 %65, %0
br i1 %66, label %58, label %67
67: ; preds = %58, %54
%68 = call i32 @putchar(i32 10)
br label %69
69: ; preds = %67, %51
%70 = load i32, i32* @EXIT_SUCCESS
%71 = call i32 @exit(i32 %70)
unreachable
}