#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 */
char getopt_long(int, char **, char *, struct option *, int /*<<< orphan*/ *);
int /*<<< orphan*/ no_argument;
int /*<<< orphan*/ optarg;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ required_argument;
int /*<<< orphan*/ sscanf(int /*<<< orphan*/, char *, int *);
int main(int argc, char *argv[]) {
  int in_hex = 0;
  int sup_mod;
  char short_opts[] = "smt:";
  struct option long_opts[] = {
      {"hex", no_argument, &in_hex, 1},
      {"slot_num", no_argument, 0, 's'},
      {"mod_num", no_argument, 0, 'm'},
      {"set_mts_active_sup", required_argument, 0, 't'},
      {0, 0, 0, 0},
  };
  char c;
  int slot_num = 10;
  while ((c = getopt_long(argc, argv, short_opts, long_opts, NULL)) != -1) {
    switch (c) {
    case 0:
      break;
    case 's':
      if (in_hex) {
        printf("slot number is %x\n", slot_num);
      } else {
        printf("slot number is %d\n", slot_num);
      }
      break;
    case 'm':
      if (in_hex) {
        printf("mod number is %x\n", slot_num + 1);
      } else {
        printf("mod number is %d\n", slot_num + 1);
      }
      break;
    case 't':
      if (!optarg)
        return -1;
      printf("Entering here\n");
      sscanf(optarg, "%d", &sup_mod);
      printf("Setting active sup node %d\n", sup_mod);
      break;
    default:
      return -1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    0xe9a(%rip),%eax
mov    %eax,-0x1d(%rbp)
mov    0xe95(%rip),%al
mov    %al,-0x19(%rbp)
lea    -0xa0(%rbp),%rdi
lea    0xe85(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0x2e42(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x98(%rbp)
lea    -0x14(%rbp),%rax
mov    %eax,-0x90(%rbp)
movl   $0x1,-0x8c(%rbp)
add    $0x18,%rdi
lea    0xe52(%rip),%rax
mov    %rax,-0x88(%rbp)
mov    0x2e0b(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x80(%rbp)
movl   $0x0,-0x78(%rbp)
movl   $0x73,-0x74(%rbp)
add    $0x18,%rdi
lea    0xe2d(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0x2de0(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x68(%rbp)
movl   $0x0,-0x60(%rbp)
movl   $0x6d,-0x5c(%rbp)
add    $0x18,%rdi
lea    0xe0a(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0x2dc5(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x74,-0x44(%rbp)
add    $0x18,%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1050 <memset@plt>
movl   $0xa,-0xa8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    -0x1d(%rbp),%rdx
lea    -0xa0(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r8d
call   1030 <getopt_long@plt>
mov    %al,-0xa1(%rbp)
movsbl %al,%eax
cmp    $0xffffffff,%eax
je     13bb <main+0x27b>
movsbl -0xa1(%rbp),%eax
mov    %eax,-0xac(%rbp)
test   %eax,%eax
je     12ce <main+0x18e>
jmp    1292 <main+0x152>
mov    -0xac(%rbp),%eax
sub    $0x6d,%eax
je     130f <main+0x1cf>
jmp    12a6 <main+0x166>
mov    -0xac(%rbp),%eax
sub    $0x73,%eax
je     12d3 <main+0x193>
jmp    12ba <main+0x17a>
mov    -0xac(%rbp),%eax
sub    $0x74,%eax
je     1351 <main+0x211>
jmp    13aa <main+0x26a>
jmp    13b6 <main+0x276>
cmpl   $0x0,-0x14(%rbp)
je     12f6 <main+0x1b6>
mov    -0xa8(%rbp),%esi
lea    0xd43(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    130a <main+0x1ca>
mov    -0xa8(%rbp),%esi
lea    0xd3d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13b6 <main+0x276>
cmpl   $0x0,-0x14(%rbp)
je     1335 <main+0x1f5>
mov    -0xa8(%rbp),%esi
add    $0x1,%esi
lea    0xd2a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    134c <main+0x20c>
mov    -0xa8(%rbp),%esi
add    $0x1,%esi
lea    0xd20(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13b6 <main+0x276>
mov    0x2ca0(%rip),%rax
cmpl   $0x0,(%rax)
jne    136d <main+0x22d>
movl   $0xffffffff,-0x4(%rbp)
jmp    13c2 <main+0x282>
lea    0xd03(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2c76(%rip),%rax
mov    (%rax),%edi
lea    0xcfb(%rip),%rsi
lea    -0x18(%rbp),%rdx
call   1060 <sscanf@plt>
mov    -0x18(%rbp),%esi
lea    0xceb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13b6 <main+0x276>
movl   $0xffffffff,-0x4(%rbp)
jmp    13c2 <main+0x282>
jmp    124a <main+0x10a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xb0,%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,(%rsp)
movb   $0x0,0x8(%rsp)
movl   $0x3a746d73,0x4(%rsp)
3a
lea    0xe94(%rip),%rax
mov    %rax,0x10(%rsp)
mov    0x2e53(%rip),%rax
movslq (%rax),%rax
mov    %rax,0x18(%rsp)
mov    %rsp,%rcx
mov    %ecx,0x20(%rsp)
movl   $0x1,0x24(%rsp)
lea    0xe6e(%rip),%rcx
mov    %rcx,0x28(%rsp)
mov    %rax,0x30(%rsp)
movabs $0x7300000000,%rcx
mov    %rcx,0x38(%rsp)
lea    0xe57(%rip),%rcx
mov    %rcx,0x40(%rsp)
mov    %rax,0x48(%rsp)
movabs $0x6d00000000,%rax
mov    %rax,0x50(%rsp)
lea    0xe3f(%rip),%rax
mov    %rax,0x58(%rsp)
mov    0x2df9(%rip),%rax
movslq (%rax),%rax
mov    %rax,0x60(%rsp)
movabs $0x7400000000,%rax
mov    %rax,0x68(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x70(%rsp)
movq   $0x0,0x80(%rsp)
xor    %r14d,%r14d
lea    0x4(%rsp),%rdx
lea    0x10(%rsp),%rcx
xor    %r8d,%r8d
call   1040 <getopt_long@plt>
cmp    $0xff,%al
je     1307 <main+0x1c7>
lea    0x4(%rsp),%r12
lea    0x10(%rsp),%r13
mov    0x2db8(%rip),%r15
jmp    1273 <main+0x133>
lea    0xe1c(%rip),%rdi
mov    $0xb,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %r14d,%r14d
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
xor    %r8d,%r8d
call   1040 <getopt_long@plt>
cmp    $0xff,%al
je     1307 <main+0x1c7>
movsbl %al,%eax
mov    $0xffffffff,%r14d
cmp    $0x72,%eax
jg     12a0 <main+0x160>
test   %eax,%eax
je     1255 <main+0x115>
cmp    $0x6d,%eax
jne    1307 <main+0x1c7>
cmpl   $0x0,(%rsp)
je     1242 <main+0x102>
lea    0xdbc(%rip),%rdi
jmp    1249 <main+0x109>
nopl   0x0(%rax)
cmp    $0x74,%eax
je     12c0 <main+0x180>
cmp    $0x73,%eax
jne    1307 <main+0x1c7>
cmpl   $0x0,(%rsp)
je     12f6 <main+0x1b6>
lea    0xd76(%rip),%rdi
mov    $0xa,%esi
jmp    124e <main+0x10e>
xchg   %ax,%ax
cmpl   $0x0,(%r15)
je     1307 <main+0x1c7>
lea    0xdc9(%rip),%rdi
call   1030 <puts@plt>
mov    (%r15),%edi
lea    0xd9b(%rip),%rsi
lea    0xc(%rsp),%rdx
call   1060 <sscanf@plt>
mov    0xc(%rsp),%esi
lea    0xd89(%rip),%rdi
jmp    124e <main+0x10e>
lea    0xd43(%rip),%rdi
mov    $0xa,%esi
jmp    124e <main+0x10e>
mov    %r14d,%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*, i32, i32 }
@__const.main.short_opts = [5 x i8] c"smt:\00"
@.str = [4 x i8] c"hex\00"
@no_argument = global i32 0
@.str.1 = [9 x i8] c"slot_num\00"
@.str.2 = [8 x i8] c"mod_num\00"
@.str.3 = [19 x i8] c"set_mts_active_sup\00"
@required_argument = global i32 0
@.str.4 = [19 x i8] c"slot number is %x\0A\00"
@.str.5 = [19 x i8] c"slot number is %d\0A\00"
@.str.6 = [18 x i8] c"mod number is %x\0A\00"
@.str.7 = [18 x i8] c"mod number is %d\0A\00"
@optarg = global i32 0
@.str.8 = [15 x i8] c"Entering here\0A\00"
@.str.9 = [3 x i8] c"%d\00"
@.str.10 = [28 x i8] c"Setting active sup node %d\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 [5 x i8]
%9 = alloca [5 x %struct.option]
%10 = alloca i8
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%12 = bitcast [5 x i8]* %8 to i8*
%13 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %9, i64 0, i64 0
%14 = getelementptr inbounds %struct.option, %struct.option* %13, i32 0, i32 0
store i8* getelementptr inbounds ([4 x i8], [4 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* %6 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 ([9 x i8], [9 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
store i32 0, i32* %28
%29 = getelementptr inbounds %struct.option, %struct.option* %22, i32 0, i32 3
store i32 115, i32* %29
%30 = getelementptr inbounds %struct.option, %struct.option* %22, i64 1
%31 = getelementptr inbounds %struct.option, %struct.option* %30, i32 0, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8** %31
%32 = getelementptr inbounds %struct.option, %struct.option* %30, i32 0, i32 1
%33 = load i32, i32* @no_argument
%34 = sext i32 %33 to i64
%35 = inttoptr i64 %34 to i32*
store i32* %35, i32** %32
%36 = getelementptr inbounds %struct.option, %struct.option* %30, i32 0, i32 2
store i32 0, i32* %36
%37 = getelementptr inbounds %struct.option, %struct.option* %30, i32 0, i32 3
store i32 109, i32* %37
%38 = getelementptr inbounds %struct.option, %struct.option* %30, i64 1
%39 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 0
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8** %39
%40 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 1
%41 = load i32, i32* @required_argument
%42 = sext i32 %41 to i64
%43 = inttoptr i64 %42 to i32*
store i32* %43, i32** %40
%44 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 2
store i32 0, i32* %44
%45 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 3
store i32 116, i32* %45
%46 = getelementptr inbounds %struct.option, %struct.option* %38, i64 1
%47 = bitcast %struct.option* %46 to i8*
store i32 10, i32* %11
br label %48
48: ; preds = %93, %2
%49 = load i32, i32* %4
%50 = load i8**, i8*** %5
%51 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%52 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %9, i64 0, i64 0
%53 = call signext i8 @getopt_long(i32 %49, i8** %50, i8* %51, %struct.option* %52, i32* null)
store i8 %53, i8* %10
%54 = sext i8 %53 to i32
%55 = icmp ne i32 %54, -1
br i1 %55, label %56, label %94
56: ; preds = %48
%57 = load i8, i8* %10
%58 = sext i8 %57 to i32
switch i32 %58, label %92 [
i32 0, label %59
i32 115, label %60
i32 109, label %70
i32 116, label %82
]
59: ; preds = %56
br label %93
60: ; preds = %56
%61 = load i32, i32* %6
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %60
%64 = load i32, i32* %11
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %64)
br label %69
66: ; preds = %60
%67 = load i32, i32* %11
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 %67)
br label %69
69: ; preds = %66, %63
br label %93
70: ; preds = %56
%71 = load i32, i32* %6
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %77
73: ; preds = %70
%74 = load i32, i32* %11
%75 = add nsw i32 %74, 1
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 %75)
br label %81
77: ; preds = %70
%78 = load i32, i32* %11
%79 = add nsw i32 %78, 1
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 %79)
br label %81
81: ; preds = %77, %73
br label %93
82: ; preds = %56
%83 = load i32, i32* @optarg
%84 = icmp ne i32 %83, 0
br i1 %84, label %86, label %85
85: ; preds = %82
store i32 -1, i32* %3
br label %95
86: ; preds = %82
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%88 = load i32, i32* @optarg
%89 = call i32 @sscanf(i32 %88, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32* %7)
%90 = load i32, i32* %7
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i32 %90)
br label %93
92: ; preds = %56
store i32 -1, i32* %3
br label %95
93: ; preds = %86, %81, %69, %59
br label %48
94: ; preds = %48
store i32 0, i32* %3
br label %95
95: ; preds = %94, %92, %85
%96 = load i32, i32* %3
ret i32 %96
}

LLVM IR (-O2):
%struct.option = type { i8*, i32*, i32, i32 }
@__const.main.short_opts = [5 x i8] c"smt:\00"
@.str = [4 x i8] c"hex\00"
@no_argument = global i32 0
@.str.1 = [9 x i8] c"slot_num\00"
@.str.2 = [8 x i8] c"mod_num\00"
@.str.3 = [19 x i8] c"set_mts_active_sup\00"
@required_argument = global i32 0
@.str.4 = [19 x i8] c"slot number is %x\0A\00"
@.str.5 = [19 x i8] c"slot number is %d\0A\00"
@.str.6 = [18 x i8] c"mod number is %x\0A\00"
@.str.7 = [18 x i8] c"mod number is %d\0A\00"
@optarg = global i32 0
@.str.9 = [3 x i8] c"%d\00"
@.str.10 = [28 x i8] c"Setting active sup node %d\0A\00"
@str = [14 x i8] c"Entering here\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca [5 x i8]
%6 = alloca [5 x %struct.option]
%7 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%8 = bitcast i32* %4 to i8*
%9 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%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 ([4 x i8], [4 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* %3 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 ([9 x i8], [9 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
store i32 0, i32* %23
%24 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 1, i32 3
store i32 115, i32* %24
%25 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 2, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8** %25
%26 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 2, i32 1
store i32* %16, i32** %26
%27 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 2, i32 2
store i32 0, i32* %27
%28 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 2, i32 3
store i32 109, i32* %28
%29 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 3, i32 0
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8** %29
%30 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 3, i32 1
%31 = load i32, i32* @required_argument
%32 = sext i32 %31 to i64
%33 = inttoptr i64 %32 to i32*
store i32* %33, i32** %30
%34 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 3, i32 2
store i32 0, i32* %34
%35 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 3, i32 3
store i32 116, i32* %35
%36 = getelementptr inbounds [5 x %struct.option], [5 x %struct.option]* %6, i64 0, i64 4
%37 = bitcast %struct.option* %36 to i8*
%38 = call signext i8 @getopt_long(i32 %0, i8** %1, i8* %9, %struct.option* %11, i32* null)
%39 = icmp eq i8 %38, -1
br i1 %39, label %69, label %40
40: ; preds = %2, %66
%41 = phi i8 [ %67, %66 ], [ %38, %2 ]
%42 = sext i8 %41 to i32
switch i32 %42, label %69 [
i32 0, label %66
i32 115, label %43
i32 109, label %50
i32 116, label %57
]
43: ; preds = %40
%44 = load i32, i32* %3
%45 = icmp eq i32 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %43
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 10)
br label %66
48: ; preds = %43
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 10)
br label %66
50: ; preds = %40
%51 = load i32, i32* %3
%52 = icmp eq i32 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %50
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 11)
br label %66
55: ; preds = %50
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 11)
br label %66
57: ; preds = %40
%58 = load i32, i32* @optarg
%59 = icmp eq i32 %58, 0
br i1 %59, label %69, label %60
60: ; preds = %57
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%62 = load i32, i32* @optarg
%63 = call i32 @sscanf(i32 %62, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32* %4)
%64 = load i32, i32* %4
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i32 %64)
br label %66
66: ; preds = %53, %55, %46, %48, %60, %40
%67 = call signext i8 @getopt_long(i32 %0, i8** %1, i8* %9, %struct.option* %11, i32* null)
%68 = icmp eq i8 %67, -1
br i1 %68, label %69, label %40
69: ; preds = %57, %40, %66, %2
%70 = phi i32 [ 0, %2 ], [ 0, %66 ], [ -1, %40 ], [ -1, %57 ]
ret i32 %70
}