#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*/ uint32_t;
typedef void *uid_t;
struct passwd {
  int /*<<< orphan*/ pw_name;
};
struct group {
  char **gr_mem;
  char *gr_name;
  char *gr_passwd;
  int gr_gid;
};
typedef void *gid_t;

/* Variables and functions */
int /*<<< orphan*/ UINT32_MAX;
char *basename(char *);
int /*<<< orphan*/ enable(int /*<<< orphan*/ *, int);
int /*<<< orphan*/ err(int, int /*<<< orphan*/ *);
scalar_t__ errno;
int /*<<< orphan*/ errx(int, char *, char const *, ...);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *, int);
struct group *getgrgid(void *);
struct group *getgrnam(char const *);
int getopt(int, char **, char *);
struct passwd *getpwnam(char const *);
struct passwd *getpwuid(void *);
scalar_t__ is_on(int /*<<< orphan*/, char);
char *optarg;
scalar_t__ optind;
int optopt;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, int /*<<< orphan*/);
void *strtonum(char const *, int /*<<< orphan*/, int /*<<< orphan*/,
               char const **);
int /*<<< orphan*/ usage(int);
int main(int argc, char **argv) {
  char const *progname = basename(argv[0]);
  uint32_t opts = 0;
  int input_id = 0;
  int names = 1;
  int noerror = 0;
  int membertest = 0;
  char const *testee = NULL;
  int opt;
  while ((opt = getopt(argc, argv, ":hFNgmnpqt:")) > -1) {
    switch (opt) {
    case 'g':
    case 'm':
    case 'n':
    case 'p':
      enable(&opts, opt);
      break;
    case 'F':
      names = 0;
      break;
    case 'N':
      input_id = 1;
      break;
    case 'q':
      noerror = 1;
      break;
    case 't':
      membertest = 1;
      testee = optarg;
      break;
    case 'h':
      usage(0);
    case '?':
    default:
      fprintf(stderr, "%s: invalid option -- '%c'\n", progname, optopt);
      usage(1);
    }
  }
  argc -= optind;
  argv += optind;
  if (argc != 1)
    usage(1);
  char const *arg = argv[0];
  struct group *gr;
  uid_t uid;
  if (input_id) {
    const char *err;
    gid_t gid = strtonum(arg, 0, UINT32_MAX, &err);
    if (err)
      errx(1, "gid value is %s: %s", err, arg);
    if (membertest) {
      uid = strtonum(testee, 0, UINT32_MAX, &err);
      if (err)
        errx(1, "uid value is %s: %s", err, testee);
    }
    gr = getgrgid(gid);
  } else {
    gr = getgrnam(arg);
  }
  if (!gr)
    errno     ? err(1, NULL)
    : noerror ? exit(1)
              : errx(1, "%s: no such group", arg);
  if (membertest) {
    struct passwd *pw;
    if (input_id) {
      pw = getpwuid(uid);
    } else {
      pw = getpwnam(testee);
    }
    if (!pw)
      errno     ? err(1, NULL)
      : noerror ? exit(1)
                : errx(1, "%s: no such user", testee);
    for (char **p = gr->gr_mem; *p != NULL; ++p)
      if (0 == strcmp(*p, pw->pw_name))
        exit(0);
    exit(1);
  }
  if (is_on(opts, 'n'))
    do {
      printf("%s"
             "%s"
             "\n",
             (names ? "name"
                      "="
                    : ""),
             (gr)->gr_name);
    } while (0);
  if (is_on(opts, 'p'))
    do {
      printf("%s"
             "%s"
             "\n",
             (names ? "passwd"
                      "="
                    : ""),
             (gr)->gr_passwd);
    } while (0);
  if (is_on(opts, 'g'))
    do {
      printf("%s"
             "%d"
             "\n",
             (names ? "gid"
                      "="
                    : ""),
             (gr)->gr_gid);
    } while (0);
  if (is_on(opts, 'm')) {
    int memcnt = 0;
    for (char **p = gr->gr_mem; *p != NULL; ++p)
      ++memcnt;
    printf("members=%d\n", memcnt);
    for (int i = 0; i < memcnt; ++i) {
      printf("member_%d=%s\n", i, gr->gr_mem[i]);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   10a0 <basename@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x1,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe76(%rip),%rdx
call   1110 <getopt@plt>
mov    %eax,-0x3c(%rbp)
cmp    $0xffffffff,%eax
jle    132e <main+0x12e>
mov    -0x3c(%rbp),%eax
add    $0xffffffc1,%eax
mov    %eax,%ecx
mov    %rcx,-0x98(%rbp)
sub    $0x35,%eax
ja     12fd <main+0xfd>
mov    -0x98(%rbp),%rax
lea    0xd67(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x3c(%rbp),%esi
lea    -0x1c(%rbp),%rdi
call   1100 <enable@plt>
jmp    1329 <main+0x129>
movl   $0x0,-0x24(%rbp)
jmp    1329 <main+0x129>
movl   $0x1,-0x20(%rbp)
jmp    1329 <main+0x129>
movl   $0x1,-0x28(%rbp)
jmp    1329 <main+0x129>
movl   $0x1,-0x2c(%rbp)
mov    0x2d0b(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
jmp    1329 <main+0x129>
xor    %edi,%edi
call   10f0 <usage@plt>
jmp    12fd <main+0xfd>
mov    0x2cbc(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
mov    0x2cc7(%rip),%rax
mov    (%rax),%ecx
lea    0xdca(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <usage@plt>
jmp    1254 <main+0x54>
mov    0x2c9b(%rip),%rax
mov    (%rax),%rcx
movslq -0x8(%rbp),%rax
sub    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    0x2c87(%rip),%rax
mov    (%rax),%rax
shl    $0x3,%rax
add    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
je     136c <main+0x16c>
mov    $0x1,%edi
call   10f0 <usage@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x48(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     1426 <main+0x226>
mov    -0x48(%rbp),%rdi
mov    0x2c6c(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
lea    -0x60(%rbp),%rcx
call   10e0 <strtonum@plt>
mov    %rax,-0x68(%rbp)
cmpq   $0x0,-0x60(%rbp)
je     13c3 <main+0x1c3>
mov    -0x60(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    $0x1,%edi
lea    0xd44(%rip),%rsi
mov    $0x0,%al
call   1040 <errx@plt>
cmpl   $0x0,-0x2c(%rbp)
je     1414 <main+0x214>
mov    -0x38(%rbp),%rdi
mov    0x2c20(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
lea    -0x60(%rbp),%rcx
call   10e0 <strtonum@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x60(%rbp)
je     140f <main+0x20f>
mov    -0x60(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    $0x1,%edi
lea    0xd0c(%rip),%rsi
mov    $0x0,%al
call   1040 <errx@plt>
jmp    1414 <main+0x214>
mov    -0x68(%rbp),%rdi
call   1060 <getgrgid@plt>
mov    %rax,-0x50(%rbp)
jmp    1433 <main+0x233>
mov    -0x48(%rbp),%rdi
call   10b0 <getgrnam@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    1492 <main+0x292>
mov    0x2b73(%rip),%rax
cmpq   $0x0,(%rax)
je     1462 <main+0x262>
mov    $0x1,%edi
xor    %eax,%eax
mov    %eax,%esi
call   10c0 <err@plt>
jmp    1492 <main+0x292>
cmpl   $0x0,-0x28(%rbp)
je     1476 <main+0x276>
mov    $0x1,%edi
call   1120 <exit@plt>
mov    -0x48(%rbp),%rdx
mov    $0x1,%edi
lea    0xca2(%rip),%rsi
mov    $0x0,%al
call   1040 <errx@plt>
jmp    1492 <main+0x292>
cmpl   $0x0,-0x2c(%rbp)
je     1584 <main+0x384>
cmpl   $0x0,-0x20(%rbp)
je     14b8 <main+0x2b8>
mov    -0x58(%rbp),%rdi
call   1030 <getpwuid@plt>
mov    %rax,-0x70(%rbp)
jmp    14c5 <main+0x2c5>
mov    -0x38(%rbp),%rdi
call   1080 <getpwnam@plt>
mov    %rax,-0x70(%rbp)
cmpq   $0x0,-0x70(%rbp)
jne    1524 <main+0x324>
mov    0x2ae1(%rip),%rax
cmpq   $0x0,(%rax)
je     14f4 <main+0x2f4>
mov    $0x1,%edi
xor    %eax,%eax
mov    %eax,%esi
call   10c0 <err@plt>
jmp    1524 <main+0x324>
cmpl   $0x0,-0x28(%rbp)
je     1508 <main+0x308>
mov    $0x1,%edi
call   1120 <exit@plt>
mov    -0x38(%rbp),%rdx
mov    $0x1,%edi
lea    0xc22(%rip),%rsi
mov    $0x0,%al
call   1040 <errx@plt>
jmp    1524 <main+0x324>
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
cmpq   $0x0,(%rax)
je     157a <main+0x37a>
mov    -0x78(%rbp),%rax
mov    (%rax),%rdi
mov    -0x70(%rbp),%rax
mov    (%rax),%esi
call   1070 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1564 <main+0x364>
xor    %edi,%edi
call   1120 <exit@plt>
jmp    1569 <main+0x369>
mov    -0x78(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x78(%rbp)
jmp    152f <main+0x32f>
mov    $0x1,%edi
call   1120 <exit@plt>
mov    -0x1c(%rbp),%edi
mov    $0x6e,%esi
call   10d0 <is_on@plt>
cmp    $0x0,%rax
je     15d3 <main+0x3d3>
jmp    15a0 <main+0x3a0>
mov    -0x24(%rbp),%ecx
lea    0xb55(%rip),%rsi
lea    0xba0(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
mov    -0x50(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xb84(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    15d3 <main+0x3d3>
mov    -0x1c(%rbp),%edi
mov    $0x70,%esi
call   10d0 <is_on@plt>
cmp    $0x0,%rax
je     1622 <main+0x422>
jmp    15ef <main+0x3ef>
mov    -0x24(%rbp),%ecx
lea    0xb06(%rip),%rsi
lea    0xb57(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
mov    -0x50(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xb35(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1622 <main+0x422>
mov    -0x1c(%rbp),%edi
mov    $0x67,%esi
call   10d0 <is_on@plt>
cmp    $0x0,%rax
je     1670 <main+0x470>
jmp    163e <main+0x43e>
mov    -0x24(%rbp),%ecx
lea    0xab7(%rip),%rsi
lea    0xb16(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
mov    -0x50(%rbp),%rax
mov    0x18(%rax),%edx
lea    0xafb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1670 <main+0x470>
mov    -0x1c(%rbp),%edi
mov    $0x6d,%esi
call   10d0 <is_on@plt>
cmp    $0x0,%rax
je     1736 <main+0x536>
movl   $0x0,-0x7c(%rbp)
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x88(%rbp)
mov    -0x88(%rbp),%rax
cmpq   $0x0,(%rax)
je     16cd <main+0x4cd>
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
mov    -0x88(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x88(%rbp)
jmp    169c <main+0x49c>
mov    -0x7c(%rbp),%esi
lea    0xa93(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    -0x7c(%rbp),%eax
jge    1731 <main+0x531>
mov    -0x8c(%rbp),%esi
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
movslq -0x8c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xa60(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    16e8 <main+0x4e8>
jmp    1736 <main+0x536>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
mov    (%rsi),%rdi
call   10a0 <basename@plt>
mov    %rax,0x30(%rsp)
movl   $0x0,0x8(%rsp)
lea    0xe8d(%rip),%rdx
mov    %ebp,%edi
mov    %rbx,%rsi
call   1110 <getopt@plt>
test   %eax,%eax
js     131b <main+0x11b>
mov    $0x1,%r12d
xor    %ecx,%ecx
mov    %rcx,0x20(%rsp)
lea    0xe67(%rip),%r13
lea    0xda4(%rip),%r15
xor    %ecx,%ecx
mov    %rcx,0x10(%rsp)
movl   $0x0,0xc(%rsp)
xor    %ecx,%ecx
mov    %rcx,0x18(%rsp)
jmp    129b <main+0x9b>
mov    $0x1,%eax
mov    %rax,0x18(%rsp)
xchg   %ax,%ax
mov    %r12d,%r14d
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r13,%rdx
call   1110 <getopt@plt>
mov    %r14d,%r12d
test   %eax,%eax
js     133e <main+0x13e>
lea    -0x46(%rax),%ecx
cmp    $0x2e,%ecx
ja     12d0 <main+0xd0>
movslq (%r15,%rcx,4),%rcx
add    %r15,%rcx
xor    %r14d,%r14d
jmp    *%rcx
lea    0x8(%rsp),%rdi
mov    %eax,%esi
call   1100 <enable@plt>
jmp    1280 <main+0x80>
mov    $0x1,%eax
mov    %rax,0x20(%rsp)
jmp    1280 <main+0x80>
xor    %edi,%edi
call   10f0 <usage@plt>
mov    0x2ce9(%rip),%rax
mov    (%rax),%edi
mov    0x2cf8(%rip),%rax
mov    (%rax),%ecx
lea    0xddf(%rip),%rsi
mov    0x30(%rsp),%rdx
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <usage@plt>
jmp    1280 <main+0x80>
mov    0x2cea(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x10(%rsp)
movl   $0x1,0xc(%rsp)
jmp    1280 <main+0x80>
xor    %eax,%eax
mov    %rax,0x18(%rsp)
mov    $0x1,%r14d
movl   $0x0,0xc(%rsp)
xor    %eax,%eax
mov    %rax,0x10(%rsp)
xor    %eax,%eax
mov    %rax,0x20(%rsp)
mov    0x2c8b(%rip),%rax
mov    (%rax),%r15
sub    %r15d,%ebp
cmp    $0x1,%ebp
je     135a <main+0x15a>
mov    $0x1,%edi
call   10f0 <usage@plt>
mov    (%rbx,%r15,8),%rbp
cmpl   $0x0,0x20(%rsp)
je     13e4 <main+0x1e4>
mov    0x2c8c(%rip),%r15
mov    (%r15),%edx
lea    0x28(%rsp),%rcx
mov    %rbp,%rdi
xor    %esi,%esi
call   10e0 <strtonum@plt>
mov    %rax,%r13
mov    0x28(%rsp),%rdx
test   %rdx,%rdx
je     13a1 <main+0x1a1>
lea    0xd52(%rip),%rsi
mov    $0x1,%edi
mov    %rbp,%rcx
xor    %eax,%eax
call   1040 <errx@plt>
cmpl   $0x0,0xc(%rsp)
je     13f6 <main+0x1f6>
mov    (%r15),%edx
lea    0x28(%rsp),%rcx
mov    0x10(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
call   10e0 <strtonum@plt>
mov    %rax,%r12
mov    0x28(%rsp),%rdx
test   %rdx,%rdx
je     13f6 <main+0x1f6>
lea    0xd25(%rip),%rsi
mov    $0x1,%edi
mov    %rbx,%rcx
xor    %eax,%eax
call   1040 <errx@plt>
jmp    13f6 <main+0x1f6>
mov    %rbp,%rdi
call   10b0 <getgrnam@plt>
mov    %rax,%r15
test   %r15,%r15
jne    1423 <main+0x223>
jmp    1406 <main+0x206>
mov    %r13,%rdi
call   1060 <getgrgid@plt>
mov    %rax,%r15
test   %r15,%r15
jne    1423 <main+0x223>
mov    0x2bab(%rip),%rax
cmpq   $0x0,(%rax)
je     1570 <main+0x370>
mov    $0x1,%edi
xor    %esi,%esi
call   10c0 <err@plt>
cmpl   $0x0,0xc(%rsp)
jne    159c <main+0x39c>
mov    0x8(%rsp),%edi
mov    $0x6e,%esi
call   10d0 <is_on@plt>
test   %rax,%rax
je     1468 <main+0x268>
test   %r14d,%r14d
lea    0xc98(%rip),%rax
lea    0xce3(%rip),%rsi
cmove  %rax,%rsi
mov    0x8(%r15),%rdx
lea    0xcce(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%edi
mov    $0x70,%esi
call   10d0 <is_on@plt>
test   %rax,%rax
je     14a2 <main+0x2a2>
test   %r14d,%r14d
lea    0xc5e(%rip),%rax
lea    0xcaf(%rip),%rsi
cmove  %rax,%rsi
mov    0x10(%r15),%rdx
lea    0xc94(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%edi
mov    $0x67,%esi
call   10d0 <is_on@plt>
test   %rax,%rax
je     14dc <main+0x2dc>
test   %r14d,%r14d
lea    0xc24(%rip),%rax
lea    0xc83(%rip),%rsi
cmove  %rax,%rsi
mov    0x18(%r15),%edx
lea    0xc6e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%edi
mov    $0x6d,%esi
call   10d0 <is_on@plt>
test   %rax,%rax
je     155f <main+0x35f>
mov    (%r15),%rax
cmpq   $0x0,(%rax)
je     154f <main+0x34f>
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
cmpq   $0x0,0x8(%rax,%rbp,8)
lea    0x1(%rbp),%rbp
jne    1500 <main+0x300>
lea    0xc3b(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc37(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%r15),%rax
mov    (%rax,%rbx,8),%rdx
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
add    $0xffffffffffffffff,%rbp
jne    1530 <main+0x330>
jmp    155f <main+0x35f>
lea    0xbf8(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
cmpl   $0x0,0x18(%rsp)
jne    1629 <main+0x429>
lea    0xb8a(%rip),%rsi
mov    $0x1,%edi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <errx@plt>
cmpl   $0x0,0xc(%rsp)
je     142e <main+0x22e>
cmpl   $0x0,0x20(%rsp)
jne    15af <main+0x3af>
mov    0x10(%rsp),%rdi
call   1080 <getpwnam@plt>
jmp    15b7 <main+0x3b7>
mov    %r12,%rdi
call   1030 <getpwuid@plt>
mov    %rax,%rbp
test   %rax,%rax
jne    15f9 <main+0x3f9>
mov    0x29f2(%rip),%rax
cmpq   $0x0,(%rax)
jne    15ed <main+0x3ed>
cmpl   $0x0,0x18(%rsp)
jne    1629 <main+0x429>
lea    0xb44(%rip),%rsi
mov    $0x1,%edi
mov    0x10(%rsp),%rdx
xor    %eax,%eax
call   1040 <errx@plt>
jmp    15f9 <main+0x3f9>
mov    $0x1,%edi
xor    %esi,%esi
call   10c0 <err@plt>
mov    (%r15),%rbx
mov    (%rbx),%rdi
test   %rdi,%rdi
je     1629 <main+0x429>
add    $0x8,%rbx
nopl   0x0(%rax,%rax,1)
mov    0x0(%rbp),%esi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1633 <main+0x433>
mov    (%rbx),%rdi
add    $0x8,%rbx
test   %rdi,%rdi
jne    1610 <main+0x410>
mov    $0x1,%edi
call   1120 <exit@plt>
xor    %edi,%edi
call   1120 <exit@plt>

LLVM IR (-O0):
%struct.group = type { i8**, i8*, i8*, i32 }
%struct.passwd = type { i32 }
@.str = [12 x i8] c":hFNgmnpqt:\00"
@optarg = global i8* null
@stderr = global i32 0
@.str.1 = [28 x i8] c"%s: invalid option -- '%c'\0A\00"
@optopt = global i32 0
@optind = global i64 0
@UINT32_MAX = global i32 0
@.str.2 = [20 x i8] c"gid value is %s: %s\00"
@.str.3 = [20 x i8] c"uid value is %s: %s\00"
@errno = global i64 0
@.str.4 = [18 x i8] c"%s: no such group\00"
@.str.5 = [17 x i8] c"%s: no such user\00"
@.str.6 = [6 x i8] c"%s%s\0A\00"
@.str.7 = [6 x i8] c"name=\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [8 x i8] c"passwd=\00"
@.str.10 = [6 x i8] c"%s%d\0A\00"
@.str.11 = [5 x i8] c"gid=\00"
@.str.12 = [12 x i8] c"members=%d\0A\00"
@.str.13 = [14 x i8] c"member_%d=%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i32
%14 = alloca i8*
%15 = alloca %struct.group*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca %struct.passwd*
%20 = alloca i8**
%21 = alloca i32
%22 = alloca i8**
%23 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 0
%26 = load i8*, i8** %25
%27 = call i8* @basename(i8* %26)
store i8* %27, i8** %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 1, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i8* null, i8** %12
br label %28
28: ; preds = %52, %2
%29 = load i32, i32* %4
%30 = load i8**, i8*** %5
%31 = call i32 @getopt(i32 %29, i8** %30, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
store i32 %31, i32* %13
%32 = icmp sgt i32 %31, -1
br i1 %32, label %33, label %53
33: ; preds = %28
%34 = load i32, i32* %13
switch i32 %34, label %46 [
i32 103, label %35
i32 109, label %35
i32 110, label %35
i32 112, label %35
i32 70, label %38
i32 78, label %39
i32 113, label %40
i32 116, label %41
i32 104, label %43
i32 63, label %45
]
35: ; preds = %33, %33, %33, %33
%36 = load i32, i32* %13
%37 = call i32 @enable(i32* %7, i32 %36)
br label %52
38: ; preds = %33
store i32 0, i32* %9
br label %52
39: ; preds = %33
store i32 1, i32* %8
br label %52
40: ; preds = %33
store i32 1, i32* %10
br label %52
41: ; preds = %33
store i32 1, i32* %11
%42 = load i8*, i8** @optarg
store i8* %42, i8** %12
br label %52
43: ; preds = %33
%44 = call i32 @usage(i32 0)
br label %45
45: ; preds = %33, %43
br label %46
46: ; preds = %33, %45
%47 = load i32, i32* @stderr
%48 = load i8*, i8** %6
%49 = load i32, i32* @optopt
%50 = call i32 @fprintf(i32 %47, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* %48, i32 %49)
%51 = call i32 @usage(i32 1)
br label %52
52: ; preds = %46, %41, %40, %39, %38, %35
br label %28
53: ; preds = %28
%54 = load i64, i64* @optind
%55 = load i32, i32* %4
%56 = sext i32 %55 to i64
%57 = sub nsw i64 %56, %54
%58 = trunc i64 %57 to i32
store i32 %58, i32* %4
%59 = load i64, i64* @optind
%60 = load i8**, i8*** %5
%61 = getelementptr inbounds i8*, i8** %60, i64 %59
store i8** %61, i8*** %5
%62 = load i32, i32* %4
%63 = icmp ne i32 %62, 1
br i1 %63, label %64, label %66
64: ; preds = %53
%65 = call i32 @usage(i32 1)
br label %66
66: ; preds = %64, %53
%67 = load i8**, i8*** %5
%68 = getelementptr inbounds i8*, i8** %67, i64 0
%69 = load i8*, i8** %68
store i8* %69, i8** %14
%70 = load i32, i32* %8
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %99
72: ; preds = %66
%73 = load i8*, i8** %14
%74 = load i32, i32* @UINT32_MAX
%75 = call i8* @strtonum(i8* %73, i32 0, i32 %74, i8** %17)
store i8* %75, i8** %18
%76 = load i8*, i8** %17
%77 = icmp ne i8* %76, null
br i1 %77, label %78, label %82
78: ; preds = %72
%79 = load i8*, i8** %17
%80 = load i8*, i8** %14
%81 = call i32 (i32, i8*, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i8* %79, i8* %80)
br label %82
82: ; preds = %78, %72
%83 = load i32, i32* %11
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %96
85: ; preds = %82
%86 = load i8*, i8** %12
%87 = load i32, i32* @UINT32_MAX
%88 = call i8* @strtonum(i8* %86, i32 0, i32 %87, i8** %17)
store i8* %88, i8** %16
%89 = load i8*, i8** %17
%90 = icmp ne i8* %89, null
br i1 %90, label %91, label %95
91: ; preds = %85
%92 = load i8*, i8** %17
%93 = load i8*, i8** %12
%94 = call i32 (i32, i8*, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %92, i8* %93)
br label %95
95: ; preds = %91, %85
br label %96
96: ; preds = %95, %82
%97 = load i8*, i8** %18
%98 = call %struct.group* @getgrgid(i8* %97)
store %struct.group* %98, %struct.group** %15
br label %102
99: ; preds = %66
%100 = load i8*, i8** %14
%101 = call %struct.group* @getgrnam(i8* %100)
store %struct.group* %101, %struct.group** %15
br label %102
102: ; preds = %99, %96
%103 = load %struct.group*, %struct.group** %15
%104 = icmp ne %struct.group* %103, null
br i1 %104, label %123, label %105
105: ; preds = %102
%106 = load i64, i64* @errno
%107 = icmp ne i64 %106, 0
br i1 %107, label %108, label %110
108: ; preds = %105
%109 = call i32 @err(i32 1, i32* null)
br label %121
110: ; preds = %105
%111 = load i32, i32* %10
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %116
113: ; preds = %110
%114 = call i32 @exit(i32 1)
unreachable
115: ; No predecessors!
br label %119
116: ; preds = %110
%117 = load i8*, i8** %14
%118 = call i32 (i32, i8*, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* %117)
br label %119
119: ; preds = %116, %115
%120 = phi i32 [ undef, %115 ], [ %118, %116 ]
br label %121
121: ; preds = %119, %108
%122 = phi i32 [ %109, %108 ], [ %120, %119 ]
br label %123
123: ; preds = %121, %102
%124 = load i32, i32* %11
%125 = icmp ne i32 %124, 0
br i1 %125, label %126, label %180
126: ; preds = %123
%127 = load i32, i32* %8
%128 = icmp ne i32 %127, 0
br i1 %128, label %129, label %132
129: ; preds = %126
%130 = load i8*, i8** %16
%131 = call %struct.passwd* @getpwuid(i8* %130)
store %struct.passwd* %131, %struct.passwd** %19
br label %135
132: ; preds = %126
%133 = load i8*, i8** %12
%134 = call %struct.passwd* @getpwnam(i8* %133)
store %struct.passwd* %134, %struct.passwd** %19
br label %135
135: ; preds = %132, %129
%136 = load %struct.passwd*, %struct.passwd** %19
%137 = icmp ne %struct.passwd* %136, null
br i1 %137, label %156, label %138
138: ; preds = %135
%139 = load i64, i64* @errno
%140 = icmp ne i64 %139, 0
br i1 %140, label %141, label %143
141: ; preds = %138
%142 = call i32 @err(i32 1, i32* null)
br label %154
143: ; preds = %138
%144 = load i32, i32* %10
%145 = icmp ne i32 %144, 0
br i1 %145, label %146, label %149
146: ; preds = %143
%147 = call i32 @exit(i32 1)
unreachable
148: ; No predecessors!
br label %152
149: ; preds = %143
%150 = load i8*, i8** %12
%151 = call i32 (i32, i8*, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i8* %150)
br label %152
152: ; preds = %149, %148
%153 = phi i32 [ undef, %148 ], [ %151, %149 ]
br label %154
154: ; preds = %152, %141
%155 = phi i32 [ %142, %141 ], [ %153, %152 ]
br label %156
156: ; preds = %154, %135
%157 = load %struct.group*, %struct.group** %15
%158 = getelementptr inbounds %struct.group, %struct.group* %157, i32 0, i32 0
%159 = load i8**, i8*** %158
store i8** %159, i8*** %20
br label %160
160: ; preds = %175, %156
%161 = load i8**, i8*** %20
%162 = load i8*, i8** %161
%163 = icmp ne i8* %162, null
br i1 %163, label %164, label %178
164: ; preds = %160
%165 = load i8**, i8*** %20
%166 = load i8*, i8** %165
%167 = load %struct.passwd*, %struct.passwd** %19
%168 = getelementptr inbounds %struct.passwd, %struct.passwd* %167, i32 0, i32 0
%169 = load i32, i32* %168
%170 = call i64 @strcmp(i8* %166, i32 %169)
%171 = icmp eq i64 0, %170
br i1 %171, label %172, label %174
172: ; preds = %164
%173 = call i32 @exit(i32 0)
unreachable
174: ; preds = %164
br label %175
175: ; preds = %174
%176 = load i8**, i8*** %20
%177 = getelementptr inbounds i8*, i8** %176, i32 1
store i8** %177, i8*** %20
br label %160
178: ; preds = %160
%179 = call i32 @exit(i32 1)
unreachable
180: ; preds = %123
%181 = load i32, i32* %7
%182 = call i64 @is_on(i32 %181, i8 signext 110)
%183 = icmp ne i64 %182, 0
br i1 %183, label %184, label %195
184: ; preds = %180
br label %185
185: ; preds = %184
%186 = load i32, i32* %9
%187 = icmp ne i32 %186, 0
%188 = zext i1 %187 to i64
%189 = select i1 %187, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0)
%190 = load %struct.group*, %struct.group** %15
%191 = getelementptr inbounds %struct.group, %struct.group* %190, i32 0, i32 1
%192 = load i8*, i8** %191
%193 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %189, i8* %192)
br label %194
194: ; preds = %185
br label %195
195: ; preds = %194, %180
%196 = load i32, i32* %7
%197 = call i64 @is_on(i32 %196, i8 signext 112)
%198 = icmp ne i64 %197, 0
br i1 %198, label %199, label %210
199: ; preds = %195
br label %200
200: ; preds = %199
%201 = load i32, i32* %9
%202 = icmp ne i32 %201, 0
%203 = zext i1 %202 to i64
%204 = select i1 %202, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0)
%205 = load %struct.group*, %struct.group** %15
%206 = getelementptr inbounds %struct.group, %struct.group* %205, i32 0, i32 2
%207 = load i8*, i8** %206
%208 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %204, i8* %207)
br label %209
209: ; preds = %200
br label %210
210: ; preds = %209, %195
%211 = load i32, i32* %7
%212 = call i64 @is_on(i32 %211, i8 signext 103)
%213 = icmp ne i64 %212, 0
br i1 %213, label %214, label %225
214: ; preds = %210
br label %215
215: ; preds = %214
%216 = load i32, i32* %9
%217 = icmp ne i32 %216, 0
%218 = zext i1 %217 to i64
%219 = select i1 %217, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0)
%220 = load %struct.group*, %struct.group** %15
%221 = getelementptr inbounds %struct.group, %struct.group* %220, i32 0, i32 3
%222 = load i32, i32* %221
%223 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* %219, i32 %222)
br label %224
224: ; preds = %215
br label %225
225: ; preds = %224, %210
%226 = load i32, i32* %7
%227 = call i64 @is_on(i32 %226, i8 signext 109)
%228 = icmp ne i64 %227, 0
br i1 %228, label %229, label %264
229: ; preds = %225
store i32 0, i32* %21
%230 = load %struct.group*, %struct.group** %15
%231 = getelementptr inbounds %struct.group, %struct.group* %230, i32 0, i32 0
%232 = load i8**, i8*** %231
store i8** %232, i8*** %22
br label %233
233: ; preds = %240, %229
%234 = load i8**, i8*** %22
%235 = load i8*, i8** %234
%236 = icmp ne i8* %235, null
br i1 %236, label %237, label %243
237: ; preds = %233
%238 = load i32, i32* %21
%239 = add nsw i32 %238, 1
store i32 %239, i32* %21
br label %240
240: ; preds = %237
%241 = load i8**, i8*** %22
%242 = getelementptr inbounds i8*, i8** %241, i32 1
store i8** %242, i8*** %22
br label %233
243: ; preds = %233
%244 = load i32, i32* %21
%245 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 %244)
store i32 0, i32* %23
br label %246
246: ; preds = %260, %243
%247 = load i32, i32* %23
%248 = load i32, i32* %21
%249 = icmp slt i32 %247, %248
br i1 %249, label %250, label %263
250: ; preds = %246
%251 = load i32, i32* %23
%252 = load %struct.group*, %struct.group** %15
%253 = getelementptr inbounds %struct.group, %struct.group* %252, i32 0, i32 0
%254 = load i8**, i8*** %253
%255 = load i32, i32* %23
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds i8*, i8** %254, i64 %256
%258 = load i8*, i8** %257
%259 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 %251, i8* %258)
br label %260
260: ; preds = %250
%261 = load i32, i32* %23
%262 = add nsw i32 %261, 1
store i32 %262, i32* %23
br label %246
263: ; preds = %246
br label %264
264: ; preds = %263, %225
ret i32 0
}

LLVM IR (-O2):
%struct.group = type { i8**, i8*, i8*, i32 }
%struct.passwd = type { i32 }
@.str = [12 x i8] c":hFNgmnpqt:\00"
@optarg = global i8* null
@stderr = global i32 0
@.str.1 = [28 x i8] c"%s: invalid option -- '%c'\0A\00"
@optopt = global i32 0
@optind = global i64 0
@UINT32_MAX = global i32 0
@.str.2 = [20 x i8] c"gid value is %s: %s\00"
@.str.3 = [20 x i8] c"uid value is %s: %s\00"
@errno = global i64 0
@.str.4 = [18 x i8] c"%s: no such group\00"
@.str.5 = [17 x i8] c"%s: no such user\00"
@.str.6 = [6 x i8] c"%s%s\0A\00"
@.str.7 = [6 x i8] c"name=\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [8 x i8] c"passwd=\00"
@.str.10 = [6 x i8] c"%s%d\0A\00"
@.str.11 = [5 x i8] c"gid=\00"
@.str.12 = [12 x i8] c"members=%d\0A\00"
@.str.13 = [14 x i8] c"member_%d=%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = load i8*, i8** %1
%6 = tail call i8* @basename(i8* %5)
%7 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%8 = call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%9 = icmp sgt i32 %8, -1
br i1 %9, label %10, label %38
10: ; preds = %2, %30
%11 = phi i32 [ %36, %30 ], [ %8, %2 ]
%12 = phi i32 [ %35, %30 ], [ 0, %2 ]
%13 = phi i8* [ %34, %30 ], [ null, %2 ]
%14 = phi i32 [ %33, %30 ], [ 0, %2 ]
%15 = phi i32 [ %32, %30 ], [ 0, %2 ]
%16 = phi i32 [ %31, %30 ], [ 1, %2 ]
switch i32 %11, label %25 [
i32 103, label %17
i32 109, label %17
i32 110, label %17
i32 112, label %17
i32 70, label %30
i32 78, label %19
i32 113, label %20
i32 116, label %21
i32 104, label %23
]
17: ; preds = %10, %10, %10, %10
%18 = call i32 @enable(i32* %3, i32 %11)
br label %30
19: ; preds = %10
br label %30
20: ; preds = %10
br label %30
21: ; preds = %10
%22 = load i8*, i8** @optarg
br label %30
23: ; preds = %10
%24 = call i32 @usage(i32 0)
br label %25
25: ; preds = %23, %10
%26 = load i32, i32* @stderr
%27 = load i32, i32* @optopt
%28 = call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* %6, i32 %27)
%29 = call i32 @usage(i32 1)
br label %30
30: ; preds = %10, %25, %21, %20, %19, %17
%31 = phi i32 [ %16, %25 ], [ %16, %21 ], [ %16, %20 ], [ %16, %19 ], [ %16, %17 ], [ 0, %10 ]
%32 = phi i32 [ %15, %25 ], [ %15, %21 ], [ 1, %20 ], [ %15, %19 ], [ %15, %17 ], [ %15, %10 ]
%33 = phi i32 [ %14, %25 ], [ 1, %21 ], [ %14, %20 ], [ %14, %19 ], [ %14, %17 ], [ %14, %10 ]
%34 = phi i8* [ %13, %25 ], [ %22, %21 ], [ %13, %20 ], [ %13, %19 ], [ %13, %17 ], [ %13, %10 ]
%35 = phi i32 [ %12, %25 ], [ %12, %21 ], [ %12, %20 ], [ 1, %19 ], [ %12, %17 ], [ %12, %10 ]
%36 = call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%37 = icmp sgt i32 %36, -1
br i1 %37, label %10, label %38
38: ; preds = %30, %2
%39 = phi i32 [ 1, %2 ], [ %31, %30 ]
%40 = phi i32 [ 0, %2 ], [ %32, %30 ]
%41 = phi i32 [ 0, %2 ], [ %33, %30 ]
%42 = phi i8* [ null, %2 ], [ %34, %30 ]
%43 = phi i32 [ 0, %2 ], [ %35, %30 ]
%44 = load i64, i64* @optind
%45 = trunc i64 %44 to i32
%46 = sub i32 %0, %45
%47 = getelementptr inbounds i8*, i8** %1, i64 %44
%48 = icmp eq i32 %46, 1
br i1 %48, label %51, label %49
49: ; preds = %38
%50 = call i32 @usage(i32 1)
br label %51
51: ; preds = %49, %38
%52 = load i8*, i8** %47
%53 = icmp eq i32 %43, 0
br i1 %53, label %74, label %54
54: ; preds = %51
%55 = bitcast i8** %4 to i8*
%56 = load i32, i32* @UINT32_MAX
%57 = call i8* @strtonum(i8* %52, i32 0, i32 %56, i8** %4)
%58 = load i8*, i8** %4
%59 = icmp eq i8* %58, null
br i1 %59, label %62, label %60
60: ; preds = %54
%61 = call i32 (i32, i8*, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i8* %58, i8* %52)
br label %62
62: ; preds = %60, %54
%63 = icmp eq i32 %41, 0
br i1 %63, label %71, label %64
64: ; preds = %62
%65 = load i32, i32* @UINT32_MAX
%66 = call i8* @strtonum(i8* %42, i32 0, i32 %65, i8** %4)
%67 = load i8*, i8** %4
%68 = icmp eq i8* %67, null
br i1 %68, label %71, label %69
69: ; preds = %64
%70 = call i32 (i32, i8*, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %67, i8* %42)
br label %71
71: ; preds = %64, %69, %62
%72 = phi i8* [ %66, %69 ], [ %66, %64 ], [ undef, %62 ]
%73 = call %struct.group* @getgrgid(i8* %57)
br label %76
74: ; preds = %51
%75 = call %struct.group* @getgrnam(i8* %52)
br label %76
76: ; preds = %74, %71
%77 = phi %struct.group* [ %73, %71 ], [ %75, %74 ]
%78 = phi i8* [ %72, %71 ], [ undef, %74 ]
%79 = icmp eq %struct.group* %77, null
br i1 %79, label %80, label %91
80: ; preds = %76
%81 = load i64, i64* @errno
%82 = icmp eq i64 %81, 0
br i1 %82, label %85, label %83
83: ; preds = %80
%84 = call i32 @err(i32 1, i32* null)
br label %91
85: ; preds = %80
%86 = icmp eq i32 %40, 0
br i1 %86, label %89, label %87
87: ; preds = %85
%88 = call i32 @exit(i32 1)
unreachable
89: ; preds = %85
%90 = call i32 (i32, i8*, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* %52)
br label %91
91: ; preds = %83, %89, %76
%92 = icmp eq i32 %41, 0
br i1 %92, label %133, label %93
93: ; preds = %91
br i1 %53, label %96, label %94
94: ; preds = %93
%95 = call %struct.passwd* @getpwuid(i8* %78)
br label %98
96: ; preds = %93
%97 = call %struct.passwd* @getpwnam(i8* %42)
br label %98
98: ; preds = %96, %94
%99 = phi %struct.passwd* [ %95, %94 ], [ %97, %96 ]
%100 = icmp eq %struct.passwd* %99, null
br i1 %100, label %101, label %112
101: ; preds = %98
%102 = load i64, i64* @errno
%103 = icmp eq i64 %102, 0
br i1 %103, label %106, label %104
104: ; preds = %101
%105 = call i32 @err(i32 1, i32* null)
br label %112
106: ; preds = %101
%107 = icmp eq i32 %40, 0
br i1 %107, label %110, label %108
108: ; preds = %106
%109 = call i32 @exit(i32 1)
unreachable
110: ; preds = %106
%111 = call i32 (i32, i8*, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i8* %42)
br label %112
112: ; preds = %104, %110, %98
%113 = getelementptr inbounds %struct.group, %struct.group* %77, i64 0, i32 0
%114 = load i8**, i8*** %113
%115 = load i8*, i8** %114
%116 = icmp eq i8* %115, null
br i1 %116, label %122, label %117
117: ; preds = %112
%118 = getelementptr inbounds %struct.passwd, %struct.passwd* %99, i64 0, i32 0
br label %124
119: ; preds = %124
%120 = load i8*, i8** %130
%121 = icmp eq i8* %120, null
br i1 %121, label %122, label %124
122: ; preds = %119, %112
%123 = call i32 @exit(i32 1)
unreachable
124: ; preds = %117, %119
%125 = phi i8* [ %115, %117 ], [ %120, %119 ]
%126 = phi i8** [ %114, %117 ], [ %130, %119 ]
%127 = load i32, i32* %118
%128 = call i64 @strcmp(i8* %125, i32 %127)
%129 = icmp eq i64 %128, 0
%130 = getelementptr inbounds i8*, i8** %126, i64 1
br i1 %129, label %131, label %119
131: ; preds = %124
%132 = call i32 @exit(i32 0)
unreachable
133: ; preds = %91
%134 = load i32, i32* %3
%135 = call i64 @is_on(i32 %134, i8 signext 110)
%136 = icmp eq i64 %135, 0
br i1 %136, label %143, label %137
137: ; preds = %133
%138 = icmp eq i32 %39, 0
%139 = select i1 %138, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0)
%140 = getelementptr inbounds %struct.group, %struct.group* %77, i64 0, i32 1
%141 = load i8*, i8** %140
%142 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %139, i8* %141)
br label %143
143: ; preds = %137, %133
%144 = load i32, i32* %3
%145 = call i64 @is_on(i32 %144, i8 signext 112)
%146 = icmp eq i64 %145, 0
br i1 %146, label %153, label %147
147: ; preds = %143
%148 = icmp eq i32 %39, 0
%149 = select i1 %148, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0)
%150 = getelementptr inbounds %struct.group, %struct.group* %77, i64 0, i32 2
%151 = load i8*, i8** %150
%152 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %149, i8* %151)
br label %153
153: ; preds = %147, %143
%154 = load i32, i32* %3
%155 = call i64 @is_on(i32 %154, i8 signext 103)
%156 = icmp eq i64 %155, 0
br i1 %156, label %163, label %157
157: ; preds = %153
%158 = icmp eq i32 %39, 0
%159 = select i1 %158, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0)
%160 = getelementptr inbounds %struct.group, %struct.group* %77, i64 0, i32 3
%161 = load i32, i32* %160
%162 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* %159, i32 %161)
br label %163
163: ; preds = %157, %153
%164 = load i32, i32* %3
%165 = call i64 @is_on(i32 %164, i8 signext 109)
%166 = icmp eq i64 %165, 0
br i1 %166, label %193, label %167
167: ; preds = %163
%168 = getelementptr inbounds %struct.group, %struct.group* %77, i64 0, i32 0
%169 = load i8**, i8*** %168
%170 = load i8*, i8** %169
%171 = icmp eq i8* %170, null
br i1 %171, label %172, label %177
172: ; preds = %167
%173 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 0)
br label %193
174: ; preds = %177
%175 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 %180)
%176 = zext i32 %180 to i64
br label %184
177: ; preds = %167, %177
%178 = phi i8** [ %181, %177 ], [ %169, %167 ]
%179 = phi i32 [ %180, %177 ], [ 0, %167 ]
%180 = add nuw nsw i32 %179, 1
%181 = getelementptr inbounds i8*, i8** %178, i64 1
%182 = load i8*, i8** %181
%183 = icmp eq i8* %182, null
br i1 %183, label %174, label %177
184: ; preds = %174, %184
%185 = phi i64 [ 0, %174 ], [ %191, %184 ]
%186 = load i8**, i8*** %168
%187 = getelementptr inbounds i8*, i8** %186, i64 %185
%188 = load i8*, i8** %187
%189 = trunc i64 %185 to i32
%190 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 %189, i8* %188)
%191 = add nuw nsw i64 %185, 1
%192 = icmp eq i64 %191, %176
br i1 %192, label %193, label %184
193: ; preds = %184, %172, %163
ret i32 0
}