#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 WEXITSTATUS(int);
scalar_t__ WIFEXITED(int);
char **calloc(int, int);
int /*<<< orphan*/ execvp(char *, char **);
int /*<<< orphan*/ exit(int);
scalar_t__ fork();
char *malloc(scalar_t__);
int /*<<< orphan*/ memcpy(char **, char **, int);
int /*<<< orphan*/ redirect(int, int, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *, char *);
scalar_t__ strlen(char *);
char *strstr(char *, char *);
int system(char *);
void exec_child(char **command, char **arguments, int replace_cb, int nargs,
                int stdout_fd, int stderr_fd) {
  if (fork() != 0) {
    return;
  }
  redirect(stdout_fd, 1, "stdout");
  redirect(stderr_fd, 2, "stderr");
  if (command[0]) {
    char **argv;
    int argc = 0;
    int i;
    char *s;
    while (command[argc] != 0) {
      argc++;
    }
    if (!replace_cb)
      argc++;
    argv = calloc(sizeof(char *), argc + nargs);
    for (i = 0; i < argc; i++) {
      while (replace_cb && (s = strstr(command[i], "{}"))) {
        char *buf = malloc(strlen(command[i]) + strlen(arguments[0]));
        s[0] = '\0';
        sprintf(buf, "%s%s%s", command[i], arguments[0], s + 2);
        command[i] = buf;
      }
      argv[i] = command[i];
    }
    if (!replace_cb)
      memcpy(argv + i - 1, arguments, nargs * sizeof(char *));
    execvp(argv[0], argv);
    exit(1);
  } else {
    int ret = system(arguments[0]);
    if (WIFEXITED(ret)) {
      exit(WEXITSTATUS(ret));
    } else {
      exit(1);
    }
  }
  return;
}


