#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*/ fprintf(int /*<<< orphan*/, char *);
char getopt_long(int, char **, char *, struct option *, int /*<<< orphan*/ *);
int /*<<< orphan*/ no_argument;
scalar_t__ optind;
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ usage(char *, int /*<<< orphan*/);
void processOpts(int *argc, char *argv[], int *add, int *sub, int *mult,
                 int *div, int *numOpts) {
  char *progName = argv[0];
  if (*argc == 1) {
    fprintf(stderr, "Missing values to math.");
    usage(progName, stderr);
  }
  struct option longopts[] = {{"add", no_argument, NULL, 'a'},
                              {"subtract", no_argument, NULL, 's'},
                              {"multiply", no_argument, NULL, 'm'},
                              {"divide", no_argument, NULL, 'd'},
                              {"usage", no_argument, NULL, 'u'},
                              {NULL, 0, NULL, 0}};
  char op;
  while ((op = getopt_long(*argc, argv, "asmd", longopts, NULL)) != -1) {
    switch (op) {
    case 'a':
      *add = 1;
      break;
    case 's':
      *sub = 1;
      break;
    case 'm':
      *mult = 1;
      break;
    case 'd':
      *div = 1;
      break;
    case 'u':
      usage(progName, stdout);
      break;
    case '?':
      usage(progName, stderr);
      break;
    default:
      fprintf(stderr, "Fell in default.\n");
      break;
    }
  }
  *argc -= optind;
  *numOpts += optind;
}


