#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int atoi(char *);
int /*<<< orphan*/ display_help(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
char getopt(int, char **, char *);
char *optarg;
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stderr;
void get_args(int argc, char **argv, FILE **i, int *w, int *h, char **t, int *v,
              int *f, int *nr) {
  char opt;
  int n;
  char *fn;
  *i = NULL;
  *w = 15;
  *h = 15;
  *t = "Crossword Puzzle:";
  *v = 0;
  *f = 0;
  if (1 == argc) {
    printf("This program needs arguments...\n");
    display_help(argv[0]);
    exit(EXIT_FAILURE);
  }
  while (-1 != (opt = getopt(argc, argv, "i:t:W:H:n:vlwh"))) {
    switch (opt) {
    case 'i':
      fn = optarg;
      if (NULL == (*i = fopen(fn, "r"))) {
        fprintf(stderr, "Cannot open the input file (may not exist)...");
        exit(EXIT_FAILURE);
      }
      break;
    case 't':
      *t = optarg;
      break;
    case 'W':
      n = atoi(optarg);
      if ((n < 6) || (n > 30)) {
        fprintf(stderr, "The width of the grid must be between %i and %i...\n",
                6, 30);
        exit(EXIT_FAILURE);
      }
      *w = n;
      break;
    case 'H':
      n = atoi(optarg);
      if ((n < 6) || (n > 30)) {
        fprintf(stderr, "The height of the grid must be between %i and %i...\n",
                6, 30);
        exit(EXIT_FAILURE);
      }
      *h = n;
      break;
    case 'n':
      n = atoi(optarg);
      if (n < 1) {
        fprintf(stderr, "The algorithm must run at least once...\n");
        exit(EXIT_FAILURE);
      }
      *nr = n;
      break;
    case 'v':
      *v = 1;
      break;
    case 'l':
      *f = 1;
      break;
    case 'w':
      *f = 2;
      break;
    case 'h':
      display_help(argv[0]);
      exit(EXIT_SUCCESS);
    default:
      fprintf(stderr, "Unrecognized argument...\n");
      exit(EXIT_FAILURE);
    }
  }
  if (NULL == *i) {
    fprintf(stderr, "An input file should be specified...\n");
    exit(EXIT_FAILURE);
  }
}


x86 assembly (clang, -O0):
<get_args>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
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)
mov    -0x18(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movl   $0xf,(%rax)
mov    -0x28(%rbp),%rax
movl   $0xf,(%rax)
mov    -0x30(%rbp),%rax
lea    0xefb(%rip),%rcx
mov    %rcx,(%rax)
mov    0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    $0x1,%eax
cmp    -0x4(%rbp),%eax
jne    1210 <get_args+0xa0>
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1040 <display_help@plt>
mov    0x2dc7(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
jmp    1215 <get_args+0xa5>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xed0(%rip),%rdx
call   1070 <getopt@plt>
mov    %al,-0x31(%rbp)
movsbl %al,%ecx
mov    $0xffffffff,%eax
cmp    %ecx,%eax
je     145e <get_args+0x2ee>
movsbl -0x31(%rbp),%eax
add    $0xffffffb8,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0x2f,%eax
ja     1434 <get_args+0x2c4>
mov    -0x48(%rbp),%rax
lea    0xda4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2d8c(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
lea    0xe84(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
xor    %eax,%eax
cmp    %rcx,%rax
jne    12bd <get_args+0x14d>
mov    0x2d39(%rip),%rax
mov    (%rax),%edi
lea    0xe5c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2d1a(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
jmp    1459 <get_args+0x2e9>
mov    0x2d2f(%rip),%rax
mov    (%rax),%rcx
mov    -0x30(%rbp),%rax
mov    %rcx,(%rax)
jmp    1459 <get_args+0x2e9>
mov    0x2d19(%rip),%rax
mov    (%rax),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x6,-0x38(%rbp)
jl     12fe <get_args+0x18e>
cmpl   $0x1e,-0x38(%rbp)
jle    132d <get_args+0x1bd>
mov    0x2cd3(%rip),%rax
mov    (%rax),%edi
lea    0xe24(%rip),%rsi
mov    $0x6,%edx
mov    $0x1e,%ecx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2caa(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
mov    -0x38(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
jmp    1459 <get_args+0x2e9>
mov    0x2cb6(%rip),%rax
mov    (%rax),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x6,-0x38(%rbp)
jl     1361 <get_args+0x1f1>
cmpl   $0x1e,-0x38(%rbp)
jle    1390 <get_args+0x220>
mov    0x2c70(%rip),%rax
mov    (%rax),%edi
lea    0xdf5(%rip),%rsi
mov    $0x6,%edx
mov    $0x1e,%ecx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2c47(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
mov    -0x38(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
jmp    1459 <get_args+0x2e9>
mov    0x2c53(%rip),%rax
mov    (%rax),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x1,-0x38(%rbp)
jge    13df <get_args+0x26f>
mov    0x2c17(%rip),%rax
mov    (%rax),%edi
lea    0xdd1(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2bf8(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
mov    -0x38(%rbp),%ecx
mov    0x20(%rbp),%rax
mov    %ecx,(%rax)
jmp    1459 <get_args+0x2e9>
mov    0x10(%rbp),%rax
movl   $0x1,(%rax)
jmp    1459 <get_args+0x2e9>
mov    0x18(%rbp),%rax
movl   $0x1,(%rax)
jmp    1459 <get_args+0x2e9>
mov    0x18(%rbp),%rax
movl   $0x2,(%rax)
jmp    1459 <get_args+0x2e9>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1040 <display_help@plt>
mov    0x2b9b(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
mov    0x2b9d(%rip),%rax
mov    (%rax),%edi
lea    0xd80(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2b7e(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
jmp    1215 <get_args+0xa5>
mov    -0x18(%rbp),%rcx
xor    %eax,%eax
cmp    (%rcx),%rax
jne    1492 <get_args+0x322>
mov    0x2b64(%rip),%rax
mov    (%rax),%edi
lea    0xd61(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2b45(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_args>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdx,%r12
mov    %rsi,%rbx
mov    0x58(%rsp),%rdx
mov    0x50(%rsp),%rsi
movq   $0x0,(%r12)
mov    %rcx,(%rsp)
movl   $0xf,(%rcx)
mov    %r8,0x8(%rsp)
movl   $0xf,(%r8)
lea    0xf0d(%rip),%rax
mov    %r9,0x10(%rsp)
mov    %rax,(%r9)
movl   $0x0,(%rsi)
movl   $0x0,(%rdx)
cmp    $0x1,%edi
je     137f <get_args+0x20f>
mov    %edi,%ebp
lea    0xef9(%rip),%rdx
mov    %rbx,%rsi
call   1070 <getopt@plt>
cmp    $0xff,%al
je     12e4 <get_args+0x174>
lea    0xe10(%rip),%r15
mov    0x2e01(%rip),%r13
lea    0xed4(%rip),%r14
jmp    1225 <get_args+0xb5>
mov    0x0(%r13),%rax
mov    0x10(%rsp),%rcx
mov    %rax,(%rcx)
nopl   0x0(%rax)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1070 <getopt@plt>
cmp    $0xff,%al
je     12e4 <get_args+0x174>
movsbl %al,%eax
add    $0xffffffb8,%eax
cmp    $0x2f,%eax
ja     134a <get_args+0x1da>
movslq (%r15,%rax,4),%rax
add    %r15,%rax
jmp    *%rax
mov    0x0(%r13),%rdi
call   1080 <atoi@plt>
lea    -0x1f(%rax),%ecx
cmp    $0xffffffe6,%ecx
jbe    135c <get_args+0x1ec>
mov    0x8(%rsp),%rcx
mov    %eax,(%rcx)
jmp    1210 <get_args+0xa0>
mov    0x0(%r13),%rdi
call   1080 <atoi@plt>
lea    -0x1f(%rax),%ecx
cmp    $0xffffffe6,%ecx
jbe    1314 <get_args+0x1a4>
mov    (%rsp),%rcx
mov    %eax,(%rcx)
jmp    1210 <get_args+0xa0>
mov    0x0(%r13),%rdi
call   1080 <atoi@plt>
test   %eax,%eax
jle    1326 <get_args+0x1b6>
mov    0x60(%rsp),%rcx
mov    %eax,(%rcx)
jmp    1210 <get_args+0xa0>
mov    0x50(%rsp),%rax
movl   $0x1,(%rax)
jmp    1210 <get_args+0xa0>
mov    0x58(%rsp),%rax
movl   $0x2,(%rax)
jmp    1210 <get_args+0xa0>
mov    0x0(%r13),%rdi
lea    0xe21(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,(%r12)
test   %rax,%rax
jne    1210 <get_args+0xa0>
jmp    1338 <get_args+0x1c8>
mov    0x58(%rsp),%rax
movl   $0x1,(%rax)
jmp    1210 <get_args+0xa0>
cmpq   $0x0,(%r12)
je     1395 <get_args+0x225>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%rbx),%rdi
call   1040 <display_help@plt>
mov    0x2cbb(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
mov    0x2cbd(%rip),%rax
mov    (%rax),%edi
lea    0xded(%rip),%rsi
jmp    136c <get_args+0x1fc>
mov    0x2cab(%rip),%rax
mov    (%rax),%edi
lea    0xe44(%rip),%rsi
jmp    13a5 <get_args+0x235>
mov    0x2c99(%rip),%rax
mov    (%rax),%edi
lea    0xd9b(%rip),%rsi
jmp    13a5 <get_args+0x235>
mov    0x2c87(%rip),%rax
mov    (%rax),%edi
lea    0xe49(%rip),%rsi
jmp    13a5 <get_args+0x235>
mov    0x2c75(%rip),%rax
mov    (%rax),%edi
lea    0xdd9(%rip),%rsi
mov    $0x6,%edx
mov    $0x1e,%ecx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    13ac <get_args+0x23c>
lea    0xe5d(%rip),%rdi
call   1030 <puts@plt>
mov    (%rbx),%rdi
call   1040 <display_help@plt>
jmp    13ac <get_args+0x23c>
mov    0x2c3c(%rip),%rax
mov    (%rax),%edi
lea    0xe18(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x2c1d(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"Crossword Puzzle:\00"
@.str.1 = [33 x i8] c"This program needs arguments...\0A\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [15 x i8] c"i:t:W:H:n:vlwh\00"
@optarg = global i8* null
@.str.3 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.4 = [46 x i8] c"Cannot open the input file (may not exist)...\00"
@.str.5 = [52 x i8] c"The width of the grid must be between %i and %i...\0A\00"
@.str.6 = [53 x i8] c"The height of the grid must be between %i and %i...\0A\00"
@.str.7 = [41 x i8] c"The algorithm must run at least once...\0A\00"
@EXIT_SUCCESS = global i32 0
@.str.8 = [26 x i8] c"Unrecognized argument...\0A\00"
@.str.9 = [38 x i8] c"An input file should be specified...\0A\00"
define void @get_args(i32 %0, i8** %1, i32** %2, i32* %3, i32* %4, i8** %5, i32* %6, i32* %7, i32* %8) {
%10 = alloca i32
%11 = alloca i8**
%12 = alloca i32**
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i8**
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca i32*
%19 = alloca i8
%20 = alloca i32
%21 = alloca i8*
store i32 %0, i32* %10
store i8** %1, i8*** %11
store i32** %2, i32*** %12
store i32* %3, i32** %13
store i32* %4, i32** %14
store i8** %5, i8*** %15
store i32* %6, i32** %16
store i32* %7, i32** %17
store i32* %8, i32** %18
%22 = load i32**, i32*** %12
store i32* null, i32** %22
%23 = load i32*, i32** %13
store i32 15, i32* %23
%24 = load i32*, i32** %14
store i32 15, i32* %24
%25 = load i8**, i8*** %15
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8** %25
%26 = load i32*, i32** %16
store i32 0, i32* %26
%27 = load i32*, i32** %17
store i32 0, i32* %27
%28 = load i32, i32* %10
%29 = icmp eq i32 1, %28
br i1 %29, label %30, label %38
30: ; preds = %9
%31 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%32 = load i8**, i8*** %11
%33 = getelementptr inbounds i8*, i8** %32, i64 0
%34 = load i8*, i8** %33
%35 = call i32 @display_help(i8* %34)
%36 = load i32, i32* @EXIT_FAILURE
%37 = call i32 @exit(i32 %36)
unreachable
38: ; preds = %9
br label %39
39: ; preds = %126, %38
%40 = load i32, i32* %10
%41 = load i8**, i8*** %11
%42 = call signext i8 @getopt(i32 %40, i8** %41, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
store i8 %42, i8* %19
%43 = sext i8 %42 to i32
%44 = icmp ne i32 -1, %43
br i1 %44, label %45, label %127
45: ; preds = %39
%46 = load i8, i8* %19
%47 = sext i8 %46 to i32
switch i32 %47, label %121 [
i32 105, label %48
i32 116, label %60
i32 87, label %63
i32 72, label %79
i32 110, label %95
i32 118, label %108
i32 108, label %110
i32 119, label %112
i32 104, label %114
]
48: ; preds = %45
%49 = load i8*, i8** @optarg
store i8* %49, i8** %21
%50 = load i8*, i8** %21
%51 = call i32* @fopen(i8* %50, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%52 = load i32**, i32*** %12
store i32* %51, i32** %52
%53 = icmp eq i32* null, %51
br i1 %53, label %54, label %59
54: ; preds = %48
%55 = load i32, i32* @stderr
%56 = call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0))
%57 = load i32, i32* @EXIT_FAILURE
%58 = call i32 @exit(i32 %57)
unreachable
59: ; preds = %48
br label %126
60: ; preds = %45
%61 = load i8*, i8** @optarg
%62 = load i8**, i8*** %15
store i8* %61, i8** %62
br label %126
63: ; preds = %45
%64 = load i8*, i8** @optarg
%65 = call i32 @atoi(i8* %64)
store i32 %65, i32* %20
%66 = load i32, i32* %20
%67 = icmp slt i32 %66, 6
br i1 %67, label %71, label %68
68: ; preds = %63
%69 = load i32, i32* %20
%70 = icmp sgt i32 %69, 30
br i1 %70, label %71, label %76
71: ; preds = %68, %63
%72 = load i32, i32* @stderr
%73 = call i32 (i32, i8*, ...) @fprintf(i32 %72, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0), i32 6, i32 30)
%74 = load i32, i32* @EXIT_FAILURE
%75 = call i32 @exit(i32 %74)
unreachable
76: ; preds = %68
%77 = load i32, i32* %20
%78 = load i32*, i32** %13
store i32 %77, i32* %78
br label %126
79: ; preds = %45
%80 = load i8*, i8** @optarg
%81 = call i32 @atoi(i8* %80)
store i32 %81, i32* %20
%82 = load i32, i32* %20
%83 = icmp slt i32 %82, 6
br i1 %83, label %87, label %84
84: ; preds = %79
%85 = load i32, i32* %20
%86 = icmp sgt i32 %85, 30
br i1 %86, label %87, label %92
87: ; preds = %84, %79
%88 = load i32, i32* @stderr
%89 = call i32 (i32, i8*, ...) @fprintf(i32 %88, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0), i32 6, i32 30)
%90 = load i32, i32* @EXIT_FAILURE
%91 = call i32 @exit(i32 %90)
unreachable
92: ; preds = %84
%93 = load i32, i32* %20
%94 = load i32*, i32** %14
store i32 %93, i32* %94
br label %126
95: ; preds = %45
%96 = load i8*, i8** @optarg
%97 = call i32 @atoi(i8* %96)
store i32 %97, i32* %20
%98 = load i32, i32* %20
%99 = icmp slt i32 %98, 1
br i1 %99, label %100, label %105
100: ; preds = %95
%101 = load i32, i32* @stderr
%102 = call i32 (i32, i8*, ...) @fprintf(i32 %101, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%103 = load i32, i32* @EXIT_FAILURE
%104 = call i32 @exit(i32 %103)
unreachable
105: ; preds = %95
%106 = load i32, i32* %20
%107 = load i32*, i32** %18
store i32 %106, i32* %107
br label %126
108: ; preds = %45
%109 = load i32*, i32** %16
store i32 1, i32* %109
br label %126
110: ; preds = %45
%111 = load i32*, i32** %17
store i32 1, i32* %111
br label %126
112: ; preds = %45
%113 = load i32*, i32** %17
store i32 2, i32* %113
br label %126
114: ; preds = %45
%115 = load i8**, i8*** %11
%116 = getelementptr inbounds i8*, i8** %115, i64 0
%117 = load i8*, i8** %116
%118 = call i32 @display_help(i8* %117)
%119 = load i32, i32* @EXIT_SUCCESS
%120 = call i32 @exit(i32 %119)
unreachable
121: ; preds = %45
%122 = load i32, i32* @stderr
%123 = call i32 (i32, i8*, ...) @fprintf(i32 %122, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0))
%124 = load i32, i32* @EXIT_FAILURE
%125 = call i32 @exit(i32 %124)
unreachable
126: ; preds = %112, %110, %108, %105, %92, %76, %60, %59
br label %39
127: ; preds = %39
%128 = load i32**, i32*** %12
%129 = load i32*, i32** %128
%130 = icmp eq i32* null, %129
br i1 %130, label %131, label %136
131: ; preds = %127
%132 = load i32, i32* @stderr
%133 = call i32 (i32, i8*, ...) @fprintf(i32 %132, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
%134 = load i32, i32* @EXIT_FAILURE
%135 = call i32 @exit(i32 %134)
unreachable
136: ; preds = %127
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"Crossword Puzzle:\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [15 x i8] c"i:t:W:H:n:vlwh\00"
@optarg = global i8* null
@.str.3 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.4 = [46 x i8] c"Cannot open the input file (may not exist)...\00"
@.str.5 = [52 x i8] c"The width of the grid must be between %i and %i...\0A\00"
@.str.6 = [53 x i8] c"The height of the grid must be between %i and %i...\0A\00"
@.str.7 = [41 x i8] c"The algorithm must run at least once...\0A\00"
@EXIT_SUCCESS = global i32 0
@.str.8 = [26 x i8] c"Unrecognized argument...\0A\00"
@.str.9 = [38 x i8] c"An input file should be specified...\0A\00"
@str = [32 x i8] c"This program needs arguments...\00"
define void @get_args(i32 %0, i8** %1, i32** nocapture %2, i32* nocapture writeonly %3, i32* nocapture writeonly %4, i8** nocapture writeonly %5, i32* nocapture writeonly %6, i32* nocapture writeonly %7, i32* nocapture writeonly %8) {
store i32* null, i32** %2
store i32 15, i32* %3
store i32 15, i32* %4
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8** %5
store i32 0, i32* %6
store i32 0, i32* %7
%10 = icmp eq i32 %0, 1
br i1 %10, label %14, label %11
11: ; preds = %9
%12 = tail call signext i8 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%13 = icmp eq i8 %12, -1
br i1 %13, label %82, label %20
14: ; preds = %9
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
%16 = load i8*, i8** %1
%17 = tail call i32 @display_help(i8* %16)
%18 = load i32, i32* @EXIT_FAILURE
%19 = tail call i32 @exit(i32 %18)
unreachable
20: ; preds = %11, %79
%21 = phi i8 [ %80, %79 ], [ %12, %11 ]
%22 = sext i8 %21 to i32
switch i32 %22, label %74 [
i32 105, label %23
i32 116, label %32
i32 87, label %34
i32 72, label %45
i32 110, label %56
i32 118, label %66
i32 108, label %67
i32 119, label %68
i32 104, label %69
]
23: ; preds = %20
%24 = load i8*, i8** @optarg
%25 = tail call i32* @fopen(i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %25, i32** %2
%26 = icmp eq i32* %25, null
br i1 %26, label %27, label %79
27: ; preds = %23
%28 = load i32, i32* @stderr
%29 = tail call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0))
%30 = load i32, i32* @EXIT_FAILURE
%31 = tail call i32 @exit(i32 %30)
unreachable
32: ; preds = %20
%33 = load i8*, i8** @optarg
store i8* %33, i8** %5
br label %79
34: ; preds = %20
%35 = load i8*, i8** @optarg
%36 = tail call i32 @atoi(i8* %35)
%37 = add i32 %36, -31
%38 = icmp ult i32 %37, -25
br i1 %38, label %39, label %44
39: ; preds = %34
%40 = load i32, i32* @stderr
%41 = tail call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0), i32 6, i32 30)
%42 = load i32, i32* @EXIT_FAILURE
%43 = tail call i32 @exit(i32 %42)
unreachable
44: ; preds = %34
store i32 %36, i32* %3
br label %79
45: ; preds = %20
%46 = load i8*, i8** @optarg
%47 = tail call i32 @atoi(i8* %46)
%48 = add i32 %47, -31
%49 = icmp ult i32 %48, -25
br i1 %49, label %50, label %55
50: ; preds = %45
%51 = load i32, i32* @stderr
%52 = tail call i32 (i32, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0), i32 6, i32 30)
%53 = load i32, i32* @EXIT_FAILURE
%54 = tail call i32 @exit(i32 %53)
unreachable
55: ; preds = %45
store i32 %47, i32* %4
br label %79
56: ; preds = %20
%57 = load i8*, i8** @optarg
%58 = tail call i32 @atoi(i8* %57)
%59 = icmp slt i32 %58, 1
br i1 %59, label %60, label %65
60: ; preds = %56
%61 = load i32, i32* @stderr
%62 = tail call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%63 = load i32, i32* @EXIT_FAILURE
%64 = tail call i32 @exit(i32 %63)
unreachable
65: ; preds = %56
store i32 %58, i32* %8
br label %79
66: ; preds = %20
store i32 1, i32* %6
br label %79
67: ; preds = %20
store i32 1, i32* %7
br label %79
68: ; preds = %20
store i32 2, i32* %7
br label %79
69: ; preds = %20
%70 = load i8*, i8** %1
%71 = tail call i32 @display_help(i8* %70)
%72 = load i32, i32* @EXIT_SUCCESS
%73 = tail call i32 @exit(i32 %72)
unreachable
74: ; preds = %20
%75 = load i32, i32* @stderr
%76 = tail call i32 (i32, i8*, ...) @fprintf(i32 %75, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0))
%77 = load i32, i32* @EXIT_FAILURE
%78 = tail call i32 @exit(i32 %77)
unreachable
79: ; preds = %23, %68, %67, %66, %65, %55, %44, %32
%80 = tail call signext i8 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%81 = icmp eq i8 %80, -1
br i1 %81, label %82, label %20
82: ; preds = %79, %11
%83 = load i32*, i32** %2
%84 = icmp eq i32* %83, null
br i1 %84, label %85, label %90
85: ; preds = %82
%86 = load i32, i32* @stderr
%87 = tail call i32 (i32, i8*, ...) @fprintf(i32 %86, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
%88 = load i32, i32* @EXIT_FAILURE
%89 = tail call i32 @exit(i32 %88)
unreachable
90: ; preds = %82
ret void
}