#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*/ sigset_t;
typedef scalar_t__ pid_t;

/* Variables and functions */
scalar_t__ EINTR;
int /*<<< orphan*/ SIG_UNBLOCK;
int /*<<< orphan*/ STDERR_FILENO;
int STDIN_FILENO;
int /*<<< orphan*/ STDOUT_FILENO;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ close_on_exec(int /*<<< orphan*/);
int dup2(int, int);
scalar_t__ errno;
int /*<<< orphan*/ execvp(char *, char *const *);
scalar_t__ fork();
int /*<<< orphan*/ perror(char *);
scalar_t__ pipe(int *);
int /*<<< orphan*/ sigprocmask(int /*<<< orphan*/, int /*<<< orphan*/ *,
                               int /*<<< orphan*/ *);
int pipe_to_logger(char *const log_priority, char *const log_tag, int fileno,
                   sigset_t *blocked_signals) {
  int result;
  int pipe_handles[2];
  pid_t child;
  if (pipe(pipe_handles) < 0) {
    perror("Couldn't create a pipe");
    return -1;
  }
  child = fork();
  if (child < 0) {
    close(pipe_handles[0]);
    close(pipe_handles[1]);
    perror("Couldn't fork to start logger");
    return -1;
  } else if (child == 0) {
    close_on_exec(STDOUT_FILENO);
    close_on_exec(STDERR_FILENO);
    do {
      result = dup2(pipe_handles[0], STDIN_FILENO);
    } while (result < 0 && errno == EINTR);
    if (result < 0) {
      perror("Couldn't attach the pipe to the logger input");
      return -1;
    }
    close(pipe_handles[0]);
    close(pipe_handles[1]);
    char *const arguments[] = {"logger", "-p",    log_priority,
                               "-t",     log_tag, NULL};
    sigprocmask(SIG_UNBLOCK, blocked_signals, NULL);
    execvp("logger", arguments);
    perror("Couldn't execute logger");
    return -1;
  } else {
    do {
      result = dup2(pipe_handles[1], fileno);
    } while (result < 0 && errno == EINTR);
    if (result < 0) {
      perror("Couldn't attach the pipe to the logger output");
      return -1;
    }
    close(pipe_handles[1]);
    close(pipe_handles[0]);
    return 0;
  }
}


