#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 passwd {
  char *pw_name;
  char *pw_passwd;
  char *pw_gecos;
  char *pw_dir;
  char *pw_shell;
  void *pw_gid;
  void *pw_uid;
};

/* Variables and functions */
int /*<<< orphan*/ strcpy(char *, char const *);
int strlen(char const *);
void *strtol(char *, char **, int);
struct passwd *sgetpwent(const char *buf) {
  static struct passwd pwent;
  static char pwdbuf[1024];
  register int i;
  register char *cp;
  char *ep;
  char *fields[7];
  if (strlen(buf) >= sizeof pwdbuf)
    return 0;
  strcpy(pwdbuf, buf);
  for (cp = pwdbuf, i = 0; i < 7 && cp; i++) {
    fields[i] = cp;
    while (*cp && *cp != ':')
      ++cp;
    if (*cp)
      *cp++ = '\0';
    else
      cp = 0;
  }
  if (i != 7 || *fields[2] == '\0' || *fields[3] == '\0')
    return 0;
  pwent.pw_name = fields[0];
  pwent.pw_passwd = fields[1];
  if (fields[2][0] == '\0' ||
      ((pwent.pw_uid = strtol(fields[2], &ep, 10)) == 0 && *ep)) {
    return 0;
  }
  if (fields[3][0] == '\0' ||
      ((pwent.pw_gid = strtol(fields[3], &ep, 10)) == 0 && *ep)) {
    return 0;
  }
  pwent.pw_gecos = fields[4];
  pwent.pw_dir = fields[5];
  pwent.pw_shell = fields[6];
  return &pwent;
}


