#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 /*<<< orphan*/ assert(int);
char *dirname(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(char *);
char *get_efene_path_from_env();
int /*<<< orphan*/ is_dir(char *);
int /*<<< orphan*/ printf(char *, char *);
int snprintf(char *, int, char *, char const *, ...);
int /*<<< orphan*/ stderr;
char *strdup(char *);
int system(char *);
int fn_run(const char *args, char *argv0, int is_test) {
  int count, status;
  char *fnpath, buffer[2048], *basepath;
  fnpath = get_efene_path_from_env();
  basepath = dirname(dirname(argv0));
  if (fnpath == NULL) {
    if (!is_dir("../ebin")) {
      count = snprintf(buffer, 2048, "%s/ebin", basepath);
      assert(count <= 2048);
      fnpath = strdup(buffer);
      assert(fnpath != NULL);
      if (!is_dir(fnpath)) {
        fprintf(
            stderr,
            "$FNPATH is not defined, %s and ../ebin don't exist, options:\n",
            fnpath);
        fprintf(stderr,
                " * set $FNPATH to the path where efene is installed\n");
        fprintf(stderr, " * run fnc -s from the bin directory\n");
        fprintf(stderr, " * stop doing maginc tricks with your path\n");
        status = EXIT_FAILURE;
      } else {
        count = snprintf(buffer, 2048,
                         "erl -run %s -run init stop -noshell -pa \"%s\"", args,
                         fnpath);
        assert(count <= 2048);
        if (is_test) {
          printf("%s\n", buffer);
        } else {
          status = system(buffer);
        }
      }
    } else {
      count =
          snprintf(buffer, 2048,
                   "erl -run %s -run init stop -noshell -pa \"../ebin\"", args);
      assert(count <= 2048);
      if (is_test) {
        printf("%s\n", buffer);
      } else {
        status = system(buffer);
      }
    }
  } else {
    count = snprintf(buffer, 2048,
                     "erl -run %s -run init stop -noshell -pa \"%s/ebin\"",
                     args, fnpath);
    assert(count <= 2048);
    if (is_test) {
      printf("%s\n", buffer);
    } else {
      status = system(buffer);
    }
    free(fnpath);
  }
  exit(status);
}


x86 assembly (clang, -O0):
<fn_run>:
push   %rbp
mov    %rsp,%rbp
sub    $0x840,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    $0x0,%al
call   1030 <get_efene_path_from_env@plt>
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
call   1090 <dirname@plt>
mov    %rax,%rdi
call   1090 <dirname@plt>
mov    %rax,-0x838(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    13ca <fn_run+0x21a>
lea    0xe05(%rip),%rdi
call   1070 <is_dir@plt>
cmp    $0x0,%eax
jne    135a <fn_run+0x1aa>
lea    -0x830(%rbp),%rdi
mov    -0x838(%rbp),%rcx
mov    $0x800,%esi
lea    0xde5(%rip),%rdx
mov    $0x0,%al
call   1080 <snprintf@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x800,-0x18(%rbp)
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    -0x830(%rbp),%rdi
call   10d0 <strdup@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    -0x28(%rbp),%rdi
call   1070 <is_dir@plt>
cmp    $0x0,%eax
jne    12e6 <fn_run+0x136>
mov    0x2d64(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rdx
lea    0xd87(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x2d49(%rip),%rax
mov    (%rax),%edi
lea    0xdae(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x2d32(%rip),%rax
mov    (%rax),%edi
lea    0xdcc(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x2d1b(%rip),%rax
mov    (%rax),%edi
lea    0xddb(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x2cfc(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
jmp    1355 <fn_run+0x1a5>
lea    -0x830(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    $0x800,%esi
lea    0xdd4(%rip),%rdx
mov    $0x0,%al
call   1080 <snprintf@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x800,-0x18(%rbp)
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
cmpl   $0x0,-0x14(%rbp)
je     1341 <fn_run+0x191>
lea    -0x830(%rbp),%rsi
lea    0xdcb(%rip),%rdi
call   1060 <printf@plt>
jmp    1350 <fn_run+0x1a0>
lea    -0x830(%rbp),%rdi
call   1050 <system@plt>
mov    %eax,-0x1c(%rbp)
jmp    1355 <fn_run+0x1a5>
jmp    13c5 <fn_run+0x215>
lea    -0x830(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x800,%esi
lea    0xd95(%rip),%rdx
mov    $0x0,%al
call   1080 <snprintf@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x800,-0x18(%rbp)
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
cmpl   $0x0,-0x14(%rbp)
je     13b1 <fn_run+0x201>
lea    -0x830(%rbp),%rsi
lea    0xd5b(%rip),%rdi
call   1060 <printf@plt>
jmp    13c0 <fn_run+0x210>
lea    -0x830(%rbp),%rdi
call   1050 <system@plt>
mov    %eax,-0x1c(%rbp)
jmp    13c5 <fn_run+0x215>
jmp    143d <fn_run+0x28d>
lea    -0x830(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    $0x800,%esi
lea    0xd53(%rip),%rdx
mov    $0x0,%al
call   1080 <snprintf@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x800,-0x18(%rbp)
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
cmpl   $0x0,-0x14(%rbp)
je     1425 <fn_run+0x275>
lea    -0x830(%rbp),%rsi
lea    0xce7(%rip),%rdi
call   1060 <printf@plt>
jmp    1434 <fn_run+0x284>
lea    -0x830(%rbp),%rdi
call   1050 <system@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x28(%rbp),%rdi
call   1040 <free@plt>
mov    -0x1c(%rbp),%edi
call   10c0 <exit@plt>

x86 assembly (clang, -O2):
<fn_run>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x808,%rsp
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %rdi,%r15
xor    %eax,%eax
call   1030 <get_efene_path_from_env@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
call   1090 <dirname@plt>
mov    %rax,%rdi
call   1090 <dirname@plt>
test   %rbp,%rbp
jne    12ad <fn_run+0xfd>
mov    %rax,%rbx
lea    0xe0d(%rip),%rdi
call   1070 <is_dir@plt>
test   %eax,%eax
jne    12ea <fn_run+0x13a>
lea    0xe01(%rip),%rdx
mov    %rsp,%rbp
mov    %rbp,%rdi
mov    $0x800,%esi
mov    %rbx,%rcx
xor    %eax,%eax
call   1080 <snprintf@plt>
xor    %edi,%edi
cmp    $0x801,%eax
setl   %dil
call   10a0 <assert@plt>
mov    %rbp,%rdi
call   10d0 <strdup@plt>
mov    %rax,%rbp
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   10a0 <assert@plt>
mov    %rbp,%rdi
call   1070 <is_dir@plt>
test   %eax,%eax
jne    1323 <fn_run+0x173>
mov    0x2d84(%rip),%rbx
mov    (%rbx),%edi
lea    0xdab(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xdd6(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xdfb(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe11(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    0x2d32(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
lea    0xe84(%rip),%rdx
mov    %rsp,%rdi
mov    $0x800,%esi
mov    %r15,%rcx
mov    %rbp,%r8
xor    %eax,%eax
call   1080 <snprintf@plt>
xor    %edi,%edi
cmp    $0x801,%eax
setl   %dil
call   10a0 <assert@plt>
test   %r14d,%r14d
jne    1305 <fn_run+0x155>
mov    %rsp,%rdi
call   1050 <system@plt>
mov    %eax,%ebx
jmp    1314 <fn_run+0x164>
lea    0xe15(%rip),%rdx
mov    %rsp,%rdi
mov    $0x800,%esi
mov    %r15,%rcx
xor    %eax,%eax
call   1080 <snprintf@plt>
jmp    133f <fn_run+0x18f>
lea    0xdf6(%rip),%rdi
mov    %rsp,%rsi
call   1060 <printf@plt>
mov    %rbp,%rdi
call   1040 <free@plt>
mov    %ebx,%edi
call   10c0 <exit@plt>
lea    0xdab(%rip),%rdx
mov    %rsp,%rdi
mov    $0x800,%esi
mov    %r15,%rcx
mov    %rbp,%r8
xor    %eax,%eax
call   1080 <snprintf@plt>
xor    %edi,%edi
cmp    $0x801,%eax
setl   %dil
call   10a0 <assert@plt>
test   %r14d,%r14d
jne    1363 <fn_run+0x1b3>
mov    %rsp,%rdi
call   1050 <system@plt>
mov    %eax,%edi
call   10c0 <exit@plt>
lea    0xd98(%rip),%rdi
mov    %rsp,%rsi
call   1060 <printf@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"../ebin\00"
@.str.1 = [8 x i8] c"%s/ebin\00"
@stderr = global i32 0
@.str.2 = [62 x i8] c"$FNPATH is not defined, %s and ../ebin don't exist, options:\0A\00"
@.str.3 = [53 x i8] c" * set $FNPATH to the path where efene is installed\0A\00"
@.str.4 = [38 x i8] c" * run fnc -s from the bin directory\0A\00"
@.str.5 = [44 x i8] c" * stop doing maginc tricks with your path\0A\00"
@EXIT_FAILURE = global i32 0
@.str.6 = [45 x i8] c"erl -run %s -run init stop -noshell -pa \22%s\22\00"
@.str.7 = [4 x i8] c"%s\0A\00"
@.str.8 = [50 x i8] c"erl -run %s -run init stop -noshell -pa \22../ebin\22\00"
@.str.9 = [50 x i8] c"erl -run %s -run init stop -noshell -pa \22%s/ebin\22\00"
define i32 @fn_run(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca [2048 x i8]
%11 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%12 = call i8* (...) @get_efene_path_from_env()
store i8* %12, i8** %9
%13 = load i8*, i8** %5
%14 = call i8* @dirname(i8* %13)
%15 = call i8* @dirname(i8* %14)
store i8* %15, i8** %11
%16 = load i8*, i8** %9
%17 = icmp eq i8* %16, null
br i1 %17, label %18, label %86
18: ; preds = %3
%19 = call i32 @is_dir(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%20 = icmp ne i32 %19, 0
br i1 %20, label %68, label %21
21: ; preds = %18
%22 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%23 = load i8*, i8** %11
%24 = call i32 (i8*, i32, i8*, i8*, ...) @snprintf(i8* %22, i32 2048, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %23)
store i32 %24, i32* %7
%25 = load i32, i32* %7
%26 = icmp sle i32 %25, 2048
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 %27)
%29 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%30 = call i8* @strdup(i8* %29)
store i8* %30, i8** %9
%31 = load i8*, i8** %9
%32 = icmp ne i8* %31, null
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
%35 = load i8*, i8** %9
%36 = call i32 @is_dir(i8* %35)
%37 = icmp ne i32 %36, 0
br i1 %37, label %49, label %38
38: ; preds = %21
%39 = load i32, i32* @stderr
%40 = load i8*, i8** %9
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0), i8* %40)
%42 = load i32, i32* @stderr
%43 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0))
%44 = load i32, i32* @stderr
%45 = call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%46 = load i32, i32* @stderr
%47 = call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
%48 = load i32, i32* @EXIT_FAILURE
store i32 %48, i32* %8
br label %67
49: ; preds = %21
%50 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%51 = load i8*, i8** %4
%52 = load i8*, i8** %9
%53 = call i32 (i8*, i32, i8*, i8*, ...) @snprintf(i8* %50, i32 2048, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0), i8* %51, i8* %52)
store i32 %53, i32* %7
%54 = load i32, i32* %7
%55 = icmp sle i32 %54, 2048
%56 = zext i1 %55 to i32
%57 = call i32 @assert(i32 %56)
%58 = load i32, i32* %6
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %49
%61 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%62 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %61)
br label %66
63: ; preds = %49
%64 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%65 = call i32 @system(i8* %64)
store i32 %65, i32* %8
br label %66
66: ; preds = %63, %60
br label %67
67: ; preds = %66, %38
br label %85
68: ; preds = %18
%69 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%70 = load i8*, i8** %4
%71 = call i32 (i8*, i32, i8*, i8*, ...) @snprintf(i8* %69, i32 2048, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.8, i64 0, i64 0), i8* %70)
store i32 %71, i32* %7
%72 = load i32, i32* %7
%73 = icmp sle i32 %72, 2048
%74 = zext i1 %73 to i32
%75 = call i32 @assert(i32 %74)
%76 = load i32, i32* %6
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %68
%79 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%80 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %79)
br label %84
81: ; preds = %68
%82 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%83 = call i32 @system(i8* %82)
store i32 %83, i32* %8
br label %84
84: ; preds = %81, %78
br label %85
85: ; preds = %84, %67
br label %106
86: ; preds = %3
%87 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%88 = load i8*, i8** %4
%89 = load i8*, i8** %9
%90 = call i32 (i8*, i32, i8*, i8*, ...) @snprintf(i8* %87, i32 2048, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.9, i64 0, i64 0), i8* %88, i8* %89)
store i32 %90, i32* %7
%91 = load i32, i32* %7
%92 = icmp sle i32 %91, 2048
%93 = zext i1 %92 to i32
%94 = call i32 @assert(i32 %93)
%95 = load i32, i32* %6
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %100
97: ; preds = %86
%98 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%99 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %98)
br label %103
100: ; preds = %86
%101 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%102 = call i32 @system(i8* %101)
store i32 %102, i32* %8
br label %103
103: ; preds = %100, %97
%104 = load i8*, i8** %9
%105 = call i32 @free(i8* %104)
br label %106
106: ; preds = %103, %85
%107 = load i32, i32* %8
%108 = call i32 @exit(i32 %107)
unreachable
}

LLVM IR (-O2):
@.str = [8 x i8] c"../ebin\00"
@.str.1 = [8 x i8] c"%s/ebin\00"
@stderr = global i32 0
@.str.2 = [62 x i8] c"$FNPATH is not defined, %s and ../ebin don't exist, options:\0A\00"
@.str.3 = [53 x i8] c" * set $FNPATH to the path where efene is installed\0A\00"
@.str.4 = [38 x i8] c" * run fnc -s from the bin directory\0A\00"
@.str.5 = [44 x i8] c" * stop doing maginc tricks with your path\0A\00"
@EXIT_FAILURE = global i32 0
@.str.6 = [45 x i8] c"erl -run %s -run init stop -noshell -pa \22%s\22\00"
@.str.7 = [4 x i8] c"%s\0A\00"
@.str.8 = [50 x i8] c"erl -run %s -run init stop -noshell -pa \22../ebin\22\00"
@.str.9 = [50 x i8] c"erl -run %s -run init stop -noshell -pa \22%s/ebin\22\00"
define i32 @fn_run(i8* %0, i8* %1, i32 %2) {
%4 = alloca [2048 x i8]
%5 = getelementptr inbounds [2048 x i8], [2048 x i8]* %4, i64 0, i64 0
%6 = tail call i8* (...) @get_efene_path_from_env()
%7 = tail call i8* @dirname(i8* %1)
%8 = tail call i8* @dirname(i8* %7)
%9 = icmp eq i8* %6, null
br i1 %9, label %10, label %54
10: ; preds = %3
%11 = tail call i32 @is_dir(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %44
13: ; preds = %10
%14 = call i32 (i8*, i32, i8*, i8*, ...) @snprintf(i8* %5, i32 2048, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%15 = icmp slt i32 %14, 2049
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 %16)
%18 = call i8* @strdup(i8* %5)
%19 = icmp ne i8* %18, null
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = call i32 @is_dir(i8* %18)
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %34
24: ; preds = %13
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0), i8* %18)
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
%33 = load i32, i32* @EXIT_FAILURE
br label %67
34: ; preds = %13
%35 = call i32 (i8*, i32, i8*, i8*, ...) @snprintf(i8* %5, i32 2048, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0), i8* %0, i8* %18)
%36 = icmp slt i32 %35, 2049
%37 = zext i1 %36 to i32
%38 = call i32 @assert(i32 %37)
%39 = icmp eq i32 %2, 0
br i1 %39, label %42, label %40
40: ; preds = %34
%41 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %5)
unreachable
42: ; preds = %34
%43 = call i32 @system(i8* %5)
br label %67
44: ; preds = %10
%45 = call i32 (i8*, i32, i8*, i8*, ...) @snprintf(i8* %5, i32 2048, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.8, i64 0, i64 0), i8* %0)
%46 = icmp slt i32 %45, 2049
%47 = zext i1 %46 to i32
%48 = call i32 @assert(i32 %47)
%49 = icmp eq i32 %2, 0
br i1 %49, label %52, label %50
50: ; preds = %44
%51 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %5)
unreachable
52: ; preds = %44
%53 = call i32 @system(i8* %5)
br label %67
54: ; preds = %3
%55 = call i32 (i8*, i32, i8*, i8*, ...) @snprintf(i8* %5, i32 2048, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.9, i64 0, i64 0), i8* %0, i8* %6)
%56 = icmp slt i32 %55, 2049
%57 = zext i1 %56 to i32
%58 = call i32 @assert(i32 %57)
%59 = icmp eq i32 %2, 0
br i1 %59, label %62, label %60
60: ; preds = %54
%61 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %5)
br label %64
62: ; preds = %54
%63 = call i32 @system(i8* %5)
br label %64
64: ; preds = %62, %60
%65 = phi i32 [ undef, %60 ], [ %63, %62 ]
%66 = call i32 @free(i8* %6)
br label %67
67: ; preds = %42, %24, %52, %64
%68 = phi i32 [ %53, %52 ], [ %43, %42 ], [ %33, %24 ], [ %65, %64 ]
%69 = call i32 @exit(i32 %68)
unreachable
}