x86 assembly (clang, -O0):
<pipe_to_logger>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
lea    -0x34(%rbp),%rdi
call   1070 <pipe@plt>
cmp    $0x0,%rax
jge    11c5 <pipe_to_logger+0x45>
lea    0xe4c(%rip),%rdi
call   1080 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    139b <pipe_to_logger+0x21b>
mov    $0x0,%al
call   10a0 <fork@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
jge    1203 <pipe_to_logger+0x83>
mov    -0x34(%rbp),%edi
call   1060 <close@plt>
mov    -0x30(%rbp),%edi
call   1060 <close@plt>
lea    0xe25(%rip),%rdi
call   1080 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    139b <pipe_to_logger+0x21b>
cmpq   $0x0,-0x40(%rbp)
jne    131b <pipe_to_logger+0x19b>
mov    0x2ddb(%rip),%rax
mov    (%rax),%edi
call   1040 <close_on_exec@plt>
mov    0x2da5(%rip),%rax
mov    (%rax),%edi
call   1040 <close_on_exec@plt>
mov    -0x34(%rbp),%edi
mov    0x2d84(%rip),%rax
mov    (%rax),%esi
call   1050 <dup2@plt>
mov    %eax,-0x2c(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x2c(%rbp)
mov    %al,-0x71(%rbp)
jge    1267 <pipe_to_logger+0xe7>
mov    0x2d7c(%rip),%rax
mov    (%rax),%rax
mov    0x2d62(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
mov    %al,-0x71(%rbp)
mov    -0x71(%rbp),%al
test   $0x1,%al
jne    122a <pipe_to_logger+0xaa>
cmpl   $0x0,-0x2c(%rbp)
jge    1294 <pipe_to_logger+0x114>
lea    0xdb2(%rip),%rdi
call   1080 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    139b <pipe_to_logger+0x21b>
mov    -0x34(%rbp),%edi
call   1060 <close@plt>
mov    -0x30(%rbp),%edi
call   1060 <close@plt>
lea    0xdce(%rip),%rax
mov    %rax,-0x70(%rbp)
lea    0xdac(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x60(%rbp)
lea    0xd9c(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x50(%rbp)
movq   $0x0,-0x48(%rbp)
mov    0x2cfc(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <sigprocmask@plt>
lea    -0x70(%rbp),%rsi
lea    0xd7b(%rip),%rdi
call   1090 <execvp@plt>
lea    0xd5e(%rip),%rdi
call   1080 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    139b <pipe_to_logger+0x21b>
jmp    1320 <pipe_to_logger+0x1a0>
mov    -0x30(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   1050 <dup2@plt>
mov    %eax,-0x2c(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x2c(%rbp)
mov    %al,-0x72(%rbp)
jge    1357 <pipe_to_logger+0x1d7>
mov    0x2c8c(%rip),%rax
mov    (%rax),%rax
mov    0x2c72(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
mov    %al,-0x72(%rbp)
mov    -0x72(%rbp),%al
test   $0x1,%al
jne    1320 <pipe_to_logger+0x1a0>
cmpl   $0x0,-0x2c(%rbp)
jge    1384 <pipe_to_logger+0x204>
lea    0xd0d(%rip),%rdi
call   1080 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    139b <pipe_to_logger+0x21b>
mov    -0x30(%rbp),%edi
call   1060 <close@plt>
mov    -0x34(%rbp),%edi
call   1060 <close@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pipe_to_logger>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rcx,%r14
mov    %edx,%ebp
mov    %rsi,%r15
mov    %rdi,%r12
lea    0x8(%rsp),%rdi
call   1070 <pipe@plt>
test   %rax,%rax
js     1208 <pipe_to_logger+0x88>
xor    %eax,%eax
call   10a0 <fork@plt>
test   %rax,%rax
js     1214 <pipe_to_logger+0x94>
je     1232 <pipe_to_logger+0xb2>
mov    0x2e13(%rip),%r14
mov    0x2dfc(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0xc(%rsp),%edi
mov    %ebp,%esi
call   1050 <dup2@plt>
test   %eax,%eax
jns    11e7 <pipe_to_logger+0x67>
mov    (%rbx),%rcx
cmp    %rcx,(%r14)
je     11d0 <pipe_to_logger+0x50>
test   %eax,%eax
js     1297 <pipe_to_logger+0x117>
mov    0xc(%rsp),%edi
call   1060 <close@plt>
mov    0x8(%rsp),%edi
call   1060 <close@plt>
xor    %eax,%eax
jmp    131a <pipe_to_logger+0x19a>
lea    0xdf1(%rip),%rdi
jmp    1310 <pipe_to_logger+0x190>
mov    0x8(%rsp),%edi
call   1060 <close@plt>
mov    0xc(%rsp),%edi
call   1060 <close@plt>
lea    0xdea(%rip),%rdi
jmp    1310 <pipe_to_logger+0x190>
mov    0x2db7(%rip),%rax
mov    (%rax),%edi
call   1040 <close_on_exec@plt>
mov    0x2d81(%rip),%rax
mov    (%rax),%edi
call   1040 <close_on_exec@plt>
mov    0x2d63(%rip),%r13
mov    0x2d74(%rip),%rbx
mov    0x2d5d(%rip),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x8(%rsp),%edi
mov    0x0(%r13),%esi
call   1050 <dup2@plt>
test   %eax,%eax
jns    128a <pipe_to_logger+0x10a>
mov    0x0(%rbp),%rcx
cmp    %rcx,(%rbx)
je     1270 <pipe_to_logger+0xf0>
test   %eax,%eax
jns    12a0 <pipe_to_logger+0x120>
lea    0xda0(%rip),%rdi
jmp    1310 <pipe_to_logger+0x190>
lea    0xde2(%rip),%rdi
jmp    1310 <pipe_to_logger+0x190>
mov    0x8(%rsp),%edi
call   1060 <close@plt>
mov    0xc(%rsp),%edi
call   1060 <close@plt>
lea    0xdc0(%rip),%rbp
mov    %rbp,0x10(%rsp)
lea    0xd9d(%rip),%rax
mov    %rax,0x18(%rsp)
mov    %r12,0x20(%rsp)
lea    0xd8f(%rip),%rax
mov    %rax,0x28(%rsp)
mov    %r15,0x30(%rsp)
movq   $0x0,0x38(%rsp)
mov    0x2cf0(%rip),%rax
mov    (%rax),%edi
mov    %r14,%rsi
xor    %edx,%edx
call   1030 <sigprocmask@plt>
lea    0x10(%rsp),%rsi
mov    %rbp,%rdi
call   1090 <execvp@plt>
lea    0xd58(%rip),%rdi
call   1080 <perror@plt>
mov    $0xffffffff,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Couldn't create a pipe\00"
@.str.1 = [30 x i8] c"Couldn't fork to start logger\00"
@STDOUT_FILENO = global i32 0
@STDERR_FILENO = global i32 0
@STDIN_FILENO = global i32 0
@errno = global i64 0
@EINTR = global i64 0
@.str.2 = [45 x i8] c"Couldn't attach the pipe to the logger input\00"
@.str.3 = [7 x i8] c"logger\00"
@.str.4 = [3 x i8] c"-p\00"
@.str.5 = [3 x i8] c"-t\00"
@SIG_UNBLOCK = global i32 0
@.str.6 = [24 x i8] c"Couldn't execute logger\00"
@.str.7 = [46 x i8] c"Couldn't attach the pipe to the logger output\00"
define i32 @pipe_to_logger(i8* %0, i8* %1, i32 %2, i32* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i32
%11 = alloca [2 x i32]
%12 = alloca i64
%13 = alloca [6 x i8*]
store i8* %0, i8** %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i32* %3, i32** %9
%14 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%15 = call i64 @pipe(i32* %14)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %4
%18 = call i32 @perror(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %5
br label %106
19: ; preds = %4
%20 = call i64 (...) @fork()
store i64 %20, i64* %12
%21 = load i64, i64* %12
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %31
23: ; preds = %19
%24 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%25 = load i32, i32* %24
%26 = call i32 @close(i32 %25)
%27 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
%28 = load i32, i32* %27
%29 = call i32 @close(i32 %28)
%30 = call i32 @perror(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %5
br label %106
31: ; preds = %19
%32 = load i64, i64* %12
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %79
34: ; preds = %31
%35 = load i32, i32* @STDOUT_FILENO
%36 = call i32 @close_on_exec(i32 %35)
%37 = load i32, i32* @STDERR_FILENO
%38 = call i32 @close_on_exec(i32 %37)
br label %39
39: ; preds = %51, %34
%40 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%41 = load i32, i32* %40
%42 = load i32, i32* @STDIN_FILENO
%43 = call i32 @dup2(i32 %41, i32 %42)
store i32 %43, i32* %10
br label %44
44: ; preds = %39
%45 = load i32, i32* %10
%46 = icmp slt i32 %45, 0
br i1 %46, label %47, label %51
47: ; preds = %44
%48 = load i64, i64* @errno
%49 = load i64, i64* @EINTR
%50 = icmp eq i64 %48, %49
br label %51
51: ; preds = %47, %44
%52 = phi i1 [ false, %44 ], [ %50, %47 ]
br i1 %52, label %39, label %53
53: ; preds = %51
%54 = load i32, i32* %10
%55 = icmp slt i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %53
%57 = call i32 @perror(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %5
br label %106
58: ; preds = %53
%59 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%60 = load i32, i32* %59
%61 = call i32 @close(i32 %60)
%62 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
%63 = load i32, i32* %62
%64 = call i32 @close(i32 %63)
%65 = getelementptr inbounds [6 x i8*], [6 x i8*]* %13, i64 0, i64 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %65
%66 = getelementptr inbounds i8*, i8** %65, i64 1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8** %66
%67 = getelementptr inbounds i8*, i8** %66, i64 1
%68 = load i8*, i8** %6
store i8* %68, i8** %67
%69 = getelementptr inbounds i8*, i8** %67, i64 1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8** %69
%70 = getelementptr inbounds i8*, i8** %69, i64 1
%71 = load i8*, i8** %7
store i8* %71, i8** %70
%72 = getelementptr inbounds i8*, i8** %70, i64 1
store i8* null, i8** %72
%73 = load i32, i32* @SIG_UNBLOCK
%74 = load i32*, i32** %9
%75 = call i32 @sigprocmask(i32 %73, i32* %74, i32* null)
%76 = getelementptr inbounds [6 x i8*], [6 x i8*]* %13, i64 0, i64 0
%77 = call i32 @execvp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %76)
%78 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
store i32 -1, i32* %5
br label %106
79: ; preds = %31
br label %80
80: ; preds = %92, %79
%81 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
%82 = load i32, i32* %81
%83 = load i32, i32* %8
%84 = call i32 @dup2(i32 %82, i32 %83)
store i32 %84, i32* %10
br label %85
85: ; preds = %80
%86 = load i32, i32* %10
%87 = icmp slt i32 %86, 0
br i1 %87, label %88, label %92
88: ; preds = %85
%89 = load i64, i64* @errno
%90 = load i64, i64* @EINTR
%91 = icmp eq i64 %89, %90
br label %92
92: ; preds = %88, %85
%93 = phi i1 [ false, %85 ], [ %91, %88 ]
br i1 %93, label %80, label %94
94: ; preds = %92
%95 = load i32, i32* %10
%96 = icmp slt i32 %95, 0
br i1 %96, label %97, label %99
97: ; preds = %94
%98 = call i32 @perror(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0))
store i32 -1, i32* %5
br label %106
99: ; preds = %94
%100 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
%101 = load i32, i32* %100
%102 = call i32 @close(i32 %101)
%103 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%104 = load i32, i32* %103
%105 = call i32 @close(i32 %104)
store i32 0, i32* %5
br label %106
106: ; preds = %99, %97, %58, %56, %23, %17
%107 = load i32, i32* %5
ret i32 %107
}

LLVM IR (-O2):
@.str = [23 x i8] c"Couldn't create a pipe\00"
@.str.1 = [30 x i8] c"Couldn't fork to start logger\00"
@STDOUT_FILENO = global i32 0
@STDERR_FILENO = global i32 0
@STDIN_FILENO = global i32 0
@errno = global i64 0
@EINTR = global i64 0
@.str.2 = [45 x i8] c"Couldn't attach the pipe to the logger input\00"
@.str.3 = [7 x i8] c"logger\00"
@.str.4 = [3 x i8] c"-p\00"
@.str.5 = [3 x i8] c"-t\00"
@SIG_UNBLOCK = global i32 0
@.str.6 = [24 x i8] c"Couldn't execute logger\00"
@.str.7 = [46 x i8] c"Couldn't attach the pipe to the logger output\00"
define i32 @pipe_to_logger(i8* %0, i8* %1, i32 %2, i32* %3) {
%5 = alloca [2 x i32]
%6 = alloca [6 x i8*]
%7 = bitcast [2 x i32]* %5 to i8*
%8 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%9 = call i64 @pipe(i32* %8)
%10 = icmp slt i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %4
%12 = call i32 @perror(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
br label %77
13: ; preds = %4
%14 = call i64 (...) @fork()
%15 = icmp slt i64 %14, 0
br i1 %15, label %16, label %23
16: ; preds = %13
%17 = load i32, i32* %8
%18 = call i32 @close(i32 %17)
%19 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%20 = load i32, i32* %19
%21 = call i32 @close(i32 %20)
%22 = call i32 @perror(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
br label %77
23: ; preds = %13
%24 = icmp eq i64 %14, 0
br i1 %24, label %27, label %25
25: ; preds = %23
%26 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
br label %61
27: ; preds = %23
%28 = load i32, i32* @STDOUT_FILENO
%29 = call i32 @close_on_exec(i32 %28)
%30 = load i32, i32* @STDERR_FILENO
%31 = call i32 @close_on_exec(i32 %30)
br label %32
32: ; preds = %32, %27
%33 = load i32, i32* %8
%34 = load i32, i32* @STDIN_FILENO
%35 = call i32 @dup2(i32 %33, i32 %34)
%36 = icmp slt i32 %35, 0
%37 = load i64, i64* @errno
%38 = load i64, i64* @EINTR
%39 = icmp eq i64 %37, %38
%40 = select i1 %36, i1 %39, i1 false
br i1 %40, label %32, label %41
41: ; preds = %32
br i1 %36, label %42, label %44
42: ; preds = %41
%43 = call i32 @perror(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
br label %77
44: ; preds = %41
%45 = load i32, i32* %8
%46 = call i32 @close(i32 %45)
%47 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%48 = load i32, i32* %47
%49 = call i32 @close(i32 %48)
%50 = bitcast [6 x i8*]* %6 to i8*
%51 = getelementptr inbounds [6 x i8*], [6 x i8*]* %6, i64 0, i64 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %51
%52 = getelementptr inbounds [6 x i8*], [6 x i8*]* %6, i64 0, i64 1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8** %52
%53 = getelementptr inbounds [6 x i8*], [6 x i8*]* %6, i64 0, i64 2
store i8* %0, i8** %53
%54 = getelementptr inbounds [6 x i8*], [6 x i8*]* %6, i64 0, i64 3
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8** %54
%55 = getelementptr inbounds [6 x i8*], [6 x i8*]* %6, i64 0, i64 4
store i8* %1, i8** %55
%56 = getelementptr inbounds [6 x i8*], [6 x i8*]* %6, i64 0, i64 5
store i8* null, i8** %56
%57 = load i32, i32* @SIG_UNBLOCK
%58 = call i32 @sigprocmask(i32 %57, i32* %3, i32* null)
%59 = call i32 @execvp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %51)
%60 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
br label %77
61: ; preds = %25, %61
%62 = load i32, i32* %26
%63 = call i32 @dup2(i32 %62, i32 %2)
%64 = icmp slt i32 %63, 0
%65 = load i64, i64* @errno
%66 = load i64, i64* @EINTR
%67 = icmp eq i64 %65, %66
%68 = select i1 %64, i1 %67, i1 false
br i1 %68, label %61, label %69
69: ; preds = %61
br i1 %64, label %70, label %72
70: ; preds = %69
%71 = call i32 @perror(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0))
br label %77
72: ; preds = %69
%73 = load i32, i32* %26
%74 = call i32 @close(i32 %73)
%75 = load i32, i32* %8
%76 = call i32 @close(i32 %75)
br label %77
77: ; preds = %72, %70, %44, %42, %16, %11
%78 = phi i32 [ -1, %11 ], [ -1, %16 ], [ -1, %42 ], [ -1, %44 ], [ -1, %70 ], [ 0, %72 ]
ret i32 %78
}