#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*/ P(int);
int /*<<< orphan*/ V(int);
char *absolute(char *);
char *field(int, char *, char);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *, char *,
                           ...);
int /*<<< orphan*/ free(char *);
char *getenv(char *);
int getpid();
int getppid();
int inode(int);
int /*<<< orphan*/ out(char const *, char *, char *, int, char *);
int /*<<< orphan*/ pipesig(int);
int /*<<< orphan*/ shlibs(char const *, char *, char *);
int /*<<< orphan*/ stderr;
int stoi(char *);
extern __attribute__((__visibility__("hidden"))) void
output(const char *call, char *file, char *mode) {
  char *fds = getenv("ACCESS"
                     "_"
                     "FDS");
  if (!fds)
    return;
  file = absolute(file);
  char *format = getenv("ACCESS"
                        "_"
                        "FORMAT");
  if (!format)
    format = "%f\n";
  do
    if (getenv("ACCESS"
               "_"
               "DEBUG"))
      fprintf(stderr, "in output(%s %s) %s=\"%s\" %s=\"%s\" PPID %d PID %d\n",
              call, file,
              "ACCESS"
              "_"
              "FDS",
              fds, "LD_PRELOAD", getenv("LD_PRELOAD"), getppid(), getpid());
  while (0);
  char *fdsd;
  int i = 0;
  while ((fdsd = field(i++, fds, ' '))) {
    char *fd = field(0, fdsd, ':');
    char *sd = field(1, fdsd, ':');
    free(fdsd);
    int fdi = stoi(fd);
    int sdi = stoi(sd);
    free(fd);
    free(sd);
    P(sdi);
    do
      if (getenv("ACCESS"
                 "_"
                 "DEBUG"))
        fprintf(stderr, "in output(%s %s) P %d(%d):%d PID %d\n", call, file,
                fdi, inode(fdi), sdi, getpid());
    while (0);
    pipesig(-fdi);
    out(call, file, mode, fdi, format);
    pipesig(0);
    do
      if (getenv("ACCESS"
                 "_"
                 "DEBUG"))
        fprintf(stderr, "in output(%s %s) V %d(%d):%d PID %d\n", call, file,
                fdi, inode(fdi), sdi, getpid());
    while (0);
    V(sdi);
  }
  shlibs(call, file, mode);
  free(file);
}


