#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 Options {
  int dummy;
};
typedef int /*<<< orphan*/ argument;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ ParseCommandLine(int, char **, struct Options *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ fclose(int /*<<< orphan*/ *const);
scalar_t__ feof(int /*<<< orphan*/ *const);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *const);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *, ...);
char **malloc(int);
char **realloc(char **, int);
int /*<<< orphan*/ stderr;
char *strdup(char *);
size_t strlen(char *);
void ParseOptionsFile(const char *filename, struct Options *opt) {
  FILE *const options_file = fopen(filename, "rb");
  if (options_file == NULL) {
    {
      fprintf(stderr,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/BobBuildTool/bob/refs/heads/master/"
              "src/namespace-sandbox/namespace-sandbox.c"
              ":"
              "191"
              ": "
              "opening argument file %s failed\n",
              filename);
      exit(EXIT_FAILURE);
    };
  }
  size_t sub_argv_size = 20;
  char **sub_argv = malloc(sizeof(char *) * sub_argv_size);
  sub_argv[0] = "";
  int sub_argc = 1;
  bool done = false;
  while (!done) {
    char argument[8192];
    if (fgets(argument, sizeof(argument), options_file) == NULL) {
      if (feof(options_file)) {
        done = true;
        continue;
      } else {
        {
          fprintf(stderr,
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/BobBuildTool/bob/refs/"
                  "heads/master/src/namespace-sandbox/namespace-sandbox.c"
                  ":"
                  "212"
                  ": "
                  "reading from argument file %s failed\n",
                  filename);
          exit(EXIT_FAILURE);
        };
      }
    }
    const size_t length = strlen(argument);
    if (length == 0)
      continue;
    if (length == sizeof(argument)) {
      {
        fprintf(stderr,
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/BobBuildTool/bob/refs/heads/"
                "master/src/namespace-sandbox/namespace-sandbox.c"
                ":"
                "218"
                ": "
                "argument from file %s is too long (> %zu)\n",
                filename, sizeof(argument));
        exit(EXIT_FAILURE);
      };
    }
    if (argument[length - 1] == '\n') {
      argument[length - 1] = '\0';
    } else {
      done = true;
    }
    if (sub_argv_size == sub_argc + 1) {
      sub_argv_size *= 2;
      sub_argv = realloc(sub_argv, sizeof(char *) * sub_argv_size);
    }
    sub_argv[sub_argc++] = strdup(argument);
  }
  if (fclose(options_file) != 0) {
    {
      fprintf(stderr,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/BobBuildTool/bob/refs/heads/master/"
              "src/namespace-sandbox/namespace-sandbox.c"
              ":"
              "233"
              ": "
              "closing options file %s failed\n",
              filename);
      exit(EXIT_FAILURE);
    };
  }
  sub_argv[sub_argc] = NULL;
  ParseCommandLine(sub_argc, sub_argv, opt);
}


