#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 pid_t;

/* Variables and functions */
int /*<<< orphan*/ PR_SET_PDEATHSIG;
int /*<<< orphan*/ SIGHUP;
int /*<<< orphan*/ SIGUSR1;
int /*<<< orphan*/ SIG_IGN;
int /*<<< orphan*/ STDIN_FILENO;
int /*<<< orphan*/ STDOUT_FILENO;
scalar_t__ close(int);
scalar_t__ dup2(int, int /*<<< orphan*/);
int /*<<< orphan*/ execlp(char *, char *, char *, char const *, char *, char *,
                          char *, char *, char *, char *, char *, char *,
                          char *, char *, char *, char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int);
int fork();
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ pipe(int *);
scalar_t__ prctl(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ signal(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ sleep(int);
void spawn_bar(int *lemon_in, int *lemon_out, const char *geometry) {
  int child_in[2];
  int child_out[2];
  pid_t childpid;
  pipe(child_in);
  pipe(child_out);
  if ((childpid = fork()) == -1) {
    perror("fork");
    exit(-1);
  }
  if (childpid == 0) {
    if (close(child_in[1]) < 0) {
      perror("closing child input");
    }
    if (close(child_out[0]) < 0) {
      perror("closing child output");
    }
    if (prctl(PR_SET_PDEATHSIG, SIGHUP) < 0) {
      perror("setting up deathsig");
    }
    if (dup2(child_in[0], STDIN_FILENO) < 0) {
      perror("setting lemon stdin");
    }
    if (dup2(child_out[1], STDOUT_FILENO) < 0) {
      perror("setting lemon stdout");
    }
    signal(SIGUSR1, SIG_IGN);
    execlp("lemonbar", "lemonbar", "-g", geometry, "-B", "#ee383a3b", "-F",
           "#ffffff", "-u", "3", "-a", "90", "-f",
           "-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*", "-f",
           "icons\\-in\\-terminal-9:style=in-terminal", NULL);
    exit(0);
  } else {
    if (close(child_in[0]) < 0) {
      perror("parent closing output");
    }
    if (close(child_out[1]) < 0) {
      perror("parent closing intput");
    }
    *lemon_in = child_in[1];
    *lemon_out = child_out[0];
    ;
    sleep(1);
    ;
  }
}


x86 assembly (clang, -O0):
<spawn_bar>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
lea    -0x48(%rbp),%rdi
call   1050 <pipe@plt>
lea    -0x50(%rbp),%rdi
call   1050 <pipe@plt>
mov    $0x0,%al
call   10c0 <fork@plt>
mov    %eax,-0x54(%rbp)
cmp    $0xffffffff,%eax
jne    11fb <spawn_bar+0x5b>
lea    0xe14(%rip),%rdi
call   1080 <perror@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
cmpl   $0x0,-0x54(%rbp)
jne    1385 <spawn_bar+0x1e5>
mov    -0x44(%rbp),%edi
call   1040 <close@plt>
cmp    $0x0,%rax
jge    1223 <spawn_bar+0x83>
lea    0xde7(%rip),%rdi
call   1080 <perror@plt>
mov    -0x50(%rbp),%edi
call   1040 <close@plt>
cmp    $0x0,%rax
jge    1241 <spawn_bar+0xa1>
lea    0xddd(%rip),%rdi
call   1080 <perror@plt>
mov    0x2d78(%rip),%rax
mov    (%rax),%edi
mov    0x2d9f(%rip),%rax
mov    (%rax),%esi
call   1070 <prctl@plt>
cmp    $0x0,%rax
jge    126e <spawn_bar+0xce>
lea    0xdc5(%rip),%rdi
call   1080 <perror@plt>
mov    -0x48(%rbp),%edi
mov    0x2d40(%rip),%rax
mov    (%rax),%esi
call   1030 <dup2@plt>
cmp    $0x0,%rax
jge    1295 <spawn_bar+0xf5>
lea    0xdb2(%rip),%rdi
call   1080 <perror@plt>
mov    -0x4c(%rbp),%edi
mov    0x2d49(%rip),%rax
mov    (%rax),%esi
call   1030 <dup2@plt>
cmp    $0x0,%rax
jge    12bc <spawn_bar+0x11c>
lea    0xd9f(%rip),%rdi
call   1080 <perror@plt>
mov    0x2d15(%rip),%rax
mov    (%rax),%edi
mov    0x2d04(%rip),%rax
mov    (%rax),%esi
call   1060 <signal@plt>
mov    -0x40(%rbp),%rcx
lea    0xd8d(%rip),%rsi
lea    0xd8f(%rip),%rdx
lea    0xd8b(%rip),%r8
lea    0xd87(%rip),%r9
lea    0xd8a(%rip),%rax
lea    0xd86(%rip),%r13
lea    0xd87(%rip),%r12
lea    0xd83(%rip),%r15
lea    0xd7e(%rip),%r14
lea    0xd7a(%rip),%rbx
lea    0xd76(%rip),%r10
lea    0xd72(%rip),%r11
lea    0xd9c(%rip),%rdi
mov    %rdi,-0x60(%rbp)
xor    %edi,%edi
mov    %rsi,%rdi
mov    %rax,(%rsp)
mov    -0x60(%rbp),%rax
mov    %r13,0x8(%rsp)
mov    %r12,0x10(%rsp)
mov    %r15,0x18(%rsp)
mov    %r14,0x20(%rsp)
mov    %rbx,0x28(%rsp)
mov    %r10,0x30(%rsp)
mov    %r11,0x38(%rsp)
mov    %r10,0x40(%rsp)
mov    %rax,0x48(%rsp)
movq   $0x0,0x50(%rsp)
call   10a0 <execlp@plt>
xor    %edi,%edi
call   1090 <exit@plt>
mov    -0x48(%rbp),%edi
call   1040 <close@plt>
cmp    $0x0,%rax
jge    13a3 <spawn_bar+0x203>
lea    0xd58(%rip),%rdi
call   1080 <perror@plt>
mov    -0x4c(%rbp),%edi
call   1040 <close@plt>
cmp    $0x0,%rax
jge    13c1 <spawn_bar+0x221>
lea    0xd50(%rip),%rdi
call   1080 <perror@plt>
mov    -0x44(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x50(%rbp),%ecx
mov    -0x38(%rbp),%rax
mov    %ecx,(%rax)
mov    $0x1,%edi
call   10b0 <sleep@plt>
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<spawn_bar>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
lea    0x10(%rsp),%rdi
call   1050 <pipe@plt>
lea    0x8(%rsp),%rdi
call   1050 <pipe@plt>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %eax,%eax
je     123d <spawn_bar+0x9d>
cmp    $0xffffffff,%eax
je     137c <spawn_bar+0x1dc>
mov    0x10(%rsp),%edi
call   1040 <close@plt>
test   %rax,%rax
js     1221 <spawn_bar+0x81>
mov    0xc(%rsp),%edi
call   1040 <close@plt>
test   %rax,%rax
js     122f <spawn_bar+0x8f>
mov    0x14(%rsp),%eax
mov    %eax,(%rbx)
mov    0x8(%rsp),%eax
mov    %eax,(%r15)
mov    $0x1,%edi
call   10b0 <sleep@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xece(%rip),%rdi
call   1080 <perror@plt>
jmp    11ed <spawn_bar+0x4d>
lea    0xed6(%rip),%rdi
call   1080 <perror@plt>
jmp    11fb <spawn_bar+0x5b>
mov    0x14(%rsp),%edi
call   1040 <close@plt>
test   %rax,%rax
jns    1257 <spawn_bar+0xb7>
lea    0xdb3(%rip),%rdi
call   1080 <perror@plt>
mov    0x8(%rsp),%edi
call   1040 <close@plt>
test   %rax,%rax
jns    1271 <spawn_bar+0xd1>
lea    0xdad(%rip),%rdi
call   1080 <perror@plt>
mov    0x2d48(%rip),%rax
mov    (%rax),%edi
mov    0x2d6f(%rip),%rax
mov    (%rax),%esi
call   1070 <prctl@plt>
test   %rax,%rax
jns    1299 <spawn_bar+0xf9>
lea    0xd9a(%rip),%rdi
call   1080 <perror@plt>
mov    0x10(%rsp),%edi
mov    0x2d14(%rip),%rax
mov    (%rax),%esi
call   1030 <dup2@plt>
test   %rax,%rax
jns    12bc <spawn_bar+0x11c>
lea    0xd8b(%rip),%rdi
call   1080 <perror@plt>
mov    0xc(%rsp),%edi
mov    0x2d21(%rip),%rax
mov    (%rax),%esi
call   1030 <dup2@plt>
test   %rax,%rax
jns    12df <spawn_bar+0x13f>
lea    0xd7c(%rip),%rdi
call   1080 <perror@plt>
mov    0x2cf2(%rip),%rax
mov    (%rax),%edi
mov    0x2ce1(%rip),%rax
mov    (%rax),%esi
call   1060 <signal@plt>
sub    $0x8,%rsp
lea    0xdcd(%rip),%rbx
lea    0xd92(%rip),%rax
lea    0xd8e(%rip),%r11
lea    0xd81(%rip),%r15
lea    0xd77(%rip),%r12
lea    0xd6e(%rip),%r13
lea    0xd64(%rip),%rbp
lea    0xd55(%rip),%r10
lea    0xd32(%rip),%rdi
lea    0xd34(%rip),%rdx
lea    0xd30(%rip),%r8
lea    0xd2c(%rip),%r9
mov    %rdi,%rsi
mov    %r14,%rcx
push   $0x0
push   %rbx
push   %rax
push   %r11
push   %rax
push   %r15
push   %r12
push   %r13
push   %rbp
push   %r10
lea    0xd19(%rip),%rax
push   %rax
call   10a0 <execlp@plt>
add    $0x60,%rsp
xor    %edi,%edi
call   1090 <exit@plt>
lea    0xc7d(%rip),%rdi
call   1080 <perror@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"fork\00"
@.str.1 = [20 x i8] c"closing child input\00"
@.str.2 = [21 x i8] c"closing child output\00"
@PR_SET_PDEATHSIG = global i32 0
@SIGHUP = global i32 0
@.str.3 = [20 x i8] c"setting up deathsig\00"
@STDIN_FILENO = global i32 0
@.str.4 = [20 x i8] c"setting lemon stdin\00"
@STDOUT_FILENO = global i32 0
@.str.5 = [21 x i8] c"setting lemon stdout\00"
@SIGUSR1 = global i32 0
@SIG_IGN = global i32 0
@.str.6 = [9 x i8] c"lemonbar\00"
@.str.7 = [3 x i8] c"-g\00"
@.str.8 = [3 x i8] c"-B\00"
@.str.9 = [10 x i8] c"#ee383a3b\00"
@.str.10 = [3 x i8] c"-F\00"
@.str.11 = [8 x i8] c"#ffffff\00"
@.str.12 = [3 x i8] c"-u\00"
@.str.13 = [2 x i8] c"3\00"
@.str.14 = [3 x i8] c"-a\00"
@.str.15 = [3 x i8] c"90\00"
@.str.16 = [3 x i8] c"-f\00"
@.str.17 = [49 x i8] c"-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*\00"
@.str.18 = [40 x i8] c"icons\\-in\\-terminal-9:style=in-terminal\00"
@.str.19 = [22 x i8] c"parent closing output\00"
@.str.20 = [22 x i8] c"parent closing intput\00"
define void @spawn_bar(i32* %0, i32* %1, i8* %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca [2 x i32]
%8 = alloca [2 x i32]
%9 = alloca i32
store i32* %0, i32** %4
store i32* %1, i32** %5
store i8* %2, i8** %6
%10 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%11 = call i32 @pipe(i32* %10)
%12 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 0
%13 = call i32 @pipe(i32* %12)
%14 = call i32 (...) @fork()
store i32 %14, i32* %9
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %19
16: ; preds = %3
%17 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @exit(i32 -1)
unreachable
19: ; preds = %3
%20 = load i32, i32* %9
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %66
22: ; preds = %19
%23 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%24 = load i32, i32* %23
%25 = call i64 @close(i32 %24)
%26 = icmp slt i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %22
%28 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
br label %29
29: ; preds = %27, %22
%30 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 0
%31 = load i32, i32* %30
%32 = call i64 @close(i32 %31)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %29
%35 = call i32 @perror(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %36
36: ; preds = %34, %29
%37 = load i32, i32* @PR_SET_PDEATHSIG
%38 = load i32, i32* @SIGHUP
%39 = call i64 @prctl(i32 %37, i32 %38)
%40 = icmp slt i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %36
%42 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
br label %43
43: ; preds = %41, %36
%44 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%45 = load i32, i32* %44
%46 = load i32, i32* @STDIN_FILENO
%47 = call i64 @dup2(i32 %45, i32 %46)
%48 = icmp slt i64 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %43
%50 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
br label %51
51: ; preds = %49, %43
%52 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 1
%53 = load i32, i32* %52
%54 = load i32, i32* @STDOUT_FILENO
%55 = call i64 @dup2(i32 %53, i32 %54)
%56 = icmp slt i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %51
%58 = call i32 @perror(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
br label %59
59: ; preds = %57, %51
%60 = load i32, i32* @SIGUSR1
%61 = load i32, i32* @SIG_IGN
%62 = call i32 @signal(i32 %60, i32 %61)
%63 = load i8*, i8** %6
%64 = call i32 @execlp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %63, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.18, i64 0, i64 0), i32* null)
%65 = call i32 @exit(i32 0)
unreachable
66: ; preds = %19
%67 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%68 = load i32, i32* %67
%69 = call i64 @close(i32 %68)
%70 = icmp slt i64 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %66
%72 = call i32 @perror(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0))
br label %73
73: ; preds = %71, %66
%74 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 1
%75 = load i32, i32* %74
%76 = call i64 @close(i32 %75)
%77 = icmp slt i64 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %73
%79 = call i32 @perror(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.20, i64 0, i64 0))
br label %80
80: ; preds = %78, %73
%81 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%82 = load i32, i32* %81
%83 = load i32*, i32** %4
store i32 %82, i32* %83
%84 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 0
%85 = load i32, i32* %84
%86 = load i32*, i32** %5
store i32 %85, i32* %86
%87 = call i32 @sleep(i32 1)
br label %88
88: ; preds = %80
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"fork\00"
@.str.1 = [20 x i8] c"closing child input\00"
@.str.2 = [21 x i8] c"closing child output\00"
@PR_SET_PDEATHSIG = global i32 0
@SIGHUP = global i32 0
@.str.3 = [20 x i8] c"setting up deathsig\00"
@STDIN_FILENO = global i32 0
@.str.4 = [20 x i8] c"setting lemon stdin\00"
@STDOUT_FILENO = global i32 0
@.str.5 = [21 x i8] c"setting lemon stdout\00"
@SIGUSR1 = global i32 0
@SIG_IGN = global i32 0
@.str.6 = [9 x i8] c"lemonbar\00"
@.str.7 = [3 x i8] c"-g\00"
@.str.8 = [3 x i8] c"-B\00"
@.str.9 = [10 x i8] c"#ee383a3b\00"
@.str.10 = [3 x i8] c"-F\00"
@.str.11 = [8 x i8] c"#ffffff\00"
@.str.12 = [3 x i8] c"-u\00"
@.str.13 = [2 x i8] c"3\00"
@.str.14 = [3 x i8] c"-a\00"
@.str.15 = [3 x i8] c"90\00"
@.str.16 = [3 x i8] c"-f\00"
@.str.17 = [49 x i8] c"-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*\00"
@.str.18 = [40 x i8] c"icons\\-in\\-terminal-9:style=in-terminal\00"
@.str.19 = [22 x i8] c"parent closing output\00"
@.str.20 = [22 x i8] c"parent closing intput\00"
define void @spawn_bar(i32* nocapture writeonly %0, i32* nocapture writeonly %1, i8* %2) {
%4 = alloca [2 x i32]
%5 = alloca [2 x i32]
%6 = bitcast [2 x i32]* %4 to i8*
%7 = bitcast [2 x i32]* %5 to i8*
%8 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
%9 = call i32 @pipe(i32* %8)
%10 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%11 = call i32 @pipe(i32* %10)
%12 = call i32 (...) @fork()
switch i32 %12, label %57 [
i32 -1, label %13
i32 0, label %16
]
13: ; preds = %3
%14 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%15 = call i32 @exit(i32 -1)
unreachable
16: ; preds = %3
%17 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%18 = load i32, i32* %17
%19 = call i64 @close(i32 %18)
%20 = icmp slt i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
br label %23
23: ; preds = %21, %16
%24 = load i32, i32* %10
%25 = call i64 @close(i32 %24)
%26 = icmp slt i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 @perror(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %29
29: ; preds = %27, %23
%30 = load i32, i32* @PR_SET_PDEATHSIG
%31 = load i32, i32* @SIGHUP
%32 = call i64 @prctl(i32 %30, i32 %31)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %29
%35 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
br label %36
36: ; preds = %34, %29
%37 = load i32, i32* %8
%38 = load i32, i32* @STDIN_FILENO
%39 = call i64 @dup2(i32 %37, i32 %38)
%40 = icmp slt i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %36
%42 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
br label %43
43: ; preds = %41, %36
%44 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%45 = load i32, i32* %44
%46 = load i32, i32* @STDOUT_FILENO
%47 = call i64 @dup2(i32 %45, i32 %46)
%48 = icmp slt i64 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %43
%50 = call i32 @perror(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
br label %51
51: ; preds = %49, %43
%52 = load i32, i32* @SIGUSR1
%53 = load i32, i32* @SIG_IGN
%54 = call i32 @signal(i32 %52, i32 %53)
%55 = call i32 @execlp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.18, i64 0, i64 0), i32* null)
%56 = call i32 @exit(i32 0)
unreachable
57: ; preds = %3
%58 = load i32, i32* %8
%59 = call i64 @close(i32 %58)
%60 = icmp slt i64 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %57
%62 = call i32 @perror(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0))
br label %63
63: ; preds = %61, %57
%64 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%65 = load i32, i32* %64
%66 = call i64 @close(i32 %65)
%67 = icmp slt i64 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %63
%69 = call i32 @perror(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.20, i64 0, i64 0))
br label %70
70: ; preds = %68, %63
%71 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%72 = load i32, i32* %71
store i32 %72, i32* %0
%73 = load i32, i32* %10
store i32 %73, i32* %1
%74 = call i32 @sleep(i32 1)
ret void
}