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

/* Variables and functions */
int EOF;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int getopt_long(int, char **, char *, struct option *, int *);
char *optarg;
int optind;
int /*<<< orphan*/ printf(char *, ...);
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", 1, 0, 0},     {"append", 0, 0, 0}, {"delete", 1, 0, 0},
        {"verbose", 0, 0, 0}, {"create", 0, 0, 0}, {"file", 1, 0, 0},
        {0, 0, 0, 0}};
    c = getopt_long(argc, argv, "abc:d:0123456789", long_options,
                    &option_index);
    if (c == EOF)
      break;
    switch (c) {
    case 0:
      printf("option %s", long_options[option_index].name);
      if (optarg)
        printf(" with arg %s", optarg);
      printf("\n");
      break;
    case '0':
    case '1':
    case '2':
    case '3':
    case '4':
    case '5':
    case '6':
    case '7':
    case '8':
    case '9':
      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(0);
}


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    0x2e84(%rip),%rax
cmpl   $0x0,(%rax)
je     116e <main+0x3e>
mov    0x2e74(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
jmp    117b <main+0x4b>
mov    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    117b <main+0x4b>
mov    -0x24(%rbp),%eax
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0x1024(%rip),%rdx
lea    0x2ea3(%rip),%rcx
lea    -0x20(%rbp),%r8
call   1030 <getopt_long@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    0x2e2d(%rip),%rcx
cmp    (%rcx),%eax
jne    11c0 <main+0x90>
jmp    1300 <main+0x1d0>
mov    -0x14(%rbp),%eax
mov    %rax,-0x30(%rbp)
sub    $0x64,%rax
ja     12ea <main+0x1ba>
mov    -0x30(%rbp),%rax
lea    0xe24(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movslq -0x20(%rbp),%rcx
lea    0x2e50(%rip),%rax
shl    $0x5,%rcx
add    %rcx,%rax
mov    0x10(%rax),%rsi
lea    0xfc9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2de8(%rip),%rax
cmpq   $0x0,(%rax)
je     1232 <main+0x102>
mov    0x2dd7(%rip),%rax
mov    (%rax),%rsi
lea    0xfaa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x100e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12fb <main+0x1cb>
cmpl   $0x0,-0x18(%rbp)
je     1269 <main+0x139>
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
je     1269 <main+0x139>
lea    0xf80(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%esi
lea    0xf97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12fb <main+0x1cb>
lea    0xf8f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12fb <main+0x1cb>
lea    0xf86(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12fb <main+0x1cb>
mov    0x2d46(%rip),%rax
mov    (%rax),%rsi
lea    0xf73(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12fb <main+0x1cb>
mov    0x2d29(%rip),%rax
mov    (%rax),%rsi
lea    0xf70(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12fb <main+0x1cb>
jmp    12fb <main+0x1cb>
mov    -0x14(%rbp),%esi
lea    0xf6f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    114d <main+0x1d>
mov    0x2cd1(%rip),%rax
mov    (%rax),%eax
cmp    -0x8(%rbp),%eax
jge    1375 <main+0x245>
lea    0xf74(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2cb1(%rip),%rax
mov    (%rax),%eax
cmp    -0x8(%rbp),%eax
jge    1367 <main+0x237>
mov    -0x10(%rbp),%rax
mov    0x2c9b(%rip),%rcx
mov    (%rcx),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    0x2c8d(%rip),%rdx
mov    %esi,(%rdx)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xf4d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1320 <main+0x1f0>
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %edi,%ebp
mov    0x2e71(%rip),%rax
mov    (%rax),%r13d
movl   $0x0,0x4(%rsp)
lea    0x1041(%rip),%rdx
lea    0x2ed0(%rip),%rcx
lea    0x4(%rsp),%r8
call   1050 <getopt_long@plt>
mov    %eax,%r15d
mov    0x2e4c(%rip),%rax
cmp    (%rax),%r15d
jne    11ec <main+0x9c>
mov    0x2e38(%rip),%rbx
cmp    %ebp,(%rbx)
jge    11e5 <main+0x95>
lea    0x10a0(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%rbx),%eax
cmp    %ebp,%eax
jge    11db <main+0x8b>
lea    0x10a7(%rip),%r15
nop
lea    0x1(%rax),%ecx
mov    %ecx,(%rbx)
cltq
mov    (%r14,%rax,8),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%rbx),%eax
cmp    %ebp,%eax
jl     11c0 <main+0x70>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1070 <exit@plt>
test   %r13d,%r13d
mov    $0x1,%eax
cmove  %eax,%r13d
lea    0xe01(%rip),%rbx
xor    %r12d,%r12d
jmp    1272 <main+0x122>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xfcb(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13d,%r12d
mov    0x2dad(%rip),%rax
mov    (%rax),%r13d
test   %r13d,%r13d
mov    $0x1,%eax
cmove  %eax,%r13d
movl   $0x0,0x4(%rsp)
mov    %ebp,%edi
mov    %r14,%rsi
lea    0xf6c(%rip),%rdx
lea    0x2dfb(%rip),%rcx
lea    0x4(%rsp),%r8
call   1050 <getopt_long@plt>
mov    %eax,%r15d
mov    0x2d77(%rip),%rax
cmp    (%rax),%r15d
je     1199 <main+0x49>
cmp    $0x64,%r15d
ja     12ee <main+0x19e>
mov    %r15d,%eax
movslq (%rbx,%rax,4),%rax
add    %rbx,%rax
jmp    *%rax
test   %r12d,%r12d
je     1210 <main+0xc0>
cmp    %r13d,%r12d
je     1210 <main+0xc0>
lea    0xfe7(%rip),%rdi
call   1040 <puts@plt>
jmp    1210 <main+0xc0>
movslq 0x4(%rsp),%rax
shl    $0x5,%rax
lea    0x2da1(%rip),%rcx
mov    0x10(%rax,%rcx,1),%rsi
lea    0xf10(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2d2f(%rip),%rax
mov    (%rax),%rsi
test   %rsi,%rsi
je     12df <main+0x18f>
lea    0xefd(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1224 <main+0xd4>
lea    0xf2c(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1224 <main+0xd4>
lea    0xf68(%rip),%rdi
call   1040 <puts@plt>
jmp    1224 <main+0xd4>
lea    0xf4e(%rip),%rdi
call   1040 <puts@plt>
jmp    1224 <main+0xd4>
mov    0x2ccb(%rip),%rax
mov    (%rax),%rsi
lea    0xeb6(%rip),%rdi
jmp    134a <main+0x1fa>
mov    0x2cb8(%rip),%rax
mov    (%rax),%rsi
lea    0xebd(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1224 <main+0xd4>

LLVM IR (-O0):
%struct.option = type { i8*, i32, 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), i32 1, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i32 0, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0), i32 1, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0), i32 0, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0), i32 0, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i32 1, 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 = [17 x i8] c"abc:d:0123456789\00"
@EOF = global i32 0
@.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"
@.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, %68
%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 ([17 x i8], [17 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 = load i32, i32* @EOF
%23 = icmp eq i32 %21, %22
br i1 %23, label %24, label %25
24: ; preds = %16
br label %69
25: ; preds = %16
%26 = load i32, i32* %6
switch i32 %26, label %65 [
i32 0, label %27
i32 48, label %41
i32 49, label %41
i32 50, label %41
i32 51, label %41
i32 52, label %41
i32 53, label %41
i32 54, label %41
i32 55, label %41
i32 56, label %41
i32 57, label %41
i32 97, label %54
i32 98, label %56
i32 99, label %58
i32 100, label %61
i32 63, label %64
]
27: ; preds = %25
%28 = load i32, i32* %9
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* @main.long_options, i64 0, i64 %29
%31 = getelementptr inbounds %struct.option, %struct.option* %30, i32 0, i32 2
%32 = load i8*, i8** %31
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* %32)
%34 = load i8*, i8** @optarg
%35 = icmp ne i8* %34, null
br i1 %35, label %36, label %39
36: ; preds = %27
%37 = load i8*, i8** @optarg
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i8* %37)
br label %39
39: ; preds = %36, %27
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %68
41: ; preds = %25, %25, %25, %25, %25, %25, %25, %25, %25, %25
%42 = load i32, i32* %7
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %50
44: ; preds = %41
%45 = load i32, i32* %7
%46 = load i32, i32* %8
%47 = icmp ne i32 %45, %46
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0))
br label %50
50: ; preds = %48, %44, %41
%51 = load i32, i32* %8
store i32 %51, i32* %7
%52 = load i32, i32* %6
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 %52)
br label %68
54: ; preds = %25
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
br label %68
56: ; preds = %25
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0))
br label %68
58: ; preds = %25
%59 = load i8*, i8** @optarg
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0), i8* %59)
br label %68
61: ; preds = %25
%62 = load i8*, i8** @optarg
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0), i8* %62)
br label %68
64: ; preds = %25
br label %68
65: ; preds = %25
%66 = load i32, i32* %6
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.16, i64 0, i64 0), i32 %66)
br label %68
68: ; preds = %65, %64, %61, %58, %56, %54, %50, %39
br label %10
69: ; preds = %24
%70 = load i32, i32* @optind
%71 = load i32, i32* %4
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %89
73: ; preds = %69
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0))
br label %75
75: ; preds = %79, %73
%76 = load i32, i32* @optind
%77 = load i32, i32* %4
%78 = icmp slt i32 %76, %77
br i1 %78, label %79, label %87
79: ; preds = %75
%80 = load i8**, i8*** %5
%81 = load i32, i32* @optind
%82 = add nsw i32 %81, 1
store i32 %82, i32* @optind
%83 = sext i32 %81 to i64
%84 = getelementptr inbounds i8*, i8** %80, i64 %83
%85 = load i8*, i8** %84
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* %85)
br label %75
87: ; preds = %75
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %89
89: ; preds = %87, %69
%90 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
%struct.option = type { i8*, i32, 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), i32 1, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i32 0, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0), i32 1, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0), i32 0, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0), i32 0, i8* null, i32 0, i32 0 }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i32 1, 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 = [17 x i8] c"abc:d:0123456789\00"
@EOF = global i32 0
@.str.7 = [10 x i8] c"option %s\00"
@optarg = global i8* null
@.str.8 = [13 x i8] c" with arg %s\00"
@.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*
%5 = load i32, i32* @optind
store i32 0, i32* %3
%6 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([17 x i8], [17 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)
%7 = load i32, i32* @EOF
%8 = icmp eq i32 %6, %7
br i1 %8, label %56, label %9
9: ; preds = %2
%10 = icmp eq i32 %5, 0
%11 = select i1 %10, i32 1, i32 %5
br label %12
12: ; preds = %9, %48
%13 = phi i32 [ %53, %48 ], [ %6, %9 ]
%14 = phi i32 [ %52, %48 ], [ %11, %9 ]
%15 = phi i32 [ %49, %48 ], [ 0, %9 ]
switch i32 %13, label %46 [
i32 0, label %16
i32 48, label %28
i32 49, label %28
i32 50, label %28
i32 51, label %28
i32 52, label %28
i32 53, label %28
i32 54, label %28
i32 55, label %28
i32 56, label %28
i32 57, label %28
i32 97, label %36
i32 98, label %38
i32 99, label %40
i32 100, label %43
i32 63, label %48
]
16: ; preds = %12
%17 = load i32, i32* %3
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* @main.long_options, i64 0, i64 %18, i32 2
%20 = load i8*, i8** %19
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* %20)
%22 = load i8*, i8** @optarg
%23 = icmp eq i8* %22, null
br i1 %23, label %26, label %24
24: ; preds = %16
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i8* %22)
br label %26
26: ; preds = %24, %16
%27 = call i32 @putchar(i32 10)
br label %48
28: ; preds = %12, %12, %12, %12, %12, %12, %12, %12, %12, %12
%29 = icmp eq i32 %15, 0
%30 = icmp eq i32 %15, %14
%31 = select i1 %29, i1 true, i1 %30
br i1 %31, label %34, label %32
32: ; preds = %28
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.20, i64 0, i64 0))
br label %34
34: ; preds = %32, %28
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 %13)
br label %48
36: ; preds = %12
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.19, i64 0, i64 0))
br label %48
38: ; preds = %12
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
br label %48
40: ; preds = %12
%41 = load i8*, i8** @optarg
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0), i8* %41)
br label %48
43: ; preds = %12
%44 = load i8*, i8** @optarg
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0), i8* %44)
br label %48
46: ; preds = %12
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.16, i64 0, i64 0), i32 %13)
br label %48
48: ; preds = %26, %34, %36, %38, %40, %43, %12, %46
%49 = phi i32 [ %15, %46 ], [ %15, %12 ], [ %15, %43 ], [ %15, %40 ], [ %15, %38 ], [ %15, %36 ], [ %14, %34 ], [ %15, %26 ]
%50 = load i32, i32* @optind
%51 = icmp eq i32 %50, 0
%52 = select i1 %51, i32 1, i32 %50
store i32 0, i32* %3
%53 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([17 x i8], [17 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)
%54 = load i32, i32* @EOF
%55 = icmp eq i32 %53, %54
br i1 %55, label %56, label %12
56: ; preds = %48, %2
%57 = load i32, i32* @optind
%58 = icmp slt i32 %57, %0
br i1 %58, label %59, label %74
59: ; preds = %56
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0))
%61 = load i32, i32* @optind
%62 = icmp slt i32 %61, %0
br i1 %62, label %63, label %72
63: ; preds = %59, %63
%64 = phi i32 [ %70, %63 ], [ %61, %59 ]
%65 = add nsw i32 %64, 1
store i32 %65, i32* @optind
%66 = sext i32 %64 to i64
%67 = getelementptr inbounds i8*, i8** %1, i64 %66
%68 = load i8*, i8** %67
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* %68)
%70 = load i32, i32* @optind
%71 = icmp slt i32 %70, %0
br i1 %71, label %63, label %72
72: ; preds = %63, %59
%73 = call i32 @putchar(i32 10)
br label %74
74: ; preds = %72, %56
%75 = call i32 @exit(i32 0)
unreachable
}