x86 assembly (clang, -O0):
<processOpts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rax
cmpl   $0x1,(%rax)
jne    11a6 <processOpts+0x66>
mov    0x2e52(%rip),%rax
mov    (%rax),%edi
lea    0xf4d(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x38(%rbp),%rdi
mov    0x2e39(%rip),%rax
mov    (%rax),%esi
call   1060 <usage@plt>
lea    -0x100(%rbp),%rdi
lea    0xf40(%rip),%rax
mov    %rax,-0x100(%rbp)
mov    0x2e0e(%rip),%rax
mov    (%rax),%eax
mov    %al,-0xf8(%rbp)
movq   $0x0,-0xf0(%rbp)
movl   $0x61,-0xe8(%rbp)
add    $0x20,%rdi
lea    0xf0e(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    0x2dd8(%rip),%rax
mov    (%rax),%eax
mov    %al,-0xd8(%rbp)
movq   $0x0,-0xd0(%rbp)
movl   $0x73,-0xc8(%rbp)
add    $0x20,%rdi
lea    0xee1(%rip),%rax
mov    %rax,-0xc0(%rbp)
mov    0x2da2(%rip),%rax
mov    (%rax),%eax
mov    %al,-0xb8(%rbp)
movq   $0x0,-0xb0(%rbp)
movl   $0x6d,-0xa8(%rbp)
add    $0x20,%rdi
lea    0xeb4(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0x2d6c(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x98(%rbp)
movq   $0x0,-0x90(%rbp)
movl   $0x64,-0x88(%rbp)
add    $0x20,%rdi
lea    0xe85(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0x2d39(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x78(%rbp)
movq   $0x0,-0x70(%rbp)
movl   $0x75,-0x68(%rbp)
add    $0x20,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1040 <memset@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rsi
lea    -0x100(%rbp),%rcx
lea    0xe44(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
call   1030 <getopt_long@plt>
mov    %al,-0x101(%rbp)
movsbl %al,%eax
cmp    $0xffffffff,%eax
je     13a6 <processOpts+0x266>
movsbl -0x101(%rbp),%eax
add    $0xffffffc1,%eax
mov    %eax,%ecx
mov    %rcx,-0x110(%rbp)
sub    $0x36,%eax
ja     138c <processOpts+0x24c>
mov    -0x110(%rbp),%rax
lea    0xce7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
jmp    13a1 <processOpts+0x261>
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
jmp    13a1 <processOpts+0x261>
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    13a1 <processOpts+0x261>
mov    -0x30(%rbp),%rax
movl   $0x1,(%rax)
jmp    13a1 <processOpts+0x261>
mov    -0x38(%rbp),%rdi
mov    0x2c5f(%rip),%rax
mov    (%rax),%esi
call   1060 <usage@plt>
jmp    13a1 <processOpts+0x261>
mov    -0x38(%rbp),%rdi
mov    0x2c58(%rip),%rax
mov    (%rax),%esi
call   1060 <usage@plt>
jmp    13a1 <processOpts+0x261>
mov    0x2c45(%rip),%rax
mov    (%rax),%edi
lea    0xd80(%rip),%rsi
call   1050 <fprintf@plt>
jmp    12bb <processOpts+0x17b>
mov    0x2c3b(%rip),%rax
mov    (%rax),%rdx
mov    -0x8(%rbp),%rax
movslq (%rax),%rcx
sub    %rdx,%rcx
mov    %ecx,(%rax)
mov    0x2c25(%rip),%rax
mov    (%rax),%rdx
mov    0x10(%rbp),%rax
movslq (%rax),%rcx
add    %rdx,%rcx
mov    %ecx,(%rax)
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<processOpts>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
mov    %r9,0x18(%rsp)
mov    %r8,0x10(%rsp)
mov    %rcx,0x8(%rsp)
mov    %rdx,(%rsp)
mov    %rsi,%rbp
mov    %rdi,%rbx
mov    (%rsi),%r14
mov    (%rdi),%edi
cmp    $0x1,%edi
jne    1187 <processOpts+0x57>
mov    0x2e6d(%rip),%r15
mov    (%r15),%edi
lea    0xf67(%rip),%rsi
call   1040 <fprintf@plt>
mov    (%r15),%esi
mov    %r14,%rdi
call   1050 <usage@plt>
mov    (%rbx),%edi
lea    0xf66(%rip),%rax
mov    %rax,0x20(%rsp)
mov    0x2e36(%rip),%rax
mov    (%rax),%al
mov    %al,0x28(%rsp)
movq   $0x0,0x30(%rsp)
movl   $0x61,0x38(%rsp)
lea    0xf40(%rip),%rcx
mov    %rcx,0x40(%rsp)
mov    %al,0x48(%rsp)
movq   $0x0,0x50(%rsp)
movl   $0x73,0x58(%rsp)
lea    0xf28(%rip),%rcx
mov    %rcx,0x60(%rsp)
mov    %al,0x68(%rsp)
movq   $0x0,0x70(%rsp)
movl   $0x6d,0x78(%rsp)
lea    0xf10(%rip),%rcx
mov    %rcx,0x80(%rsp)
mov    %al,0x88(%rsp)
movq   $0x0,0x90(%rsp)
movl   $0x64,0x98(%rsp)
lea    0xeea(%rip),%rcx
mov    %rcx,0xa0(%rsp)
mov    %al,0xa8(%rsp)
movq   $0x0,0xb0(%rsp)
movl   $0x75,0xb8(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
lea    0xeb0(%rip),%rdx
lea    0x20(%rsp),%rcx
mov    %rbp,%rsi
xor    %r8d,%r8d
call   1030 <getopt_long@plt>
cmp    $0xff,%al
je     1324 <processOpts+0x1f4>
lea    0xe91(%rip),%r15
lea    0x20(%rsp),%r12
lea    0xd6e(%rip),%r13
jmp    12bc <processOpts+0x18c>
mov    0x2d2d(%rip),%rax
mov    (%rax),%esi
mov    %r14,%rdi
call   1050 <usage@plt>
mov    (%rbx),%edi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
xor    %r8d,%r8d
call   1030 <getopt_long@plt>
cmp    $0xff,%al
je     1324 <processOpts+0x1f4>
movsbl %al,%eax
add    $0xffffffc1,%eax
cmp    $0x36,%eax
ja     12da <processOpts+0x1aa>
movslq 0x0(%r13,%rax,4),%rax
add    %r13,%rax
jmp    *%rax
mov    0x2d00(%rip),%rax
jmp    129b <processOpts+0x16b>
mov    0x2cf7(%rip),%rax
mov    (%rax),%edi
lea    0xe32(%rip),%rsi
call   1040 <fprintf@plt>
jmp    12a5 <processOpts+0x175>
mov    (%rsp),%rax
movl   $0x1,(%rax)
jmp    12a5 <processOpts+0x175>
mov    0x18(%rsp),%rax
movl   $0x1,(%rax)
jmp    12a5 <processOpts+0x175>
mov    0x10(%rsp),%rax
movl   $0x1,(%rax)
jmp    12a5 <processOpts+0x175>
mov    0x8(%rsp),%rax
movl   $0x1,(%rax)
jmp    12a5 <processOpts+0x175>
mov    0x2cbd(%rip),%rax
mov    (%rax),%eax
sub    %eax,(%rbx)
mov    0x120(%rsp),%rcx
add    %eax,(%rcx)
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.option = type { i8*, i8, i32*, i32 }
@stderr = global i32 0
@.str = [24 x i8] c"Missing values to math.\00"
@.str.1 = [4 x i8] c"add\00"
@no_argument = global i32 0
@.str.2 = [9 x i8] c"subtract\00"
@.str.3 = [9 x i8] c"multiply\00"
@.str.4 = [7 x i8] c"divide\00"
@.str.5 = [6 x i8] c"usage\00"
@.str.6 = [5 x i8] c"asmd\00"
@stdout = global i32 0
@.str.7 = [18 x i8] c"Fell in default.\0A\00"
@optind = global i64 0
define void @processOpts(i32* %0, i8** %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6) {
%8 = alloca i32*
%9 = alloca i8**
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i8*
%16 = alloca [6 x %struct.option]
%17 = alloca i8
store i32* %0, i32** %8
store i8** %1, i8*** %9
store i32* %2, i32** %10
store i32* %3, i32** %11
store i32* %4, i32** %12
store i32* %5, i32** %13
store i32* %6, i32** %14
%18 = load i8**, i8*** %9
%19 = getelementptr inbounds i8*, i8** %18, i64 0
%20 = load i8*, i8** %19
store i8* %20, i8** %15
%21 = load i32*, i32** %8
%22 = load i32, i32* %21
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %30
24: ; preds = %7
%25 = load i32, i32* @stderr
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%27 = load i8*, i8** %15
%28 = load i32, i32* @stderr
%29 = call i32 @usage(i8* %27, i32 %28)
br label %30
30: ; preds = %24, %7
%31 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %16, i64 0, i64 0
%32 = getelementptr inbounds %struct.option, %struct.option* %31, i32 0, i32 0
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %32
%33 = getelementptr inbounds %struct.option, %struct.option* %31, i32 0, i32 1
%34 = load i32, i32* @no_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* null, i32** %36
%37 = getelementptr inbounds %struct.option, %struct.option* %31, i32 0, i32 3
store i32 97, 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 ([9 x i8], [9 x i8]* @.str.2, 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* null, i32** %43
%44 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 3
store i32 115, i32* %44
%45 = getelementptr inbounds %struct.option, %struct.option* %38, i64 1
%46 = getelementptr inbounds %struct.option, %struct.option* %45, i32 0, i32 0
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8** %46
%47 = getelementptr inbounds %struct.option, %struct.option* %45, i32 0, i32 1
%48 = load i32, i32* @no_argument
%49 = trunc i32 %48 to i8
store i8 %49, i8* %47
%50 = getelementptr inbounds %struct.option, %struct.option* %45, i32 0, i32 2
store i32* null, i32** %50
%51 = getelementptr inbounds %struct.option, %struct.option* %45, i32 0, i32 3
store i32 109, i32* %51
%52 = getelementptr inbounds %struct.option, %struct.option* %45, i64 1
%53 = getelementptr inbounds %struct.option, %struct.option* %52, i32 0, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8** %53
%54 = getelementptr inbounds %struct.option, %struct.option* %52, i32 0, i32 1
%55 = load i32, i32* @no_argument
%56 = trunc i32 %55 to i8
store i8 %56, i8* %54
%57 = getelementptr inbounds %struct.option, %struct.option* %52, i32 0, i32 2
store i32* null, i32** %57
%58 = getelementptr inbounds %struct.option, %struct.option* %52, i32 0, i32 3
store i32 100, i32* %58
%59 = getelementptr inbounds %struct.option, %struct.option* %52, i64 1
%60 = getelementptr inbounds %struct.option, %struct.option* %59, i32 0, i32 0
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8** %60
%61 = getelementptr inbounds %struct.option, %struct.option* %59, i32 0, i32 1
%62 = load i32, i32* @no_argument
%63 = trunc i32 %62 to i8
store i8 %63, i8* %61
%64 = getelementptr inbounds %struct.option, %struct.option* %59, i32 0, i32 2
store i32* null, i32** %64
%65 = getelementptr inbounds %struct.option, %struct.option* %59, i32 0, i32 3
store i32 117, i32* %65
%66 = getelementptr inbounds %struct.option, %struct.option* %59, i64 1
%67 = bitcast %struct.option* %66 to i8*
br label %68
68: ; preds = %98, %30
%69 = load i32*, i32** %8
%70 = load i32, i32* %69
%71 = load i8**, i8*** %9
%72 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %16, i64 0, i64 0
%73 = call signext i8 @getopt_long(i32 %70, i8** %71, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), %struct.option* %72, i32* null)
store i8 %73, i8* %17
%74 = sext i8 %73 to i32
%75 = icmp ne i32 %74, -1
br i1 %75, label %76, label %99
76: ; preds = %68
%77 = load i8, i8* %17
%78 = sext i8 %77 to i32
switch i32 %78, label %95 [
i32 97, label %79
i32 115, label %81
i32 109, label %83
i32 100, label %85
i32 117, label %87
i32 63, label %91
]
79: ; preds = %76
%80 = load i32*, i32** %10
store i32 1, i32* %80
br label %98
81: ; preds = %76
%82 = load i32*, i32** %11
store i32 1, i32* %82
br label %98
83: ; preds = %76
%84 = load i32*, i32** %12
store i32 1, i32* %84
br label %98
85: ; preds = %76
%86 = load i32*, i32** %13
store i32 1, i32* %86
br label %98
87: ; preds = %76
%88 = load i8*, i8** %15
%89 = load i32, i32* @stdout
%90 = call i32 @usage(i8* %88, i32 %89)
br label %98
91: ; preds = %76
%92 = load i8*, i8** %15
%93 = load i32, i32* @stderr
%94 = call i32 @usage(i8* %92, i32 %93)
br label %98
95: ; preds = %76
%96 = load i32, i32* @stderr
%97 = call i32 @fprintf(i32 %96, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
br label %98
98: ; preds = %95, %91, %87, %85, %83, %81, %79
br label %68
99: ; preds = %68
%100 = load i64, i64* @optind
%101 = load i32*, i32** %8
%102 = load i32, i32* %101
%103 = sext i32 %102 to i64
%104 = sub nsw i64 %103, %100
%105 = trunc i64 %104 to i32
store i32 %105, i32* %101
%106 = load i64, i64* @optind
%107 = load i32*, i32** %14
%108 = load i32, i32* %107
%109 = sext i32 %108 to i64
%110 = add nsw i64 %109, %106
%111 = trunc i64 %110 to i32
store i32 %111, i32* %107
ret void
}

LLVM IR (-O2):
%struct.option = type { i8*, i8, i32*, i32 }
@stderr = global i32 0
@.str = [24 x i8] c"Missing values to math.\00"
@.str.1 = [4 x i8] c"add\00"
@no_argument = global i32 0
@.str.2 = [9 x i8] c"subtract\00"
@.str.3 = [9 x i8] c"multiply\00"
@.str.4 = [7 x i8] c"divide\00"
@.str.5 = [6 x i8] c"usage\00"
@.str.6 = [5 x i8] c"asmd\00"
@stdout = global i32 0
@.str.7 = [18 x i8] c"Fell in default.\0A\00"
@optind = global i64 0
define void @processOpts(i32* nocapture %0, i8** %1, i32* nocapture writeonly %2, i32* nocapture writeonly %3, i32* nocapture writeonly %4, i32* nocapture writeonly %5, i32* nocapture %6) {
%8 = alloca [6 x %struct.option]
%9 = load i8*, i8** %1
%10 = load i32, i32* %0
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %18
12: ; preds = %7
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @usage(i8* %9, i32 %15)
%17 = load i32, i32* %0
br label %18
18: ; preds = %12, %7
%19 = phi i32 [ %17, %12 ], [ %10, %7 ]
%20 = bitcast [6 x %struct.option]* %8 to i8*
%21 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 0
%22 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 0, i32 0
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %22
%23 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 0, i32 1
%24 = load i32, i32* @no_argument
%25 = trunc i32 %24 to i8
store i8 %25, i8* %23
%26 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 0, i32 2
store i32* null, i32** %26
%27 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 0, i32 3
store i32 97, i32* %27
%28 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 1, i32 0
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8** %28
%29 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 1, i32 1
store i8 %25, i8* %29
%30 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 1, i32 2
store i32* null, i32** %30
%31 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 1, i32 3
store i32 115, i32* %31
%32 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 2, i32 0
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8** %32
%33 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 2, i32 1
store i8 %25, i8* %33
%34 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 2, i32 2
store i32* null, i32** %34
%35 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 2, i32 3
store i32 109, i32* %35
%36 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 3, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8** %36
%37 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 3, i32 1
store i8 %25, i8* %37
%38 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 3, i32 2
store i32* null, i32** %38
%39 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 3, i32 3
store i32 100, i32* %39
%40 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 4, i32 0
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8** %40
%41 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 4, i32 1
store i8 %25, i8* %41
%42 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 4, i32 2
store i32* null, i32** %42
%43 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 4, i32 3
store i32 117, i32* %43
%44 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %8, i64 0, i64 5
%45 = bitcast %struct.option* %44 to i8*
%46 = call signext i8 @getopt_long(i32 %19, i8** %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), %struct.option* %21, i32* null)
%47 = icmp eq i8 %46, -1
br i1 %47, label %68, label %48
48: ; preds = %18, %64
%49 = phi i8 [ %66, %64 ], [ %46, %18 ]
%50 = sext i8 %49 to i32
switch i32 %50, label %61 [
i32 97, label %51
i32 115, label %52
i32 109, label %53
i32 100, label %54
i32 117, label %55
i32 63, label %58
]
51: ; preds = %48
store i32 1, i32* %2
br label %64
52: ; preds = %48
store i32 1, i32* %3
br label %64
53: ; preds = %48
store i32 1, i32* %4
br label %64
54: ; preds = %48
store i32 1, i32* %5
br label %64
55: ; preds = %48
%56 = load i32, i32* @stdout
%57 = call i32 @usage(i8* %9, i32 %56)
br label %64
58: ; preds = %48
%59 = load i32, i32* @stderr
%60 = call i32 @usage(i8* %9, i32 %59)
br label %64
61: ; preds = %48
%62 = load i32, i32* @stderr
%63 = call i32 @fprintf(i32 %62, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
br label %64
64: ; preds = %61, %58, %55, %54, %53, %52, %51
%65 = load i32, i32* %0
%66 = call signext i8 @getopt_long(i32 %65, i8** %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), %struct.option* %21, i32* null)
%67 = icmp eq i8 %66, -1
br i1 %67, label %68, label %48
68: ; preds = %64, %18
%69 = load i64, i64* @optind
%70 = load i32, i32* %0
%71 = trunc i64 %69 to i32
%72 = sub i32 %70, %71
store i32 %72, i32* %0
%73 = load i32, i32* %6
%74 = add i32 %73, %71
store i32 %74, i32* %6
ret void
}