x86 assembly (clang, -O0):
<sgetpwent>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
cltq
cmp    $0x400,%rax
jb     1160 <sgetpwent+0x30>
movq   $0x0,-0x8(%rbp)
jmp    1357 <sgetpwent+0x227>
mov    -0x10(%rbp),%rsi
lea    0x2f25(%rip),%rdi
call   1030 <strcpy@plt>
lea    0x2f19(%rip),%rax
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x14(%rbp)
xor    %eax,%eax
cmpl   $0x7,-0x14(%rbp)
mov    %al,-0x61(%rbp)
jge    119c <sgetpwent+0x6c>
cmpq   $0x0,-0x20(%rbp)
setne  %al
mov    %al,-0x61(%rbp)
mov    -0x61(%rbp),%al
test   $0x1,%al
jne    11ac <sgetpwent+0x7c>
jmp    123e <sgetpwent+0x10e>
mov    -0x20(%rbp),%rcx
movslq -0x14(%rbp),%rax
mov    %rcx,-0x60(%rbp,%rax,8)
mov    -0x20(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x62(%rbp)
je     11de <sgetpwent+0xae>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
setne  %al
mov    %al,-0x62(%rbp)
mov    -0x62(%rbp),%al
test   $0x1,%al
jne    11ee <sgetpwent+0xbe>
jmp    11ff <sgetpwent+0xcf>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    11b9 <sgetpwent+0x89>
mov    -0x20(%rbp),%rax
cmpb   $0x0,(%rax)
je     1223 <sgetpwent+0xf3>
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0x0,(%rax)
jmp    122b <sgetpwent+0xfb>
movq   $0x0,-0x20(%rbp)
jmp    1230 <sgetpwent+0x100>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1182 <sgetpwent+0x52>
cmpl   $0x7,-0x14(%rbp)
jne    1268 <sgetpwent+0x138>
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1268 <sgetpwent+0x138>
mov    -0x48(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1275 <sgetpwent+0x145>
movq   $0x0,-0x8(%rbp)
jmp    1357 <sgetpwent+0x227>
mov    -0x60(%rbp),%rax
mov    %rax,0x2dd0(%rip)
mov    -0x58(%rbp),%rax
mov    %rax,0x2dcd(%rip)
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     12ce <sgetpwent+0x19e>
mov    -0x50(%rbp),%rdi
lea    -0x28(%rbp),%rsi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    %rax,0x2dcc(%rip)
cmp    $0x0,%rax
jne    12db <sgetpwent+0x1ab>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     12db <sgetpwent+0x1ab>
movq   $0x0,-0x8(%rbp)
jmp    1357 <sgetpwent+0x227>
mov    -0x48(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     131e <sgetpwent+0x1ee>
mov    -0x48(%rbp),%rdi
lea    -0x28(%rbp),%rsi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    %rax,0x2d74(%rip)
cmp    $0x0,%rax
jne    132b <sgetpwent+0x1fb>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     132b <sgetpwent+0x1fb>
movq   $0x0,-0x8(%rbp)
jmp    1357 <sgetpwent+0x227>
mov    -0x40(%rbp),%rax
mov    %rax,0x2d2a(%rip)
mov    -0x38(%rbp),%rax
mov    %rax,0x2d27(%rip)
mov    -0x30(%rbp),%rax
mov    %rax,0x2d24(%rip)
lea    0x2cfd(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sgetpwent>:
push   %r14
push   %rbx
sub    $0x48,%rsp
mov    %rdi,%rbx
call   1040 <strlen@plt>
cmp    $0x3ff,%eax
ja     1348 <sgetpwent+0x218>
lea    0x2f3f(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <strcpy@plt>
mov    %r14,0x10(%rsp)
lea    0x2f29(%rip),%rax
nopl   0x0(%rax,%rax,1)
movzbl -0x1(%rax),%ecx
test   %cl,%cl
je     1183 <sgetpwent+0x53>
cmp    $0x3a,%cl
je     118d <sgetpwent+0x5d>
add    $0x1,%rax
jmp    1170 <sgetpwent+0x40>
mov    $0x1,%eax
jmp    129d <sgetpwent+0x16d>
movb   $0x0,-0x1(%rax)
mov    %rax,0x18(%rsp)
add    $0x2,%rax
nopw   0x0(%rax,%rax,1)
movzbl -0x2(%rax),%ecx
test   %cl,%cl
je     11b3 <sgetpwent+0x83>
cmp    $0x3a,%cl
je     11bd <sgetpwent+0x8d>
add    $0x1,%rax
jmp    11a0 <sgetpwent+0x70>
mov    $0x2,%eax
jmp    129d <sgetpwent+0x16d>
lea    -0x1(%rax),%rcx
movb   $0x0,-0x2(%rax)
mov    %rcx,0x20(%rsp)
nopw   0x0(%rax,%rax,1)
movzbl -0x1(%rax),%ecx
test   %cl,%cl
je     11e3 <sgetpwent+0xb3>
cmp    $0x3a,%cl
je     11ed <sgetpwent+0xbd>
add    $0x1,%rax
jmp    11d0 <sgetpwent+0xa0>
mov    $0x3,%eax
jmp    129d <sgetpwent+0x16d>
movb   $0x0,-0x1(%rax)
mov    %rax,0x28(%rsp)
add    $0x3,%rax
nopw   0x0(%rax,%rax,1)
movzbl -0x3(%rax),%ecx
test   %cl,%cl
je     1213 <sgetpwent+0xe3>
cmp    $0x3a,%cl
je     121d <sgetpwent+0xed>
add    $0x1,%rax
jmp    1200 <sgetpwent+0xd0>
mov    $0x4,%eax
jmp    129d <sgetpwent+0x16d>
lea    -0x2(%rax),%rcx
movb   $0x0,-0x3(%rax)
mov    %rcx,0x30(%rsp)
nopw   0x0(%rax,%rax,1)
movzbl -0x2(%rax),%ecx
test   %cl,%cl
je     1243 <sgetpwent+0x113>
cmp    $0x3a,%cl
je     124a <sgetpwent+0x11a>
add    $0x1,%rax
jmp    1230 <sgetpwent+0x100>
mov    $0x5,%eax
jmp    129d <sgetpwent+0x16d>
lea    -0x1(%rax),%rcx
movb   $0x0,-0x2(%rax)
mov    %rcx,0x38(%rsp)
nopw   0x0(%rax,%rax,1)
movzbl -0x1(%rax),%ecx
test   %cl,%cl
je     128e <sgetpwent+0x15e>
cmp    $0x3a,%cl
je     1273 <sgetpwent+0x143>
add    $0x1,%rax
jmp    1260 <sgetpwent+0x130>
movb   $0x0,-0x1(%rax)
mov    %rax,0x40(%rsp)
movzbl (%rax),%ecx
test   %cl,%cl
je     1298 <sgetpwent+0x168>
cmp    $0x3a,%cl
je     1295 <sgetpwent+0x165>
add    $0x1,%rax
jmp    127c <sgetpwent+0x14c>
mov    $0x6,%eax
jmp    129d <sgetpwent+0x16d>
movb   $0x0,(%rax)
mov    $0x7,%eax
cmp    $0x7,%eax
jne    1348 <sgetpwent+0x218>
mov    0x20(%rsp),%rdi
cmpb   $0x0,(%rdi)
je     1348 <sgetpwent+0x218>
mov    0x28(%rsp),%rbx
cmpb   $0x0,(%rbx)
je     1348 <sgetpwent+0x218>
movaps 0x10(%rsp),%xmm0
movaps %xmm0,0x2d82(%rip)
cmpb   $0x0,(%rdi)
je     1348 <sgetpwent+0x218>
lea    0x8(%rsp),%rsi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    %rax,0x2d97(%rip)
test   %rax,%rax
je     1332 <sgetpwent+0x202>
cmpb   $0x0,(%rbx)
je     1348 <sgetpwent+0x218>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    %rax,0x2d6c(%rip)
test   %rax,%rax
je     133e <sgetpwent+0x20e>
movaps 0x30(%rsp),%xmm0
movaps %xmm0,0x2d43(%rip)
lea    0x2d2c(%rip),%rax
mov    0x40(%rsp),%rcx
mov    %rcx,0x2d40(%rip)
jmp    134a <sgetpwent+0x21a>
mov    0x8(%rsp),%rax
cmpb   $0x0,(%rax)
jne    1348 <sgetpwent+0x218>
jmp    12ee <sgetpwent+0x1be>
mov    0x8(%rsp),%rax
cmpb   $0x0,(%rax)
je     1311 <sgetpwent+0x1e1>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.passwd = type { i8*, i8*, i8*, i8*, i8*, i8*, i8* }
@sgetpwent.pwent = internal global %struct.passwd zeroinitializer
@sgetpwent.pwdbuf = internal global [1024 x i8] zeroinitializer
define %struct.passwd* @sgetpwent(i8* %0) {
%2 = alloca %struct.passwd*
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca [7 x i8*]
store i8* %0, i8** %3
%8 = load i8*, i8** %3
%9 = call i32 @strlen(i8* %8)
%10 = sext i32 %9 to i64
%11 = icmp uge i64 %10, 1024
br i1 %11, label %12, label %13
12: ; preds = %1
store %struct.passwd* null, %struct.passwd** %2
br label %119
13: ; preds = %1
%14 = load i8*, i8** %3
%15 = call i32 @strcpy(i8* getelementptr inbounds ([1024 x i8], [1024 x i8]* @sgetpwent.pwdbuf, i64 0, i64 0), i8* %14)
store i8* getelementptr inbounds ([1024 x i8], [1024 x i8]* @sgetpwent.pwdbuf, i64 0, i64 0), i8** %5
store i32 0, i32* %4
br label %16
16: ; preds = %53, %13
%17 = load i32, i32* %4
%18 = icmp slt i32 %17, 7
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i8*, i8** %5
%21 = icmp ne i8* %20, null
br label %22
22: ; preds = %19, %16
%23 = phi i1 [ false, %16 ], [ %21, %19 ]
br i1 %23, label %24, label %56
24: ; preds = %22
%25 = load i8*, i8** %5
%26 = load i32, i32* %4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [7 x i8*], [7 x i8*]* %7, i64 0, i64 %27
store i8* %25, i8** %28
br label %29
29: ; preds = %41, %24
%30 = load i8*, i8** %5
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %29
%35 = load i8*, i8** %5
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 58
br label %39
39: ; preds = %34, %29
%40 = phi i1 [ false, %29 ], [ %38, %34 ]
br i1 %40, label %41, label %44
41: ; preds = %39
%42 = load i8*, i8** %5
%43 = getelementptr inbounds i8, i8* %42, i32 1
store i8* %43, i8** %5
br label %29
44: ; preds = %39
%45 = load i8*, i8** %5
%46 = load i8, i8* %45
%47 = icmp ne i8 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %44
%49 = load i8*, i8** %5
%50 = getelementptr inbounds i8, i8* %49, i32 1
store i8* %50, i8** %5
store i8 0, i8* %49
br label %52
51: ; preds = %44
store i8* null, i8** %5
br label %52
52: ; preds = %51, %48
br label %53
53: ; preds = %52
%54 = load i32, i32* %4
%55 = add nsw i32 %54, 1
store i32 %55, i32* %4
br label %16
56: ; preds = %22
%57 = load i32, i32* %4
%58 = icmp ne i32 %57, 7
br i1 %58, label %71, label %59
59: ; preds = %56
%60 = getelementptr inbounds [7 x i8*], [7 x i8*]* %7, i64 0, i64 2
%61 = load i8*, i8** %60
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %63, 0
br i1 %64, label %71, label %65
65: ; preds = %59
%66 = getelementptr inbounds [7 x i8*], [7 x i8*]* %7, i64 0, i64 3
%67 = load i8*, i8** %66
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %65, %59, %56
store %struct.passwd* null, %struct.passwd** %2
br label %119
72: ; preds = %65
%73 = getelementptr inbounds [7 x i8*], [7 x i8*]* %7, i64 0, i64 0
%74 = load i8*, i8** %73
store i8* %74, i8** getelementptr inbounds (%struct.passwd, %struct.passwd* @sgetpwent.pwent, i32 0, i32 0)
%75 = getelementptr inbounds [7 x i8*], [7 x i8*]* %7, i64 0, i64 1
%76 = load i8*, i8** %75
store i8* %76, i8** getelementptr inbounds (%struct.passwd, %struct.passwd* @sgetpwent.pwent, i32 0, i32 1)
%77 = getelementptr inbounds [7 x i8*], [7 x i8*]* %7, i64 0, i64 2
%78 = load i8*, i8** %77
%79 = getelementptr inbounds i8, i8* %78, i64 0
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 0
br i1 %82, label %93, label %83
83: ; preds = %72
%84 = getelementptr inbounds [7 x i8*], [7 x i8*]* %7, i64 0, i64 2
%85 = load i8*, i8** %84
%86 = call i8* @strtol(i8* %85, i8** %6, i32 10)
store i8* %86, i8** getelementptr inbounds (%struct.passwd, %struct.passwd* @sgetpwent.pwent, i32 0, i32 6)
%87 = icmp eq i8* %86, null
br i1 %87, label %88, label %94
88: ; preds = %83
%89 = load i8*, i8** %6
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = icmp ne i32 %91, 0
br i1 %92, label %93, label %94
93: ; preds = %88, %72
store %struct.passwd* null, %struct.passwd** %2
br label %119
94: ; preds = %88, %83
%95 = getelementptr inbounds [7 x i8*], [7 x i8*]* %7, i64 0, i64 3
%96 = load i8*, i8** %95
%97 = getelementptr inbounds i8, i8* %96, i64 0
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = icmp eq i32 %99, 0
br i1 %100, label %111, label %101
101: ; preds = %94
%102 = getelementptr inbounds [7 x i8*], [7 x i8*]* %7, i64 0, i64 3
%103 = load i8*, i8** %102
%104 = call i8* @strtol(i8* %103, i8** %6, i32 10)
store i8* %104, i8** getelementptr inbounds (%struct.passwd, %struct.passwd* @sgetpwent.pwent, i32 0, i32 5)
%105 = icmp eq i8* %104, null
br i1 %105, label %106, label %112
106: ; preds = %101
%107 = load i8*, i8** %6
%108 = load i8, i8* %107
%109 = sext i8 %108 to i32
%110 = icmp ne i32 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %106, %94
store %struct.passwd* null, %struct.passwd** %2
br label %119
112: ; preds = %106, %101
%113 = getelementptr inbounds [7 x i8*], [7 x i8*]* %7, i64 0, i64 4
%114 = load i8*, i8** %113
store i8* %114, i8** getelementptr inbounds (%struct.passwd, %struct.passwd* @sgetpwent.pwent, i32 0, i32 2)
%115 = getelementptr inbounds [7 x i8*], [7 x i8*]* %7, i64 0, i64 5
%116 = load i8*, i8** %115
store i8* %116, i8** getelementptr inbounds (%struct.passwd, %struct.passwd* @sgetpwent.pwent, i32 0, i32 3)
%117 = getelementptr inbounds [7 x i8*], [7 x i8*]* %7, i64 0, i64 6
%118 = load i8*, i8** %117
store i8* %118, i8** getelementptr inbounds (%struct.passwd, %struct.passwd* @sgetpwent.pwent, i32 0, i32 4)
store %struct.passwd* @sgetpwent.pwent, %struct.passwd** %2
br label %119
119: ; preds = %112, %111, %93, %71, %12
%120 = load %struct.passwd*, %struct.passwd** %2
ret %struct.passwd* %120
}

LLVM IR (-O2):
%struct.passwd = type { i8*, i8*, i8*, i8*, i8*, i8*, i8* }
@sgetpwent.pwent = internal global %struct.passwd zeroinitializer
@sgetpwent.pwdbuf = internal global [1024 x i8] zeroinitializer
define %struct.passwd* @sgetpwent(i8* %0) {
%2 = alloca i8*
%3 = alloca [7 x i8*]
%4 = bitcast i8** %2 to i8*
%5 = bitcast [7 x i8*]* %3 to i8*
%6 = tail call i32 @strlen(i8* %0)
%7 = icmp ugt i32 %6, 1023
br i1 %7, label %106, label %8
8: ; preds = %1
%9 = tail call i32 @strcpy(i8* getelementptr inbounds ([1024 x i8], [1024 x i8]* @sgetpwent.pwdbuf, i64 0, i64 0), i8* %0)
%10 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 0
store i8* getelementptr inbounds ([1024 x i8], [1024 x i8]* @sgetpwent.pwdbuf, i64 0, i64 0), i8** %10
br label %11
11: ; preds = %14, %8
%12 = phi i8* [ getelementptr inbounds ([1024 x i8], [1024 x i8]* @sgetpwent.pwdbuf, i64 0, i64 0), %8 ], [ %15, %14 ]
%13 = load i8, i8* %12
switch i8 %13, label %14 [
i8 0, label %65
i8 58, label %16
]
14: ; preds = %11
%15 = getelementptr inbounds i8, i8* %12, i64 1
br label %11
16: ; preds = %11
%17 = getelementptr inbounds i8, i8* %12, i64 1
store i8 0, i8* %12
%18 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 1
store i8* %17, i8** %18
br label %19
19: ; preds = %25, %16
%20 = phi i8* [ %17, %16 ], [ %26, %25 ]
%21 = load i8, i8* %20
switch i8 %21, label %25 [
i8 0, label %65
i8 58, label %22
]
22: ; preds = %19
%23 = getelementptr inbounds i8, i8* %20, i64 1
store i8 0, i8* %20
%24 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 2
store i8* %23, i8** %24
br label %27
25: ; preds = %19
%26 = getelementptr inbounds i8, i8* %20, i64 1
br label %19
27: ; preds = %33, %22
%28 = phi i8* [ %23, %22 ], [ %34, %33 ]
%29 = load i8, i8* %28
switch i8 %29, label %33 [
i8 0, label %65
i8 58, label %30
]
30: ; preds = %27
%31 = getelementptr inbounds i8, i8* %28, i64 1
store i8 0, i8* %28
%32 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 3
store i8* %31, i8** %32
br label %35
33: ; preds = %27
%34 = getelementptr inbounds i8, i8* %28, i64 1
br label %27
35: ; preds = %41, %30
%36 = phi i8* [ %31, %30 ], [ %42, %41 ]
%37 = load i8, i8* %36
switch i8 %37, label %41 [
i8 0, label %65
i8 58, label %38
]
38: ; preds = %35
%39 = getelementptr inbounds i8, i8* %36, i64 1
store i8 0, i8* %36
%40 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 4
store i8* %39, i8** %40
br label %43
41: ; preds = %35
%42 = getelementptr inbounds i8, i8* %36, i64 1
br label %35
43: ; preds = %49, %38
%44 = phi i8* [ %39, %38 ], [ %50, %49 ]
%45 = load i8, i8* %44
switch i8 %45, label %49 [
i8 0, label %65
i8 58, label %46
]
46: ; preds = %43
%47 = getelementptr inbounds i8, i8* %44, i64 1
store i8 0, i8* %44
%48 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 5
store i8* %47, i8** %48
br label %51
49: ; preds = %43
%50 = getelementptr inbounds i8, i8* %44, i64 1
br label %43
51: ; preds = %57, %46
%52 = phi i8* [ %47, %46 ], [ %58, %57 ]
%53 = load i8, i8* %52
switch i8 %53, label %57 [
i8 0, label %65
i8 58, label %54
]
54: ; preds = %51
%55 = getelementptr inbounds i8, i8* %52, i64 1
store i8 0, i8* %52
%56 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 6
store i8* %55, i8** %56
br label %59
57: ; preds = %51
%58 = getelementptr inbounds i8, i8* %52, i64 1
br label %51
59: ; preds = %63, %54
%60 = phi i8* [ %55, %54 ], [ %64, %63 ]
%61 = load i8, i8* %60
switch i8 %61, label %63 [
i8 0, label %65
i8 58, label %62
]
62: ; preds = %59
store i8 0, i8* %60
br label %65
63: ; preds = %59
%64 = getelementptr inbounds i8, i8* %60, i64 1
br label %59
65: ; preds = %11, %19, %27, %35, %43, %51, %59, %62
%66 = phi i32 [ 7, %62 ], [ 1, %11 ], [ 2, %19 ], [ 3, %27 ], [ 4, %35 ], [ 5, %43 ], [ 6, %51 ], [ 7, %59 ]
%67 = icmp eq i32 %66, 7
br i1 %67, label %68, label %106
68: ; preds = %65
%69 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 2
%70 = load i8*, i8** %69
%71 = load i8, i8* %70
%72 = icmp eq i8 %71, 0
br i1 %72, label %106, label %73
73: ; preds = %68
%74 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 3
%75 = load i8*, i8** %74
%76 = load i8, i8* %75
%77 = icmp eq i8 %76, 0
br i1 %77, label %106, label %78
78: ; preds = %73
%79 = bitcast [7 x i8*]* %3 to <2 x i8*>*
%80 = load <2 x i8*>, <2 x i8*>* %79
store <2 x i8*> %80, <2 x i8*>* bitcast (%struct.passwd* @sgetpwent.pwent to <2 x i8*>*)
%81 = load i8, i8* %70
%82 = icmp eq i8 %81, 0
br i1 %82, label %106, label %83
83: ; preds = %78
%84 = call i8* @strtol(i8* %70, i8** %2, i32 10)
store i8* %84, i8** getelementptr inbounds (%struct.passwd, %struct.passwd* @sgetpwent.pwent, i64 0, i32 6)
%85 = icmp eq i8* %84, null
br i1 %85, label %86, label %90
86: ; preds = %83
%87 = load i8*, i8** %2
%88 = load i8, i8* %87
%89 = icmp eq i8 %88, 0
br i1 %89, label %90, label %106
90: ; preds = %86, %83
%91 = load i8, i8* %75
%92 = icmp eq i8 %91, 0
br i1 %92, label %106, label %93
93: ; preds = %90
%94 = call i8* @strtol(i8* %75, i8** %2, i32 10)
store i8* %94, i8** getelementptr inbounds (%struct.passwd, %struct.passwd* @sgetpwent.pwent, i64 0, i32 5)
%95 = icmp eq i8* %94, null
br i1 %95, label %96, label %100
96: ; preds = %93
%97 = load i8*, i8** %2
%98 = load i8, i8* %97
%99 = icmp eq i8 %98, 0
br i1 %99, label %100, label %106
100: ; preds = %96, %93
%101 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 4
%102 = bitcast i8** %101 to <2 x i8*>*
%103 = load <2 x i8*>, <2 x i8*>* %102
store <2 x i8*> %103, <2 x i8*>* bitcast (i8** getelementptr inbounds (%struct.passwd, %struct.passwd* @sgetpwent.pwent, i64 0, i32 2) to <2 x i8*>*)
%104 = getelementptr inbounds [7 x i8*], [7 x i8*]* %3, i64 0, i64 6
%105 = load i8*, i8** %104
store i8* %105, i8** getelementptr inbounds (%struct.passwd, %struct.passwd* @sgetpwent.pwent, i64 0, i32 4)
br label %106
106: ; preds = %90, %96, %78, %86, %65, %68, %73, %1, %100
%107 = phi %struct.passwd* [ @sgetpwent.pwent, %100 ], [ null, %1 ], [ null, %73 ], [ null, %68 ], [ null, %65 ], [ null, %86 ], [ null, %78 ], [ null, %96 ], [ null, %90 ]
ret %struct.passwd* %107
}