#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 uid_t;
struct passwd {
  char *pw_name;
};
struct group {
  char *gr_name;
};
typedef int gid_t;

/* Variables and functions */
int EOF;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/);
int getegid();
int geteuid();
int getgid();
struct group *getgrgid(int);
int getopt(int, char **, char *);
struct passwd *getpwuid(int);
int getuid();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int main(int argc, char *argv[]) {
  struct passwd *pwd;
  struct group *grp;
  uid_t ruid, euid, uid;
  gid_t rgid, egid, gid;
  int g;
  int isug;
  int c, uopt = 0, gopt = 0, nopt = 0, ropt = 0;
  ruid = getuid();
  euid = geteuid();
  rgid = getgid();
  egid = getegid();
  isug = 0;
  while ((c = getopt(argc, argv, "ugnr")) != EOF) {
    switch (c) {
    case 'u':
      uopt = 1;
      break;
    case 'g':
      gopt = 1;
      break;
    case 'n':
      nopt = 1;
      break;
    case 'r':
      ropt = 1;
      break;
    default:
      fprintf(stderr, "%s: unrecognized option\n", argv[0]);
      return (1);
    }
  }
  if (uopt && gopt) {
    fprintf(stderr, "%s: cannot combine -u and -g\n", argv[0]);
    return 1;
  }
  if ((nopt || ropt) && !uopt && !gopt) {
    fprintf(stderr, "%s: cannot use -n or -r without -u or -g\n", argv[0]);
    return 1;
  }
  if (uopt) {
    uid = ropt ? ruid : euid;
    if (!nopt || (pwd = getpwuid(uid)) == NULL)
      printf("%u\n", uid);
    else
      printf("%s\n", pwd->pw_name);
    return 0;
  }
  if (gopt) {
    gid = ropt ? rgid : egid;
    if (!nopt || (grp = getgrgid(gid)) == NULL)
      printf("%u\n", gid);
    else
      printf("%s\n", grp->gr_name);
    return 0;
  }
  if ((pwd = getpwuid(ruid)) == NULL)
    printf("uid=%d", ruid);
  else
    printf("uid=%d(%s)", ruid, pwd->pw_name);
  if ((grp = getgrgid(rgid)) == NULL)
    printf(" gid=%d", rgid);
  else
    printf(" gid=%d(%s)", rgid, grp->gr_name);
  if (euid != ruid)
    if ((pwd = getpwuid(euid)) != NULL)
      printf(" euid=%d(%s)", euid, pwd->pw_name);
    else
      printf(" euid=%d", euid);
  if (egid != rgid)
    if ((grp = getgrgid(egid)) != NULL)
      printf(" egid=%d(%s)", egid, grp->gr_name);
    else
      printf(" egid=%d", egid);
  if (ruid != euid)
    if ((pwd = getpwuid(ruid)) != NULL)
      printf(" suid=%d(%s)", ruid, pwd->pw_name);
    else
      printf(" suid=%d", ruid);
  if (rgid != egid)
    if ((grp = getgrgid(rgid)) != NULL)
      printf(" sgid=%d(%s)", rgid, grp->gr_name);
    else
      printf(" sgid=%d", rgid);
  if (isug) {
    printf(" issetugid");
  }
  if (0 > 0) {
    printf(" groups=");
    for (g = 0; g < 0; g++) {
      if (g > 0)
        fputc(',', stdout);
      if ((grp = getgrgid((&rgid)[g])) == NULL)
        printf("%d", (&rgid)[g]);
      else
        printf("%d(%s)", (&rgid)[g], grp->gr_name);
    }
  }
  printf("\n");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x50(%rbp)
movl   $0x0,-0x54(%rbp)
mov    $0x0,%al
call   1040 <getuid@plt>
mov    %eax,-0x24(%rbp)
mov    $0x0,%al
call   1070 <geteuid@plt>
mov    %eax,-0x28(%rbp)
mov    $0x0,%al
call   1090 <getgid@plt>
mov    %eax,-0x30(%rbp)
mov    $0x0,%al
call   10a0 <getegid@plt>
mov    %eax,-0x34(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe3d(%rip),%rdx
call   10b0 <getopt@plt>
mov    %eax,-0x44(%rbp)
mov    0x2dda(%rip),%rcx
cmp    (%rcx),%eax
je     129c <main+0x10c>
mov    -0x44(%rbp),%eax
add    $0xffffff99,%eax
mov    %eax,%ecx
mov    %rcx,-0x60(%rbp)
sub    $0xe,%eax
ja     126f <main+0xdf>
mov    -0x60(%rbp),%rax
lea    0xdca(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x1,-0x48(%rbp)
jmp    1297 <main+0x107>
movl   $0x1,-0x4c(%rbp)
jmp    1297 <main+0x107>
movl   $0x1,-0x50(%rbp)
jmp    1297 <main+0x107>
movl   $0x1,-0x54(%rbp)
jmp    1297 <main+0x107>
mov    0x2d62(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xdbb(%rip),%rsi
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1635 <main+0x4a5>
jmp    11f1 <main+0x61>
cmpl   $0x0,-0x48(%rbp)
je     12d8 <main+0x148>
cmpl   $0x0,-0x4c(%rbp)
je     12d8 <main+0x148>
mov    0x2d21(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xd93(%rip),%rsi
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1635 <main+0x4a5>
cmpl   $0x0,-0x50(%rbp)
jne    12ec <main+0x15c>
cmpl   $0x0,-0x54(%rbp)
je     1328 <main+0x198>
cmpl   $0x0,-0x48(%rbp)
jne    1328 <main+0x198>
cmpl   $0x0,-0x4c(%rbp)
jne    1328 <main+0x198>
mov    0x2cd1(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xd61(%rip),%rsi
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1635 <main+0x4a5>
cmpl   $0x0,-0x48(%rbp)
je     13aa <main+0x21a>
cmpl   $0x0,-0x54(%rbp)
je     1347 <main+0x1b7>
mov    -0x24(%rbp),%eax
mov    %eax,-0x64(%rbp)
jmp    134d <main+0x1bd>
mov    -0x28(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x50(%rbp)
je     1373 <main+0x1e3>
mov    -0x2c(%rbp),%edi
call   1030 <getpwuid@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1389 <main+0x1f9>
mov    -0x2c(%rbp),%esi
lea    0xd25(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    139e <main+0x20e>
mov    -0x18(%rbp),%rax
mov    (%rax),%rsi
lea    0xd0f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1635 <main+0x4a5>
cmpl   $0x0,-0x4c(%rbp)
je     142c <main+0x29c>
cmpl   $0x0,-0x54(%rbp)
je     13c9 <main+0x239>
mov    -0x30(%rbp),%eax
mov    %eax,-0x68(%rbp)
jmp    13cf <main+0x23f>
mov    -0x34(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x68(%rbp),%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x50(%rbp)
je     13f5 <main+0x265>
mov    -0x38(%rbp),%edi
call   1060 <getgrgid@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    140b <main+0x27b>
mov    -0x38(%rbp),%esi
lea    0xca3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1420 <main+0x290>
mov    -0x20(%rbp),%rax
mov    (%rax),%rsi
lea    0xc8d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1635 <main+0x4a5>
mov    -0x24(%rbp),%edi
call   1030 <getpwuid@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1458 <main+0x2c8>
mov    -0x24(%rbp),%esi
lea    0xc81(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1470 <main+0x2e0>
mov    -0x24(%rbp),%esi
mov    -0x18(%rbp),%rax
mov    (%rax),%rdx
lea    0xc57(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x30(%rbp),%edi
call   1060 <getgrgid@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    149c <main+0x30c>
mov    -0x30(%rbp),%esi
lea    0xc1a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    14b4 <main+0x324>
mov    -0x30(%rbp),%esi
mov    -0x20(%rbp),%rax
mov    (%rax),%rdx
lea    0xc05(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
je     1509 <main+0x379>
mov    -0x28(%rbp),%edi
call   1030 <getpwuid@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     14f3 <main+0x363>
mov    -0x28(%rbp),%esi
mov    -0x18(%rbp),%rax
mov    (%rax),%rdx
lea    0xbd7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1504 <main+0x374>
mov    -0x28(%rbp),%esi
lea    0xbce(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1509 <main+0x379>
mov    -0x34(%rbp),%eax
cmp    -0x30(%rbp),%eax
je     155e <main+0x3ce>
mov    -0x34(%rbp),%edi
call   1060 <getgrgid@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     1548 <main+0x3b8>
mov    -0x34(%rbp),%esi
mov    -0x20(%rbp),%rax
mov    (%rax),%rdx
lea    0xb98(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1559 <main+0x3c9>
mov    -0x34(%rbp),%esi
lea    0xb8f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    155e <main+0x3ce>
mov    -0x24(%rbp),%eax
cmp    -0x28(%rbp),%eax
je     15b3 <main+0x423>
mov    -0x24(%rbp),%edi
call   1030 <getpwuid@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     159d <main+0x40d>
mov    -0x24(%rbp),%esi
mov    -0x18(%rbp),%rax
mov    (%rax),%rdx
lea    0xb59(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    15ae <main+0x41e>
mov    -0x24(%rbp),%esi
lea    0xb50(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    15b3 <main+0x423>
mov    -0x30(%rbp),%eax
cmp    -0x34(%rbp),%eax
je     1608 <main+0x478>
mov    -0x30(%rbp),%edi
call   1060 <getgrgid@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     15f2 <main+0x462>
mov    -0x30(%rbp),%esi
mov    -0x20(%rbp),%rax
mov    (%rax),%rdx
lea    0xb1a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1603 <main+0x473>
mov    -0x30(%rbp),%esi
lea    0xb11(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1608 <main+0x478>
cmpl   $0x0,-0x40(%rbp)
je     1620 <main+0x490>
lea    0xafd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xa4f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
movl   $0x0,0x10(%rsp)
xor    %eax,%eax
call   1060 <getuid@plt>
mov    %eax,%r13d
xor    %eax,%eax
call   1090 <geteuid@plt>
mov    %eax,0xc(%rsp)
xor    %eax,%eax
call   10b0 <getgid@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   10c0 <getegid@plt>
mov    %eax,%r12d
lea    0xe41(%rip),%rdx
mov    %ebp,%edi
mov    %rbx,%rsi
call   10d0 <getopt@plt>
mov    0x2ddc(%rip),%r15
cmp    (%r15),%eax
jne    123b <main+0x8b>
mov    %r13d,%edi
call   1050 <getpwuid@plt>
test   %rax,%rax
je     132a <main+0x17a>
mov    (%rax),%rdx
lea    0xe90(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    133b <main+0x18b>
mov    %r13d,0x14(%rsp)
mov    %r12d,0x20(%rsp)
mov    %r14d,0x24(%rsp)
lea    0xdaf(%rip),%r12
lea    0xde4(%rip),%r14
movl   $0x0,0x18(%rsp)
movl   $0x0,0x1c(%rsp)
xor    %r13d,%r13d
jmp    128d <main+0xdd>
nopl   (%rax)
movl   $0x1,0x1c(%rsp)
mov    %ecx,%r13d
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   10d0 <getopt@plt>
cmp    (%r15),%eax
je     12ca <main+0x11a>
add    $0xffffff99,%eax
cmp    $0xe,%eax
ja     13c0 <main+0x210>
mov    %r13d,%ecx
mov    $0x1,%r13d
movslq (%r12,%rax,4),%rax
add    %r12,%rax
jmp    *%rax
movl   $0x1,0x18(%rsp)
jmp    1278 <main+0xc8>
cs nopw 0x0(%rax,%rax,1)
nop
movl   $0x1,0x10(%rsp)
jmp    1278 <main+0xc8>
test   %r13d,%r13d
mov    0x1c(%rsp),%esi
je     12ef <main+0x13f>
test   %esi,%esi
je     12ef <main+0x13f>
mov    0x2cfa(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xd70(%rip),%rsi
jmp    13d3 <main+0x223>
mov    0x18(%rsp),%edx
mov    %edx,%eax
mov    0x10(%rsp),%ecx
or     %ecx,%eax
je     13e2 <main+0x232>
test   %r13d,%r13d
jne    13e2 <main+0x232>
test   %esi,%esi
jne    13e2 <main+0x232>
mov    0x2cbf(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xd53(%rip),%rsi
jmp    13d3 <main+0x223>
lea    0xd98(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xc(%rsp),%ebx
mov    %r14d,%edi
call   1080 <getgrgid@plt>
test   %rax,%rax
je     1367 <main+0x1b7>
mov    (%rax),%rdx
lea    0xd58(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
cmp    %r13d,%ebx
jne    137d <main+0x1cd>
jmp    13a0 <main+0x1f0>
lea    0xd38(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
cmp    %r13d,%ebx
je     13a0 <main+0x1f0>
mov    %ebx,%edi
call   1050 <getpwuid@plt>
test   %rax,%rax
je     141a <main+0x26a>
mov    (%rax),%rdx
lea    0xd23(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1070 <printf@plt>
cmp    %r14d,%r12d
jne    1433 <main+0x283>
cmp    %r13d,%ebx
jne    1479 <main+0x2c9>
cmp    %r14d,%r12d
jne    14b7 <main+0x307>
jmp    14eb <main+0x33b>
mov    0x2c11(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xc6e(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%ebx
jmp    14f7 <main+0x347>
test   %r13d,%r13d
je     1508 <main+0x358>
test   %ecx,%ecx
mov    0xc(%rsp),%ebp
cmovne 0x14(%rsp),%ebp
test   %edx,%edx
je     140a <main+0x25a>
mov    %ebp,%edi
call   1050 <getpwuid@plt>
test   %rax,%rax
jne    1539 <main+0x389>
lea    0xc91(%rip),%rdi
xor    %ebx,%ebx
mov    %ebp,%esi
jmp    154f <main+0x39f>
lea    0xca6(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1070 <printf@plt>
cmp    %r14d,%r12d
je     13a9 <main+0x1f9>
mov    %r12d,%edi
call   1080 <getgrgid@plt>
test   %rax,%rax
je     145f <main+0x2af>
mov    (%rax),%rdx
lea    0xc86(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
cmp    %r13d,%ebx
je     13b2 <main+0x202>
jmp    1479 <main+0x2c9>
lea    0xc77(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
cmp    %r13d,%ebx
je     13b2 <main+0x202>
mov    %r13d,%edi
call   1050 <getpwuid@plt>
test   %rax,%rax
je     14a1 <main+0x2f1>
mov    (%rax),%rdx
lea    0xc56(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
cmp    %r14d,%r12d
jne    14b7 <main+0x307>
jmp    14eb <main+0x33b>
lea    0xc4b(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
cmp    %r14d,%r12d
je     14eb <main+0x33b>
mov    %r14d,%edi
call   1080 <getgrgid@plt>
test   %rax,%rax
je     14da <main+0x32a>
mov    (%rax),%rdx
lea    0xc2e(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    14eb <main+0x33b>
lea    0xc28(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %ebx,%ebx
mov    %ebx,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
test   %esi,%esi
mov    0x24(%rsp),%r14d
mov    0x20(%rsp),%r12d
mov    0x14(%rsp),%r13d
je     1211 <main+0x61>
cmpl   $0x0,0x10(%rsp)
cmovne %r14d,%r12d
test   %edx,%edx
je     1543 <main+0x393>
mov    %r12d,%edi
call   1080 <getgrgid@plt>
test   %rax,%rax
je     1543 <main+0x393>
mov    (%rax),%rdi
call   1040 <puts@plt>
jmp    14f5 <main+0x345>
lea    0xb58(%rip),%rdi
xor    %ebx,%ebx
mov    %r12d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    14f7 <main+0x347>

LLVM IR (-O0):
%struct.passwd = type { i8* }
%struct.group = type { i8* }
@.str = [5 x i8] c"ugnr\00"
@EOF = global i32 0
@stderr = global i32 0
@.str.1 = [25 x i8] c"%s: unrecognized option\0A\00"
@.str.2 = [30 x i8] c"%s: cannot combine -u and -g\0A\00"
@.str.3 = [42 x i8] c"%s: cannot use -n or -r without -u or -g\0A\00"
@.str.4 = [4 x i8] c"%u\0A\00"
@.str.5 = [4 x i8] c"%s\0A\00"
@.str.6 = [7 x i8] c"uid=%d\00"
@.str.7 = [11 x i8] c"uid=%d(%s)\00"
@.str.8 = [8 x i8] c" gid=%d\00"
@.str.9 = [12 x i8] c" gid=%d(%s)\00"
@.str.10 = [13 x i8] c" euid=%d(%s)\00"
@.str.11 = [9 x i8] c" euid=%d\00"
@.str.12 = [13 x i8] c" egid=%d(%s)\00"
@.str.13 = [9 x i8] c" egid=%d\00"
@.str.14 = [13 x i8] c" suid=%d(%s)\00"
@.str.15 = [9 x i8] c" suid=%d\00"
@.str.16 = [13 x i8] c" sgid=%d(%s)\00"
@.str.17 = [9 x i8] c" sgid=%d\00"
@.str.18 = [11 x i8] c" issetugid\00"
@.str.19 = [2 x i8] c"\0A\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.passwd*
%7 = alloca %struct.group*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %17
store i32 0, i32* %18
store i32 0, i32* %19
store i32 0, i32* %20
%21 = call i32 (...) @getuid()
store i32 %21, i32* %8
%22 = call i32 (...) @geteuid()
store i32 %22, i32* %9
%23 = call i32 (...) @getgid()
store i32 %23, i32* %11
%24 = call i32 (...) @getegid()
store i32 %24, i32* %12
store i32 0, i32* %15
br label %25
25: ; preds = %43, %2
%26 = load i32, i32* %4
%27 = load i8**, i8*** %5
%28 = call i32 @getopt(i32 %26, i8** %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i32 %28, i32* %16
%29 = load i32, i32* @EOF
%30 = icmp ne i32 %28, %29
br i1 %30, label %31, label %44
31: ; preds = %25
%32 = load i32, i32* %16
switch i32 %32, label %37 [
i32 117, label %33
i32 103, label %34
i32 110, label %35
i32 114, label %36
]
33: ; preds = %31
store i32 1, i32* %17
br label %43
34: ; preds = %31
store i32 1, i32* %18
br label %43
35: ; preds = %31
store i32 1, i32* %19
br label %43
36: ; preds = %31
store i32 1, i32* %20
br label %43
37: ; preds = %31
%38 = load i32, i32* @stderr
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 0
%41 = load i8*, i8** %40
%42 = call i32 @fprintf(i32 %38, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* %41)
store i32 1, i32* %3
br label %233
43: ; preds = %36, %35, %34, %33
br label %25
44: ; preds = %25
%45 = load i32, i32* %17
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %56
47: ; preds = %44
%48 = load i32, i32* %18
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %56
50: ; preds = %47
%51 = load i32, i32* @stderr
%52 = load i8**, i8*** %5
%53 = getelementptr inbounds i8*, i8** %52, i64 0
%54 = load i8*, i8** %53
%55 = call i32 @fprintf(i32 %51, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* %54)
store i32 1, i32* %3
br label %233
56: ; preds = %47, %44
%57 = load i32, i32* %19
%58 = icmp ne i32 %57, 0
br i1 %58, label %62, label %59
59: ; preds = %56
%60 = load i32, i32* %20
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %74
62: ; preds = %59, %56
%63 = load i32, i32* %17
%64 = icmp ne i32 %63, 0
br i1 %64, label %74, label %65
65: ; preds = %62
%66 = load i32, i32* %18
%67 = icmp ne i32 %66, 0
br i1 %67, label %74, label %68
68: ; preds = %65
%69 = load i32, i32* @stderr
%70 = load i8**, i8*** %5
%71 = getelementptr inbounds i8*, i8** %70, i64 0
%72 = load i8*, i8** %71
%73 = call i32 @fprintf(i32 %69, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), i8* %72)
store i32 1, i32* %3
br label %233
74: ; preds = %65, %62, %59
%75 = load i32, i32* %17
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %101
77: ; preds = %74
%78 = load i32, i32* %20
%79 = icmp ne i32 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = load i32, i32* %8
br label %84
82: ; preds = %77
%83 = load i32, i32* %9
br label %84
84: ; preds = %82, %80
%85 = phi i32 [ %81, %80 ], [ %83, %82 ]
store i32 %85, i32* %10
%86 = load i32, i32* %19
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %92
88: ; preds = %84
%89 = load i32, i32* %10
%90 = call %struct.passwd* @getpwuid(i32 %89)
store %struct.passwd* %90, %struct.passwd** %6
%91 = icmp eq %struct.passwd* %90, null
br i1 %91, label %92, label %95
92: ; preds = %88, %84
%93 = load i32, i32* %10
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %93)
br label %100
95: ; preds = %88
%96 = load %struct.passwd*, %struct.passwd** %6
%97 = getelementptr inbounds %struct.passwd, %struct.passwd* %96, i32 0, i32 0
%98 = load i8*, i8** %97
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %98)
br label %100
100: ; preds = %95, %92
store i32 0, i32* %3
br label %233
101: ; preds = %74
%102 = load i32, i32* %18
%103 = icmp ne i32 %102, 0
br i1 %103, label %104, label %128
104: ; preds = %101
%105 = load i32, i32* %20
%106 = icmp ne i32 %105, 0
br i1 %106, label %107, label %109
107: ; preds = %104
%108 = load i32, i32* %11
br label %111
109: ; preds = %104
%110 = load i32, i32* %12
br label %111
111: ; preds = %109, %107
%112 = phi i32 [ %108, %107 ], [ %110, %109 ]
store i32 %112, i32* %13
%113 = load i32, i32* %19
%114 = icmp ne i32 %113, 0
br i1 %114, label %115, label %119
115: ; preds = %111
%116 = load i32, i32* %13
%117 = call %struct.group* @getgrgid(i32 %116)
store %struct.group* %117, %struct.group** %7
%118 = icmp eq %struct.group* %117, null
br i1 %118, label %119, label %122
119: ; preds = %115, %111
%120 = load i32, i32* %13
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %120)
br label %127
122: ; preds = %115
%123 = load %struct.group*, %struct.group** %7
%124 = getelementptr inbounds %struct.group, %struct.group* %123, i32 0, i32 0
%125 = load i8*, i8** %124
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %125)
br label %127
127: ; preds = %122, %119
store i32 0, i32* %3
br label %233
128: ; preds = %101
%129 = load i32, i32* %8
%130 = call %struct.passwd* @getpwuid(i32 %129)
store %struct.passwd* %130, %struct.passwd** %6
%131 = icmp eq %struct.passwd* %130, null
br i1 %131, label %132, label %135
132: ; preds = %128
%133 = load i32, i32* %8
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 %133)
br label %141
135: ; preds = %128
%136 = load i32, i32* %8
%137 = load %struct.passwd*, %struct.passwd** %6
%138 = getelementptr inbounds %struct.passwd, %struct.passwd* %137, i32 0, i32 0
%139 = load i8*, i8** %138
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 %136, i8* %139)
br label %141
141: ; preds = %135, %132
%142 = load i32, i32* %11
%143 = call %struct.group* @getgrgid(i32 %142)
store %struct.group* %143, %struct.group** %7
%144 = icmp eq %struct.group* %143, null
br i1 %144, label %145, label %148
145: ; preds = %141
%146 = load i32, i32* %11
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 %146)
br label %154
148: ; preds = %141
%149 = load i32, i32* %11
%150 = load %struct.group*, %struct.group** %7
%151 = getelementptr inbounds %struct.group, %struct.group* %150, i32 0, i32 0
%152 = load i8*, i8** %151
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 %149, i8* %152)
br label %154
154: ; preds = %148, %145
%155 = load i32, i32* %9
%156 = load i32, i32* %8
%157 = icmp ne i32 %155, %156
br i1 %157, label %158, label %172
158: ; preds = %154
%159 = load i32, i32* %9
%160 = call %struct.passwd* @getpwuid(i32 %159)
store %struct.passwd* %160, %struct.passwd** %6
%161 = icmp ne %struct.passwd* %160, null
br i1 %161, label %162, label %168
162: ; preds = %158
%163 = load i32, i32* %9
%164 = load %struct.passwd*, %struct.passwd** %6
%165 = getelementptr inbounds %struct.passwd, %struct.passwd* %164, i32 0, i32 0
%166 = load i8*, i8** %165
%167 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i32 %163, i8* %166)
br label %171
168: ; preds = %158
%169 = load i32, i32* %9
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32 %169)
br label %171
171: ; preds = %168, %162
br label %172
172: ; preds = %171, %154
%173 = load i32, i32* %12
%174 = load i32, i32* %11
%175 = icmp ne i32 %173, %174
br i1 %175, label %176, label %190
176: ; preds = %172
%177 = load i32, i32* %12
%178 = call %struct.group* @getgrgid(i32 %177)
store %struct.group* %178, %struct.group** %7
%179 = icmp ne %struct.group* %178, null
br i1 %179, label %180, label %186
180: ; preds = %176
%181 = load i32, i32* %12
%182 = load %struct.group*, %struct.group** %7
%183 = getelementptr inbounds %struct.group, %struct.group* %182, i32 0, i32 0
%184 = load i8*, i8** %183
%185 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), i32 %181, i8* %184)
br label %189
186: ; preds = %176
%187 = load i32, i32* %12
%188 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0), i32 %187)
br label %189
189: ; preds = %186, %180
br label %190
190: ; preds = %189, %172
%191 = load i32, i32* %8
%192 = load i32, i32* %9
%193 = icmp ne i32 %191, %192
br i1 %193, label %194, label %208
194: ; preds = %190
%195 = load i32, i32* %8
%196 = call %struct.passwd* @getpwuid(i32 %195)
store %struct.passwd* %196, %struct.passwd** %6
%197 = icmp ne %struct.passwd* %196, null
br i1 %197, label %198, label %204
198: ; preds = %194
%199 = load i32, i32* %8
%200 = load %struct.passwd*, %struct.passwd** %6
%201 = getelementptr inbounds %struct.passwd, %struct.passwd* %200, i32 0, i32 0
%202 = load i8*, i8** %201
%203 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32 %199, i8* %202)
br label %207
204: ; preds = %194
%205 = load i32, i32* %8
%206 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i32 %205)
br label %207
207: ; preds = %204, %198
br label %208
208: ; preds = %207, %190
%209 = load i32, i32* %11
%210 = load i32, i32* %12
%211 = icmp ne i32 %209, %210
br i1 %211, label %212, label %226
212: ; preds = %208
%213 = load i32, i32* %11
%214 = call %struct.group* @getgrgid(i32 %213)
store %struct.group* %214, %struct.group** %7
%215 = icmp ne %struct.group* %214, null
br i1 %215, label %216, label %222
216: ; preds = %212
%217 = load i32, i32* %11
%218 = load %struct.group*, %struct.group** %7
%219 = getelementptr inbounds %struct.group, %struct.group* %218, i32 0, i32 0
%220 = load i8*, i8** %219
%221 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i32 %217, i8* %220)
br label %225
222: ; preds = %212
%223 = load i32, i32* %11
%224 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i32 %223)
br label %225
225: ; preds = %222, %216
br label %226
226: ; preds = %225, %208
%227 = load i32, i32* %15
%228 = icmp ne i32 %227, 0
br i1 %228, label %229, label %231
229: ; preds = %226
%230 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0))
br label %231
231: ; preds = %229, %226
%232 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
store i32 0, i32* %3
br label %233
233: ; preds = %231, %127, %100, %68, %50, %37
%234 = load i32, i32* %3
ret i32 %234
}

LLVM IR (-O2):
%struct.passwd = type { i8* }
%struct.group = type { i8* }
@.str = [5 x i8] c"ugnr\00"
@EOF = global i32 0
@stderr = global i32 0
@.str.1 = [25 x i8] c"%s: unrecognized option\0A\00"
@.str.2 = [30 x i8] c"%s: cannot combine -u and -g\0A\00"
@.str.3 = [42 x i8] c"%s: cannot use -n or -r without -u or -g\0A\00"
@.str.4 = [4 x i8] c"%u\0A\00"
@.str.6 = [7 x i8] c"uid=%d\00"
@.str.7 = [11 x i8] c"uid=%d(%s)\00"
@.str.8 = [8 x i8] c" gid=%d\00"
@.str.9 = [12 x i8] c" gid=%d(%s)\00"
@.str.10 = [13 x i8] c" euid=%d(%s)\00"
@.str.11 = [9 x i8] c" euid=%d\00"
@.str.12 = [13 x i8] c" egid=%d(%s)\00"
@.str.13 = [9 x i8] c" egid=%d\00"
@.str.14 = [13 x i8] c" suid=%d(%s)\00"
@.str.15 = [9 x i8] c" suid=%d\00"
@.str.16 = [13 x i8] c" sgid=%d(%s)\00"
@.str.17 = [9 x i8] c" sgid=%d\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 (...) @getuid()
%4 = tail call i32 (...) @geteuid()
%5 = tail call i32 (...) @getgid()
%6 = tail call i32 (...) @getegid()
%7 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* @EOF
%9 = icmp eq i32 %7, %8
br i1 %9, label %74, label %10
10: ; preds = %2, %23
%11 = phi i32 [ %28, %23 ], [ %7, %2 ]
%12 = phi i32 [ %27, %23 ], [ 0, %2 ]
%13 = phi i32 [ %26, %23 ], [ 0, %2 ]
%14 = phi i32 [ %25, %23 ], [ 0, %2 ]
%15 = phi i32 [ %24, %23 ], [ 0, %2 ]
switch i32 %11, label %19 [
i32 117, label %23
i32 103, label %16
i32 110, label %17
i32 114, label %18
]
16: ; preds = %10
br label %23
17: ; preds = %10
br label %23
18: ; preds = %10
br label %23
19: ; preds = %10
%20 = load i32, i32* @stderr
%21 = load i8*, i8** %1
%22 = tail call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* %21)
br label %136
23: ; preds = %10, %18, %17, %16
%24 = phi i32 [ %15, %18 ], [ %15, %17 ], [ %15, %16 ], [ 1, %10 ]
%25 = phi i32 [ %14, %18 ], [ %14, %17 ], [ 1, %16 ], [ %14, %10 ]
%26 = phi i32 [ %13, %18 ], [ 1, %17 ], [ %13, %16 ], [ %13, %10 ]
%27 = phi i32 [ 1, %18 ], [ %12, %17 ], [ %12, %16 ], [ %12, %10 ]
%28 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%29 = load i32, i32* @EOF
%30 = icmp eq i32 %28, %29
br i1 %30, label %31, label %10
31: ; preds = %23
%32 = icmp ne i32 %24, 0
%33 = icmp ne i32 %25, 0
%34 = select i1 %32, i1 %33, i1 false
br i1 %34, label %35, label %39
35: ; preds = %31
%36 = load i32, i32* @stderr
%37 = load i8*, i8** %1
%38 = tail call i32 @fprintf(i32 %36, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* %37)
br label %136
39: ; preds = %31
%40 = icmp ne i32 %26, 0
%41 = icmp ne i32 %27, 0
%42 = select i1 %40, i1 true, i1 %41
%43 = xor i1 %42, true
%44 = select i1 %43, i1 true, i1 %32
%45 = select i1 %44, i1 true, i1 %33
br i1 %45, label %50, label %46
46: ; preds = %39
%47 = load i32, i32* @stderr
%48 = load i8*, i8** %1
%49 = tail call i32 @fprintf(i32 %47, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), i8* %48)
br label %136
50: ; preds = %39
br i1 %32, label %51, label %62
51: ; preds = %50
%52 = select i1 %41, i32 %3, i32 %4
br i1 %40, label %53, label %56
53: ; preds = %51
%54 = tail call %struct.passwd* @getpwuid(i32 %52)
%55 = icmp eq %struct.passwd* %54, null
br i1 %55, label %56, label %58
56: ; preds = %53, %51
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %52)
br label %136
58: ; preds = %53
%59 = getelementptr inbounds %struct.passwd, %struct.passwd* %54, i64 0, i32 0
%60 = load i8*, i8** %59
%61 = tail call i32 @puts(i8* dereferenceable(1) %60)
br label %136
62: ; preds = %50
br i1 %33, label %63, label %74
63: ; preds = %62
%64 = select i1 %41, i32 %5, i32 %6
br i1 %40, label %65, label %68
65: ; preds = %63
%66 = tail call %struct.group* @getgrgid(i32 %64)
%67 = icmp eq %struct.group* %66, null
br i1 %67, label %68, label %70
68: ; preds = %65, %63
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %64)
br label %136
70: ; preds = %65
%71 = getelementptr inbounds %struct.group, %struct.group* %66, i64 0, i32 0
%72 = load i8*, i8** %71
%73 = tail call i32 @puts(i8* dereferenceable(1) %72)
br label %136
74: ; preds = %2, %62
%75 = tail call %struct.passwd* @getpwuid(i32 %3)
%76 = icmp eq %struct.passwd* %75, null
br i1 %76, label %77, label %79
77: ; preds = %74
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 %3)
br label %83
79: ; preds = %74
%80 = getelementptr inbounds %struct.passwd, %struct.passwd* %75, i64 0, i32 0
%81 = load i8*, i8** %80
%82 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 %3, i8* %81)
br label %83
83: ; preds = %79, %77
%84 = tail call %struct.group* @getgrgid(i32 %5)
%85 = icmp eq %struct.group* %84, null
br i1 %85, label %86, label %88
86: ; preds = %83
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 %5)
br label %92
88: ; preds = %83
%89 = getelementptr inbounds %struct.group, %struct.group* %84, i64 0, i32 0
%90 = load i8*, i8** %89
%91 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 %5, i8* %90)
br label %92
92: ; preds = %88, %86
%93 = icmp eq i32 %4, %3
br i1 %93, label %103, label %94
94: ; preds = %92
%95 = tail call %struct.passwd* @getpwuid(i32 %4)
%96 = icmp eq %struct.passwd* %95, null
br i1 %96, label %101, label %97
97: ; preds = %94
%98 = getelementptr inbounds %struct.passwd, %struct.passwd* %95, i64 0, i32 0
%99 = load i8*, i8** %98
%100 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i32 %4, i8* %99)
br label %103
101: ; preds = %94
%102 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32 %4)
br label %103
103: ; preds = %97, %101, %92
%104 = icmp eq i32 %6, %5
br i1 %104, label %114, label %105
105: ; preds = %103
%106 = tail call %struct.group* @getgrgid(i32 %6)
%107 = icmp eq %struct.group* %106, null
br i1 %107, label %112, label %108
108: ; preds = %105
%109 = getelementptr inbounds %struct.group, %struct.group* %106, i64 0, i32 0
%110 = load i8*, i8** %109
%111 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), i32 %6, i8* %110)
br label %114
112: ; preds = %105
%113 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0), i32 %6)
br label %114
114: ; preds = %108, %112, %103
br i1 %93, label %124, label %115
115: ; preds = %114
%116 = tail call %struct.passwd* @getpwuid(i32 %3)
%117 = icmp eq %struct.passwd* %116, null
br i1 %117, label %122, label %118
118: ; preds = %115
%119 = getelementptr inbounds %struct.passwd, %struct.passwd* %116, i64 0, i32 0
%120 = load i8*, i8** %119
%121 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32 %3, i8* %120)
br label %124
122: ; preds = %115
%123 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i32 %3)
br label %124
124: ; preds = %118, %122, %114
br i1 %104, label %134, label %125
125: ; preds = %124
%126 = tail call %struct.group* @getgrgid(i32 %5)
%127 = icmp eq %struct.group* %126, null
br i1 %127, label %132, label %128
128: ; preds = %125
%129 = getelementptr inbounds %struct.group, %struct.group* %126, i64 0, i32 0
%130 = load i8*, i8** %129
%131 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i32 %5, i8* %130)
br label %134
132: ; preds = %125
%133 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i32 %5)
br label %134
134: ; preds = %124, %132, %128
%135 = tail call i32 @putchar(i32 10)
br label %136
136: ; preds = %68, %70, %56, %58, %134, %46, %35, %19
%137 = phi i32 [ 1, %19 ], [ 1, %35 ], [ 0, %134 ], [ 1, %46 ], [ 0, %58 ], [ 0, %56 ], [ 0, %70 ], [ 0, %68 ]
ret i32 %137
}