#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 execv(char *, char **);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
char *getenv(char *);
int /*<<< orphan*/ sprintf(char *, char *, ...);
int /*<<< orphan*/ stderr;
int main() {
  char path[4096];
  char boot[4096];
  char config[4096];
  char name_arg[256];
  char *argv[15];
  argv[0] = "-boot_var";
  argv[1] = "ERTS_LIB_DIR";
  argv[2] = "/lib";
  sprintf(boot, "/releases/1/%s", "release_name");
  argv[3] = "-boot";
  argv[4] = boot;
  sprintf(config, "/releases/1/sys.config");
  argv[5] = "-config";
  argv[6] = config;
  argv[7] = "-setcookie";
  argv[8] = getenv("EDOCKER_COOKIE");
  sprintf(name_arg, "%s@%s", getenv("EDOCKER_NAME"), getenv("EDOCKER_HOST"));
  argv[9] = "-name";
  argv[10] = name_arg;
  argv[11] = "-noinput";
  char *n_processes = getenv("N_PROCESSES");
  if (n_processes == NULL) {
    argv[12] = NULL;
  } else {
    argv[12] = "+P";
    argv[13] = n_processes;
    argv[14] = NULL;
  }
  sprintf(path, "%s/erlexec",
          "/erts-"
          "8.2"
          "/bin");
  fprintf(stderr, "%s ", path);
  int i = 0;
  while (argv[i] != NULL) {
    fprintf(stderr, "%s%s", argv[i], argv[i + 1] != NULL ? " " : "\n");
    i++;
  }
  return execv(path, argv);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x31b0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xea7(%rip),%rax
mov    %rax,-0x3190(%rbp)
lea    0xea3(%rip),%rax
mov    %rax,-0x3188(%rbp)
lea    0xea2(%rip),%rax
mov    %rax,-0x3180(%rbp)
lea    -0x2010(%rbp),%rdi
lea    0xe92(%rip),%rsi
lea    0xe9a(%rip),%rdx
mov    $0x0,%al
call   1050 <sprintf@plt>
lea    0xe99(%rip),%rax
mov    %rax,-0x3178(%rbp)
lea    -0x2010(%rbp),%rax
mov    %rax,-0x3170(%rbp)
lea    -0x3010(%rbp),%rdi
lea    0xe7c(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
lea    0xe85(%rip),%rax
mov    %rax,-0x3168(%rbp)
lea    -0x3010(%rbp),%rax
mov    %rax,-0x3160(%rbp)
lea    0xe71(%rip),%rax
mov    %rax,-0x3158(%rbp)
lea    0xe6e(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x3150(%rbp)
lea    -0x3110(%rbp),%rax
mov    %rax,-0x31b0(%rbp)
lea    0xe62(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x31a8(%rbp)
lea    0xe5c(%rip),%rdi
call   1030 <getenv@plt>
mov    -0x31b0(%rbp),%rdi
mov    -0x31a8(%rbp),%rdx
mov    %rax,%rcx
lea    0xe2c(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
lea    0xe3e(%rip),%rax
mov    %rax,-0x3148(%rbp)
lea    -0x3110(%rbp),%rax
mov    %rax,-0x3140(%rbp)
lea    0xe28(%rip),%rax
mov    %rax,-0x3138(%rbp)
lea    0xe23(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x3198(%rbp)
cmpq   $0x0,-0x3198(%rbp)
jne    12ad <main+0x16d>
movq   $0x0,-0x3130(%rbp)
jmp    12d4 <main+0x194>
lea    0xdfe(%rip),%rax
mov    %rax,-0x3130(%rbp)
mov    -0x3198(%rbp),%rax
mov    %rax,-0x3128(%rbp)
movq   $0x0,-0x3120(%rbp)
lea    -0x1010(%rbp),%rdi
lea    0xdd3(%rip),%rsi
lea    0xdd7(%rip),%rdx
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    0x2ce9(%rip),%rax
mov    (%rax),%edi
lea    -0x1010(%rbp),%rdx
lea    0xdc7(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x319c(%rbp)
movslq -0x319c(%rbp),%rax
cmpq   $0x0,-0x3190(%rbp,%rax,8)
je     1391 <main+0x251>
mov    0x2cab(%rip),%rax
mov    (%rax),%edi
movslq -0x319c(%rbp),%rax
mov    -0x3190(%rbp,%rax,8),%rdx
ff
mov    -0x319c(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0x3190(%rbp,%rax,8),%rsi
ff
lea    0xd77(%rip),%rcx
lea    0xd69(%rip),%rax
cmp    $0x0,%rsi
cmovne %rax,%rcx
lea    0xd5c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x319c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x319c(%rbp)
jmp    1318 <main+0x1d8>
lea    -0x1010(%rbp),%rdi
lea    -0x3190(%rbp),%rsi
call   1060 <execv@plt>
add    $0x31b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x3188,%rsp
lea    0xea8(%rip),%r15
mov    %r15,(%rsp)
lea    0xea7(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0xea8(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xea1(%rip),%rsi
lea    0xea9(%rip),%rdx
xor    %r12d,%r12d
lea    0x2180(%rsp),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <sprintf@plt>
lea    0xe9a(%rip),%rax
mov    %rax,0x18(%rsp)
mov    %r14,0x20(%rsp)
movabs $0x6769666e6f632e,%rax
mov    %rax,0x18f(%rsp)
movups 0xe7d(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
lea    0xe85(%rip),%rax
mov    %rax,0x28(%rsp)
lea    0x180(%rsp),%rax
mov    %rax,0x30(%rsp)
lea    0xe74(%rip),%rax
mov    %rax,0x38(%rsp)
lea    0xe73(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,0x40(%rsp)
lea    0xe77(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,%r14
lea    0xe75(%rip),%rdi
call   1030 <getenv@plt>
lea    0xe56(%rip),%rsi
lea    0x80(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <sprintf@plt>
lea    0xe57(%rip),%rax
mov    %rax,0x48(%rsp)
mov    %rbx,0x50(%rsp)
lea    0xe4c(%rip),%rax
mov    %rax,0x58(%rsp)
lea    0xe49(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     127c <main+0x13c>
mov    %rax,0x68(%rsp)
movq   $0x0,0x70(%rsp)
lea    0xe36(%rip),%r12
mov    %r12,0x60(%rsp)
lea    0xe2d(%rip),%rsi
lea    0xe31(%rip),%rdx
lea    0x1180(%rsp),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <sprintf@plt>
mov    0x2d38(%rip),%rax
mov    (%rax),%edi
lea    0xe1d(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0x8(%rsp),%rbx
lea    0xe10(%rip),%r12
lea    0xe02(%rip),%rbp
lea    0xdfd(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x2cf9(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%r13
test   %r13,%r13
mov    %rbp,%rcx
cmove  %r12,%rcx
mov    %r14,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x8,%rbx
mov    %r13,%r15
test   %r13,%r13
jne    12e0 <main+0x1a0>
lea    0x1180(%rsp),%rdi
mov    %rsp,%rsi
call   1060 <execv@plt>
add    $0x3188,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"-boot_var\00"
@.str.1 = [13 x i8] c"ERTS_LIB_DIR\00"
@.str.2 = [5 x i8] c"/lib\00"
@.str.3 = [15 x i8] c"/releases/1/%s\00"
@.str.4 = [13 x i8] c"release_name\00"
@.str.5 = [6 x i8] c"-boot\00"
@.str.6 = [23 x i8] c"/releases/1/sys.config\00"
@.str.7 = [8 x i8] c"-config\00"
@.str.8 = [11 x i8] c"-setcookie\00"
@.str.9 = [15 x i8] c"EDOCKER_COOKIE\00"
@.str.10 = [6 x i8] c"%s@%s\00"
@.str.11 = [13 x i8] c"EDOCKER_NAME\00"
@.str.12 = [13 x i8] c"EDOCKER_HOST\00"
@.str.13 = [6 x i8] c"-name\00"
@.str.14 = [9 x i8] c"-noinput\00"
@.str.15 = [12 x i8] c"N_PROCESSES\00"
@.str.16 = [3 x i8] c"+P\00"
@.str.17 = [11 x i8] c"%s/erlexec\00"
@.str.18 = [14 x i8] c"/erts-8.2/bin\00"
@stderr = global i32 0
@.str.19 = [4 x i8] c"%s \00"
@.str.20 = [5 x i8] c"%s%s\00"
@.str.21 = [2 x i8] c" \00"
@.str.22 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4096 x i8]
%3 = alloca [4096 x i8]
%4 = alloca [4096 x i8]
%5 = alloca [256 x i8]
%6 = alloca [15 x i8*]
%7 = alloca i8*
%8 = alloca i32
store i32 0, i32* %1
%9 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8** %9
%10 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8** %10
%11 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %11
%12 = getelementptr inbounds [4096 x i8], [4096 x i8]* %3, i64 0, i64 0
%13 = call i32 (i8*, i8*, ...) @sprintf(i8* %12, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%14 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 3
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8** %14
%15 = getelementptr inbounds [4096 x i8], [4096 x i8]* %3, i64 0, i64 0
%16 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 4
store i8* %15, i8** %16
%17 = getelementptr inbounds [4096 x i8], [4096 x i8]* %4, i64 0, i64 0
%18 = call i32 (i8*, i8*, ...) @sprintf(i8* %17, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
%19 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 5
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8** %19
%20 = getelementptr inbounds [4096 x i8], [4096 x i8]* %4, i64 0, i64 0
%21 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 6
store i8* %20, i8** %21
%22 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 7
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8** %22
%23 = call i8* @getenv(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%24 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 8
store i8* %23, i8** %24
%25 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%26 = call i8* @getenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
%27 = call i8* @getenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
%28 = call i32 (i8*, i8*, ...) @sprintf(i8* %25, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* %26, i8* %27)
%29 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 9
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8** %29
%30 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%31 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 10
store i8* %30, i8** %31
%32 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 11
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i8** %32
%33 = call i8* @getenv(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
store i8* %33, i8** %7
%34 = load i8*, i8** %7
%35 = icmp eq i8* %34, null
br i1 %35, label %36, label %38
36: ; preds = %0
%37 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 12
store i8* null, i8** %37
br label %43
38: ; preds = %0
%39 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 12
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8** %39
%40 = load i8*, i8** %7
%41 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 13
store i8* %40, i8** %41
%42 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 14
store i8* null, i8** %42
br label %43
43: ; preds = %38, %36
%44 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 0
%45 = call i32 (i8*, i8*, ...) @sprintf(i8* %44, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.18, i64 0, i64 0))
%46 = load i32, i32* @stderr
%47 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 0
%48 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0), i8* %47)
store i32 0, i32* %8
br label %49
49: ; preds = %55, %43
%50 = load i32, i32* %8
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 %51
%53 = load i8*, i8** %52
%54 = icmp ne i8* %53, null
br i1 %54, label %55, label %72
55: ; preds = %49
%56 = load i32, i32* @stderr
%57 = load i32, i32* %8
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 %58
%60 = load i8*, i8** %59
%61 = load i32, i32* %8
%62 = add nsw i32 %61, 1
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 %63
%65 = load i8*, i8** %64
%66 = icmp ne i8* %65, null
%67 = zext i1 %66 to i64
%68 = select i1 %66, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0)
%69 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i8* %60, i8* %68)
%70 = load i32, i32* %8
%71 = add nsw i32 %70, 1
store i32 %71, i32* %8
br label %49
72: ; preds = %49
%73 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 0
%74 = getelementptr inbounds [15 x i8*], [15 x i8*]* %6, i64 0, i64 0
%75 = call i32 @execv(i8* %73, i8** %74)
ret i32 %75
}

LLVM IR (-O2):
@.str = [10 x i8] c"-boot_var\00"
@.str.1 = [13 x i8] c"ERTS_LIB_DIR\00"
@.str.2 = [5 x i8] c"/lib\00"
@.str.3 = [15 x i8] c"/releases/1/%s\00"
@.str.4 = [13 x i8] c"release_name\00"
@.str.5 = [6 x i8] c"-boot\00"
@.str.6 = [23 x i8] c"/releases/1/sys.config\00"
@.str.7 = [8 x i8] c"-config\00"
@.str.8 = [11 x i8] c"-setcookie\00"
@.str.9 = [15 x i8] c"EDOCKER_COOKIE\00"
@.str.10 = [6 x i8] c"%s@%s\00"
@.str.11 = [13 x i8] c"EDOCKER_NAME\00"
@.str.12 = [13 x i8] c"EDOCKER_HOST\00"
@.str.13 = [6 x i8] c"-name\00"
@.str.14 = [9 x i8] c"-noinput\00"
@.str.15 = [12 x i8] c"N_PROCESSES\00"
@.str.16 = [3 x i8] c"+P\00"
@.str.17 = [11 x i8] c"%s/erlexec\00"
@.str.18 = [14 x i8] c"/erts-8.2/bin\00"
@stderr = global i32 0
@.str.19 = [4 x i8] c"%s \00"
@.str.20 = [5 x i8] c"%s%s\00"
@.str.21 = [2 x i8] c" \00"
@.str.22 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca [4096 x i8]
%2 = alloca [4096 x i8]
%3 = alloca [4096 x i8]
%4 = alloca [256 x i8]
%5 = alloca [15 x i8*]
%6 = getelementptr inbounds [4096 x i8], [4096 x i8]* %1, i64 0, i64 0
%7 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 0
%8 = getelementptr inbounds [4096 x i8], [4096 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%10 = bitcast [15 x i8*]* %5 to i8*
%11 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8** %11
%12 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8** %12
%13 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %13
%14 = call i32 (i8*, i8*, ...) @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%15 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 3
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8** %15
%16 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 4
store i8* %7, i8** %16
%17 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 5
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8** %17
%18 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 6
store i8* %8, i8** %18
%19 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 7
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8** %19
%20 = call i8* @getenv(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%21 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 8
store i8* %20, i8** %21
%22 = call i8* @getenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
%23 = call i8* @getenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
%24 = call i32 (i8*, i8*, ...) @sprintf(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* %22, i8* %23)
%25 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 9
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8** %25
%26 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 10
store i8* %9, i8** %26
%27 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 11
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i8** %27
%28 = call i8* @getenv(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%29 = icmp eq i8* %28, null
br i1 %29, label %33, label %30
30: ; preds = %0
%31 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 13
store i8* %28, i8** %31
%32 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 14
store i8* null, i8** %32
br label %33
33: ; preds = %30, %0
%34 = phi i8* [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), %30 ], [ null, %0 ]
%35 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 12
store i8* %34, i8** %35
%36 = call i32 (i8*, i8*, ...) @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.18, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0), i8* %6)
br label %39
39: ; preds = %39, %33
%40 = phi i64 [ 0, %33 ], [ %43, %39 ]
%41 = phi i8* [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), %33 ], [ %45, %39 ]
%42 = load i32, i32* @stderr
%43 = add nuw nsw i64 %40, 1
%44 = getelementptr inbounds [15 x i8*], [15 x i8*]* %5, i64 0, i64 %43
%45 = load i8*, i8** %44
%46 = icmp eq i8* %45, null
%47 = select i1 %46, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0)
%48 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i8* %41, i8* %47)
br i1 %46, label %49, label %39
49: ; preds = %39
%50 = call i32 @execv(i8* %6, i8** %11)
ret i32 %50
}