#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 /*<<< orphan*/ close(int);
int /*<<< orphan*/ execvp(char *, char **);
int fork();
int /*<<< orphan*/ perror(char *);
int strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
int /*<<< orphan*/ waitpid(int, int /*<<< orphan*/ *, int /*<<< orphan*/);
void call_self_nocheckpoint(char *program) {
  char no_checkpoint_prog[1000] = "bin/dmtcp_nocheckpoint";
  char *args[] = {NULL, NULL, "--called-as-nocheckpoint", NULL};
  args[0] = no_checkpoint_prog;
  args[1] = program;
  int index = 0;
  int slash = -1;
  for (index = 0; index < strlen(program) && program[index] != '\0'; index++) {
    if (program[index] == '/') {
      slash = index;
    }
  }
  if (slash >= 0) {
    strncpy(no_checkpoint_prog, program, 900);
    strncpy(no_checkpoint_prog + slash + 1, "../bin/dmtcp_nocheckpoint", 900);
  }
  int childpid = fork();
  if (childpid > 0) {
    waitpid(childpid, NULL, 0);
  } else {
    close(2);
    execvp(args[0], args);
    perror("execvp");
  }
}


x86 assembly (clang, -O0):
<call_self_nocheckpoint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x430,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x3f0(%rbp),%rdi
lea    0xe63(%rip),%rsi
mov    $0x3e8,%edx
call   1060 <memcpy@plt>
mov    0x2c52(%rip),%rax
mov    %rax,-0x410(%rbp)
mov    0x2c4c(%rip),%rax
mov    %rax,-0x408(%rbp)
mov    0x2c46(%rip),%rax
mov    %rax,-0x400(%rbp)
mov    0x2c40(%rip),%rax
mov    %rax,-0x3f8(%rbp)
lea    -0x3f0(%rbp),%rax
mov    %rax,-0x410(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x408(%rbp)
movl   $0x0,-0x414(%rbp)
movl   $0xffffffff,-0x418(%rbp)
ff ff ff
movl   $0x0,-0x414(%rbp)
mov    -0x414(%rbp),%eax
mov    %eax,-0x424(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x424(%rbp),%ecx
mov    %eax,%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x41d(%rbp)
jge    125e <call_self_nocheckpoint+0xde>
mov    -0x8(%rbp),%rax
movslq -0x414(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x41d(%rbp)
mov    -0x41d(%rbp),%al
test   $0x1,%al
jne    1271 <call_self_nocheckpoint+0xf1>
jmp    12ae <call_self_nocheckpoint+0x12e>
mov    -0x8(%rbp),%rax
movslq -0x414(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2f,%eax
jne    1295 <call_self_nocheckpoint+0x115>
mov    -0x414(%rbp),%eax
mov    %eax,-0x418(%rbp)
jmp    129a <call_self_nocheckpoint+0x11a>
mov    -0x414(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x414(%rbp)
jmp    1216 <call_self_nocheckpoint+0x96>
cmpl   $0x0,-0x418(%rbp)
jl     12f6 <call_self_nocheckpoint+0x176>
lea    -0x3f0(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    $0x384,%edx
call   1030 <strncpy@plt>
lea    -0x3f0(%rbp),%rdi
movslq -0x418(%rbp),%rax
add    %rax,%rdi
add    $0x1,%rdi
lea    0x1115(%rip),%rsi
mov    $0x384,%edx
call   1030 <strncpy@plt>
mov    $0x0,%al
call   10a0 <fork@plt>
mov    %eax,-0x41c(%rbp)
cmpl   $0x0,-0x41c(%rbp)
jle    1326 <call_self_nocheckpoint+0x1a6>
mov    -0x41c(%rbp),%edi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1070 <waitpid@plt>
jmp    134f <call_self_nocheckpoint+0x1cf>
mov    $0x2,%edi
call   1050 <close@plt>
mov    -0x410(%rbp),%rdi
lea    -0x410(%rbp),%rsi
call   1090 <execvp@plt>
lea    0x10d1(%rip),%rdi
call   1080 <perror@plt>
add    $0x430,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<call_self_nocheckpoint>:
push   %rbp
push   %r14
push   %rbx
sub    $0x410,%rsp
mov    %rdi,%rbx
lea    0xe6b(%rip),%rsi
lea    0x20(%rsp),%r14
mov    $0x3e8,%edx
mov    %r14,%rdi
call   1060 <memcpy@plt>
movaps 0x2c52(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0x2c57(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %rbx,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    1235 <call_self_nocheckpoint+0xb5>
mov    $0xffffffff,%r14d
xor    %ebp,%ebp
jmp    11f6 <call_self_nocheckpoint+0x76>
nopl   (%rax)
mov    %ebp,%r14d
add    $0x1,%rbp
mov    %rbx,%rdi
call   1040 <strlen@plt>
cltq
cmp    %rax,%rbp
jge    1202 <call_self_nocheckpoint+0x82>
movzbl (%rbx,%rbp,1),%eax
cmp    $0x2f,%al
je     11e0 <call_self_nocheckpoint+0x60>
test   %al,%al
jne    11e3 <call_self_nocheckpoint+0x63>
test   %r14d,%r14d
js     1235 <call_self_nocheckpoint+0xb5>
lea    0x20(%rsp),%rdi
mov    %rbx,%rsi
mov    $0x384,%edx
call   1030 <strncpy@plt>
mov    %r14d,%eax
lea    (%rsp,%rax,1),%rdi
add    $0x21,%rdi
lea    0x11d6(%rip),%rsi
mov    $0x384,%edx
call   1030 <strncpy@plt>
xor    %eax,%eax
call   10a0 <fork@plt>
test   %eax,%eax
jle    1257 <call_self_nocheckpoint+0xd7>
mov    %eax,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1070 <waitpid@plt>
add    $0x410,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    $0x2,%edi
call   1050 <close@plt>
lea    0x20(%rsp),%rdi
mov    %rsp,%rsi
call   1090 <execvp@plt>
lea    0x11a6(%rip),%rdi
call   1080 <perror@plt>
jmp    124b <call_self_nocheckpoint+0xcb>

LLVM IR (-O0):
@__const.call_self_nocheckpoint.no_checkpoint_prog = [1000 x i8] c"bin/dmtcp_nocheckpoint\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [25 x i8] c"--called-as-nocheckpoint\00"
@__const.call_self_nocheckpoint.args = [4 x i8*] [i8* null, i8* null, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i32 0, i32 0), i8* null]
@.str.1 = [26 x i8] c"../bin/dmtcp_nocheckpoint\00"
@.str.2 = [7 x i8] c"execvp\00"
define void @call_self_nocheckpoint(i8* %0) {
%2 = alloca i8*
%3 = alloca [1000 x i8]
%4 = alloca [4 x i8*]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %2
%8 = bitcast [1000 x i8]* %3 to i8*
%9 = bitcast [4 x i8*]* %4 to i8*
%10 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%11 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 0
store i8* %10, i8** %11
%12 = load i8*, i8** %2
%13 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 1
store i8* %12, i8** %13
store i32 0, i32* %5
store i32 -1, i32* %6
store i32 0, i32* %5
br label %14
14: ; preds = %40, %1
%15 = load i32, i32* %5
%16 = load i8*, i8** %2
%17 = call i32 @strlen(i8* %16)
%18 = icmp slt i32 %15, %17
br i1 %18, label %19, label %27
19: ; preds = %14
%20 = load i8*, i8** %2
%21 = load i32, i32* %5
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, i8* %20, i64 %22
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br label %27
27: ; preds = %19, %14
%28 = phi i1 [ false, %14 ], [ %26, %19 ]
br i1 %28, label %29, label %43
29: ; preds = %27
%30 = load i8*, i8** %2
%31 = load i32, i32* %5
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, i8* %30, i64 %32
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 47
br i1 %36, label %37, label %39
37: ; preds = %29
%38 = load i32, i32* %5
store i32 %38, i32* %6
br label %39
39: ; preds = %37, %29
br label %40
40: ; preds = %39
%41 = load i32, i32* %5
%42 = add nsw i32 %41, 1
store i32 %42, i32* %5
br label %14
43: ; preds = %27
%44 = load i32, i32* %6
%45 = icmp sge i32 %44, 0
br i1 %45, label %46, label %56
46: ; preds = %43
%47 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%48 = load i8*, i8** %2
%49 = call i32 @strncpy(i8* %47, i8* %48, i32 900)
%50 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%51 = load i32, i32* %6
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, i8* %50, i64 %52
%54 = getelementptr inbounds i8, i8* %53, i64 1
%55 = call i32 @strncpy(i8* %54, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i32 900)
br label %56
56: ; preds = %46, %43
%57 = call i32 (...) @fork()
store i32 %57, i32* %7
%58 = load i32, i32* %7
%59 = icmp sgt i32 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %56
%61 = load i32, i32* %7
%62 = call i32 @waitpid(i32 %61, i32* null, i32 0)
br label %70
63: ; preds = %56
%64 = call i32 @close(i32 2)
%65 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 0
%66 = load i8*, i8** %65
%67 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 0
%68 = call i32 @execvp(i8* %66, i8** %67)
%69 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %70
70: ; preds = %63, %60
ret void
}

LLVM IR (-O2):
@__const.call_self_nocheckpoint.no_checkpoint_prog = [1000 x i8] c"bin/dmtcp_nocheckpoint\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [25 x i8] c"--called-as-nocheckpoint\00"
@__const.call_self_nocheckpoint.args = [4 x i8*] [i8* null, i8* null, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i32 0, i32 0), i8* null]
@.str.1 = [26 x i8] c"../bin/dmtcp_nocheckpoint\00"
@.str.2 = [7 x i8] c"execvp\00"
define void @call_self_nocheckpoint(i8* %0) {
%2 = alloca [1000 x i8]
%3 = alloca [4 x i8*]
%4 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%5 = bitcast [4 x i8*]* %3 to i8*
%6 = getelementptr inbounds [4 x i8*], [4 x i8*]* %3, i64 0, i64 0
store i8* %4, i8** %6
%7 = getelementptr inbounds [4 x i8*], [4 x i8*]* %3, i64 0, i64 1
store i8* %0, i8** %7
%8 = call i32 @strlen(i8* %0)
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %32
10: ; preds = %1, %17
%11 = phi i64 [ %19, %17 ], [ 0, %1 ]
%12 = phi i32 [ %18, %17 ], [ -1, %1 ]
%13 = getelementptr inbounds i8, i8* %0, i64 %11
%14 = load i8, i8* %13
switch i8 %14, label %17 [
i8 0, label %23
i8 47, label %15
]
15: ; preds = %10
%16 = trunc i64 %11 to i32
br label %17
17: ; preds = %10, %15
%18 = phi i32 [ %16, %15 ], [ %12, %10 ]
%19 = add nuw nsw i64 %11, 1
%20 = call i32 @strlen(i8* %0)
%21 = sext i32 %20 to i64
%22 = icmp slt i64 %19, %21
br i1 %22, label %10, label %23
23: ; preds = %17, %10
%24 = phi i32 [ %18, %17 ], [ %12, %10 ]
%25 = icmp sgt i32 %24, -1
br i1 %25, label %26, label %32
26: ; preds = %23
%27 = call i32 @strncpy(i8* %4, i8* %0, i32 900)
%28 = zext i32 %24 to i64
%29 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 %28
%30 = getelementptr inbounds i8, i8* %29, i64 1
%31 = call i32 @strncpy(i8* %30, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i32 900)
br label %32
32: ; preds = %1, %26, %23
%33 = call i32 (...) @fork()
%34 = icmp sgt i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @waitpid(i32 %33, i32* null, i32 0)
br label %41
37: ; preds = %32
%38 = call i32 @close(i32 2)
%39 = call i32 @execvp(i8* %4, i8** %6)
%40 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %41
41: ; preds = %37, %35
ret void
}