#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 */

/* Variables and functions */
void *atoi(char *);
int /*<<< orphan*/ exit(int);
int getopt(int, char **, char *);
int /*<<< orphan*/ printf(char *, ...);
void parse_input(int argc, char *argv[], bool *restore, char **fileprefix,
                 long int *count, int *n_min, int *n_max) {
  int c;
  bool mand_f = false, mand_n = false, mand_a = false, mand_b = false;
  extern char *optarg;
  extern int optind, optopt;
  while ((c = getopt(argc, argv, "rf:n:a:b:")) != -1) {
    int this_option_optind = optind ? optind : 1;
    switch (c) {
    case 'r':
      printf("option restore\n");
      *restore = true;
      break;
    case 'f':
      printf("option file_prefix: '%s'\n", optarg);
      *fileprefix = optarg;
      mand_f = true;
      break;
    case 'n':
      printf("option exp_number: '%s'\n", optarg);
      *count = atoi(optarg);
      mand_n = true;
      break;
    case 'a':
      printf("option min n: '%s'\n", optarg);
      *n_min = atoi(optarg);
      mand_a = true;
      break;
    case 'b':
      printf("option max n: '%s'\n", optarg);
      *n_max = atoi(optarg);
      mand_b = true;
      break;
    case '?':
      exit(-1);
      break;
    default:
      printf("?? getopt returned character code 0%o ??\n", c);
      exit(-1);
    }
  }
  if (optind < argc) {
    printf("non-option ARGV-elements: ");
    while (optind < argc)
      printf("%s ", argv[optind++]);
    printf("\n");
    exit(-1);
  }
  if (!*restore && (!mand_f || !mand_n || !mand_a || !mand_b)) {
    printf("Usage: [-r (restore)] -f file_prefix -n exp_number -a min_n -b "
           "max_n\n");
    exit(-1);
  }
}


