#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*/ env;

/* Variables and functions */
int /*<<< orphan*/ F_SETFD;
int /*<<< orphan*/ PF_UNIX;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ execvp(char const *, char **);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fcntl(int, int /*<<< orphan*/, int /*<<< orphan*/);
int fork();
scalar_t__ malloc(int);
int /*<<< orphan*/ perror(char *);
int receive_fd(int);
int /*<<< orphan*/ setenv(char *, char *, int);
int /*<<< orphan*/ snprintf(char *, int, char *, int);
int socketpair(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/,
               int *);
char *strdup(char const *);
int /*<<< orphan*/ waitpid(int, int /*<<< orphan*/ *, int /*<<< orphan*/);
int fuse_mount(const char *mountpoint, const char *args[]) {
  const char *mountprog = "fusermount";
  int fds[2], pid;
  int res;
  int rv;
  res = socketpair(PF_UNIX, SOCK_STREAM, 0, fds);
  if (res == -1) {
    perror("fuse: socketpair() failed");
    return -1;
  }
  pid = fork();
  if (pid == -1) {
    perror("fuse: fork() failed");
    close(fds[0]);
    close(fds[1]);
    return -1;
  }
  if (pid == 0) {
    char env[10];
    char **newargv;
    int numargs = 0;
    int actr;
    int i;
    if (args != NULL)
      while (args[numargs] != NULL)
        numargs++;
    newargv = (char **)malloc((1 + numargs + 2) * sizeof(char *));
    actr = 0;
    newargv[actr++] = strdup(mountprog);
    for (i = 0; i < numargs; i++)
      newargv[actr++] = strdup(args[i]);
    newargv[actr++] = strdup(mountpoint);
    newargv[actr++] = NULL;
    close(fds[1]);
    fcntl(fds[0], F_SETFD, 0);
    snprintf(env, sizeof(env), "%i", fds[0]);
    setenv("_FUSE_COMMFD", env, 1);
    execvp(mountprog, newargv);
    perror("fuse: failed to exec fusermount");
    exit(1);
  }
  close(fds[0]);
  rv = receive_fd(fds[1]);
  close(fds[1]);
  waitpid(pid, NULL, 0);
  return rv;
}


