#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 PATH_MAX;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int getopt(int, char **, char *);
int /*<<< orphan*/ isprint(int);
int /*<<< orphan*/ sprintf(char *, char *, int);
int sscanf(char *, char *, char *);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ usage();
void getOpts(int argc, char **argv, int *verbose, char *filename,
             char *outputFolder) {
  int c;
  extern char *optarg;
  extern int optind, opterr, optopt;
  opterr = 0;
  short v = 0, d = 0;
  strcpy(outputFolder, "/tmp");
  if (argc == 2 && strcmp(argv[1], "-h") == 0) {
    usage();
  }
  if (argc < 3) {
    fprintf(stderr, "Missing parameters\n");
    usage();
  }
  char scanfFormat[20];
  sprintf(scanfFormat, "%%%ds", PATH_MAX - 1);
  while ((c = getopt(argc, argv, "vdo:f:")) != -1) {
    switch (c) {
    case 'h':
      usage();
      break;
    case 'v':
      v = 1;
      break;
    case 'd':
      d = 1;
      break;
    case 'o':
      if (sscanf(optarg, scanfFormat, outputFolder) != 1) {
        fprintf(stderr, "Option -%c requires an argument\n", c);
        usage();
      }
      break;
    case 'f':
      if (sscanf(optarg, scanfFormat, filename) != 1) {
        fprintf(stderr, "Option -%c requires an argument\n", c);
        usage();
      }
      break;
    case '?':
      if (optopt == 'p')
        fprintf(stderr, "Option -%c requires an argument.\n", optopt);
      else if (isprint(optopt))
        fprintf(stderr, "Unknown option `-%c'.\n", optopt);
      else
        fprintf(stderr, "Unknown option character `\\x%x'.\n", optopt);
      usage();
    default:
      fprintf(
          stderr,
          "Wrong command line arguments, probably a parameter without data\n");
      usage();
    }
    if (d)
      *verbose = 2;
    else
      *verbose = v;
  }
}