x86 assembly (clang, -O0):
<parse_input>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xf43(%rip),%rdx
call   1040 <getopt@plt>
mov    %eax,-0x34(%rbp)
cmp    $0xffffffff,%eax
je     132a <parse_input+0x1ea>
mov    0x2e33(%rip),%rax
cmpl   $0x0,(%rax)
je     11bf <parse_input+0x7f>
mov    0x2e23(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
jmp    11cc <parse_input+0x8c>
mov    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    11cc <parse_input+0x8c>
mov    -0x4c(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x34(%rbp),%eax
add    $0xffffffc1,%eax
mov    %eax,%ecx
mov    %rcx,-0x58(%rbp)
sub    $0x33,%eax
ja     130a <parse_input+0x1ca>
mov    -0x58(%rbp),%rax
lea    0xe0e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xed8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
jmp    1325 <parse_input+0x1e5>
mov    0x2dc1(%rip),%rax
mov    (%rax),%rsi
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2da9(%rip),%rax
mov    (%rax),%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x1,-0x38(%rbp)
jmp    1325 <parse_input+0x1e5>
mov    0x2d8c(%rip),%rax
mov    (%rax),%rsi
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d74(%rip),%rax
mov    (%rax),%rdi
call   1050 <atoi@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x1,-0x3c(%rbp)
jmp    1325 <parse_input+0x1e5>
mov    0x2d4f(%rip),%rax
mov    (%rax),%rsi
lea    0xe82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d37(%rip),%rax
mov    (%rax),%rdi
call   1050 <atoi@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x1,-0x40(%rbp)
jmp    1325 <parse_input+0x1e5>
mov    0x2d14(%rip),%rax
mov    (%rax),%rsi
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2cfc(%rip),%rax
mov    (%rax),%rdi
call   1050 <atoi@plt>
mov    %eax,%ecx
mov    0x10(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x1,-0x44(%rbp)
jmp    1325 <parse_input+0x1e5>
mov    $0xffffffff,%edi
call   1060 <exit@plt>
mov    -0x34(%rbp),%esi
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1060 <exit@plt>
jmp    117f <parse_input+0x3f>
mov    0x2ca7(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jge    13a9 <parse_input+0x269>
lea    0xe2c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2c87(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jge    1391 <parse_input+0x251>
mov    -0x10(%rbp),%rax
mov    0x2c71(%rip),%rcx
mov    (%rcx),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    0x2c63(%rip),%rdx
mov    %esi,(%rdx)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xe05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    134a <parse_input+0x20a>
lea    0xd97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1060 <exit@plt>
mov    -0x18(%rbp),%rax
cmpl   $0x0,(%rax)
jne    13f6 <parse_input+0x2b6>
cmpl   $0x0,-0x38(%rbp)
je     13de <parse_input+0x29e>
cmpl   $0x0,-0x3c(%rbp)
je     13de <parse_input+0x29e>
cmpl   $0x0,-0x40(%rbp)
je     13de <parse_input+0x29e>
cmpl   $0x0,-0x44(%rbp)
jne    13f6 <parse_input+0x2b6>
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1060 <exit@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_input>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,0x20(%rsp)
mov    %r8,0x18(%rsp)
mov    %rcx,0x10(%rsp)
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %edi,%ebp
lea    0xf34(%rip),%r15
lea    0x1020(%rip),%r12
mov    0x2e46(%rip),%r13
movl   $0x0,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,(%rsp)
jmp    11ce <parse_input+0x6e>
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
call   1040 <puts@plt>
movl   $0x1,(%rbx)
mov    %ebp,%edi
mov    %r14,%rsi
mov    %r15,%rdx
call   1060 <getopt@plt>
cmp    $0x72,%eax
je     11c0 <parse_input+0x60>
lea    -0x3f(%rax),%ecx
cmp    $0x2f,%ecx
ja     12af <parse_input+0x14f>
lea    0xe0d(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
mov    0x0(%r13),%rsi
lea    0xef6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x0(%r13),%rdi
call   1070 <atoi@plt>
mov    0x20(%rsp),%rcx
mov    %eax,(%rcx)
movl   $0x1,0x8(%rsp)
jmp    11ce <parse_input+0x6e>
mov    0x0(%r13),%rsi
lea    0xede(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x0(%r13),%rdi
call   1070 <atoi@plt>
mov    0x60(%rsp),%rcx
mov    %eax,(%rcx)
movl   $0x1,0xc(%rsp)
jmp    11ce <parse_input+0x6e>
mov    0x0(%r13),%rsi
lea    0xe68(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x0(%r13),%rax
mov    0x10(%rsp),%rcx
mov    %rax,(%rcx)
movl   $0x1,(%rsp)
jmp    11ce <parse_input+0x6e>
mov    0x0(%r13),%rsi
lea    0xe58(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x0(%r13),%rdi
call   1070 <atoi@plt>
mov    0x18(%rsp),%rcx
mov    %rax,(%rcx)
mov    $0x1,%al
mov    %eax,0x4(%rsp)
jmp    11ce <parse_input+0x6e>
cmp    $0xffffffff,%eax
jne    12fa <parse_input+0x19a>
mov    0x2d1d(%rip),%r15
cmp    %ebp,(%r15)
jl     1314 <parse_input+0x1b4>
cmpl   $0x0,(%rbx)
jne    12eb <parse_input+0x18b>
cmpl   $0x0,(%rsp)
sete   %al
mov    0x4(%rsp),%ecx
not    %cl
or     %al,%cl
test   $0x1,%cl
jne    1361 <parse_input+0x201>
cmpl   $0x0,0x8(%rsp)
je     1361 <parse_input+0x201>
cmpl   $0x0,0xc(%rsp)
je     1361 <parse_input+0x201>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe24(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
lea    0xe34(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r15),%eax
cmp    %ebp,%eax
jge    134d <parse_input+0x1ed>
lea    0xe3a(%rip),%rbx
lea    0x1(%rax),%ecx
mov    %ecx,(%r15)
cltq
mov    (%r14,%rax,8),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r15),%eax
cmp    %ebp,%eax
jl     1330 <parse_input+0x1d0>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
lea    0xe06(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"rf:n:a:b:\00"
@optind = external global i32
@.str.1 = [16 x i8] c"option restore\0A\00"
@.str.2 = [26 x i8] c"option file_prefix: '%s'\0A\00"
@optarg = external global i8*
@.str.3 = [25 x i8] c"option exp_number: '%s'\0A\00"
@.str.4 = [20 x i8] c"option min n: '%s'\0A\00"
@.str.5 = [20 x i8] c"option max n: '%s'\0A\00"
@.str.6 = [42 x i8] c"?? getopt returned character code 0%o ??\0A\00"
@.str.7 = [27 x i8] c"non-option ARGV-elements: \00"
@.str.8 = [4 x i8] c"%s \00"
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [70 x i8] c"Usage: [-r (restore)] -f file_prefix -n exp_number -a min_n -b max_n\0A\00"
define void @parse_input(i32 %0, i8** %1, i32* %2, i8** %3, i64* %4, i32* %5, i32* %6) {
%8 = alloca i32
%9 = alloca i8**
%10 = alloca i32*
%11 = alloca i8**
%12 = alloca i64*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
store i32 %0, i32* %8
store i8** %1, i8*** %9
store i32* %2, i32** %10
store i8** %3, i8*** %11
store i64* %4, i64** %12
store i32* %5, i32** %13
store i32* %6, i32** %14
store i32 0, i32* %16
store i32 0, i32* %17
store i32 0, i32* %18
store i32 0, i32* %19
br label %21
21: ; preds = %70, %7
%22 = load i32, i32* %8
%23 = load i8**, i8*** %9
%24 = call i32 @getopt(i32 %22, i8** %23, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
store i32 %24, i32* %15
%25 = icmp ne i32 %24, -1
br i1 %25, label %26, label %71
26: ; preds = %21
%27 = load i32, i32* @optind
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = load i32, i32* @optind
br label %32
31: ; preds = %26
br label %32
32: ; preds = %31, %29
%33 = phi i32 [ %30, %29 ], [ 1, %31 ]
store i32 %33, i32* %20
%34 = load i32, i32* %15
switch i32 %34, label %66 [
i32 114, label %35
i32 102, label %38
i32 110, label %43
i32 97, label %50
i32 98, label %57
i32 63, label %64
]
35: ; preds = %32
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%37 = load i32*, i32** %10
store i32 1, i32* %37
br label %70
38: ; preds = %32
%39 = load i8*, i8** @optarg
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %39)
%41 = load i8*, i8** @optarg
%42 = load i8**, i8*** %11
store i8* %41, i8** %42
store i32 1, i32* %16
br label %70
43: ; preds = %32
%44 = load i8*, i8** @optarg
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8* %44)
%46 = load i8*, i8** @optarg
%47 = call i8* @atoi(i8* %46)
%48 = ptrtoint i8* %47 to i64
%49 = load i64*, i64** %12
store i64 %48, i64* %49
store i32 1, i32* %17
br label %70
50: ; preds = %32
%51 = load i8*, i8** @optarg
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i8* %51)
%53 = load i8*, i8** @optarg
%54 = call i8* @atoi(i8* %53)
%55 = ptrtoint i8* %54 to i32
%56 = load i32*, i32** %13
store i32 %55, i32* %56
store i32 1, i32* %18
br label %70
57: ; preds = %32
%58 = load i8*, i8** @optarg
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* %58)
%60 = load i8*, i8** @optarg
%61 = call i8* @atoi(i8* %60)
%62 = ptrtoint i8* %61 to i32
%63 = load i32*, i32** %14
store i32 %62, i32* %63
store i32 1, i32* %19
br label %70
64: ; preds = %32
%65 = call i32 @exit(i32 -1)
unreachable
66: ; preds = %32
%67 = load i32, i32* %15
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i32 %67)
%69 = call i32 @exit(i32 -1)
unreachable
70: ; preds = %57, %50, %43, %38, %35
br label %21
71: ; preds = %21
%72 = load i32, i32* @optind
%73 = load i32, i32* %8
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %92
75: ; preds = %71
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
br label %77
77: ; preds = %81, %75
%78 = load i32, i32* @optind
%79 = load i32, i32* %8
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %89
81: ; preds = %77
%82 = load i8**, i8*** %9
%83 = load i32, i32* @optind
%84 = add nsw i32 %83, 1
store i32 %84, i32* @optind
%85 = sext i32 %83 to i64
%86 = getelementptr inbounds i8*, i8** %82, i64 %85
%87 = load i8*, i8** %86
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %87)
br label %77
89: ; preds = %77
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%91 = call i32 @exit(i32 -1)
unreachable
92: ; preds = %71
%93 = load i32*, i32** %10
%94 = load i32, i32* %93
%95 = icmp ne i32 %94, 0
br i1 %95, label %111, label %96
96: ; preds = %92
%97 = load i32, i32* %16
%98 = icmp ne i32 %97, 0
br i1 %98, label %99, label %108
99: ; preds = %96
%100 = load i32, i32* %17
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %108
102: ; preds = %99
%103 = load i32, i32* %18
%104 = icmp ne i32 %103, 0
br i1 %104, label %105, label %108
105: ; preds = %102
%106 = load i32, i32* %19
%107 = icmp ne i32 %106, 0
br i1 %107, label %111, label %108
108: ; preds = %105, %102, %99, %96
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.10, i64 0, i64 0))
%110 = call i32 @exit(i32 -1)
unreachable
111: ; preds = %105, %92
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"rf:n:a:b:\00"
@optind = external global i32
@.str.2 = [26 x i8] c"option file_prefix: '%s'\0A\00"
@optarg = external global i8*
@.str.3 = [25 x i8] c"option exp_number: '%s'\0A\00"
@.str.4 = [20 x i8] c"option min n: '%s'\0A\00"
@.str.5 = [20 x i8] c"option max n: '%s'\0A\00"
@.str.6 = [42 x i8] c"?? getopt returned character code 0%o ??\0A\00"
@.str.7 = [27 x i8] c"non-option ARGV-elements: \00"
@.str.8 = [4 x i8] c"%s \00"
@str = [69 x i8] c"Usage: [-r (restore)] -f file_prefix -n exp_number -a min_n -b max_n\00"
@str.11 = [15 x i8] c"option restore\00"
define void @parse_input(i32 %0, i8** %1, i32* nocapture %2, i8** nocapture writeonly %3, i64* nocapture writeonly %4, i32* nocapture writeonly %5, i32* nocapture writeonly %6) {
br label %8
8: ; preds = %30, %7
%9 = phi i1 [ true, %30 ], [ false, %7 ]
%10 = phi i32 [ %14, %30 ], [ 0, %7 ]
%11 = phi i32 [ %18, %30 ], [ 0, %7 ]
%12 = phi i32 [ %21, %30 ], [ 0, %7 ]
br label %13
13: ; preds = %8, %36
%14 = phi i32 [ %10, %8 ], [ 1, %36 ]
%15 = phi i32 [ %11, %8 ], [ %18, %36 ]
%16 = phi i32 [ %12, %8 ], [ %21, %36 ]
br label %17
17: ; preds = %13, %43
%18 = phi i32 [ %15, %13 ], [ 1, %43 ]
%19 = phi i32 [ %16, %13 ], [ %21, %43 ]
br label %20
20: ; preds = %17, %26
%21 = phi i32 [ %19, %17 ], [ 1, %26 ]
br label %22
22: ; preds = %20, %24
%23 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
switch i32 %23, label %52 [
i32 -1, label %55
i32 114, label %24
i32 102, label %26
i32 110, label %30
i32 97, label %36
i32 98, label %43
i32 63, label %50
]
24: ; preds = %22
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.11, i64 0, i64 0))
store i32 1, i32* %2
br label %22
26: ; preds = %22
%27 = load i8*, i8** @optarg
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %27)
%29 = load i8*, i8** @optarg
store i8* %29, i8** %3
br label %20
30: ; preds = %22
%31 = load i8*, i8** @optarg
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8* %31)
%33 = load i8*, i8** @optarg
%34 = tail call i8* @atoi(i8* %33)
%35 = ptrtoint i8* %34 to i64
store i64 %35, i64* %4
br label %8
36: ; preds = %22
%37 = load i8*, i8** @optarg
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i8* %37)
%39 = load i8*, i8** @optarg
%40 = tail call i8* @atoi(i8* %39)
%41 = ptrtoint i8* %40 to i64
%42 = trunc i64 %41 to i32
store i32 %42, i32* %5
br label %13
43: ; preds = %22
%44 = load i8*, i8** @optarg
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* %44)
%46 = load i8*, i8** @optarg
%47 = tail call i8* @atoi(i8* %46)
%48 = ptrtoint i8* %47 to i64
%49 = trunc i64 %48 to i32
store i32 %49, i32* %6
br label %17
50: ; preds = %22
%51 = tail call i32 @exit(i32 -1)
unreachable
52: ; preds = %22
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i32 %23)
%54 = tail call i32 @exit(i32 -1)
unreachable
55: ; preds = %22
%56 = load i32, i32* @optind
%57 = icmp slt i32 %56, %0
br i1 %57, label %58, label %74
58: ; preds = %55
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%60 = load i32, i32* @optind
%61 = icmp slt i32 %60, %0
br i1 %61, label %62, label %71
62: ; preds = %58, %62
%63 = phi i32 [ %69, %62 ], [ %60, %58 ]
%64 = add nsw i32 %63, 1
store i32 %64, i32* @optind
%65 = sext i32 %63 to i64
%66 = getelementptr inbounds i8*, i8** %1, i64 %65
%67 = load i8*, i8** %66
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %67)
%69 = load i32, i32* @optind
%70 = icmp slt i32 %69, %0
br i1 %70, label %62, label %71
71: ; preds = %62, %58
%72 = tail call i32 @putchar(i32 10)
%73 = tail call i32 @exit(i32 -1)
unreachable
74: ; preds = %55
%75 = load i32, i32* %2
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %87
77: ; preds = %74
%78 = icmp ne i32 %21, 0
%79 = and i1 %78, %9
%80 = icmp ne i32 %14, 0
%81 = select i1 %79, i1 %80, i1 false
%82 = icmp ne i32 %18, 0
%83 = select i1 %81, i1 %82, i1 false
br i1 %83, label %87, label %84
84: ; preds = %77
%85 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str, i64 0, i64 0))
%86 = tail call i32 @exit(i32 -1)
unreachable
87: ; preds = %77, %74
ret void
}