#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 */
struct group {
  char *gr_name;
  char *gr_passwd;
  char **gr_mem;
  void *gr_gid;
};
struct grent_data {
  int dummy;
};

/* Variables and functions */
char **parse_list(char *, struct grent_data *, size_t, int *);
char *strpbrk(char *, char *);
void *strtoul(char *, char **, int);
int _nss_directories_parse_grent(char *line, struct group *result,
                                 struct grent_data *data, size_t datalen,
                                 int *errnop) {
  char *p = strpbrk(line, "\n");
  if (p != NULL)
    *p = '\0';
  {
    result->gr_name = line;
    while (*line != '\0' && !((*line) == ':'))
      ++line;
    if (*line != '\0') {
      *line = '\0';
      do
        ++line;
      while (0 && ((*line) == ':'));
    }
  };
  if (line[0] == '\0' &&
      (result->gr_name[0] == '+' || result->gr_name[0] == '-')) {
    result->gr_passwd = NULL;
    result->gr_gid = 0;
  } else {
    {
      result->gr_passwd = line;
      while (*line != '\0' && !((*line) == ':'))
        ++line;
      if (*line != '\0') {
        *line = '\0';
        do
          ++line;
        while (0 && ((*line) == ':'));
      }
    };
    if (result->gr_name[0] == '+' || result->gr_name[0] == '-') {
      char *endp;
      if (*line == '\0')
        return 0;
      result->gr_gid = (strtoul(line, &endp, 10));
      if (endp == line)
        result->gr_gid = 0;
      if (((*endp) == ':'))
        do
          ++endp;
        while (0 && ((*endp) == ':'));
      else if (*endp != '\0')
        return 0;
      line = endp;
    } else {
      char *endp;
      result->gr_gid = (strtoul(line, &endp, 10));
      if (endp == line)
        return 0;
      else if (((*endp) == ':'))
        do
          ++endp;
        while (0 && ((*endp) == ':'));
      else if (*endp != '\0')
        return 0;
      line = endp;
    }
  };
  {
    char **list = parse_list(line, data, datalen, errnop);
    if (list)
      result->gr_mem = list;
    else
      return -1;
  };
  return 1;
}