x86 assembly (clang, -O0):
<exec_child>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
mov    $0x0,%al
call   10e0 <fork@plt>
cmp    $0x0,%rax
je     1205 <exec_child+0x35>
add    $0x50,%rsp
pop    %rbp
ret
mov    -0x1c(%rbp),%edi
mov    $0x1,%esi
lea    0xdec(%rip),%rdx
call   1030 <redirect@plt>
mov    -0x20(%rbp),%edi
mov    $0x2,%esi
lea    0xddf(%rip),%rdx
call   1030 <redirect@plt>
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
je     13cf <exec_child+0x1ff>
movl   $0x0,-0x2c(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     1263 <exec_child+0x93>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1242 <exec_child+0x72>
cmpl   $0x0,-0x14(%rbp)
jne    1276 <exec_child+0xa6>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%esi
add    -0x18(%rbp),%esi
mov    $0x8,%edi
call   1060 <calloc@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1385 <exec_child+0x1b5>
jmp    12a2 <exec_child+0xd2>
xor    %eax,%eax
cmpl   $0x0,-0x14(%rbp)
mov    %al,-0x45(%rbp)
je     12d7 <exec_child+0x107>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd4a(%rip),%rsi
call   10f0 <strstr@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
setne  %al
mov    %al,-0x45(%rbp)
mov    -0x45(%rbp),%al
test   $0x1,%al
jne    12e7 <exec_child+0x117>
jmp    135f <exec_child+0x18f>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <strlen@plt>
mov    %rax,-0x50(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1040 <strlen@plt>
mov    -0x50(%rbp),%rdi
add    %rax,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x40(%rbp),%rdi
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
mov    -0x38(%rbp),%r8
add    $0x2,%r8
lea    0xccc(%rip),%rsi
call   10c0 <sprintf@plt>
mov    -0x40(%rbp),%rdx
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
jmp    12a2 <exec_child+0xd2>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1291 <exec_child+0xc1>
cmpl   $0x0,-0x14(%rbp)
jne    13b5 <exec_child+0x1e5>
mov    -0x28(%rbp),%rdi
movslq -0x30(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
add    $0xfffffffffffffff8,%rdi
mov    -0x10(%rbp),%rsi
movslq -0x18(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edx
call   1070 <memcpy@plt>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
mov    -0x28(%rbp),%rsi
call   10a0 <execvp@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1050 <system@plt>
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%edi
call   10b0 <WIFEXITED@plt>
cmp    $0x0,%rax
je     13ff <exec_child+0x22f>
mov    -0x44(%rbp),%edi
call   1090 <WEXITSTATUS@plt>
mov    %eax,%edi
call   10d0 <exit@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>

x86 assembly (clang, -O2):
<exec_child>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9d,%r14d
mov    %r8d,%r15d
mov    %ecx,%r13d
mov    %edx,%ebx
mov    %rsi,%rbp
mov    %rdi,%r12
xor    %eax,%eax
call   10e0 <fork@plt>
test   %rax,%rax
je     120a <exec_child+0x3a>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rbp,0x8(%rsp)
mov    %ebx,0x4(%rsp)
mov    %r13,0x28(%rsp)
lea    0xde1(%rip),%rdx
mov    %r15d,%edi
mov    $0x1,%esi
call   1030 <redirect@plt>
lea    0xdd4(%rip),%rdx
mov    %r14d,%edi
mov    $0x2,%esi
call   1030 <redirect@plt>
mov    %r12,0x20(%rsp)
cmpq   $0x0,(%r12)
jne    1275 <exec_child+0xa5>
mov    0x8(%rsp),%rax
mov    (%rax),%rdi
call   1050 <system@plt>
mov    %eax,%ebx
mov    %eax,%edi
call   10b0 <WIFEXITED@plt>
test   %rax,%rax
jne    1308 <exec_child+0x138>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x20(%rsp),%rax
add    $0x8,%rax
xor    %ebx,%ebx
add    $0xffffffff,%ebx
cmpq   $0x0,(%rax)
lea    0x8(%rax),%rax
jne    1280 <exec_child+0xb0>
xor    %r14d,%r14d
cmpl   $0x0,0x4(%rsp)
sete   %r14b
mov    0x28(%rsp),%rax
lea    (%r14,%rax,1),%esi
sub    %ebx,%esi
mov    $0x8,%edi
call   1060 <calloc@plt>
mov    %rax,0x18(%rsp)
mov    %r14,0x30(%rsp)
mov    %r14d,%eax
sub    %ebx,%eax
jne    1316 <exec_child+0x146>
xor    %eax,%eax
mov    %rax,0x10(%rsp)
cmpl   $0x0,0x4(%rsp)
jne    12f1 <exec_child+0x121>
mov    0x18(%rsp),%rax
mov    0x10(%rsp),%rcx
lea    (%rax,%rcx,8),%rdi
add    $0xfffffffffffffff8,%rdi
mov    0x28(%rsp),%rdx
shl    $0x3,%edx
mov    0x8(%rsp),%rsi
call   1070 <memcpy@plt>
mov    0x18(%rsp),%rsi
mov    (%rsi),%rdi
call   10a0 <execvp@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    %ebx,%edi
call   1090 <WEXITSTATUS@plt>
mov    %eax,%edi
call   10d0 <exit@plt>
mov    %eax,%eax
mov    %rax,0x10(%rsp)
xor    %ebp,%ebp
lea    0xce8(%rip),%rbx
mov    0x8(%rsp),%r12
mov    0x20(%rsp),%r13
jmp    1358 <exec_child+0x188>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x18(%rsp),%rax
mov    %r14,(%rax,%rbp,8)
add    $0x1,%rbp
cmp    0x10(%rsp),%rbp
je     12c6 <exec_child+0xf6>
mov    0x20(%rsp),%rax
mov    (%rax,%rbp,8),%r14
cmpl   $0x0,0x30(%rsp)
jne    1340 <exec_child+0x170>
mov    %r14,%rdi
mov    %rbx,%rsi
call   10f0 <strstr@plt>
test   %rax,%rax
je     1340 <exec_child+0x170>
mov    %rax,%r15
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rbp,%r14
mov    %rbx,%rbp
mov    %rax,%rbx
mov    (%r12),%rdi
call   1040 <strlen@plt>
add    %rax,%rbx
mov    %rbx,%rdi
mov    %rbp,%rbx
mov    %r14,%rbp
call   1080 <malloc@plt>
mov    %rax,%r14
movb   $0x0,(%r15)
mov    0x0(%r13,%rbp,8),%rdx
mov    (%r12),%rcx
add    $0x2,%r15
mov    %rax,%rdi
lea    0xc48(%rip),%rsi
mov    %r15,%r8
call   10c0 <sprintf@plt>
mov    %r14,0x0(%r13,%rbp,8)
mov    %r14,%rdi
mov    %rbx,%rsi
call   10f0 <strstr@plt>
mov    %rax,%r15
test   %rax,%rax
jne    1380 <exec_child+0x1b0>
jmp    1340 <exec_child+0x170>

LLVM IR (-O0):
@.str = [7 x i8] c"stdout\00"
@.str.1 = [7 x i8] c"stderr\00"
@.str.2 = [3 x i8] c"{}\00"
@.str.3 = [7 x i8] c"%s%s%s\00"
define void @exec_child(i8** %0, i8** %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i8**
%8 = alloca i8**
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8**
%14 = alloca i32
%15 = alloca i32
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i32
store i8** %0, i8*** %7
store i8** %1, i8*** %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%19 = call i64 (...) @fork()
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %6
ret void
22: ; preds = %6
%23 = load i32, i32* %11
%24 = call i32 @redirect(i32 %23, i32 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%25 = load i32, i32* %12
%26 = call i32 @redirect(i32 %25, i32 2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%27 = load i8**, i8*** %7
%28 = getelementptr inbounds i8*, i8** %27, i64 0
%29 = load i8*, i8** %28
%30 = icmp ne i8* %29, null
br i1 %30, label %31, label %138
31: ; preds = %22
store i32 0, i32* %14
br label %32
32: ; preds = %39, %31
%33 = load i8**, i8*** %7
%34 = load i32, i32* %14
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8*, i8** %33, i64 %35
%37 = load i8*, i8** %36
%38 = icmp ne i8* %37, null
br i1 %38, label %39, label %42
39: ; preds = %32
%40 = load i32, i32* %14
%41 = add nsw i32 %40, 1
store i32 %41, i32* %14
br label %32
42: ; preds = %32
%43 = load i32, i32* %9
%44 = icmp ne i32 %43, 0
br i1 %44, label %48, label %45
45: ; preds = %42
%46 = load i32, i32* %14
%47 = add nsw i32 %46, 1
store i32 %47, i32* %14
br label %48
48: ; preds = %45, %42
%49 = load i32, i32* %14
%50 = load i32, i32* %10
%51 = add nsw i32 %49, %50
%52 = call i8** @calloc(i32 8, i32 %51)
store i8** %52, i8*** %13
store i32 0, i32* %15
br label %53
53: ; preds = %113, %48
%54 = load i32, i32* %15
%55 = load i32, i32* %14
%56 = icmp slt i32 %54, %55
br i1 %56, label %57, label %116
57: ; preds = %53
br label %58
58: ; preds = %71, %57
%59 = load i32, i32* %9
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %69
61: ; preds = %58
%62 = load i8**, i8*** %7
%63 = load i32, i32* %15
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8*, i8** %62, i64 %64
%66 = load i8*, i8** %65
%67 = call i8* @strstr(i8* %66, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i8* %67, i8** %16
%68 = icmp ne i8* %67, null
br label %69
69: ; preds = %61, %58
%70 = phi i1 [ false, %58 ], [ %68, %61 ]
br i1 %70, label %71, label %103
71: ; preds = %69
%72 = load i8**, i8*** %7
%73 = load i32, i32* %15
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8*, i8** %72, i64 %74
%76 = load i8*, i8** %75
%77 = call i64 @strlen(i8* %76)
%78 = load i8**, i8*** %8
%79 = getelementptr inbounds i8*, i8** %78, i64 0
%80 = load i8*, i8** %79
%81 = call i64 @strlen(i8* %80)
%82 = add nsw i64 %77, %81
%83 = call i8* @malloc(i64 %82)
store i8* %83, i8** %17
%84 = load i8*, i8** %16
%85 = getelementptr inbounds i8, i8* %84, i64 0
store i8 0, i8* %85
%86 = load i8*, i8** %17
%87 = load i8**, i8*** %7
%88 = load i32, i32* %15
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8*, i8** %87, i64 %89
%91 = load i8*, i8** %90
%92 = load i8**, i8*** %8
%93 = getelementptr inbounds i8*, i8** %92, i64 0
%94 = load i8*, i8** %93
%95 = load i8*, i8** %16
%96 = getelementptr inbounds i8, i8* %95, i64 2
%97 = call i32 @sprintf(i8* %86, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* %91, i8* %94, i8* %96)
%98 = load i8*, i8** %17
%99 = load i8**, i8*** %7
%100 = load i32, i32* %15
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i8*, i8** %99, i64 %101
store i8* %98, i8** %102
br label %58
103: ; preds = %69
%104 = load i8**, i8*** %7
%105 = load i32, i32* %15
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8*, i8** %104, i64 %106
%108 = load i8*, i8** %107
%109 = load i8**, i8*** %13
%110 = load i32, i32* %15
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i8*, i8** %109, i64 %111
store i8* %108, i8** %112
br label %113
113: ; preds = %103
%114 = load i32, i32* %15
%115 = add nsw i32 %114, 1
store i32 %115, i32* %15
br label %53
116: ; preds = %53
%117 = load i32, i32* %9
%118 = icmp ne i32 %117, 0
br i1 %118, label %131, label %119
119: ; preds = %116
%120 = load i8**, i8*** %13
%121 = load i32, i32* %15
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i8*, i8** %120, i64 %122
%124 = getelementptr inbounds i8*, i8** %123, i64 -1
%125 = load i8**, i8*** %8
%126 = load i32, i32* %10
%127 = sext i32 %126 to i64
%128 = mul i64 %127, 8
%129 = trunc i64 %128 to i32
%130 = call i32 @memcpy(i8** %124, i8** %125, i32 %129)
br label %131
131: ; preds = %119, %116
%132 = load i8**, i8*** %13
%133 = getelementptr inbounds i8*, i8** %132, i64 0
%134 = load i8*, i8** %133
%135 = load i8**, i8*** %13
%136 = call i32 @execvp(i8* %134, i8** %135)
%137 = call i32 @exit(i32 1)
unreachable
138: ; preds = %22
%139 = load i8**, i8*** %8
%140 = getelementptr inbounds i8*, i8** %139, i64 0
%141 = load i8*, i8** %140
%142 = call i32 @system(i8* %141)
store i32 %142, i32* %18
%143 = load i32, i32* %18
%144 = call i64 @WIFEXITED(i32 %143)
%145 = icmp ne i64 %144, 0
br i1 %145, label %146, label %150
146: ; preds = %138
%147 = load i32, i32* %18
%148 = call i32 @WEXITSTATUS(i32 %147)
%149 = call i32 @exit(i32 %148)
unreachable
150: ; preds = %138
%151 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [7 x i8] c"stdout\00"
@.str.1 = [7 x i8] c"stderr\00"
@.str.2 = [3 x i8] c"{}\00"
@.str.3 = [7 x i8] c"%s%s%s\00"
define void @exec_child(i8** nocapture %0, i8** %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = tail call i64 (...) @fork()
%8 = icmp eq i64 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %6
ret void
10: ; preds = %6
%11 = tail call i32 @redirect(i32 %4, i32 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%12 = tail call i32 @redirect(i32 %5, i32 2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%13 = load i8*, i8** %0
%14 = icmp eq i8* %13, null
br i1 %14, label %70, label %15
15: ; preds = %10, %15
%16 = phi i64 [ %20, %15 ], [ 1, %10 ]
%17 = getelementptr inbounds i8*, i8** %0, i64 %16
%18 = load i8*, i8** %17
%19 = icmp eq i8* %18, null
%20 = add nuw i64 %16, 1
br i1 %19, label %21, label %15
21: ; preds = %15
%22 = trunc i64 %16 to i32
%23 = icmp eq i32 %2, 0
%24 = zext i1 %23 to i32
%25 = add nuw nsw i32 %22, %24
%26 = add nsw i32 %25, %3
%27 = tail call i8** @calloc(i32 8, i32 %26)
%28 = icmp eq i32 %25, 0
br i1 %28, label %59, label %29
29: ; preds = %21
%30 = zext i32 %25 to i64
br label %31
31: ; preds = %29, %52
%32 = phi i64 [ 0, %29 ], [ %55, %52 ]
%33 = getelementptr inbounds i8*, i8** %0, i64 %32
%34 = load i8*, i8** %33
br i1 %23, label %52, label %35
35: ; preds = %31
%36 = tail call i8* @strstr(i8* dereferenceable(1) %34, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%37 = icmp eq i8* %36, null
br i1 %37, label %52, label %38
38: ; preds = %35, %38
%39 = phi i8* [ %50, %38 ], [ %36, %35 ]
%40 = phi i8* [ %45, %38 ], [ %34, %35 ]
%41 = tail call i64 @strlen(i8* dereferenceable(1) %40)
%42 = load i8*, i8** %1
%43 = tail call i64 @strlen(i8* dereferenceable(1) %42)
%44 = add nsw i64 %43, %41
%45 = tail call i8* @malloc(i64 %44)
store i8 0, i8* %39
%46 = load i8*, i8** %33
%47 = load i8*, i8** %1
%48 = getelementptr inbounds i8, i8* %39, i64 2
%49 = tail call i32 @sprintf(i8* dereferenceable(1) %45, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* %46, i8* %47, i8* %48)
store i8* %45, i8** %33
%50 = tail call i8* @strstr(i8* dereferenceable(1) %45, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%51 = icmp eq i8* %50, null
br i1 %51, label %52, label %38
52: ; preds = %38, %35, %31
%53 = phi i8* [ %34, %31 ], [ %34, %35 ], [ %45, %38 ]
%54 = getelementptr inbounds i8*, i8** %27, i64 %32
store i8* %53, i8** %54
%55 = add nuw nsw i64 %32, 1
%56 = icmp eq i64 %55, %30
br i1 %56, label %57, label %31
57: ; preds = %52
%58 = zext i32 %25 to i64
br label %59
59: ; preds = %57, %21
%60 = phi i64 [ 0, %21 ], [ %58, %57 ]
br i1 %23, label %61, label %66
61: ; preds = %59
%62 = getelementptr inbounds i8*, i8** %27, i64 %60
%63 = getelementptr inbounds i8*, i8** %62, i64 -1
%64 = shl i32 %3, 3
%65 = tail call i32 @memcpy(i8** %63, i8** %1, i32 %64)
br label %66
66: ; preds = %61, %59
%67 = load i8*, i8** %27
%68 = tail call i32 @execvp(i8* %67, i8** %27)
%69 = tail call i32 @exit(i32 1)
unreachable
70: ; preds = %10
%71 = load i8*, i8** %1
%72 = tail call i32 @system(i8* %71)
%73 = tail call i64 @WIFEXITED(i32 %72)
%74 = icmp eq i64 %73, 0
br i1 %74, label %78, label %75
75: ; preds = %70
%76 = tail call i32 @WEXITSTATUS(i32 %72)
%77 = tail call i32 @exit(i32 %76)
unreachable
78: ; preds = %70
%79 = tail call i32 @exit(i32 1)
unreachable
}