x86 assembly (clang, -O0):
<getOpts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    0x2e56(%rip),%rax
movl   $0x0,(%rax)
movw   $0x0,-0x2e(%rbp)
movw   $0x0,-0x30(%rbp)
mov    -0x28(%rbp),%rdi
lea    0xf21(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x2,-0x4(%rbp)
jne    11f3 <getOpts+0x73>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xf08(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11f3 <getOpts+0x73>
mov    $0x0,%al
call   1070 <usage@plt>
cmpl   $0x3,-0x4(%rbp)
jge    121b <getOpts+0x9b>
mov    0x2dbc(%rip),%rax
mov    (%rax),%edi
lea    0xedb(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x0,%al
call   1070 <usage@plt>
lea    -0x50(%rbp),%rdi
mov    0x2dc2(%rip),%rax
mov    (%rax),%edx
sub    $0x1,%edx
lea    0xeca(%rip),%rsi
call   10a0 <sprintf@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xebd(%rip),%rdx
call   1090 <getopt@plt>
mov    %eax,-0x2c(%rbp)
cmp    $0xffffffff,%eax
je     1411 <getOpts+0x291>
mov    -0x2c(%rbp),%eax
add    $0xffffffc1,%eax
mov    %eax,%ecx
mov    %rcx,-0x58(%rbp)
sub    $0x37,%eax
ja     13ca <getOpts+0x24a>
mov    -0x58(%rbp),%rax
lea    0xd8a(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1070 <usage@plt>
jmp    13e8 <getOpts+0x268>
movw   $0x1,-0x2e(%rbp)
jmp    13e8 <getOpts+0x268>
movw   $0x1,-0x30(%rbp)
jmp    13e8 <getOpts+0x268>
mov    0x2d20(%rip),%rax
mov    (%rax),%rdi
lea    -0x50(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1060 <sscanf@plt>
cmp    $0x1,%eax
je     12e2 <getOpts+0x162>
mov    0x2cf8(%rip),%rax
mov    (%rax),%edi
mov    -0x2c(%rbp),%edx
lea    0xe35(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x0,%al
call   1070 <usage@plt>
jmp    13e8 <getOpts+0x268>
mov    0x2cda(%rip),%rax
mov    (%rax),%rdi
lea    -0x50(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1060 <sscanf@plt>
cmp    $0x1,%eax
je     1328 <getOpts+0x1a8>
mov    0x2cb2(%rip),%rax
mov    (%rax),%edi
mov    -0x2c(%rbp),%edx
lea    0xdef(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x0,%al
call   1070 <usage@plt>
jmp    13e8 <getOpts+0x268>
mov    0x2ca4(%rip),%rax
cmpl   $0x70,(%rax)
jne    1362 <getOpts+0x1e2>
mov    0x2c7c(%rip),%rax
mov    (%rax),%edi
mov    0x2c8b(%rip),%rax
mov    (%rax),%edx
lea    0xdd4(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    13c3 <getOpts+0x243>
mov    0x2c6f(%rip),%rax
mov    (%rax),%edi
call   1080 <isprint@plt>
cmp    $0x0,%eax
je     139e <getOpts+0x21e>
mov    0x2c40(%rip),%rax
mov    (%rax),%edi
mov    0x2c4f(%rip),%rax
mov    (%rax),%edx
lea    0xdba(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    13be <getOpts+0x23e>
mov    0x2c1b(%rip),%rax
mov    (%rax),%edi
mov    0x2c2a(%rip),%rax
mov    (%rax),%edx
lea    0xdac(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    13c3 <getOpts+0x243>
mov    $0x0,%al
call   1070 <usage@plt>
mov    0x2bef(%rip),%rax
mov    (%rax),%edi
lea    0xdab(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x0,%al
call   1070 <usage@plt>
cmpw   $0x0,-0x30(%rbp)
je     1402 <getOpts+0x282>
mov    -0x18(%rbp),%rax
movl   $0x2,(%rax)
jmp    140c <getOpts+0x28c>
movswl -0x2e(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
jmp    1237 <getOpts+0xb7>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getOpts>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rcx,0x10(%rsp)
mov    %rdx,%r13
mov    %rsi,%rbp
mov    %edi,%ebx
mov    0x2e56(%rip),%rax
movl   $0x0,(%rax)
lea    0xf31(%rip),%rsi
mov    %r8,0x18(%rsp)
mov    %r8,%rdi
call   1030 <strcpy@plt>
cmp    $0x2,%ebx
jne    11df <getOpts+0x5f>
mov    0x8(%rbp),%rdi
lea    0xf19(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    11e1 <getOpts+0x61>
xor    %eax,%eax
call   1070 <usage@plt>
jmp    11e1 <getOpts+0x61>
jg     11ff <getOpts+0x7f>
mov    0x2dd8(%rip),%rax
mov    (%rax),%edi
lea    0xef7(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
xor    %eax,%eax
call   1070 <usage@plt>
mov    0x2de2(%rip),%rax
mov    (%rax),%edx
add    $0xffffffff,%edx
lea    0xeea(%rip),%rsi
lea    0x20(%rsp),%rdi
call   10a0 <sprintf@plt>
lea    0xddd(%rip),%r15
xor    %r14d,%r14d
xor    %r12d,%r12d
mov    %ebx,0xc(%rsp)
jmp    1297 <getOpts+0x117>
mov    0x2d8a(%rip),%rax
mov    (%rax),%edi
lea    0xeeb(%rip),%rsi
mov    $0x70,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %rbx,%r13
mov    0xc(%rsp),%ebx
xor    %eax,%eax
call   1070 <usage@plt>
mov    0x2d60(%rip),%rax
mov    (%rax),%edi
lea    0xf1c(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
xor    %eax,%eax
call   1070 <usage@plt>
mov    %r14d,%eax
mov    %eax,%r14d
test   %r12w,%r12w
mov    $0x2,%eax
cmove  %r14d,%eax
movzwl %ax,%ecx
mov    %r12d,%eax
mov    %ecx,0x0(%r13)
mov    %eax,%r12d
mov    %ebx,%edi
mov    %rbp,%rsi
lea    0xe5f(%rip),%rdx
call   1090 <getopt@plt>
lea    -0x3f(%rax),%ecx
cmp    $0x37,%ecx
ja     137e <getOpts+0x1fe>
mov    $0x1,%ax
movslq (%r15,%rcx,4),%rdx
add    %r15,%rdx
mov    $0x2,%ecx
jmp    *%rdx
mov    %r13,%rbx
mov    0x2d08(%rip),%rax
mov    (%rax),%r13d
cmp    $0x70,%r13d
je     122f <getOpts+0xaf>
mov    %r13d,%edi
call   1080 <isprint@plt>
mov    0x2cd4(%rip),%rcx
mov    (%rcx),%edi
test   %eax,%eax
je     1389 <getOpts+0x209>
lea    0xe4f(%rip),%rsi
jmp    1390 <getOpts+0x210>
mov    0x2cbf(%rip),%rax
mov    (%rax),%rdi
lea    0x20(%rsp),%rsi
mov    0x10(%rsp),%rdx
call   1060 <sscanf@plt>
cmp    $0x1,%eax
je     1277 <getOpts+0xf7>
mov    0x2c95(%rip),%rax
mov    (%rax),%edi
lea    0xdd5(%rip),%rsi
mov    $0x66,%edx
jmp    1372 <getOpts+0x1f2>
mov    0x2c86(%rip),%rax
mov    (%rax),%rdi
lea    0x20(%rsp),%rsi
mov    0x18(%rsp),%rdx
call   1060 <sscanf@plt>
cmp    $0x1,%eax
je     1277 <getOpts+0xf7>
mov    0x2c5c(%rip),%rax
mov    (%rax),%edi
lea    0xd9c(%rip),%rsi
mov    $0x6f,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    1270 <getOpts+0xf0>
cmp    $0xffffffff,%eax
jne    1259 <getOpts+0xd9>
jmp    1398 <getOpts+0x218>
lea    0xdd3(%rip),%rsi
mov    %r13d,%edx
jmp    1244 <getOpts+0xc4>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@opterr = external global i32
@.str = [5 x i8] c"/tmp\00"
@.str.1 = [3 x i8] c"-h\00"
@stderr = global i32 0
@.str.2 = [20 x i8] c"Missing parameters\0A\00"
@.str.3 = [6 x i8] c"%%%ds\00"
@PATH_MAX = global i32 0
@.str.4 = [7 x i8] c"vdo:f:\00"
@optarg = external global i8*
@.str.5 = [33 x i8] c"Option -%c requires an argument\0A\00"
@optopt = external global i32
@.str.6 = [34 x i8] c"Option -%c requires an argument.\0A\00"
@.str.7 = [23 x i8] c"Unknown option `-%c'.\0A\00"
@.str.8 = [34 x i8] c"Unknown option character `\\x%x'.\0A\00"
@.str.9 = [65 x i8] c"Wrong command line arguments, probably a parameter without data\0A\00"
define void @getOpts(i32 %0, i8** %1, i32* %2, i8* %3, i8* %4) {
%6 = alloca i32
%7 = alloca i8**
%8 = alloca i32*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i16
%13 = alloca i16
%14 = alloca [20 x i8]
store i32 %0, i32* %6
store i8** %1, i8*** %7
store i32* %2, i32** %8
store i8* %3, i8** %9
store i8* %4, i8** %10
store i32 0, i32* @opterr
store i16 0, i16* %12
store i16 0, i16* %13
%15 = load i8*, i8** %10
%16 = call i32 @strcpy(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%17 = load i32, i32* %6
%18 = icmp eq i32 %17, 2
br i1 %18, label %19, label %27
19: ; preds = %5
%20 = load i8**, i8*** %7
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call i64 @strcmp(i8* %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %19
%26 = call i32 (...) @usage()
br label %27
27: ; preds = %25, %19, %5
%28 = load i32, i32* %6
%29 = icmp slt i32 %28, 3
br i1 %29, label %30, label %34
30: ; preds = %27
%31 = load i32, i32* @stderr
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%33 = call i32 (...) @usage()
br label %34
34: ; preds = %30, %27
%35 = getelementptr inbounds [20 x i8], [20 x i8]* %14, i64 0, i64 0
%36 = load i32, i32* @PATH_MAX
%37 = sub nsw i32 %36, 1
%38 = call i32 @sprintf(i8* %35, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %37)
br label %39
39: ; preds = %109, %34
%40 = load i32, i32* %6
%41 = load i8**, i8*** %7
%42 = call i32 @getopt(i32 %40, i8** %41, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
store i32 %42, i32* %11
%43 = icmp ne i32 %42, -1
br i1 %43, label %44, label %110
44: ; preds = %39
%45 = load i32, i32* %11
switch i32 %45, label %96 [
i32 104, label %46
i32 118, label %48
i32 100, label %49
i32 111, label %50
i32 102, label %62
i32 63, label %74
]
46: ; preds = %44
%47 = call i32 (...) @usage()
br label %100
48: ; preds = %44
store i16 1, i16* %12
br label %100
49: ; preds = %44
store i16 1, i16* %13
br label %100
50: ; preds = %44
%51 = load i8*, i8** @optarg
%52 = getelementptr inbounds [20 x i8], [20 x i8]* %14, i64 0, i64 0
%53 = load i8*, i8** %10
%54 = call i32 @sscanf(i8* %51, i8* %52, i8* %53)
%55 = icmp ne i32 %54, 1
br i1 %55, label %56, label %61
56: ; preds = %50
%57 = load i32, i32* @stderr
%58 = load i32, i32* %11
%59 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i32 %58)
%60 = call i32 (...) @usage()
br label %61
61: ; preds = %56, %50
br label %100
62: ; preds = %44
%63 = load i8*, i8** @optarg
%64 = getelementptr inbounds [20 x i8], [20 x i8]* %14, i64 0, i64 0
%65 = load i8*, i8** %9
%66 = call i32 @sscanf(i8* %63, i8* %64, i8* %65)
%67 = icmp ne i32 %66, 1
br i1 %67, label %68, label %73
68: ; preds = %62
%69 = load i32, i32* @stderr
%70 = load i32, i32* %11
%71 = call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i32 %70)
%72 = call i32 (...) @usage()
br label %73
73: ; preds = %68, %62
br label %100
74: ; preds = %44
%75 = load i32, i32* @optopt
%76 = icmp eq i32 %75, 112
br i1 %76, label %77, label %81
77: ; preds = %74
%78 = load i32, i32* @stderr
%79 = load i32, i32* @optopt
%80 = call i32 (i32, i8*, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %79)
br label %94
81: ; preds = %74
%82 = load i32, i32* @optopt
%83 = call i32 @isprint(i32 %82)
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %89
85: ; preds = %81
%86 = load i32, i32* @stderr
%87 = load i32, i32* @optopt
%88 = call i32 (i32, i8*, ...) @fprintf(i32 %86, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %87)
br label %93
89: ; preds = %81
%90 = load i32, i32* @stderr
%91 = load i32, i32* @optopt
%92 = call i32 (i32, i8*, ...) @fprintf(i32 %90, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i32 %91)
br label %93
93: ; preds = %89, %85
br label %94
94: ; preds = %93, %77
%95 = call i32 (...) @usage()
br label %96
96: ; preds = %44, %94
%97 = load i32, i32* @stderr
%98 = call i32 (i32, i8*, ...) @fprintf(i32 %97, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.9, i64 0, i64 0))
%99 = call i32 (...) @usage()
br label %100
100: ; preds = %96, %73, %61, %49, %48, %46
%101 = load i16, i16* %13
%102 = icmp ne i16 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %100
%104 = load i32*, i32** %8
store i32 2, i32* %104
br label %109
105: ; preds = %100
%106 = load i16, i16* %12
%107 = sext i16 %106 to i32
%108 = load i32*, i32** %8
store i32 %107, i32* %108
br label %109
109: ; preds = %105, %103
br label %39
110: ; preds = %39
ret void
}

LLVM IR (-O2):
@opterr = external global i32
@.str = [5 x i8] c"/tmp\00"
@.str.1 = [3 x i8] c"-h\00"
@stderr = global i32 0
@.str.2 = [20 x i8] c"Missing parameters\0A\00"
@.str.3 = [6 x i8] c"%%%ds\00"
@PATH_MAX = global i32 0
@.str.4 = [7 x i8] c"vdo:f:\00"
@optarg = external global i8*
@.str.5 = [33 x i8] c"Option -%c requires an argument\0A\00"
@optopt = external global i32
@.str.6 = [34 x i8] c"Option -%c requires an argument.\0A\00"
@.str.7 = [23 x i8] c"Unknown option `-%c'.\0A\00"
@.str.8 = [34 x i8] c"Unknown option character `\\x%x'.\0A\00"
@.str.9 = [65 x i8] c"Wrong command line arguments, probably a parameter without data\0A\00"
define void @getOpts(i32 %0, i8** %1, i32* nocapture writeonly %2, i8* %3, i8* %4) {
%6 = alloca [20 x i8]
store i32 0, i32* @opterr
%7 = tail call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i32 %0, 2
br i1 %8, label %9, label %16
9: ; preds = %5
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %9
%15 = tail call i32 (...) @usage()
br label %18
16: ; preds = %5
%17 = icmp slt i32 %0, 3
br i1 %17, label %18, label %22
18: ; preds = %9, %14, %16
%19 = load i32, i32* @stderr
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%21 = tail call i32 (...) @usage()
br label %22
22: ; preds = %18, %16
%23 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%24 = load i32, i32* @PATH_MAX
%25 = add nsw i32 %24, -1
%26 = call i32 @sprintf(i8* %23, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %25)
br label %27
27: ; preds = %71, %22
%28 = phi i16 [ 0, %22 ], [ %73, %71 ]
%29 = phi i16 [ 0, %22 ], [ %72, %71 ]
%30 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
switch i32 %30, label %61 [
i32 -1, label %75
i32 104, label %64
i32 118, label %66
i32 100, label %71
i32 111, label %31
i32 102, label %38
i32 63, label %45
]
31: ; preds = %27
%32 = load i8*, i8** @optarg
%33 = call i32 @sscanf(i8* %32, i8* %23, i8* %4)
%34 = icmp eq i32 %33, 1
br i1 %34, label %66, label %35
35: ; preds = %31
%36 = load i32, i32* @stderr
%37 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i32 111)
br label %64
38: ; preds = %27
%39 = load i8*, i8** @optarg
%40 = call i32 @sscanf(i8* %39, i8* %23, i8* %3)
%41 = icmp eq i32 %40, 1
br i1 %41, label %66, label %42
42: ; preds = %38
%43 = load i32, i32* @stderr
%44 = tail call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i32 102)
br label %64
45: ; preds = %27
%46 = load i32, i32* @optopt
%47 = icmp eq i32 %46, 112
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load i32, i32* @stderr
%50 = tail call i32 (i32, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 112)
br label %59
51: ; preds = %45
%52 = tail call i32 @isprint(i32 %46)
%53 = icmp eq i32 %52, 0
%54 = load i32, i32* @stderr
br i1 %53, label %57, label %55
55: ; preds = %51
%56 = tail call i32 (i32, i8*, ...) @fprintf(i32 %54, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %46)
br label %59
57: ; preds = %51
%58 = tail call i32 (i32, i8*, ...) @fprintf(i32 %54, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i32 %46)
br label %59
59: ; preds = %55, %57, %48
%60 = tail call i32 (...) @usage()
br label %61
61: ; preds = %27, %59
%62 = load i32, i32* @stderr
%63 = tail call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.9, i64 0, i64 0))
br label %64
64: ; preds = %27, %61, %35, %42
%65 = tail call i32 (...) @usage()
br label %66
66: ; preds = %64, %27, %38, %31
%67 = phi i16 [ %28, %38 ], [ %28, %31 ], [ 1, %27 ], [ %28, %64 ]
%68 = icmp eq i16 %29, 0
%69 = select i1 %68, i16 %67, i16 2
%70 = zext i16 %69 to i32
br label %71
71: ; preds = %66, %27
%72 = phi i16 [ 1, %27 ], [ %29, %66 ]
%73 = phi i16 [ %28, %27 ], [ %67, %66 ]
%74 = phi i32 [ 2, %27 ], [ %70, %66 ]
store i32 %74, i32* %2
br label %27
75: ; preds = %27
ret void
}