#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 getgid();
int getpid();
int getppid();
int getsid(int);
int getuid();
int /*<<< orphan*/ printf(char *, int);
scalar_t__ strcmp(char *, char *);
int main(int argc, char **argv) {
  if (argc >= 3) {
    if (strcmp(argv[2], "pid") == 0) {
      printf("My parent's ID: %d\n", getppid());
      printf("My process ID : %d\n", getpid());
    }
    if (strcmp(argv[2], "uid") == 0) {
      printf("My parent's UID: %d\n", getuid());
      printf("My process UID : %d\n", getuid());
    }
    if (strcmp(argv[2], "pgid") == 0) {
      printf("My parent's GID: %d\n", getgid());
      printf("My process GID : %d\n", getgid());
    }
    if (strcmp(argv[2], "sid") == 0) {
      printf("My parent's SID: %d\n", getsid(getppid()));
      printf("My process SID : %d\n", getsid(getpid()));
    }
    if (strcmp(argv[2], "pid,uid") == 0 || strcmp(argv[2], "uid,pid") == 0) {
      printf("My parent's ID: %d\n", getppid());
      printf("My process ID : %d\n", getpid());
      printf("My parent's UID: %d\n", getuid());
      printf("My process UID : %d\n", getuid());
    }
    if (strcmp(argv[2], "pid,ppid") == 0 || strcmp(argv[2], "pid,ppid") == 0) {
      printf("My parent's ID: %d\n", getppid());
      printf("My process ID : %d\n", getpid());
    }
    if (strcmp(argv[2], "pid,sid") == 0 || strcmp(argv[2], "sid,pid") == 0) {
      printf("My parent's ID: %d\n", getppid());
      printf("My process ID : %d\n", getpid());
      printf("My parent's SID: %d\n", getsid(getppid()));
      printf("My process SID : %d\n", getsid(getpid()));
    }
    if (strcmp(argv[2], "pid,gid") == 0 || strcmp(argv[2], "pid,gid") == 0) {
      printf("My parent's ID: %d\n", getppid());
      printf("My process ID : %d\n", getpid());
      printf("My parent's GID: %d\n", getgid());
      printf("My process GID : %d\n", getgid());
    }
    if (strcmp(argv[2], "sid,gid") == 0 || strcmp(argv[2], "sid,gid") == 0) {
      printf("My parent's SID: %d\n", getsid(getppid()));
      printf("My process SID : %d\n", getsid(getpid()));
      printf("My parent's GID: %d\n", getgid());
      printf("My process GID : %d\n", getgid());
    }
    if (strcmp(argv[2], "pid,ppid,pgid,sid,uid") == 0 ||
        strcmp(argv[2], "ppid,pid,pgid,sid,uid") == 0) {
      printf("My parent's ID: %d\n", getppid());
      printf("My process ID : %d\n", getpid());
      printf("My parent's SID: %d\n", getsid(getppid()));
      printf("My process SID : %d\n", getsid(getpid()));
      printf("My parent's GID: %d\n", getgid());
      printf("My process GID : %d\n", getgid());
      printf("My parent's UID: %d\n", getuid());
      printf("My process UID : %d\n", getuid());
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jl     1677 <main+0x507>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xf31(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    11d8 <main+0x68>
mov    $0x0,%al
call   1090 <getppid@plt>
mov    %eax,%esi
lea    0xe42(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%esi
lea    0xe41(%rip),%rdi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xec8(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1220 <main+0xb0>
mov    $0x0,%al
call   1040 <getuid@plt>
mov    %eax,%esi
lea    0xe22(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <getuid@plt>
mov    %eax,%esi
lea    0xe22(%rip),%rdi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe23(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1268 <main+0xf8>
mov    $0x0,%al
call   1080 <getgid@plt>
mov    %eax,%esi
lea    0xe09(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <getgid@plt>
mov    %eax,%esi
lea    0xe09(%rip),%rdi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe51(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    12be <main+0x14e>
mov    $0x0,%al
call   1090 <getppid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
mov    %eax,%esi
lea    0xde4(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
mov    %eax,%esi
lea    0xddd(%rip),%rdi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdde(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     12fa <main+0x18a>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdc8(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    134e <main+0x1de>
mov    $0x0,%al
call   1090 <getppid@plt>
mov    %eax,%esi
lea    0xcf6(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%esi
lea    0xcf5(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <getuid@plt>
mov    %eax,%esi
lea    0xcf4(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <getuid@plt>
mov    %eax,%esi
lea    0xcf4(%rip),%rdi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd5e(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     138a <main+0x21a>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd40(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    13b4 <main+0x244>
mov    $0x0,%al
call   1090 <getppid@plt>
mov    %eax,%esi
lea    0xc66(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%esi
lea    0xc65(%rip),%rdi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd01(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     13f0 <main+0x280>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xceb(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1452 <main+0x2e2>
mov    $0x0,%al
call   1090 <getppid@plt>
mov    %eax,%esi
lea    0xc00(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%esi
lea    0xbff(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1090 <getppid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
mov    %eax,%esi
lea    0xc50(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
mov    %eax,%esi
lea    0xc49(%rip),%rdi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xc73(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     148e <main+0x31e>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xc55(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    14e2 <main+0x372>
mov    $0x0,%al
call   1090 <getppid@plt>
mov    %eax,%esi
lea    0xb62(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%esi
lea    0xb61(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <getgid@plt>
mov    %eax,%esi
lea    0xb8f(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <getgid@plt>
mov    %eax,%esi
lea    0xb8f(%rip),%rdi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xbeb(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     151e <main+0x3ae>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xbcd(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1580 <main+0x410>
mov    $0x0,%al
call   1090 <getppid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
mov    %eax,%esi
lea    0xb4c(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
mov    %eax,%esi
lea    0xb45(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <getgid@plt>
mov    %eax,%esi
lea    0xaf1(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <getgid@plt>
mov    %eax,%esi
lea    0xaf1(%rip),%rdi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xb55(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     15bc <main+0x44c>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xb4d(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1672 <main+0x502>
mov    $0x0,%al
call   1090 <getppid@plt>
mov    %eax,%esi
lea    0xa34(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%esi
lea    0xa33(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1090 <getppid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
mov    %eax,%esi
lea    0xa84(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
mov    %eax,%esi
lea    0xa7d(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <getgid@plt>
mov    %eax,%esi
lea    0xa29(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <getgid@plt>
mov    %eax,%esi
lea    0xa29(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <getuid@plt>
mov    %eax,%esi
lea    0x9d0(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <getuid@plt>
mov    %eax,%esi
lea    0x9d0(%rip),%rdi
call   1050 <printf@plt>
jmp    1677 <main+0x507>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
cmp    $0x3,%edi
jl     15d3 <main+0x463>
mov    %rsi,%rbx
mov    0x10(%rsi),%rdi
lea    0xf48(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    11bc <main+0x4c>
xor    %eax,%eax
call   1090 <getppid@plt>
lea    0xe60(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xe5f(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
mov    0x10(%rbx),%rdi
lea    0xee8(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    11fb <main+0x8b>
xor    %eax,%eax
call   1040 <getuid@plt>
lea    0xe49(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <getuid@plt>
lea    0xe49(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
mov    0x10(%rbx),%rdi
lea    0xe4c(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    123a <main+0xca>
xor    %eax,%eax
call   1080 <getgid@plt>
lea    0xe39(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <getgid@plt>
lea    0xe39(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
mov    0x10(%rbx),%rdi
lea    0xe83(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1287 <main+0x117>
xor    %eax,%eax
call   1090 <getppid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
lea    0xe1d(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
lea    0xe16(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
mov    0x10(%rbx),%rdi
lea    0xe19(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12b1 <main+0x141>
mov    0x10(%rbx),%rdi
lea    0xe0c(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1305 <main+0x195>
xor    %eax,%eax
call   1090 <getppid@plt>
lea    0xd41(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xd40(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <getuid@plt>
lea    0xd3f(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <getuid@plt>
lea    0xd3f(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
mov    0x10(%rbx),%rdi
lea    0xdab(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     132f <main+0x1bf>
mov    0x10(%rbx),%rdi
lea    0xd96(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1359 <main+0x1e9>
xor    %eax,%eax
call   1090 <getppid@plt>
lea    0xcc3(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xcc2(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
mov    0x10(%rbx),%rdi
lea    0xd60(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1383 <main+0x213>
mov    0x10(%rbx),%rdi
lea    0xd53(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    13e5 <main+0x275>
xor    %eax,%eax
call   1090 <getppid@plt>
lea    0xc6f(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xc6e(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1090 <getppid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
lea    0xcbf(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
lea    0xcb8(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
mov    0x10(%rbx),%rdi
lea    0xce4(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     140f <main+0x29f>
mov    0x10(%rbx),%rdi
lea    0xccf(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1463 <main+0x2f3>
xor    %eax,%eax
call   1090 <getppid@plt>
lea    0xbe3(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xbe2(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <getgid@plt>
lea    0xc10(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <getgid@plt>
lea    0xc10(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
mov    0x10(%rbx),%rdi
lea    0xc6e(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     148d <main+0x31d>
mov    0x10(%rbx),%rdi
lea    0xc59(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    14ef <main+0x37f>
xor    %eax,%eax
call   1090 <getppid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
lea    0xbdf(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
lea    0xbd8(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <getgid@plt>
lea    0xb84(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <getgid@plt>
lea    0xb84(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
mov    0x10(%rbx),%rdi
lea    0xbea(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     151d <main+0x3ad>
mov    0x10(%rbx),%rdi
lea    0xbeb(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    15d3 <main+0x463>
xor    %eax,%eax
call   1090 <getppid@plt>
lea    0xad5(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xad4(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1090 <getppid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
lea    0xb25(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
mov    %eax,%edi
call   1060 <getsid@plt>
lea    0xb1e(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <getgid@plt>
lea    0xaca(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <getgid@plt>
lea    0xaca(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <getuid@plt>
lea    0xa71(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <getuid@plt>
lea    0xa71(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"pid\00"
@.str.1 = [20 x i8] c"My parent's ID: %d\0A\00"
@.str.2 = [20 x i8] c"My process ID : %d\0A\00"
@.str.3 = [4 x i8] c"uid\00"
@.str.4 = [21 x i8] c"My parent's UID: %d\0A\00"
@.str.5 = [21 x i8] c"My process UID : %d\0A\00"
@.str.6 = [5 x i8] c"pgid\00"
@.str.7 = [21 x i8] c"My parent's GID: %d\0A\00"
@.str.8 = [21 x i8] c"My process GID : %d\0A\00"
@.str.9 = [4 x i8] c"sid\00"
@.str.10 = [21 x i8] c"My parent's SID: %d\0A\00"
@.str.11 = [21 x i8] c"My process SID : %d\0A\00"
@.str.12 = [8 x i8] c"pid,uid\00"
@.str.13 = [8 x i8] c"uid,pid\00"
@.str.14 = [9 x i8] c"pid,ppid\00"
@.str.15 = [8 x i8] c"pid,sid\00"
@.str.16 = [8 x i8] c"sid,pid\00"
@.str.17 = [8 x i8] c"pid,gid\00"
@.str.18 = [8 x i8] c"sid,gid\00"
@.str.19 = [22 x i8] c"pid,ppid,pgid,sid,uid\00"
@.str.20 = [22 x i8] c"ppid,pid,pgid,sid,uid\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp sge i32 %6, 3
br i1 %7, label %8, label %191
8: ; preds = %2
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 2
%11 = load i8*, i8** %10
%12 = call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %8
%15 = call i32 (...) @getppid()
%16 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %15)
%17 = call i32 (...) @getpid()
%18 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %17)
br label %19
19: ; preds = %14, %8
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 2
%22 = load i8*, i8** %21
%23 = call i64 @strcmp(i8* %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %19
%26 = call i32 (...) @getuid()
%27 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %26)
%28 = call i32 (...) @getuid()
%29 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %28)
br label %30
30: ; preds = %25, %19
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 2
%33 = load i8*, i8** %32
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %41
36: ; preds = %30
%37 = call i32 (...) @getgid()
%38 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %37)
%39 = call i32 (...) @getgid()
%40 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 %39)
br label %41
41: ; preds = %36, %30
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 2
%44 = load i8*, i8** %43
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %54
47: ; preds = %41
%48 = call i32 (...) @getppid()
%49 = call i32 @getsid(i32 %48)
%50 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %49)
%51 = call i32 (...) @getpid()
%52 = call i32 @getsid(i32 %51)
%53 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 %52)
br label %54
54: ; preds = %47, %41
%55 = load i8**, i8*** %5
%56 = getelementptr inbounds i8*, i8** %55, i64 2
%57 = load i8*, i8** %56
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %66, label %60
60: ; preds = %54
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds i8*, i8** %61, i64 2
%63 = load i8*, i8** %62
%64 = call i64 @strcmp(i8* %63, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %75
66: ; preds = %60, %54
%67 = call i32 (...) @getppid()
%68 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %67)
%69 = call i32 (...) @getpid()
%70 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %69)
%71 = call i32 (...) @getuid()
%72 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %71)
%73 = call i32 (...) @getuid()
%74 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %73)
br label %75
75: ; preds = %66, %60
%76 = load i8**, i8*** %5
%77 = getelementptr inbounds i8*, i8** %76, i64 2
%78 = load i8*, i8** %77
%79 = call i64 @strcmp(i8* %78, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
br i1 %80, label %87, label %81
81: ; preds = %75
%82 = load i8**, i8*** %5
%83 = getelementptr inbounds i8*, i8** %82, i64 2
%84 = load i8*, i8** %83
%85 = call i64 @strcmp(i8* %84, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %87, label %92
87: ; preds = %81, %75
%88 = call i32 (...) @getppid()
%89 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %88)
%90 = call i32 (...) @getpid()
%91 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %90)
br label %92
92: ; preds = %87, %81
%93 = load i8**, i8*** %5
%94 = getelementptr inbounds i8*, i8** %93, i64 2
%95 = load i8*, i8** %94
%96 = call i64 @strcmp(i8* %95, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %104, label %98
98: ; preds = %92
%99 = load i8**, i8*** %5
%100 = getelementptr inbounds i8*, i8** %99, i64 2
%101 = load i8*, i8** %100
%102 = call i64 @strcmp(i8* %101, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
%103 = icmp eq i64 %102, 0
br i1 %103, label %104, label %115
104: ; preds = %98, %92
%105 = call i32 (...) @getppid()
%106 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %105)
%107 = call i32 (...) @getpid()
%108 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %107)
%109 = call i32 (...) @getppid()
%110 = call i32 @getsid(i32 %109)
%111 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %110)
%112 = call i32 (...) @getpid()
%113 = call i32 @getsid(i32 %112)
%114 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 %113)
br label %115
115: ; preds = %104, %98
%116 = load i8**, i8*** %5
%117 = getelementptr inbounds i8*, i8** %116, i64 2
%118 = load i8*, i8** %117
%119 = call i64 @strcmp(i8* %118, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%120 = icmp eq i64 %119, 0
br i1 %120, label %127, label %121
121: ; preds = %115
%122 = load i8**, i8*** %5
%123 = getelementptr inbounds i8*, i8** %122, i64 2
%124 = load i8*, i8** %123
%125 = call i64 @strcmp(i8* %124, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%126 = icmp eq i64 %125, 0
br i1 %126, label %127, label %136
127: ; preds = %121, %115
%128 = call i32 (...) @getppid()
%129 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %128)
%130 = call i32 (...) @getpid()
%131 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %130)
%132 = call i32 (...) @getgid()
%133 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %132)
%134 = call i32 (...) @getgid()
%135 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 %134)
br label %136
136: ; preds = %127, %121
%137 = load i8**, i8*** %5
%138 = getelementptr inbounds i8*, i8** %137, i64 2
%139 = load i8*, i8** %138
%140 = call i64 @strcmp(i8* %139, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%141 = icmp eq i64 %140, 0
br i1 %141, label %148, label %142
142: ; preds = %136
%143 = load i8**, i8*** %5
%144 = getelementptr inbounds i8*, i8** %143, i64 2
%145 = load i8*, i8** %144
%146 = call i64 @strcmp(i8* %145, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%147 = icmp eq i64 %146, 0
br i1 %147, label %148, label %159
148: ; preds = %142, %136
%149 = call i32 (...) @getppid()
%150 = call i32 @getsid(i32 %149)
%151 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %150)
%152 = call i32 (...) @getpid()
%153 = call i32 @getsid(i32 %152)
%154 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 %153)
%155 = call i32 (...) @getgid()
%156 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %155)
%157 = call i32 (...) @getgid()
%158 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 %157)
br label %159
159: ; preds = %148, %142
%160 = load i8**, i8*** %5
%161 = getelementptr inbounds i8*, i8** %160, i64 2
%162 = load i8*, i8** %161
%163 = call i64 @strcmp(i8* %162, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0))
%164 = icmp eq i64 %163, 0
br i1 %164, label %171, label %165
165: ; preds = %159
%166 = load i8**, i8*** %5
%167 = getelementptr inbounds i8*, i8** %166, i64 2
%168 = load i8*, i8** %167
%169 = call i64 @strcmp(i8* %168, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.20, i64 0, i64 0))
%170 = icmp eq i64 %169, 0
br i1 %170, label %171, label %190
171: ; preds = %165, %159
%172 = call i32 (...) @getppid()
%173 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %172)
%174 = call i32 (...) @getpid()
%175 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %174)
%176 = call i32 (...) @getppid()
%177 = call i32 @getsid(i32 %176)
%178 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %177)
%179 = call i32 (...) @getpid()
%180 = call i32 @getsid(i32 %179)
%181 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 %180)
%182 = call i32 (...) @getgid()
%183 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %182)
%184 = call i32 (...) @getgid()
%185 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 %184)
%186 = call i32 (...) @getuid()
%187 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %186)
%188 = call i32 (...) @getuid()
%189 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %188)
br label %190
190: ; preds = %171, %165
br label %191
191: ; preds = %190, %2
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"pid\00"
@.str.1 = [20 x i8] c"My parent's ID: %d\0A\00"
@.str.2 = [20 x i8] c"My process ID : %d\0A\00"
@.str.3 = [4 x i8] c"uid\00"
@.str.4 = [21 x i8] c"My parent's UID: %d\0A\00"
@.str.5 = [21 x i8] c"My process UID : %d\0A\00"
@.str.6 = [5 x i8] c"pgid\00"
@.str.7 = [21 x i8] c"My parent's GID: %d\0A\00"
@.str.8 = [21 x i8] c"My process GID : %d\0A\00"
@.str.9 = [4 x i8] c"sid\00"
@.str.10 = [21 x i8] c"My parent's SID: %d\0A\00"
@.str.11 = [21 x i8] c"My process SID : %d\0A\00"
@.str.12 = [8 x i8] c"pid,uid\00"
@.str.13 = [8 x i8] c"uid,pid\00"
@.str.14 = [9 x i8] c"pid,ppid\00"
@.str.15 = [8 x i8] c"pid,sid\00"
@.str.16 = [8 x i8] c"sid,pid\00"
@.str.17 = [8 x i8] c"pid,gid\00"
@.str.18 = [8 x i8] c"sid,gid\00"
@.str.19 = [22 x i8] c"pid,ppid,pgid,sid,uid\00"
@.str.20 = [22 x i8] c"ppid,pid,pgid,sid,uid\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 2
br i1 %3, label %4, label %155
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 2
%6 = load i8*, i8** %5
%7 = tail call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %4
%10 = tail call i32 (...) @getppid()
%11 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%12 = tail call i32 (...) @getpid()
%13 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %12)
br label %14
14: ; preds = %9, %4
%15 = load i8*, i8** %5
%16 = tail call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = tail call i32 (...) @getuid()
%20 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %19)
%21 = tail call i32 (...) @getuid()
%22 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %21)
br label %23
23: ; preds = %18, %14
%24 = load i8*, i8** %5
%25 = tail call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %23
%28 = tail call i32 (...) @getgid()
%29 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %28)
%30 = tail call i32 (...) @getgid()
%31 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 %30)
br label %32
32: ; preds = %27, %23
%33 = load i8*, i8** %5
%34 = tail call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %43
36: ; preds = %32
%37 = tail call i32 (...) @getppid()
%38 = tail call i32 @getsid(i32 %37)
%39 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %38)
%40 = tail call i32 (...) @getpid()
%41 = tail call i32 @getsid(i32 %40)
%42 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 %41)
br label %43
43: ; preds = %36, %32
%44 = load i8*, i8** %5
%45 = tail call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %51, label %47
47: ; preds = %43
%48 = load i8*, i8** %5
%49 = tail call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %60
51: ; preds = %47, %43
%52 = tail call i32 (...) @getppid()
%53 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %52)
%54 = tail call i32 (...) @getpid()
%55 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %54)
%56 = tail call i32 (...) @getuid()
%57 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %56)
%58 = tail call i32 (...) @getuid()
%59 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %58)
br label %60
60: ; preds = %51, %47
%61 = load i8*, i8** %5
%62 = tail call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %68, label %64
64: ; preds = %60
%65 = load i8*, i8** %5
%66 = tail call i64 @strcmp(i8* %65, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %73
68: ; preds = %64, %60
%69 = tail call i32 (...) @getppid()
%70 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %69)
%71 = tail call i32 (...) @getpid()
%72 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %71)
br label %73
73: ; preds = %68, %64
%74 = load i8*, i8** %5
%75 = tail call i64 @strcmp(i8* %74, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %81, label %77
77: ; preds = %73
%78 = load i8*, i8** %5
%79 = tail call i64 @strcmp(i8* %78, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %92
81: ; preds = %77, %73
%82 = tail call i32 (...) @getppid()
%83 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %82)
%84 = tail call i32 (...) @getpid()
%85 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %84)
%86 = tail call i32 (...) @getppid()
%87 = tail call i32 @getsid(i32 %86)
%88 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %87)
%89 = tail call i32 (...) @getpid()
%90 = tail call i32 @getsid(i32 %89)
%91 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 %90)
br label %92
92: ; preds = %81, %77
%93 = load i8*, i8** %5
%94 = tail call i64 @strcmp(i8* %93, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%95 = icmp eq i64 %94, 0
br i1 %95, label %100, label %96
96: ; preds = %92
%97 = load i8*, i8** %5
%98 = tail call i64 @strcmp(i8* %97, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%99 = icmp eq i64 %98, 0
br i1 %99, label %100, label %109
100: ; preds = %96, %92
%101 = tail call i32 (...) @getppid()
%102 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %101)
%103 = tail call i32 (...) @getpid()
%104 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %103)
%105 = tail call i32 (...) @getgid()
%106 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %105)
%107 = tail call i32 (...) @getgid()
%108 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 %107)
br label %109
109: ; preds = %100, %96
%110 = load i8*, i8** %5
%111 = tail call i64 @strcmp(i8* %110, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%112 = icmp eq i64 %111, 0
br i1 %112, label %117, label %113
113: ; preds = %109
%114 = load i8*, i8** %5
%115 = tail call i64 @strcmp(i8* %114, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%116 = icmp eq i64 %115, 0
br i1 %116, label %117, label %128
117: ; preds = %113, %109
%118 = tail call i32 (...) @getppid()
%119 = tail call i32 @getsid(i32 %118)
%120 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %119)
%121 = tail call i32 (...) @getpid()
%122 = tail call i32 @getsid(i32 %121)
%123 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 %122)
%124 = tail call i32 (...) @getgid()
%125 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %124)
%126 = tail call i32 (...) @getgid()
%127 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 %126)
br label %128
128: ; preds = %117, %113
%129 = load i8*, i8** %5
%130 = tail call i64 @strcmp(i8* %129, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0))
%131 = icmp eq i64 %130, 0
br i1 %131, label %136, label %132
132: ; preds = %128
%133 = load i8*, i8** %5
%134 = tail call i64 @strcmp(i8* %133, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.20, i64 0, i64 0))
%135 = icmp eq i64 %134, 0
br i1 %135, label %136, label %155
136: ; preds = %132, %128
%137 = tail call i32 (...) @getppid()
%138 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %137)
%139 = tail call i32 (...) @getpid()
%140 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %139)
%141 = tail call i32 (...) @getppid()
%142 = tail call i32 @getsid(i32 %141)
%143 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %142)
%144 = tail call i32 (...) @getpid()
%145 = tail call i32 @getsid(i32 %144)
%146 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i32 %145)
%147 = tail call i32 (...) @getgid()
%148 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %147)
%149 = tail call i32 (...) @getgid()
%150 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 %149)
%151 = tail call i32 (...) @getuid()
%152 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %151)
%153 = tail call i32 (...) @getuid()
%154 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %153)
br label %155
155: ; preds = %132, %136, %2
ret i32 0
}