x86 assembly (clang, -O0):
<_nss_directories_parse_grent>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xea9(%rip),%rsi
call   1030 <strpbrk@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     1172 <_nss_directories_parse_grent+0x42>
mov    -0x38(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x51(%rbp)
je     11a4 <_nss_directories_parse_grent+0x74>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
sete   %al
xor    $0xff,%al
mov    %al,-0x51(%rbp)
mov    -0x51(%rbp),%al
test   $0x1,%al
jne    11b4 <_nss_directories_parse_grent+0x84>
jmp    11c5 <_nss_directories_parse_grent+0x95>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    117d <_nss_directories_parse_grent+0x4d>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     11ed <_nss_directories_parse_grent+0xbd>
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    11ed <_nss_directories_parse_grent+0xbd>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1240 <_nss_directories_parse_grent+0x110>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x2b,%eax
je     1223 <_nss_directories_parse_grent+0xf3>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1240 <_nss_directories_parse_grent+0x110>
mov    -0x18(%rbp),%rax
movq   $0x0,0x8(%rax)
mov    -0x18(%rbp),%rax
movq   $0x0,0x18(%rax)
jmp    1419 <_nss_directories_parse_grent+0x2e9>
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,0x8(%rax)
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x52(%rbp)
je     1273 <_nss_directories_parse_grent+0x143>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
sete   %al
xor    $0xff,%al
mov    %al,-0x52(%rbp)
mov    -0x52(%rbp),%al
test   $0x1,%al
jne    1283 <_nss_directories_parse_grent+0x153>
jmp    1294 <_nss_directories_parse_grent+0x164>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    124c <_nss_directories_parse_grent+0x11c>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     12bc <_nss_directories_parse_grent+0x18c>
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    12bc <_nss_directories_parse_grent+0x18c>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x2b,%eax
je     12e2 <_nss_directories_parse_grent+0x1b2>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1389 <_nss_directories_parse_grent+0x259>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    12fe <_nss_directories_parse_grent+0x1ce>
movl   $0x0,-0x4(%rbp)
jmp    1461 <_nss_directories_parse_grent+0x331>
mov    -0x10(%rbp),%rdi
lea    -0x40(%rbp),%rsi
mov    $0xa,%edx
call   1040 <strtoul@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,0x18(%rax)
mov    -0x40(%rbp),%rax
cmp    -0x10(%rbp),%rax
jne    1335 <_nss_directories_parse_grent+0x205>
mov    -0x18(%rbp),%rax
movq   $0x0,0x18(%rax)
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
jne    135b <_nss_directories_parse_grent+0x22b>
jmp    134a <_nss_directories_parse_grent+0x21a>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    137c <_nss_directories_parse_grent+0x24c>
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1377 <_nss_directories_parse_grent+0x247>
movl   $0x0,-0x4(%rbp)
jmp    1461 <_nss_directories_parse_grent+0x331>
jmp    137c <_nss_directories_parse_grent+0x24c>
mov    -0x40(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    1414 <_nss_directories_parse_grent+0x2e4>
mov    -0x10(%rbp),%rdi
lea    -0x48(%rbp),%rsi
mov    $0xa,%edx
call   1040 <strtoul@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,0x18(%rax)
mov    -0x48(%rbp),%rax
cmp    -0x10(%rbp),%rax
jne    13c0 <_nss_directories_parse_grent+0x290>
movl   $0x0,-0x4(%rbp)
jmp    1461 <_nss_directories_parse_grent+0x331>
mov    -0x48(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
jne    13e6 <_nss_directories_parse_grent+0x2b6>
jmp    13d5 <_nss_directories_parse_grent+0x2a5>
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    1407 <_nss_directories_parse_grent+0x2d7>
mov    -0x48(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1402 <_nss_directories_parse_grent+0x2d2>
movl   $0x0,-0x4(%rbp)
jmp    1461 <_nss_directories_parse_grent+0x331>
jmp    1407 <_nss_directories_parse_grent+0x2d7>
jmp    140c <_nss_directories_parse_grent+0x2dc>
mov    -0x48(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    1419 <_nss_directories_parse_grent+0x2e9>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x30(%rbp),%rcx
call   1050 <parse_list@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
je     144e <_nss_directories_parse_grent+0x31e>
mov    -0x50(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,0x10(%rax)
jmp    145a <_nss_directories_parse_grent+0x32a>
movl   $0xffffffff,-0x4(%rbp)
jmp    1461 <_nss_directories_parse_grent+0x331>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_nss_directories_parse_grent>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %r8,%r14
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%r13
mov    %rdi,%rbx
mov    $0xa,%esi
call   1030 <strchr@plt>
test   %rax,%rax
je     115e <_nss_directories_parse_grent+0x2e>
movb   $0x0,(%rax)
mov    %rbx,0x0(%r13)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl (%rbx),%eax
test   %al,%al
je     118e <_nss_directories_parse_grent+0x5e>
cmp    $0x3a,%al
je     1181 <_nss_directories_parse_grent+0x51>
add    $0x1,%rbx
jmp    1170 <_nss_directories_parse_grent+0x40>
movb   $0x0,(%rbx)
cmpb   $0x0,0x1(%rbx)
lea    0x1(%rbx),%rbx
jne    11b1 <_nss_directories_parse_grent+0x81>
mov    0x0(%r13),%rax
mov    (%rax),%al
cmp    $0x2d,%al
je     119c <_nss_directories_parse_grent+0x6c>
cmp    $0x2b,%al
jne    11b1 <_nss_directories_parse_grent+0x81>
movq   $0x0,0x8(%r13)
movq   $0x0,0x18(%r13)
jmp    1258 <_nss_directories_parse_grent+0x128>
mov    %rbx,0x8(%r13)
cs nopw 0x0(%rax,%rax,1)
nop
movzbl (%rbx),%eax
test   %al,%al
je     11d8 <_nss_directories_parse_grent+0xa8>
cmp    $0x3a,%al
je     11d1 <_nss_directories_parse_grent+0xa1>
add    $0x1,%rbx
jmp    11c0 <_nss_directories_parse_grent+0x90>
movb   $0x0,(%rbx)
add    $0x1,%rbx
mov    0x0(%r13),%rax
mov    (%rax),%al
cmp    $0x2d,%al
je     11e6 <_nss_directories_parse_grent+0xb6>
cmp    $0x2b,%al
jne    1226 <_nss_directories_parse_grent+0xf6>
cmpb   $0x0,(%rbx)
je     1279 <_nss_directories_parse_grent+0x149>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
mov    $0xa,%edx
call   1040 <strtoul@plt>
mov    0x8(%rsp),%rcx
xor    %edx,%edx
cmp    %rbx,%rcx
cmovne %rax,%rdx
mov    %rdx,0x18(%r13)
mov    (%rcx),%al
test   %al,%al
je     1221 <_nss_directories_parse_grent+0xf1>
cmp    $0x3a,%al
jne    1279 <_nss_directories_parse_grent+0x149>
add    $0x1,%rcx
mov    %rcx,%rbx
jmp    1258 <_nss_directories_parse_grent+0x128>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
mov    $0xa,%edx
call   1040 <strtoul@plt>
mov    %rax,0x18(%r13)
mov    0x8(%rsp),%rax
cmp    %rbx,%rax
je     1279 <_nss_directories_parse_grent+0x149>
mov    (%rax),%cl
test   %cl,%cl
je     1255 <_nss_directories_parse_grent+0x125>
cmp    $0x3a,%cl
jne    1279 <_nss_directories_parse_grent+0x149>
add    $0x1,%rax
mov    %rax,%rbx
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
call   1050 <parse_list@plt>
test   %rax,%rax
je     127d <_nss_directories_parse_grent+0x14d>
mov    %rax,0x10(%r13)
mov    $0x1,%eax
jmp    1282 <_nss_directories_parse_grent+0x152>
xor    %eax,%eax
jmp    1282 <_nss_directories_parse_grent+0x152>
mov    $0xffffffff,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
%struct.group = type { i8*, i8*, i8**, i8* }
%struct.grent_data = type { i32 }
define i32 @_nss_directories_parse_grent(i8* %0, %struct.group* nocapture %1, %struct.grent_data* %2, i64 %3, i32* %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = tail call i8* @strchr(i8* dereferenceable(1) %0, i32 10)
%9 = icmp eq i8* %8, null
br i1 %9, label %11, label %10
10: ; preds = %5
store i8 0, i8* %8
br label %11
11: ; preds = %10, %5
%12 = getelementptr inbounds %struct.group, %struct.group* %1, i64 0, i32 0
store i8* %0, i8** %12
br label %13
13: ; preds = %16, %11
%14 = phi i8* [ %0, %11 ], [ %17, %16 ]
%15 = load i8, i8* %14
switch i8 %15, label %16 [
i8 0, label %22
i8 58, label %18
]
16: ; preds = %13
%17 = getelementptr inbounds i8, i8* %14, i64 1
br label %13
18: ; preds = %13
store i8 0, i8* %14
%19 = getelementptr inbounds i8, i8* %14, i64 1
%20 = load i8, i8* %19
%21 = icmp eq i8 %20, 0
br i1 %21, label %22, label %29
22: ; preds = %13, %18
%23 = phi i8* [ %19, %18 ], [ %14, %13 ]
%24 = load i8*, i8** %12
%25 = load i8, i8* %24
switch i8 %25, label %29 [
i8 43, label %26
i8 45, label %26
]
26: ; preds = %22, %22
%27 = getelementptr inbounds %struct.group, %struct.group* %1, i64 0, i32 1
store i8* null, i8** %27
%28 = getelementptr inbounds %struct.group, %struct.group* %1, i64 0, i32 3
store i8* null, i8** %28
br label %72
29: ; preds = %22, %18
%30 = phi i8* [ %23, %22 ], [ %19, %18 ]
%31 = getelementptr inbounds %struct.group, %struct.group* %1, i64 0, i32 1
store i8* %30, i8** %31
br label %32
32: ; preds = %35, %29
%33 = phi i8* [ %30, %29 ], [ %36, %35 ]
%34 = load i8, i8* %33
switch i8 %34, label %35 [
i8 0, label %39
i8 58, label %37
]
35: ; preds = %32
%36 = getelementptr inbounds i8, i8* %33, i64 1
br label %32
37: ; preds = %32
store i8 0, i8* %33
%38 = getelementptr inbounds i8, i8* %33, i64 1
br label %39
39: ; preds = %32, %37
%40 = phi i8* [ %38, %37 ], [ %33, %32 ]
%41 = load i8*, i8** %12
%42 = load i8, i8* %41
switch i8 %42, label %59 [
i8 43, label %43
i8 45, label %43
]
43: ; preds = %39, %39
%44 = bitcast i8** %6 to i8*
%45 = load i8, i8* %40
%46 = icmp eq i8 %45, 0
br i1 %46, label %56, label %47
47: ; preds = %43
%48 = call i8* @strtoul(i8* %40, i8** %6, i32 10)
%49 = getelementptr inbounds %struct.group, %struct.group* %1, i64 0, i32 3
%50 = load i8*, i8** %6
%51 = icmp eq i8* %50, %40
%52 = select i1 %51, i8* null, i8* %48
store i8* %52, i8** %49
%53 = load i8, i8* %50
switch i8 %53, label %56 [
i8 58, label %54
i8 0, label %57
]
54: ; preds = %47
%55 = getelementptr inbounds i8, i8* %50, i64 1
br label %57
56: ; preds = %43, %47
br label %78
57: ; preds = %54, %47
%58 = phi i8* [ %55, %54 ], [ %50, %47 ]
br label %72
59: ; preds = %39
%60 = bitcast i8** %7 to i8*
%61 = call i8* @strtoul(i8* %40, i8** %7, i32 10)
%62 = getelementptr inbounds %struct.group, %struct.group* %1, i64 0, i32 3
store i8* %61, i8** %62
%63 = load i8*, i8** %7
%64 = icmp eq i8* %63, %40
br i1 %64, label %69, label %65
65: ; preds = %59
%66 = load i8, i8* %63
switch i8 %66, label %69 [
i8 58, label %67
i8 0, label %70
]
67: ; preds = %65
%68 = getelementptr inbounds i8, i8* %63, i64 1
br label %70
69: ; preds = %59, %65
br label %78
70: ; preds = %67, %65
%71 = phi i8* [ %68, %67 ], [ %63, %65 ]
br label %72
72: ; preds = %70, %57, %26
%73 = phi i8* [ %23, %26 ], [ %58, %57 ], [ %71, %70 ]
%74 = tail call i8** @parse_list(i8* %73, %struct.grent_data* %2, i64 %3, i32* %4)
%75 = icmp eq i8** %74, null
br i1 %75, label %78, label %76
76: ; preds = %72
%77 = getelementptr inbounds %struct.group, %struct.group* %1, i64 0, i32 2
store i8** %74, i8*** %77
br label %78
78: ; preds = %76, %72, %69, %56
%79 = phi i32 [ 0, %56 ], [ 0, %69 ], [ -1, %72 ], [ 1, %76 ]
ret i32 %79
}