x86 assembly (clang, -O0):
<output>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0xe8,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
lea    0xe01(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1218 <output+0x38>
jmp    152b <output+0x34b>
mov    -0x18(%rbp),%rdi
call   10a0 <absolute@plt>
mov    %rax,-0x18(%rbp)
lea    0xddf(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    124b <output+0x6b>
lea    0xdd2(%rip),%rax
mov    %rax,-0x30(%rbp)
jmp    1250 <output+0x70>
lea    0xdc6(%rip),%rdi
call   1030 <getenv@plt>
cmp    $0x0,%rax
je     12f6 <output+0x116>
mov    0x2d73(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x84(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x70(%rbp)
lea    0xdc7(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x68(%rbp)
mov    $0x0,%al
call   10f0 <getppid@plt>
mov    %eax,-0x5c(%rbp)
mov    $0x0,%al
call   1090 <getpid@plt>
mov    -0x84(%rbp),%edi
mov    -0x80(%rbp),%rdx
mov    -0x78(%rbp),%rcx
mov    -0x70(%rbp),%r9
mov    -0x68(%rbp),%r11
mov    -0x5c(%rbp),%r10d
lea    0xd5b(%rip),%rsi
lea    0xd2a(%rip),%r8
lea    0xd7e(%rip),%rbx
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   10c0 <fprintf@plt>
jmp    12fb <output+0x11b>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x28(%rbp),%rsi
mov    $0x20,%edx
call   1040 <field@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
je     1511 <output+0x331>
mov    -0x38(%rbp),%rsi
xor    %edi,%edi
mov    $0x3a,%edx
call   1040 <field@plt>
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rsi
mov    $0x1,%edi
mov    $0x3a,%edx
call   1040 <field@plt>
mov    %rax,-0x50(%rbp)
mov    -0x38(%rbp),%rdi
call   1050 <free@plt>
mov    -0x48(%rbp),%rdi
call   10d0 <stoi@plt>
mov    %eax,-0x54(%rbp)
mov    -0x50(%rbp),%rdi
call   10d0 <stoi@plt>
mov    %eax,-0x58(%rbp)
mov    -0x48(%rbp),%rdi
call   1050 <free@plt>
mov    -0x50(%rbp),%rdi
call   1050 <free@plt>
mov    -0x58(%rbp),%edi
call   1070 <P@plt>
lea    0xc87(%rip),%rdi
call   1030 <getenv@plt>
cmp    $0x0,%rax
je     1430 <output+0x250>
mov    0x2c34(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xa4(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x54(%rbp),%eax
mov    %eax,-0x90(%rbp)
mov    -0x54(%rbp),%edi
call   10b0 <inode@plt>
mov    %eax,-0x8c(%rbp)
mov    -0x58(%rbp),%eax
mov    %eax,-0x88(%rbp)
mov    $0x0,%al
call   1090 <getpid@plt>
mov    -0xa4(%rbp),%edi
mov    -0xa0(%rbp),%rdx
mov    -0x98(%rbp),%rcx
mov    -0x90(%rbp),%r8d
mov    -0x8c(%rbp),%r9d
mov    -0x88(%rbp),%r10d
lea    0xc45(%rip),%rsi
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
mov    $0x0,%al
call   10c0 <fprintf@plt>
jmp    1435 <output+0x255>
xor    %edi,%edi
sub    -0x54(%rbp),%edi
call   1060 <pipesig@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x54(%rbp),%ecx
mov    -0x30(%rbp),%r8
call   1100 <out@plt>
xor    %edi,%edi
call   1060 <pipesig@plt>
lea    0xbb8(%rip),%rdi
call   1030 <getenv@plt>
cmp    $0x0,%rax
je     14ff <output+0x31f>
mov    0x2b65(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc4(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0xc0(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0x54(%rbp),%eax
mov    %eax,-0xb0(%rbp)
mov    -0x54(%rbp),%edi
call   10b0 <inode@plt>
mov    %eax,-0xac(%rbp)
mov    -0x58(%rbp),%eax
mov    %eax,-0xa8(%rbp)
mov    $0x0,%al
call   1090 <getpid@plt>
mov    -0xc4(%rbp),%edi
mov    -0xc0(%rbp),%rdx
mov    -0xb8(%rbp),%rcx
mov    -0xb0(%rbp),%r8d
mov    -0xac(%rbp),%r9d
mov    -0xa8(%rbp),%r10d
lea    0xb9b(%rip),%rsi
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
mov    $0x0,%al
call   10c0 <fprintf@plt>
jmp    1504 <output+0x324>
mov    -0x58(%rbp),%edi
call   1080 <V@plt>
jmp    1302 <output+0x122>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   10e0 <shlibs@plt>
mov    -0x18(%rbp),%rdi
call   1050 <free@plt>
add    $0xe8,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<output>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rdx,0x20(%rsp)
mov    %rsi,%rbx
mov    %rdi,%r12
lea    0xe00(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1496 <output+0x2b6>
mov    %rax,%rbp
mov    %rbx,%rdi
call   10a0 <absolute@plt>
mov    %rax,%r15
lea    0xde8(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
lea    0xde7(%rip),%rcx
cmovne %rax,%rcx
mov    %rcx,0x28(%rsp)
lea    0xddb(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
mov    %rbp,0x10(%rsp)
je     12b8 <output+0xd8>
mov    0x2d88(%rip),%rax
mov    (%rax),%r13d
lea    0xdf9(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,0x8(%rsp)
xor    %eax,%eax
call   10f0 <getppid@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1090 <getpid@plt>
mov    %eax,%ebx
lea    0xda4(%rip),%rsi
lea    0xd73(%rip),%r8
mov    %r13d,%edi
mov    0x10(%rsp),%rbp
mov    %r12,%rdx
mov    %r15,%rcx
mov    %rbp,%r9
xor    %eax,%eax
push   %rbx
push   %r14
push   0x18(%rsp)
lea    0xdad(%rip),%rbx
push   %rbx
call   10c0 <fprintf@plt>
add    $0x20,%rsp
mov    %r15,0x18(%rsp)
xor    %edi,%edi
mov    %rbp,%rsi
mov    $0x20,%edx
call   1040 <field@plt>
test   %rax,%rax
je     146b <output+0x28b>
mov    %rax,%rbp
mov    $0x1,%eax
mov    0x18(%rsp),%r13
jmp    131c <output+0x13c>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %ebp,%edi
call   1080 <V@plt>
mov    0x30(%rsp),%rdi
lea    0x1(%rdi),%ebx
mov    0x10(%rsp),%rsi
mov    $0x20,%edx
call   1040 <field@plt>
mov    %rax,%rbp
mov    %ebx,%eax
test   %rbp,%rbp
je     146b <output+0x28b>
mov    %rax,0x30(%rsp)
xor    %edi,%edi
mov    %rbp,%rsi
mov    $0x3a,%edx
call   1040 <field@plt>
mov    %r12,%r14
mov    %rax,%r12
mov    $0x1,%edi
mov    %rbp,%rsi
mov    $0x3a,%edx
call   1040 <field@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
call   1050 <free@plt>
mov    %r12,%rdi
call   10d0 <stoi@plt>
mov    %eax,%r15d
mov    %rbx,%rdi
call   10d0 <stoi@plt>
mov    %eax,%ebp
mov    %r12,%rdi
call   1050 <free@plt>
mov    %rbx,%rdi
call   1050 <free@plt>
mov    %ebp,%edi
call   1070 <P@plt>
lea    0xc97(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
mov    %rbp,0x8(%rsp)
je     13da <output+0x1fa>
mov    0x2c44(%rip),%rax
mov    (%rax),%r12d
mov    %r15d,%edi
call   10b0 <inode@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1090 <getpid@plt>
mov    %eax,%ebx
mov    %r12d,%edi
lea    0xcaa(%rip),%rsi
mov    %r14,%rdx
mov    %r13,%rcx
mov    %r15d,%r8d
mov    %ebp,%r9d
mov    0x8(%rsp),%rbp
xor    %eax,%eax
push   %rbx
push   %rbp
call   10c0 <fprintf@plt>
add    $0x10,%rsp
mov    %r15d,%edi
neg    %edi
call   1060 <pipesig@plt>
mov    %r14,%rdi
mov    %r13,%rsi
mov    0x20(%rsp),%rdx
mov    %r15d,%ecx
mov    0x28(%rsp),%r8
call   1100 <out@plt>
xor    %edi,%edi
call   1060 <pipesig@plt>
lea    0xc13(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
mov    %r14,%r12
je     12f0 <output+0x110>
mov    %r12,%r14
mov    0x2bbb(%rip),%rax
mov    (%rax),%r12d
mov    %r15d,%edi
call   10b0 <inode@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1090 <getpid@plt>
mov    %eax,%ebx
mov    %r12d,%edi
mov    %r14,%r12
lea    0xc43(%rip),%rsi
mov    %r14,%rdx
mov    %r13,%rcx
mov    %r15d,%r8d
mov    %ebp,%r9d
mov    0x8(%rsp),%rbp
xor    %eax,%eax
push   %rbx
push   %rbp
call   10c0 <fprintf@plt>
add    $0x10,%rsp
jmp    12f0 <output+0x110>
mov    %r12,%rdi
mov    0x18(%rsp),%rbx
mov    %rbx,%rsi
mov    0x20(%rsp),%rdx
call   10e0 <shlibs@plt>
mov    %rbx,%rdi
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <free@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"ACCESS_FDS\00"
@.str.1 = [14 x i8] c"ACCESS_FORMAT\00"
@.str.2 = [4 x i8] c"%f\0A\00"
@.str.3 = [13 x i8] c"ACCESS_DEBUG\00"
@stderr = global i32 0
@.str.4 = [49 x i8] c"in output(%s %s) %s=\22%s\22 %s=\22%s\22 PPID %d PID %d\0A\00"
@.str.5 = [11 x i8] c"LD_PRELOAD\00"
@.str.6 = [37 x i8] c"in output(%s %s) P %d(%d):%d PID %d\0A\00"
@.str.7 = [37 x i8] c"in output(%s %s) V %d(%d):%d PID %d\0A\00"
define hidden void @output(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i32
%14 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%15 = call i8* @getenv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
store i8* %15, i8** %7
%16 = load i8*, i8** %7
%17 = icmp ne i8* %16, null
br i1 %17, label %19, label %18
18: ; preds = %3
br label %113
19: ; preds = %3
%20 = load i8*, i8** %5
%21 = call i8* @absolute(i8* %20)
store i8* %21, i8** %5
%22 = call i8* @getenv(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
store i8* %22, i8** %8
%23 = load i8*, i8** %8
%24 = icmp ne i8* %23, null
br i1 %24, label %26, label %25
25: ; preds = %19
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8** %8
br label %26
26: ; preds = %25, %19
br label %27
27: ; preds = %26
%28 = call i8* @getenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%29 = icmp ne i8* %28, null
br i1 %29, label %30, label %39
30: ; preds = %27
%31 = load i32, i32* @stderr
%32 = load i8*, i8** %4
%33 = load i8*, i8** %5
%34 = load i8*, i8** %7
%35 = call i8* @getenv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%36 = call i32 (...) @getppid()
%37 = call i32 (...) @getpid()
%38 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0), i8* %32, i8* %33, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %34, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %35, i32 %36, i32 %37)
br label %39
39: ; preds = %30, %27
br label %40
40: ; preds = %39
store i32 0, i32* %10
br label %41
41: ; preds = %103, %40
%42 = load i32, i32* %10
%43 = add nsw i32 %42, 1
store i32 %43, i32* %10
%44 = load i8*, i8** %7
%45 = call i8* @field(i32 %42, i8* %44, i8 signext 32)
store i8* %45, i8** %9
%46 = icmp ne i8* %45, null
br i1 %46, label %47, label %106
47: ; preds = %41
%48 = load i8*, i8** %9
%49 = call i8* @field(i32 0, i8* %48, i8 signext 58)
store i8* %49, i8** %11
%50 = load i8*, i8** %9
%51 = call i8* @field(i32 1, i8* %50, i8 signext 58)
store i8* %51, i8** %12
%52 = load i8*, i8** %9
%53 = call i32 @free(i8* %52)
%54 = load i8*, i8** %11
%55 = call i32 @stoi(i8* %54)
store i32 %55, i32* %13
%56 = load i8*, i8** %12
%57 = call i32 @stoi(i8* %56)
store i32 %57, i32* %14
%58 = load i8*, i8** %11
%59 = call i32 @free(i8* %58)
%60 = load i8*, i8** %12
%61 = call i32 @free(i8* %60)
%62 = load i32, i32* %14
%63 = call i32 @P(i32 %62)
br label %64
64: ; preds = %47
%65 = call i8* @getenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%66 = icmp ne i8* %65, null
br i1 %66, label %67, label %77
67: ; preds = %64
%68 = load i32, i32* @stderr
%69 = load i8*, i8** %4
%70 = load i8*, i8** %5
%71 = load i32, i32* %13
%72 = load i32, i32* %13
%73 = call i32 @inode(i32 %72)
%74 = load i32, i32* %14
%75 = call i32 (...) @getpid()
%76 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i8* %69, i8* %70, i32 %71, i32 %73, i32 %74, i32 %75)
br label %77
77: ; preds = %67, %64
br label %78
78: ; preds = %77
%79 = load i32, i32* %13
%80 = sub nsw i32 0, %79
%81 = call i32 @pipesig(i32 %80)
%82 = load i8*, i8** %4
%83 = load i8*, i8** %5
%84 = load i8*, i8** %6
%85 = load i32, i32* %13
%86 = load i8*, i8** %8
%87 = call i32 @out(i8* %82, i8* %83, i8* %84, i32 %85, i8* %86)
%88 = call i32 @pipesig(i32 0)
br label %89
89: ; preds = %78
%90 = call i8* @getenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%91 = icmp ne i8* %90, null
br i1 %91, label %92, label %102
92: ; preds = %89
%93 = load i32, i32* @stderr
%94 = load i8*, i8** %4
%95 = load i8*, i8** %5
%96 = load i32, i32* %13
%97 = load i32, i32* %13
%98 = call i32 @inode(i32 %97)
%99 = load i32, i32* %14
%100 = call i32 (...) @getpid()
%101 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %93, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i8* %94, i8* %95, i32 %96, i32 %98, i32 %99, i32 %100)
br label %102
102: ; preds = %92, %89
br label %103
103: ; preds = %102
%104 = load i32, i32* %14
%105 = call i32 @V(i32 %104)
br label %41
106: ; preds = %41
%107 = load i8*, i8** %4
%108 = load i8*, i8** %5
%109 = load i8*, i8** %6
%110 = call i32 @shlibs(i8* %107, i8* %108, i8* %109)
%111 = load i8*, i8** %5
%112 = call i32 @free(i8* %111)
br label %113
113: ; preds = %106, %18
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"ACCESS_FDS\00"
@.str.1 = [14 x i8] c"ACCESS_FORMAT\00"
@.str.2 = [4 x i8] c"%f\0A\00"
@.str.3 = [13 x i8] c"ACCESS_DEBUG\00"
@stderr = global i32 0
@.str.4 = [49 x i8] c"in output(%s %s) %s=\22%s\22 %s=\22%s\22 PPID %d PID %d\0A\00"
@.str.5 = [11 x i8] c"LD_PRELOAD\00"
@.str.6 = [37 x i8] c"in output(%s %s) P %d(%d):%d PID %d\0A\00"
@.str.7 = [37 x i8] c"in output(%s %s) V %d(%d):%d PID %d\0A\00"
define hidden void @output(i8* %0, i8* %1, i8* %2) {
%4 = tail call i8* @getenv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i8* %4, null
br i1 %5, label %60, label %6
6: ; preds = %3
%7 = tail call i8* @absolute(i8* %1)
%8 = tail call i8* @getenv(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp eq i8* %8, null
%10 = select i1 %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %8
%11 = tail call i8* @getenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%12 = icmp eq i8* %11, null
br i1 %12, label %19, label %13
13: ; preds = %6
%14 = load i32, i32* @stderr
%15 = tail call i8* @getenv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%16 = tail call i32 (...) @getppid()
%17 = tail call i32 (...) @getpid()
%18 = tail call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0), i8* %0, i8* %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %15, i32 %16, i32 %17)
br label %19
19: ; preds = %13, %6
%20 = tail call i8* @field(i32 0, i8* %4, i8 signext 32)
%21 = icmp eq i8* %20, null
br i1 %21, label %57, label %22
22: ; preds = %19, %52
%23 = phi i8* [ %55, %52 ], [ %20, %19 ]
%24 = phi i32 [ %54, %52 ], [ 1, %19 ]
%25 = tail call i8* @field(i32 0, i8* %23, i8 signext 58)
%26 = tail call i8* @field(i32 1, i8* %23, i8 signext 58)
%27 = tail call i32 @free(i8* %23)
%28 = tail call i32 @stoi(i8* %25)
%29 = tail call i32 @stoi(i8* %26)
%30 = tail call i32 @free(i8* %25)
%31 = tail call i32 @free(i8* %26)
%32 = tail call i32 @P(i32 %29)
%33 = tail call i8* @getenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%34 = icmp eq i8* %33, null
br i1 %34, label %40, label %35
35: ; preds = %22
%36 = load i32, i32* @stderr
%37 = tail call i32 @inode(i32 %28)
%38 = tail call i32 (...) @getpid()
%39 = tail call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i8* %0, i8* %7, i32 %28, i32 %37, i32 %29, i32 %38)
br label %40
40: ; preds = %35, %22
%41 = sub nsw i32 0, %28
%42 = tail call i32 @pipesig(i32 %41)
%43 = tail call i32 @out(i8* %0, i8* %7, i8* %2, i32 %28, i8* %10)
%44 = tail call i32 @pipesig(i32 0)
%45 = tail call i8* @getenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%46 = icmp eq i8* %45, null
br i1 %46, label %52, label %47
47: ; preds = %40
%48 = load i32, i32* @stderr
%49 = tail call i32 @inode(i32 %28)
%50 = tail call i32 (...) @getpid()
%51 = tail call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i8* %0, i8* %7, i32 %28, i32 %49, i32 %29, i32 %50)
br label %52
52: ; preds = %47, %40
%53 = tail call i32 @V(i32 %29)
%54 = add nuw nsw i32 %24, 1
%55 = tail call i8* @field(i32 %24, i8* %4, i8 signext 32)
%56 = icmp eq i8* %55, null
br i1 %56, label %57, label %22
57: ; preds = %52, %19
%58 = tail call i32 @shlibs(i8* %0, i8* %7, i8* %2)
%59 = tail call i32 @free(i8* %7)
br label %60
60: ; preds = %3, %57
ret void
}