x86 assembly (clang, -O0):
<fuse_mount>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
lea    0xe6c(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2e06(%rip),%rax
mov    (%rax),%edi
mov    0x2dd5(%rip),%rax
mov    (%rax),%esi
lea    -0x28(%rbp),%rcx
xor    %edx,%edx
call   1070 <socketpair@plt>
mov    %eax,-0x30(%rbp)
cmpl   $0xffffffff,-0x30(%rbp)
jne    122d <fuse_mount+0x5d>
lea    0xde4(%rip),%rdi
call   10b0 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1414 <fuse_mount+0x244>
mov    $0x0,%al
call   10f0 <fork@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0xffffffff,-0x2c(%rbp)
jne    1269 <fuse_mount+0x99>
lea    0xdd2(%rip),%rdi
call   10b0 <perror@plt>
mov    -0x28(%rbp),%edi
call   1060 <close@plt>
mov    -0x24(%rbp),%edi
call   1060 <close@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1414 <fuse_mount+0x244>
cmpl   $0x0,-0x2c(%rbp)
jne    13e5 <fuse_mount+0x215>
movl   $0x0,-0x4c(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     12b0 <fuse_mount+0xe0>
jmp    128a <fuse_mount+0xba>
mov    -0x18(%rbp),%rax
movslq -0x4c(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     12ab <fuse_mount+0xdb>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    128a <fuse_mount+0xba>
jmp    12b0 <fuse_mount+0xe0>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
add    $0x2,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x50(%rbp)
mov    -0x20(%rbp),%rdi
call   10e0 <strdup@plt>
mov    %rax,%rdx
mov    -0x48(%rbp),%rax
mov    -0x50(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x50(%rbp)
movslq %ecx,%rcx
mov    %rdx,(%rax,%rcx,8)
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jge    133e <fuse_mount+0x16e>
mov    -0x18(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   10e0 <strdup@plt>
mov    %rax,%rdx
mov    -0x48(%rbp),%rax
mov    -0x50(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x50(%rbp)
movslq %ecx,%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    12fa <fuse_mount+0x12a>
mov    -0x10(%rbp),%rdi
call   10e0 <strdup@plt>
mov    %rax,%rdx
mov    -0x48(%rbp),%rax
mov    -0x50(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x50(%rbp)
movslq %ecx,%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
mov    -0x50(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x50(%rbp)
movslq %ecx,%rcx
movq   $0x0,(%rax,%rcx,8)
mov    -0x24(%rbp),%edi
call   1060 <close@plt>
mov    -0x28(%rbp),%edi
mov    0x2c4c(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1030 <fcntl@plt>
lea    -0x3e(%rbp),%rdi
mov    -0x28(%rbp),%ecx
mov    $0xa,%esi
lea    0xc86(%rip),%rdx
call   1050 <snprintf@plt>
lea    -0x3e(%rbp),%rsi
lea    0xc79(%rip),%rdi
mov    $0x1,%edx
call   1040 <setenv@plt>
mov    -0x20(%rbp),%rdi
mov    -0x48(%rbp),%rsi
call   10c0 <execvp@plt>
lea    0xc68(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x28(%rbp),%edi
call   1060 <close@plt>
mov    -0x24(%rbp),%edi
call   1090 <receive_fd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x24(%rbp),%edi
call   1060 <close@plt>
mov    -0x2c(%rbp),%edi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10a0 <waitpid@plt>
mov    -0x34(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fuse_mount>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r12
mov    %rdi,%r14
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
mov    0x2ddc(%rip),%rax
mov    (%rax),%esi
lea    0x4(%rsp),%rcx
xor    %edx,%edx
call   1070 <socketpair@plt>
cmp    $0xffffffff,%eax
je     1252 <fuse_mount+0x82>
xor    %eax,%eax
call   10f0 <fork@plt>
cmp    $0xffffffff,%eax
je     1265 <fuse_mount+0x95>
mov    %eax,%ebp
test   %eax,%eax
je     128a <fuse_mount+0xba>
mov    0x4(%rsp),%edi
call   1060 <close@plt>
mov    0x8(%rsp),%edi
call   1090 <receive_fd@plt>
mov    %eax,%ebx
mov    0x8(%rsp),%edi
call   1060 <close@plt>
mov    %ebp,%edi
xor    %esi,%esi
xor    %edx,%edx
call   10a0 <waitpid@plt>
mov    %ebx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xda7(%rip),%rdi
call   10b0 <perror@plt>
mov    $0xffffffff,%ebx
jmp    1241 <fuse_mount+0x71>
lea    0xdae(%rip),%rdi
call   10b0 <perror@plt>
mov    0x4(%rsp),%edi
call   1060 <close@plt>
mov    0x8(%rsp),%edi
call   1060 <close@plt>
mov    $0xffffffff,%ebx
jmp    1241 <fuse_mount+0x71>
xor    %ebp,%ebp
test   %r12,%r12
je     12ad <fuse_mount+0xdd>
mov    $0xffffffff,%ebp
mov    %r12,%rax
nopl   0x0(%rax)
add    $0x1,%ebp
cmpq   $0x0,(%rax)
lea    0x8(%rax),%rax
jne    12a0 <fuse_mount+0xd0>
lea    0x18(,%rbp,8),%edi
call   1080 <malloc@plt>
mov    %rax,%r15
lea    0xd90(%rip),%rdi
call   10e0 <strdup@plt>
mov    %rax,(%r15)
mov    $0x1,%r13d
test   %ebp,%ebp
je     1303 <fuse_mount+0x133>
mov    %ebp,%ebp
neg    %rbp
mov    $0x1,%r13d
mov    %r13,%rbx
mov    -0x8(%r12,%r13,8),%rdi
call   10e0 <strdup@plt>
add    $0x1,%r13
mov    %rax,(%r15,%rbx,8)
lea    (%rbx,%rbp,1),%rax
add    $0x1,%rax
cmp    $0x1,%rax
jne    12e0 <fuse_mount+0x110>
mov    %r14,%rdi
call   10e0 <strdup@plt>
mov    %r13d,%ecx
mov    %rax,(%r15,%rcx,8)
movq   $0x0,0x8(%r15,%rcx,8)
mov    0x8(%rsp),%edi
call   1060 <close@plt>
mov    0x4(%rsp),%edi
mov    0x2ca9(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1030 <fcntl@plt>
mov    0x4(%rsp),%ecx
lea    0xceb(%rip),%rdx
lea    0xe(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
call   1050 <snprintf@plt>
lea    0xcd5(%rip),%rdi
mov    %rbx,%rsi
mov    $0x1,%edx
call   1040 <setenv@plt>
lea    0xce3(%rip),%rdi
mov    %r15,%rsi
call   10c0 <execvp@plt>
lea    0xcbf(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"fusermount\00"
@PF_UNIX = global i32 0
@SOCK_STREAM = global i32 0
@.str.1 = [26 x i8] c"fuse: socketpair() failed\00"
@.str.2 = [20 x i8] c"fuse: fork() failed\00"
@F_SETFD = global i32 0
@.str.3 = [3 x i8] c"%i\00"
@.str.4 = [13 x i8] c"_FUSE_COMMFD\00"
@.str.5 = [32 x i8] c"fuse: failed to exec fusermount\00"
define i32 @fuse_mount(i8* %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca [2 x i32]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [10 x i8]
%12 = alloca i8**
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i8* %0, i8** %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8** %6
%16 = load i32, i32* @PF_UNIX
%17 = load i32, i32* @SOCK_STREAM
%18 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%19 = call i32 @socketpair(i32 %16, i32 %17, i32 0, i32* %18)
store i32 %19, i32* %9
%20 = load i32, i32* %9
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %24
22: ; preds = %2
%23 = call i32 @perror(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %3
br label %133
24: ; preds = %2
%25 = call i32 (...) @fork()
store i32 %25, i32* %8
%26 = load i32, i32* %8
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %36
28: ; preds = %24
%29 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%30 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%31 = load i32, i32* %30
%32 = call i32 @close(i32 %31)
%33 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%34 = load i32, i32* %33
%35 = call i32 @close(i32 %34)
store i32 -1, i32* %3
br label %133
36: ; preds = %24
%37 = load i32, i32* %8
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %120
39: ; preds = %36
store i32 0, i32* %13
%40 = load i8**, i8*** %5
%41 = icmp ne i8** %40, null
br i1 %41, label %42, label %54
42: ; preds = %39
br label %43
43: ; preds = %50, %42
%44 = load i8**, i8*** %5
%45 = load i32, i32* %13
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8*, i8** %44, i64 %46
%48 = load i8*, i8** %47
%49 = icmp ne i8* %48, null
br i1 %49, label %50, label %53
50: ; preds = %43
%51 = load i32, i32* %13
%52 = add nsw i32 %51, 1
store i32 %52, i32* %13
br label %43
53: ; preds = %43
br label %54
54: ; preds = %53, %39
%55 = load i32, i32* %13
%56 = add nsw i32 1, %55
%57 = add nsw i32 %56, 2
%58 = sext i32 %57 to i64
%59 = mul i64 %58, 8
%60 = trunc i64 %59 to i32
%61 = call i64 @malloc(i32 %60)
%62 = inttoptr i64 %61 to i8**
store i8** %62, i8*** %12
store i32 0, i32* %14
%63 = load i8*, i8** %6
%64 = call i8* @strdup(i8* %63)
%65 = load i8**, i8*** %12
%66 = load i32, i32* %14
%67 = add nsw i32 %66, 1
store i32 %67, i32* %14
%68 = sext i32 %66 to i64
%69 = getelementptr inbounds i8*, i8** %65, i64 %68
store i8* %64, i8** %69
store i32 0, i32* %15
br label %70
70: ; preds = %86, %54
%71 = load i32, i32* %15
%72 = load i32, i32* %13
%73 = icmp slt i32 %71, %72
br i1 %73, label %74, label %89
74: ; preds = %70
%75 = load i8**, i8*** %5
%76 = load i32, i32* %15
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8*, i8** %75, i64 %77
%79 = load i8*, i8** %78
%80 = call i8* @strdup(i8* %79)
%81 = load i8**, i8*** %12
%82 = load i32, i32* %14
%83 = add nsw i32 %82, 1
store i32 %83, i32* %14
%84 = sext i32 %82 to i64
%85 = getelementptr inbounds i8*, i8** %81, i64 %84
store i8* %80, i8** %85
br label %86
86: ; preds = %74
%87 = load i32, i32* %15
%88 = add nsw i32 %87, 1
store i32 %88, i32* %15
br label %70
89: ; preds = %70
%90 = load i8*, i8** %4
%91 = call i8* @strdup(i8* %90)
%92 = load i8**, i8*** %12
%93 = load i32, i32* %14
%94 = add nsw i32 %93, 1
store i32 %94, i32* %14
%95 = sext i32 %93 to i64
%96 = getelementptr inbounds i8*, i8** %92, i64 %95
store i8* %91, i8** %96
%97 = load i8**, i8*** %12
%98 = load i32, i32* %14
%99 = add nsw i32 %98, 1
store i32 %99, i32* %14
%100 = sext i32 %98 to i64
%101 = getelementptr inbounds i8*, i8** %97, i64 %100
store i8* null, i8** %101
%102 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%103 = load i32, i32* %102
%104 = call i32 @close(i32 %103)
%105 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%106 = load i32, i32* %105
%107 = load i32, i32* @F_SETFD
%108 = call i32 @fcntl(i32 %106, i32 %107, i32 0)
%109 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%110 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%111 = load i32, i32* %110
%112 = call i32 @snprintf(i8* %109, i32 10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %111)
%113 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%114 = call i32 @setenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* %113, i32 1)
%115 = load i8*, i8** %6
%116 = load i8**, i8*** %12
%117 = call i32 @execvp(i8* %115, i8** %116)
%118 = call i32 @perror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
%119 = call i32 @exit(i32 1)
unreachable
120: ; preds = %36
%121 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%122 = load i32, i32* %121
%123 = call i32 @close(i32 %122)
%124 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%125 = load i32, i32* %124
%126 = call i32 @receive_fd(i32 %125)
store i32 %126, i32* %10
%127 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%128 = load i32, i32* %127
%129 = call i32 @close(i32 %128)
%130 = load i32, i32* %8
%131 = call i32 @waitpid(i32 %130, i32* null, i32 0)
%132 = load i32, i32* %10
store i32 %132, i32* %3
br label %133
133: ; preds = %120, %28, %22
%134 = load i32, i32* %3
ret i32 %134
}

LLVM IR (-O2):
@.str = [11 x i8] c"fusermount\00"
@PF_UNIX = global i32 0
@SOCK_STREAM = global i32 0
@.str.1 = [26 x i8] c"fuse: socketpair() failed\00"
@.str.2 = [20 x i8] c"fuse: fork() failed\00"
@F_SETFD = global i32 0
@.str.3 = [3 x i8] c"%i\00"
@.str.4 = [13 x i8] c"_FUSE_COMMFD\00"
@.str.5 = [32 x i8] c"fuse: failed to exec fusermount\00"
define i32 @fuse_mount(i8* nocapture %0, i8** %1) {
%3 = alloca [2 x i32]
%4 = alloca [10 x i8]
%5 = bitcast [2 x i32]* %3 to i8*
%6 = load i32, i32* @PF_UNIX
%7 = load i32, i32* @SOCK_STREAM
%8 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%9 = call i32 @socketpair(i32 %6, i32 %7, i32 0, i32* %8)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @perror(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
br label %84
13: ; preds = %2
%14 = call i32 (...) @fork()
switch i32 %14, label %75 [
i32 -1, label %15
i32 0, label %22
]
15: ; preds = %13
%16 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%17 = load i32, i32* %8
%18 = call i32 @close(i32 %17)
%19 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%20 = load i32, i32* %19
%21 = call i32 @close(i32 %20)
br label %84
22: ; preds = %13
%23 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%24 = icmp eq i8** %1, null
br i1 %24, label %33, label %25
25: ; preds = %22, %25
%26 = phi i64 [ %30, %25 ], [ 0, %22 ]
%27 = getelementptr inbounds i8*, i8** %1, i64 %26
%28 = load i8*, i8** %27
%29 = icmp eq i8* %28, null
%30 = add nuw i64 %26, 1
br i1 %29, label %31, label %25
31: ; preds = %25
%32 = trunc i64 %26 to i32
br label %33
33: ; preds = %31, %22
%34 = phi i32 [ 0, %22 ], [ %32, %31 ]
%35 = shl i32 %34, 3
%36 = add i32 %35, 24
%37 = call i64 @malloc(i32 %36)
%38 = inttoptr i64 %37 to i8**
%39 = call dereferenceable_or_null(11) i8* @strdup(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
store i8* %39, i8** %38
%40 = icmp eq i32 %34, 0
br i1 %40, label %55, label %41
41: ; preds = %33
%42 = zext i32 %34 to i64
br label %43
43: ; preds = %41, %43
%44 = phi i64 [ 1, %41 ], [ %49, %43 ]
%45 = phi i64 [ 0, %41 ], [ %51, %43 ]
%46 = getelementptr inbounds i8*, i8** %1, i64 %45
%47 = load i8*, i8** %46
%48 = call i8* @strdup(i8* %47)
%49 = add nuw nsw i64 %44, 1
%50 = getelementptr inbounds i8*, i8** %38, i64 %44
store i8* %48, i8** %50
%51 = add nuw nsw i64 %45, 1
%52 = icmp eq i64 %51, %42
br i1 %52, label %53, label %43
53: ; preds = %43
%54 = trunc i64 %49 to i32
br label %55
55: ; preds = %53, %33
%56 = phi i32 [ 1, %33 ], [ %54, %53 ]
%57 = call i8* @strdup(i8* %0)
%58 = add nuw nsw i32 %56, 1
%59 = zext i32 %56 to i64
%60 = getelementptr inbounds i8*, i8** %38, i64 %59
store i8* %57, i8** %60
%61 = zext i32 %58 to i64
%62 = getelementptr inbounds i8*, i8** %38, i64 %61
store i8* null, i8** %62
%63 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%64 = load i32, i32* %63
%65 = call i32 @close(i32 %64)
%66 = load i32, i32* %8
%67 = load i32, i32* @F_SETFD
%68 = call i32 @fcntl(i32 %66, i32 %67, i32 0)
%69 = load i32, i32* %8
%70 = call i32 @snprintf(i8* %23, i32 10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %69)
%71 = call i32 @setenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* %23, i32 1)
%72 = call i32 @execvp(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8** %38)
%73 = call i32 @perror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
%74 = call i32 @exit(i32 1)
unreachable
75: ; preds = %13
%76 = load i32, i32* %8
%77 = call i32 @close(i32 %76)
%78 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%79 = load i32, i32* %78
%80 = call i32 @receive_fd(i32 %79)
%81 = load i32, i32* %78
%82 = call i32 @close(i32 %81)
%83 = call i32 @waitpid(i32 %14, i32* null, i32 0)
br label %84
84: ; preds = %75, %15, %11
%85 = phi i32 [ -1, %11 ], [ -1, %15 ], [ %80, %75 ]
ret i32 %85
}