#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 */
int EXIT_FAILURE;
int EXIT_SUCCESS;
float atof(char *);
int atoi(char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int pick_option(int *, char ***, char *, char *);
int /*<<< orphan*/ print_usage();
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcpy(char *, char *);
int parse_options(int argc, char **argv, int *n_bins, int *n_hist, int *n_ori,
                  int *meth_flag, float *thresh, int *verb_flag, char *label) {
  int isfound;
  char val[128];
  isfound = pick_option(&argc, &argv, "ori_nbins", val);
  if (isfound == 1)
    *n_bins = atoi(val);
  if (isfound == -1)
    return EXIT_FAILURE;
  isfound = pick_option(&argc, &argv, "descr_nhist", val);
  if (isfound == 1)
    *n_hist = atoi(val);
  if (isfound == -1)
    return EXIT_FAILURE;
  isfound = pick_option(&argc, &argv, "descr_nori", val);
  if (isfound == 1)
    *n_ori = atoi(val);
  if (isfound == -1)
    return EXIT_FAILURE;
  isfound = pick_option(&argc, &argv, "absolute", val);
  if (isfound == 1) {
    *meth_flag = 0;
    *thresh = atof(val);
  }
  if (isfound == -1)
    return EXIT_FAILURE;
  isfound = pick_option(&argc, &argv, "relative", val);
  if (isfound == 1) {
    *meth_flag = 1;
    *thresh = atof(val);
  }
  if (isfound == -1)
    return EXIT_FAILURE;
  isfound = pick_option(&argc, &argv, "verb", val);
  if (isfound == 1) {
    *verb_flag = 1;
    strcpy(label, val);
  }
  if (isfound == -1)
    return EXIT_FAILURE;
  for (int i = 0; i < argc; i++) {
    if (argv[i][0] == '-') {
      fprintf(stderr, "Fatal error: option \"-%s\" is unknown.\n", argv[i] + 1);
      print_usage();
      return EXIT_FAILURE;
    }
  }
  if (argc != 3) {
    print_usage();
    return EXIT_FAILURE;
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<parse_options>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
lea    -0xc0(%rbp),%rcx
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    0xe5c(%rip),%rdx
call   1060 <pick_option@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x1,-0x34(%rbp)
jne    11ca <parse_options+0x6a>
lea    -0xc0(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
cmpl   $0xffffffff,-0x34(%rbp)
jne    11e5 <parse_options+0x85>
mov    0x2dfd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    146d <parse_options+0x30d>
lea    -0xc0(%rbp),%rcx
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    0xe0f(%rip),%rdx
call   1060 <pick_option@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x1,-0x34(%rbp)
jne    1221 <parse_options+0xc1>
lea    -0xc0(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
cmpl   $0xffffffff,-0x34(%rbp)
jne    123c <parse_options+0xdc>
mov    0x2da6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    146d <parse_options+0x30d>
lea    -0xc0(%rbp),%rcx
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    0xdc4(%rip),%rdx
call   1060 <pick_option@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x1,-0x34(%rbp)
jne    1278 <parse_options+0x118>
lea    -0xc0(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
cmpl   $0xffffffff,-0x34(%rbp)
jne    1293 <parse_options+0x133>
mov    0x2d4f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    146d <parse_options+0x30d>
lea    -0xc0(%rbp),%rcx
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    0xd78(%rip),%rdx
call   1060 <pick_option@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x1,-0x34(%rbp)
jne    12d9 <parse_options+0x179>
mov    -0x30(%rbp),%rax
movl   $0x0,(%rax)
lea    -0xc0(%rbp),%rdi
call   1040 <atof@plt>
mov    0x10(%rbp),%rax
movss  %xmm0,(%rax)
cmpl   $0xffffffff,-0x34(%rbp)
jne    12f4 <parse_options+0x194>
mov    0x2cee(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    146d <parse_options+0x30d>
lea    -0xc0(%rbp),%rcx
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    0xd20(%rip),%rdx
call   1060 <pick_option@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x1,-0x34(%rbp)
jne    133a <parse_options+0x1da>
mov    -0x30(%rbp),%rax
movl   $0x1,(%rax)
lea    -0xc0(%rbp),%rdi
call   1040 <atof@plt>
mov    0x10(%rbp),%rax
movss  %xmm0,(%rax)
cmpl   $0xffffffff,-0x34(%rbp)
jne    1355 <parse_options+0x1f5>
mov    0x2c8d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    146d <parse_options+0x30d>
lea    -0xc0(%rbp),%rcx
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    0xcc8(%rip),%rdx
call   1060 <pick_option@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x1,-0x34(%rbp)
jne    1397 <parse_options+0x237>
mov    0x18(%rbp),%rax
movl   $0x1,(%rax)
mov    0x20(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
call   1030 <strcpy@plt>
cmpl   $0xffffffff,-0x34(%rbp)
jne    13b2 <parse_options+0x252>
mov    0x2c30(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    146d <parse_options+0x30d>
movl   $0x0,-0xc4(%rbp)
mov    -0xc4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    143f <parse_options+0x2df>
mov    -0x10(%rbp),%rax
movslq -0xc4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1426 <parse_options+0x2c6>
mov    0x2bf3(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0xc4(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
add    $0x1,%rdx
lea    0xc2f(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0x0,%al
call   1080 <print_usage@plt>
mov    0x2bbc(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    146d <parse_options+0x30d>
jmp    142b <parse_options+0x2cb>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    13bc <parse_options+0x25c>
cmpl   $0x3,-0x8(%rbp)
je     1461 <parse_options+0x301>
mov    $0x0,%al
call   1080 <print_usage@plt>
mov    0x2b81(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    146d <parse_options+0x30d>
mov    0x2b68(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_options>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x90,%rsp
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%rbx
mov    %edi,0x4(%rsp)
mov    %rsi,0x8(%rsp)
lea    0xe74(%rip),%rdx
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
lea    0x10(%rsp),%rcx
call   1060 <pick_option@plt>
mov    0x2e31(%rip),%r13
cmp    $0xffffffff,%eax
je     1350 <parse_options+0x1f0>
cmp    $0x1,%eax
jne    11c1 <parse_options+0x61>
lea    0x10(%rsp),%rdi
call   1070 <atoi@plt>
mov    %eax,(%rbx)
lea    0xe42(%rip),%rdx
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
lea    0x10(%rsp),%rcx
call   1060 <pick_option@plt>
cmp    $0xffffffff,%eax
je     1350 <parse_options+0x1f0>
cmp    $0x1,%eax
jne    11f8 <parse_options+0x98>
lea    0x10(%rsp),%rdi
call   1070 <atoi@plt>
mov    %eax,(%r12)
lea    0xe17(%rip),%rdx
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
lea    0x10(%rsp),%rcx
call   1060 <pick_option@plt>
cmp    $0xffffffff,%eax
je     1350 <parse_options+0x1f0>
cmp    $0x1,%eax
jne    122e <parse_options+0xce>
lea    0x10(%rsp),%rdi
call   1070 <atoi@plt>
mov    %eax,(%r15)
lea    0xdec(%rip),%rdx
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
lea    0x10(%rsp),%rcx
call   1060 <pick_option@plt>
cmp    $0xffffffff,%eax
je     1350 <parse_options+0x1f0>
mov    0xc0(%rsp),%rbx
cmp    $0x1,%eax
jne    1274 <parse_options+0x114>
movl   $0x0,(%r14)
lea    0x10(%rsp),%rdi
call   1040 <atof@plt>
movss  %xmm0,(%rbx)
lea    0xdaf(%rip),%rdx
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
lea    0x10(%rsp),%rcx
call   1060 <pick_option@plt>
cmp    $0xffffffff,%eax
je     1350 <parse_options+0x1f0>
cmp    $0x1,%eax
jne    12b2 <parse_options+0x152>
movl   $0x1,(%r14)
lea    0x10(%rsp),%rdi
call   1040 <atof@plt>
movss  %xmm0,(%rbx)
lea    0xd7a(%rip),%rdx
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
lea    0x10(%rsp),%rcx
call   1060 <pick_option@plt>
cmp    $0xffffffff,%eax
je     1350 <parse_options+0x1f0>
cmp    $0x1,%eax
jne    12fb <parse_options+0x19b>
mov    0xd0(%rsp),%rdi
mov    0xc8(%rsp),%rax
movl   $0x1,(%rax)
lea    0x10(%rsp),%rsi
call   1030 <strcpy@plt>
mov    0x4(%rsp),%eax
test   %eax,%eax
jle    1349 <parse_options+0x1e9>
mov    0x8(%rsp),%rcx
xor    %esi,%esi
nopw   0x0(%rax,%rax,1)
mov    (%rcx,%rsi,8),%rdx
cmpb   $0x2d,(%rdx)
je     1330 <parse_options+0x1d0>
add    $0x1,%rsi
cmp    %rsi,%rax
jne    1310 <parse_options+0x1b0>
cmp    $0x3,%eax
jne    1349 <parse_options+0x1e9>
mov    0x2ca2(%rip),%r13
jmp    1350 <parse_options+0x1f0>
mov    0x2ca9(%rip),%rax
mov    (%rax),%edi
add    $0x1,%rdx
lea    0xcf4(%rip),%rsi
call   1050 <fprintf@plt>
xor    %eax,%eax
call   1080 <print_usage@plt>
mov    0x0(%r13),%eax
add    $0x90,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [10 x i8] c"ori_nbins\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [12 x i8] c"descr_nhist\00"
@.str.2 = [11 x i8] c"descr_nori\00"
@.str.3 = [9 x i8] c"absolute\00"
@.str.4 = [9 x i8] c"relative\00"
@.str.5 = [5 x i8] c"verb\00"
@stderr = global i32 0
@.str.6 = [39 x i8] c"Fatal error: option \22-%s\22 is unknown.\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @parse_options(i32 %0, i8** %1, i32* %2, i32* %3, i32* %4, i32* %5, float* %6, i32* %7, i8* %8) {
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8**
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i32*
%17 = alloca float*
%18 = alloca i32*
%19 = alloca i8*
%20 = alloca i32
%21 = alloca [128 x i8]
%22 = alloca i32
store i32 %0, i32* %11
store i8** %1, i8*** %12
store i32* %2, i32** %13
store i32* %3, i32** %14
store i32* %4, i32** %15
store i32* %5, i32** %16
store float* %6, float** %17
store i32* %7, i32** %18
store i8* %8, i8** %19
%23 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%24 = call i32 @pick_option(i32* %11, i8*** %12, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %23)
store i32 %24, i32* %20
%25 = load i32, i32* %20
%26 = icmp eq i32 %25, 1
br i1 %26, label %27, label %31
27: ; preds = %9
%28 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%29 = call i32 @atoi(i8* %28)
%30 = load i32*, i32** %13
store i32 %29, i32* %30
br label %31
31: ; preds = %27, %9
%32 = load i32, i32* %20
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = load i32, i32* @EXIT_FAILURE
store i32 %35, i32* %10
br label %147
36: ; preds = %31
%37 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%38 = call i32 @pick_option(i32* %11, i8*** %12, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* %37)
store i32 %38, i32* %20
%39 = load i32, i32* %20
%40 = icmp eq i32 %39, 1
br i1 %40, label %41, label %45
41: ; preds = %36
%42 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%43 = call i32 @atoi(i8* %42)
%44 = load i32*, i32** %14
store i32 %43, i32* %44
br label %45
45: ; preds = %41, %36
%46 = load i32, i32* %20
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = load i32, i32* @EXIT_FAILURE
store i32 %49, i32* %10
br label %147
50: ; preds = %45
%51 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%52 = call i32 @pick_option(i32* %11, i8*** %12, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %51)
store i32 %52, i32* %20
%53 = load i32, i32* %20
%54 = icmp eq i32 %53, 1
br i1 %54, label %55, label %59
55: ; preds = %50
%56 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%57 = call i32 @atoi(i8* %56)
%58 = load i32*, i32** %15
store i32 %57, i32* %58
br label %59
59: ; preds = %55, %50
%60 = load i32, i32* %20
%61 = icmp eq i32 %60, -1
br i1 %61, label %62, label %64
62: ; preds = %59
%63 = load i32, i32* @EXIT_FAILURE
store i32 %63, i32* %10
br label %147
64: ; preds = %59
%65 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%66 = call i32 @pick_option(i32* %11, i8*** %12, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %65)
store i32 %66, i32* %20
%67 = load i32, i32* %20
%68 = icmp eq i32 %67, 1
br i1 %68, label %69, label %74
69: ; preds = %64
%70 = load i32*, i32** %16
store i32 0, i32* %70
%71 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%72 = call float @atof(i8* %71)
%73 = load float*, float** %17
store float %72, float* %73
br label %74
74: ; preds = %69, %64
%75 = load i32, i32* %20
%76 = icmp eq i32 %75, -1
br i1 %76, label %77, label %79
77: ; preds = %74
%78 = load i32, i32* @EXIT_FAILURE
store i32 %78, i32* %10
br label %147
79: ; preds = %74
%80 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%81 = call i32 @pick_option(i32* %11, i8*** %12, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* %80)
store i32 %81, i32* %20
%82 = load i32, i32* %20
%83 = icmp eq i32 %82, 1
br i1 %83, label %84, label %89
84: ; preds = %79
%85 = load i32*, i32** %16
store i32 1, i32* %85
%86 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%87 = call float @atof(i8* %86)
%88 = load float*, float** %17
store float %87, float* %88
br label %89
89: ; preds = %84, %79
%90 = load i32, i32* %20
%91 = icmp eq i32 %90, -1
br i1 %91, label %92, label %94
92: ; preds = %89
%93 = load i32, i32* @EXIT_FAILURE
store i32 %93, i32* %10
br label %147
94: ; preds = %89
%95 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%96 = call i32 @pick_option(i32* %11, i8*** %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %95)
store i32 %96, i32* %20
%97 = load i32, i32* %20
%98 = icmp eq i32 %97, 1
br i1 %98, label %99, label %104
99: ; preds = %94
%100 = load i32*, i32** %18
store i32 1, i32* %100
%101 = load i8*, i8** %19
%102 = getelementptr inbounds [128 x i8], [128 x i8]* %21, i64 0, i64 0
%103 = call i32 @strcpy(i8* %101, i8* %102)
br label %104
104: ; preds = %99, %94
%105 = load i32, i32* %20
%106 = icmp eq i32 %105, -1
br i1 %106, label %107, label %109
107: ; preds = %104
%108 = load i32, i32* @EXIT_FAILURE
store i32 %108, i32* %10
br label %147
109: ; preds = %104
store i32 0, i32* %22
br label %110
110: ; preds = %136, %109
%111 = load i32, i32* %22
%112 = load i32, i32* %11
%113 = icmp slt i32 %111, %112
br i1 %113, label %114, label %139
114: ; preds = %110
%115 = load i8**, i8*** %12
%116 = load i32, i32* %22
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i8*, i8** %115, i64 %117
%119 = load i8*, i8** %118
%120 = getelementptr inbounds i8, i8* %119, i64 0
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = icmp eq i32 %122, 45
br i1 %123, label %124, label %135
124: ; preds = %114
%125 = load i32, i32* @stderr
%126 = load i8**, i8*** %12
%127 = load i32, i32* %22
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i8*, i8** %126, i64 %128
%130 = load i8*, i8** %129
%131 = getelementptr inbounds i8, i8* %130, i64 1
%132 = call i32 @fprintf(i32 %125, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), i8* %131)
%133 = call i32 (...) @print_usage()
%134 = load i32, i32* @EXIT_FAILURE
store i32 %134, i32* %10
br label %147
135: ; preds = %114
br label %136
136: ; preds = %135
%137 = load i32, i32* %22
%138 = add nsw i32 %137, 1
store i32 %138, i32* %22
br label %110
139: ; preds = %110
%140 = load i32, i32* %11
%141 = icmp ne i32 %140, 3
br i1 %141, label %142, label %145
142: ; preds = %139
%143 = call i32 (...) @print_usage()
%144 = load i32, i32* @EXIT_FAILURE
store i32 %144, i32* %10
br label %147
145: ; preds = %139
%146 = load i32, i32* @EXIT_SUCCESS
store i32 %146, i32* %10
br label %147
147: ; preds = %145, %142, %124, %107, %92, %77, %62, %48, %34
%148 = load i32, i32* %10
ret i32 %148
}

LLVM IR (-O2):
@.str = [10 x i8] c"ori_nbins\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [12 x i8] c"descr_nhist\00"
@.str.2 = [11 x i8] c"descr_nori\00"
@.str.3 = [9 x i8] c"absolute\00"
@.str.4 = [9 x i8] c"relative\00"
@.str.5 = [5 x i8] c"verb\00"
@stderr = global i32 0
@.str.6 = [39 x i8] c"Fatal error: option \22-%s\22 is unknown.\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @parse_options(i32 %0, i8** %1, i32* nocapture writeonly %2, i32* nocapture writeonly %3, i32* nocapture writeonly %4, i32* nocapture writeonly %5, float* nocapture writeonly %6, i32* nocapture writeonly %7, i8* %8) {
%10 = alloca i32
%11 = alloca i8**
%12 = alloca [128 x i8]
store i32 %0, i32* %10
store i8** %1, i8*** %11
%13 = getelementptr inbounds [128 x i8], [128 x i8]* %12, i64 0, i64 0
%14 = call i32 @pick_option(i32* %10, i8*** %11, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %13)
switch i32 %14, label %17 [
i32 1, label %15
i32 -1, label %60
]
15: ; preds = %9
%16 = call i32 @atoi(i8* %13)
store i32 %16, i32* %2
br label %17
17: ; preds = %15, %9
%18 = call i32 @pick_option(i32* %10, i8*** %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* %13)
switch i32 %18, label %21 [
i32 1, label %19
i32 -1, label %60
]
19: ; preds = %17
%20 = call i32 @atoi(i8* %13)
store i32 %20, i32* %3
br label %21
21: ; preds = %19, %17
%22 = call i32 @pick_option(i32* %10, i8*** %11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %13)
switch i32 %22, label %25 [
i32 1, label %23
i32 -1, label %60
]
23: ; preds = %21
%24 = call i32 @atoi(i8* %13)
store i32 %24, i32* %4
br label %25
25: ; preds = %23, %21
%26 = call i32 @pick_option(i32* %10, i8*** %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %13)
switch i32 %26, label %29 [
i32 1, label %27
i32 -1, label %60
]
27: ; preds = %25
store i32 0, i32* %5
%28 = call float @atof(i8* %13)
store float %28, float* %6
br label %29
29: ; preds = %27, %25
%30 = call i32 @pick_option(i32* %10, i8*** %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* %13)
switch i32 %30, label %33 [
i32 1, label %31
i32 -1, label %60
]
31: ; preds = %29
store i32 1, i32* %5
%32 = call float @atof(i8* %13)
store float %32, float* %6
br label %33
33: ; preds = %31, %29
%34 = call i32 @pick_option(i32* %10, i8*** %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %13)
switch i32 %34, label %37 [
i32 1, label %35
i32 -1, label %60
]
35: ; preds = %33
store i32 1, i32* %7
%36 = call i32 @strcpy(i8* %8, i8* %13)
br label %37
37: ; preds = %35, %33
%38 = load i32, i32* %10
%39 = icmp sgt i32 %38, 0
br i1 %39, label %40, label %58
40: ; preds = %37
%41 = load i8**, i8*** %11
%42 = zext i32 %38 to i64
br label %45
43: ; preds = %45
%44 = icmp eq i64 %51, %42
br i1 %44, label %56, label %45
45: ; preds = %40, %43
%46 = phi i64 [ 0, %40 ], [ %51, %43 ]
%47 = getelementptr inbounds i8*, i8** %41, i64 %46
%48 = load i8*, i8** %47
%49 = load i8, i8* %48
%50 = icmp eq i8 %49, 45
%51 = add nuw nsw i64 %46, 1
br i1 %50, label %52, label %43
52: ; preds = %45
%53 = load i32, i32* @stderr
%54 = getelementptr inbounds i8, i8* %48, i64 1
%55 = call i32 @fprintf(i32 %53, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), i8* %54)
br label %58
56: ; preds = %43
%57 = icmp eq i32 %38, 3
br i1 %57, label %60, label %58
58: ; preds = %56, %37, %52
%59 = call i32 (...) @print_usage()
br label %60
60: ; preds = %58, %56, %33, %29, %25, %21, %17, %9
%61 = phi i32* [ @EXIT_FAILURE, %9 ], [ @EXIT_FAILURE, %17 ], [ @EXIT_FAILURE, %21 ], [ @EXIT_FAILURE, %25 ], [ @EXIT_FAILURE, %29 ], [ @EXIT_FAILURE, %33 ], [ @EXIT_SUCCESS, %56 ], [ @EXIT_FAILURE, %58 ]
%62 = load i32, i32* %61
ret i32 %62
}