x86 assembly (clang, -O0):
<ParseOptionsFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2040,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe32(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    120b <ParseOptionsFile+0x5b>
mov    0x2df7(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xe0d(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2dd4(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
movq   $0x14,-0x20(%rbp)
mov    -0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
lea    0x1047(%rip),%rcx
mov    %rcx,(%rax)
movl   $0x1,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x0,-0x30(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1258 <ParseOptionsFile+0xa8>
jmp    13c2 <ParseOptionsFile+0x212>
lea    -0x2030(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x2000,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
jne    12bf <ParseOptionsFile+0x10f>
mov    -0x18(%rbp),%rdi
call   1080 <feof@plt>
cmp    $0x0,%rax
je     1296 <ParseOptionsFile+0xe6>
movl   $0x1,-0x30(%rbp)
jmp    1242 <ParseOptionsFile+0x92>
mov    0x2d43(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xe26(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2d20(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
lea    -0x2030(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,-0x2038(%rbp)
cmpq   $0x0,-0x2038(%rbp)
jne    12e5 <ParseOptionsFile+0x135>
jmp    1242 <ParseOptionsFile+0x92>
cmpq   $0x2000,-0x2038(%rbp)
jne    1324 <ParseOptionsFile+0x174>
mov    0x2ce3(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xe98(%rip),%rsi
mov    $0x2000,%ecx
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2cbb(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
mov    -0x2038(%rbp),%rax
sub    $0x1,%rax
movsbl -0x2030(%rbp,%rax,1),%eax
ff
cmp    $0xa,%eax
jne    1358 <ParseOptionsFile+0x1a8>
mov    -0x2038(%rbp),%rax
sub    $0x1,%rax
movb   $0x0,-0x2030(%rbp,%rax,1)
jmp    135f <ParseOptionsFile+0x1af>
movl   $0x1,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmp    %rcx,%rax
jne    1398 <ParseOptionsFile+0x1e8>
mov    -0x20(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%esi
call   10a0 <realloc@plt>
mov    %rax,-0x28(%rbp)
lea    -0x2030(%rbp),%rdi
call   10d0 <strdup@plt>
mov    %rax,%rdx
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x2c(%rbp)
movslq %ecx,%rcx
mov    %rdx,(%rax,%rcx,8)
jmp    1242 <ParseOptionsFile+0x92>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
cmp    $0x0,%rax
je     13fe <ParseOptionsFile+0x24e>
mov    0x2c04(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xe90(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2be1(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movq   $0x0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1060 <ParseCommandLine@plt>
add    $0x2040,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ParseOptionsFile>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2028,%rsp
mov    %rsi,0x18(%rsp)
lea    0xe33(%rip),%rsi
mov    %rdi,0x8(%rsp)
call   10b0 <fopen@plt>
test   %rax,%rax
je     1324 <ParseOptionsFile+0x174>
mov    %rax,%r13
mov    $0xa0,%edi
call   1090 <malloc@plt>
lea    0x1084(%rip),%rcx
mov    %rax,0x10(%rsp)
mov    %rcx,(%rax)
mov    $0x1,%r14d
mov    $0x14,%ebp
jmp    121f <ParseOptionsFile+0x6f>
nopl   0x0(%rax)
mov    %r14d,%r15d
mov    %r15d,%r14d
test   %r12d,%r12d
jne    12c8 <ParseOptionsFile+0x118>
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x2000,%esi
mov    %r13,%rdx
call   1050 <fgets@plt>
test   %rax,%rax
je     12b4 <ParseOptionsFile+0x104>
mov    %rbx,%rdi
call   1040 <strlen@plt>
xor    %r12d,%r12d
test   %rax,%rax
je     1210 <ParseOptionsFile+0x60>
cmp    $0x2000,%rax
je     1301 <ParseOptionsFile+0x151>
mov    $0x1,%r12d
cmpb   $0xa,-0x1(%rax,%rbx,1)
jne    126a <ParseOptionsFile+0xba>
movb   $0x0,0x1f(%rsp,%rax,1)
xor    %r12d,%r12d
lea    0x1(%r14),%r15d
movslq %r15d,%rax
cmp    %rax,%rbp
jne    1299 <ParseOptionsFile+0xe9>
mov    %r13,%rbx
mov    %rbp,%r13
add    %rbp,%r13
shl    $0x4,%ebp
mov    0x10(%rsp),%rdi
mov    %ebp,%esi
call   10a0 <realloc@plt>
mov    %rax,0x10(%rsp)
mov    %r13,%rbp
mov    %rbx,%r13
lea    0x20(%rsp),%rdi
call   10d0 <strdup@plt>
movslq %r14d,%rcx
mov    0x10(%rsp),%rdx
mov    %rax,(%rdx,%rcx,8)
jmp    1213 <ParseOptionsFile+0x63>
mov    %r13,%rdi
call   1080 <feof@plt>
test   %rax,%rax
je     1348 <ParseOptionsFile+0x198>
mov    %r14d,%r15d
mov    %r13,%rdi
call   1030 <fclose@plt>
test   %rax,%rax
jne    1336 <ParseOptionsFile+0x186>
movslq %r15d,%rdi
mov    0x10(%rsp),%rsi
movq   $0x0,(%rsi,%rdi,8)
mov    0x18(%rsp),%rdx
call   1060 <ParseCommandLine@plt>
add    $0x2028,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2cd8(%rip),%rax
mov    (%rax),%edi
lea    0xe91(%rip),%rsi
mov    $0x2000,%ecx
mov    0x8(%rsp),%rdx
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    1364 <ParseOptionsFile+0x1b4>
mov    0x2cb5(%rip),%rax
mov    (%rax),%edi
lea    0xccf(%rip),%rsi
jmp    1358 <ParseOptionsFile+0x1a8>
mov    0x2ca3(%rip),%rax
mov    (%rax),%edi
lea    0xf33(%rip),%rsi
jmp    1358 <ParseOptionsFile+0x1a8>
mov    0x2c91(%rip),%rax
mov    (%rax),%edi
lea    0xd78(%rip),%rsi
mov    0x8(%rsp),%rdx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x2c6d(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
%struct.Options = type { i32 }
@.str = [3 x i8] c"rb\00"
@stderr = global i32 0
@.str.1 = [205 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BobBuildTool/bob/refs/heads/master/src/namespace-sandbox/namespace-sandbox.c:191: opening argument file %s failed\0A\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [210 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BobBuildTool/bob/refs/heads/master/src/namespace-sandbox/namespace-sandbox.c:212: reading from argument file %s failed\0A\00"
@.str.4 = [215 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BobBuildTool/bob/refs/heads/master/src/namespace-sandbox/namespace-sandbox.c:218: argument from file %s is too long (> %zu)\0A\00"
@.str.5 = [204 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BobBuildTool/bob/refs/heads/master/src/namespace-sandbox/namespace-sandbox.c:233: closing options file %s failed\0A\00"
define void @ParseOptionsFile(i8* %0, %struct.Options* %1) {
%3 = alloca i8*
%4 = alloca %struct.Options*
%5 = alloca i32*
%6 = alloca i64
%7 = alloca i8**
%8 = alloca i32
%9 = alloca i32
%10 = alloca [8192 x i8]
%11 = alloca i64
store i8* %0, i8** %3
store %struct.Options* %1, %struct.Options** %4
%12 = load i8*, i8** %3
%13 = call i32* @fopen(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %13, i32** %5
%14 = load i32*, i32** %5
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %22
16: ; preds = %2
%17 = load i32, i32* @stderr
%18 = load i8*, i8** %3
%19 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([205 x i8], [205 x i8]* @.str.1, i64 0, i64 0), i8* %18)
%20 = load i32, i32* @EXIT_FAILURE
%21 = call i32 @exit(i32 %20)
unreachable
22: ; preds = %2
store i64 20, i64* %6
%23 = load i64, i64* %6
%24 = mul i64 8, %23
%25 = trunc i64 %24 to i32
%26 = call i8** @malloc(i32 %25)
store i8** %26, i8*** %7
%27 = load i8**, i8*** %7
%28 = getelementptr inbounds i8*, i8** %27, i64 0
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8** %28
store i32 1, i32* %8
store i32 0, i32* %9
br label %29
29: ; preds = %90, %54, %42, %22
%30 = load i32, i32* %9
%31 = icmp ne i32 %30, 0
%32 = xor i1 %31, true
br i1 %32, label %33, label %98
33: ; preds = %29
%34 = getelementptr inbounds [8192 x i8], [8192 x i8]* %10, i64 0, i64 0
%35 = load i32*, i32** %5
%36 = call i32* @fgets(i8* %34, i32 8192, i32* %35)
%37 = icmp eq i32* %36, null
br i1 %37, label %38, label %49
38: ; preds = %33
%39 = load i32*, i32** %5
%40 = call i64 @feof(i32* %39)
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %38
store i32 1, i32* %9
br label %29
43: ; preds = %38
%44 = load i32, i32* @stderr
%45 = load i8*, i8** %3
%46 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([210 x i8], [210 x i8]* @.str.3, i64 0, i64 0), i8* %45)
%47 = load i32, i32* @EXIT_FAILURE
%48 = call i32 @exit(i32 %47)
unreachable
49: ; preds = %33
%50 = getelementptr inbounds [8192 x i8], [8192 x i8]* %10, i64 0, i64 0
%51 = call i64 @strlen(i8* %50)
store i64 %51, i64* %11
%52 = load i64, i64* %11
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %55
54: ; preds = %49
br label %29
55: ; preds = %49
%56 = load i64, i64* %11
%57 = icmp eq i64 %56, 8192
br i1 %57, label %58, label %64
58: ; preds = %55
%59 = load i32, i32* @stderr
%60 = load i8*, i8** %3
%61 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([215 x i8], [215 x i8]* @.str.4, i64 0, i64 0), i8* %60, i64 8192)
%62 = load i32, i32* @EXIT_FAILURE
%63 = call i32 @exit(i32 %62)
unreachable
64: ; preds = %55
%65 = load i64, i64* %11
%66 = sub i64 %65, 1
%67 = getelementptr inbounds [8192 x i8], [8192 x i8]* %10, i64 0, i64 %66
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = icmp eq i32 %69, 10
br i1 %70, label %71, label %75
71: ; preds = %64
%72 = load i64, i64* %11
%73 = sub i64 %72, 1
%74 = getelementptr inbounds [8192 x i8], [8192 x i8]* %10, i64 0, i64 %73
store i8 0, i8* %74
br label %76
75: ; preds = %64
store i32 1, i32* %9
br label %76
76: ; preds = %75, %71
%77 = load i64, i64* %6
%78 = load i32, i32* %8
%79 = add nsw i32 %78, 1
%80 = sext i32 %79 to i64
%81 = icmp eq i64 %77, %80
br i1 %81, label %82, label %90
82: ; preds = %76
%83 = load i64, i64* %6
%84 = mul i64 %83, 2
store i64 %84, i64* %6
%85 = load i8**, i8*** %7
%86 = load i64, i64* %6
%87 = mul i64 8, %86
%88 = trunc i64 %87 to i32
%89 = call i8** @realloc(i8** %85, i32 %88)
store i8** %89, i8*** %7
br label %90
90: ; preds = %82, %76
%91 = getelementptr inbounds [8192 x i8], [8192 x i8]* %10, i64 0, i64 0
%92 = call i8* @strdup(i8* %91)
%93 = load i8**, i8*** %7
%94 = load i32, i32* %8
%95 = add nsw i32 %94, 1
store i32 %95, i32* %8
%96 = sext i32 %94 to i64
%97 = getelementptr inbounds i8*, i8** %93, i64 %96
store i8* %92, i8** %97
br label %29
98: ; preds = %29
%99 = load i32*, i32** %5
%100 = call i64 @fclose(i32* %99)
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %108
102: ; preds = %98
%103 = load i32, i32* @stderr
%104 = load i8*, i8** %3
%105 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %103, i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str.5, i64 0, i64 0), i8* %104)
%106 = load i32, i32* @EXIT_FAILURE
%107 = call i32 @exit(i32 %106)
unreachable
108: ; preds = %98
%109 = load i8**, i8*** %7
%110 = load i32, i32* %8
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i8*, i8** %109, i64 %111
store i8* null, i8** %112
%113 = load i32, i32* %8
%114 = load i8**, i8*** %7
%115 = load %struct.Options*, %struct.Options** %4
%116 = call i32 @ParseCommandLine(i32 %113, i8** %114, %struct.Options* %115)
ret void
}

LLVM IR (-O2):
%struct.Options = type { i32 }
@.str = [3 x i8] c"rb\00"
@stderr = global i32 0
@.str.1 = [205 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BobBuildTool/bob/refs/heads/master/src/namespace-sandbox/namespace-sandbox.c:191: opening argument file %s failed\0A\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [210 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BobBuildTool/bob/refs/heads/master/src/namespace-sandbox/namespace-sandbox.c:212: reading from argument file %s failed\0A\00"
@.str.4 = [215 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BobBuildTool/bob/refs/heads/master/src/namespace-sandbox/namespace-sandbox.c:218: argument from file %s is too long (> %zu)\0A\00"
@.str.5 = [204 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/BobBuildTool/bob/refs/heads/master/src/namespace-sandbox/namespace-sandbox.c:233: closing options file %s failed\0A\00"
define void @ParseOptionsFile(i8* %0, %struct.Options* %1) {
%3 = alloca [8192 x i8]
%4 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i32* %4, null
br i1 %5, label %6, label %11
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([205 x i8], [205 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%9 = load i32, i32* @EXIT_FAILURE
%10 = tail call i32 @exit(i32 %9)
unreachable
11: ; preds = %2
%12 = tail call i8** @malloc(i32 160)
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8** %12
%13 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 0
br label %14
14: ; preds = %11, %58
%15 = phi i64 [ 20, %11 ], [ %62, %58 ]
%16 = phi i32 [ 1, %11 ], [ %60, %58 ]
%17 = phi i8** [ %12, %11 ], [ %59, %58 ]
%18 = call i32* @fgets(i8* %13, i32 8192, i32* %4)
%19 = icmp eq i32* %18, null
br i1 %19, label %20, label %29
20: ; preds = %14
%21 = call i64 @feof(i32* %4)
%22 = icmp eq i64 %21, 0
br i1 %22, label %24, label %23
23: ; preds = %20
br label %64
24: ; preds = %20
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([210 x i8], [210 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%27 = load i32, i32* @EXIT_FAILURE
%28 = call i32 @exit(i32 %27)
unreachable
29: ; preds = %14
%30 = call i64 @strlen(i8* %13)
switch i64 %30, label %36 [
i64 0, label %58
i64 8192, label %31
]
31: ; preds = %29
%32 = load i32, i32* @stderr
%33 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([215 x i8], [215 x i8]* @.str.4, i64 0, i64 0), i8* %0, i64 8192)
%34 = load i32, i32* @EXIT_FAILURE
%35 = call i32 @exit(i32 %34)
unreachable
36: ; preds = %29
%37 = add i64 %30, -1
%38 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 %37
%39 = load i8, i8* %38
%40 = icmp eq i8 %39, 10
br i1 %40, label %41, label %42
41: ; preds = %36
store i8 0, i8* %38
br label %42
42: ; preds = %36, %41
%43 = phi i32 [ 0, %41 ], [ 1, %36 ]
%44 = add nsw i32 %16, 1
%45 = sext i32 %44 to i64
%46 = icmp eq i64 %15, %45
br i1 %46, label %47, label %52
47: ; preds = %42
%48 = shl i64 %15, 1
%49 = trunc i64 %15 to i32
%50 = shl i32 %49, 4
%51 = call i8** @realloc(i8** %17, i32 %50)
br label %52
52: ; preds = %47, %42
%53 = phi i8** [ %51, %47 ], [ %17, %42 ]
%54 = phi i64 [ %48, %47 ], [ %15, %42 ]
%55 = call i8* @strdup(i8* %13)
%56 = sext i32 %16 to i64
%57 = getelementptr inbounds i8*, i8** %53, i64 %56
store i8* %55, i8** %57
br label %58
58: ; preds = %52, %29
%59 = phi i8** [ %53, %52 ], [ %17, %29 ]
%60 = phi i32 [ %44, %52 ], [ %16, %29 ]
%61 = phi i32 [ %43, %52 ], [ 0, %29 ]
%62 = phi i64 [ %54, %52 ], [ %15, %29 ]
%63 = icmp eq i32 %61, 0
br i1 %63, label %14, label %64
64: ; preds = %58, %23
%65 = phi i32 [ %16, %23 ], [ %60, %58 ]
%66 = phi i8** [ %17, %23 ], [ %59, %58 ]
%67 = call i64 @fclose(i32* %4)
%68 = icmp eq i64 %67, 0
br i1 %68, label %74, label %69
69: ; preds = %64
%70 = load i32, i32* @stderr
%71 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([204 x i8], [204 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%72 = load i32, i32* @EXIT_FAILURE
%73 = call i32 @exit(i32 %72)
unreachable
74: ; preds = %64
%75 = sext i32 %65 to i64
%76 = getelementptr inbounds i8*, i8** %66, i64 %75
store i8* null, i8** %76
%77 = call i32 @ParseCommandLine(i32 %65, i8** %66, %struct.Options* %1)
ret void
}