#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 {
  void *pw_name;
  void *pw_passwd;
};
typedef int /*<<< orphan*/ buf;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
char *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ free(void *);
int /*<<< orphan*/ strcmp(char *, void *);
void *strdup(char *);
char *strsep(char **, char *);
int /*<<< orphan*/ strstr(char *, char *);
int get_passwd(struct passwd *pw) {
  char *ptr, *tmp;
  char buf[256];
  FILE *fp;
  fp = fopen("/etc/passwd", "r");
  if (!fp)
    return 1;
  while ((tmp = fgets(buf, sizeof(buf), fp))) {
    if (!strstr(buf, ":0:0:"))
      continue;
    ptr = strsep(&tmp, ":");
    if (!ptr)
      break;
    pw->pw_name = strdup(ptr);
    ptr = strsep(&tmp, ":");
    if (!ptr)
      break;
    if (ptr[0] != 'x')
      pw->pw_passwd = strdup(ptr);
    break;
  }
  fclose(fp);
  if (!pw->pw_name)
    return 1;
  if (pw->pw_passwd)
    return 0;
  fp = fopen("/etc/shadow", "r");
  if (!fp) {
    if (pw->pw_name)
      free(pw->pw_name);
    return 1;
  }
  while ((tmp = fgets(buf, sizeof(buf), fp))) {
    ptr = strsep(&tmp, ":");
    if (!ptr)
      break;
    if (!strcmp(tmp, pw->pw_name))
      continue;
    ptr = strsep(&tmp, ":");
    if (!ptr)
      break;
    pw->pw_passwd = strdup(ptr);
    break;
  }
  fclose(fp);
  if (!pw->pw_passwd) {
    if (pw->pw_name)
      free(pw->pw_name);
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<get_passwd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
mov    %rdi,-0x10(%rbp)
lea    0xe6a(%rip),%rdi
lea    0xe6f(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x128(%rbp)
cmpq   $0x0,-0x128(%rbp)
jne    11c3 <get_passwd+0x43>
movl   $0x1,-0x4(%rbp)
jmp    140f <get_passwd+0x28f>
jmp    11c8 <get_passwd+0x48>
lea    -0x120(%rbp),%rdi
mov    -0x128(%rbp),%rdx
mov    $0x100,%esi
call   1050 <fgets@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     1293 <get_passwd+0x113>
lea    -0x120(%rbp),%rdi
lea    0xe12(%rip),%rsi
call   10a0 <strstr@plt>
cmp    $0x0,%eax
jne    120f <get_passwd+0x8f>
jmp    11c8 <get_passwd+0x48>
lea    -0x20(%rbp),%rdi
lea    0xdf8(%rip),%rsi
call   1070 <strsep@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1233 <get_passwd+0xb3>
jmp    1293 <get_passwd+0x113>
mov    -0x18(%rbp),%rdi
call   1090 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
lea    -0x20(%rbp),%rdi
lea    0xdc1(%rip),%rsi
call   1070 <strsep@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    126a <get_passwd+0xea>
jmp    1293 <get_passwd+0x113>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x78,%eax
je     128e <get_passwd+0x10e>
mov    -0x18(%rbp),%rdi
call   1090 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x8(%rax)
jmp    1293 <get_passwd+0x113>
mov    -0x128(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
jne    12b9 <get_passwd+0x139>
movl   $0x1,-0x4(%rbp)
jmp    140f <get_passwd+0x28f>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
je     12d4 <get_passwd+0x154>
movl   $0x0,-0x4(%rbp)
jmp    140f <get_passwd+0x28f>
lea    0xd39(%rip),%rdi
lea    0xd2a(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x128(%rbp)
cmpq   $0x0,-0x128(%rbp)
jne    1322 <get_passwd+0x1a2>
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
je     1316 <get_passwd+0x196>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
movl   $0x1,-0x4(%rbp)
jmp    140f <get_passwd+0x28f>
jmp    1327 <get_passwd+0x1a7>
lea    -0x120(%rbp),%rdi
mov    -0x128(%rbp),%rdx
mov    $0x100,%esi
call   1050 <fgets@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     13c7 <get_passwd+0x247>
lea    -0x20(%rbp),%rdi
lea    0xcba(%rip),%rsi
call   1070 <strsep@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1371 <get_passwd+0x1f1>
jmp    13c7 <get_passwd+0x247>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    138f <get_passwd+0x20f>
jmp    1327 <get_passwd+0x1a7>
lea    -0x20(%rbp),%rdi
lea    0xc78(%rip),%rsi
call   1070 <strsep@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    13b3 <get_passwd+0x233>
jmp    13c7 <get_passwd+0x247>
mov    -0x18(%rbp),%rdi
call   1090 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x8(%rax)
mov    -0x128(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
jne    1408 <get_passwd+0x288>
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
je     13fc <get_passwd+0x27c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
movl   $0x1,-0x4(%rbp)
jmp    140f <get_passwd+0x28f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_passwd>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
mov    %rdi,%r15
lea    0xe65(%rip),%rdi
lea    0xe6a(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     12f9 <get_passwd+0x179>
mov    %rax,%rbp
lea    0x10(%rsp),%rbx
lea    0xe4f(%rip),%r14
nop
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %rbp,%rdx
call   1050 <fgets@plt>
mov    %rax,0x8(%rsp)
test   %rax,%rax
je     1231 <get_passwd+0xb1>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10a0 <strstr@plt>
test   %eax,%eax
je     11c0 <get_passwd+0x40>
lea    0xe22(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1070 <strsep@plt>
test   %rax,%rax
je     1231 <get_passwd+0xb1>
mov    %rax,%rdi
call   1090 <strdup@plt>
mov    %rax,(%r15)
lea    0xe01(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1070 <strsep@plt>
test   %rax,%rax
je     1231 <get_passwd+0xb1>
cmpb   $0x78,(%rax)
je     1231 <get_passwd+0xb1>
mov    %rax,%rdi
call   1090 <strdup@plt>
mov    %rax,0x8(%r15)
mov    %rbp,%rdi
call   1040 <fclose@plt>
cmpq   $0x0,(%r15)
je     12f9 <get_passwd+0x179>
xor    %ebp,%ebp
cmpq   $0x0,0x8(%r15)
jne    12fe <get_passwd+0x17e>
lea    0xdbd(%rip),%rdi
lea    0xdae(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     12ec <get_passwd+0x16c>
mov    %rax,%r14
lea    0x10(%rsp),%rbx
lea    0xd97(%rip),%r12
lea    0x8(%rsp),%r13
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r14,%rdx
call   1050 <fgets@plt>
mov    %rax,0x8(%rsp)
test   %rax,%rax
je     12dd <get_passwd+0x15d>
mov    %r13,%rdi
mov    %r12,%rsi
call   1070 <strsep@plt>
test   %rax,%rax
je     12dd <get_passwd+0x15d>
mov    0x8(%rsp),%rdi
mov    (%r15),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1280 <get_passwd+0x100>
lea    0xd50(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1070 <strsep@plt>
test   %rax,%rax
je     12dd <get_passwd+0x15d>
mov    %rax,%rdi
call   1090 <strdup@plt>
mov    %rax,0x8(%r15)
mov    %r14,%rdi
call   1040 <fclose@plt>
cmpq   $0x0,0x8(%r15)
jne    12fe <get_passwd+0x17e>
mov    (%r15),%rdi
test   %rdi,%rdi
je     12f9 <get_passwd+0x179>
call   1030 <free@plt>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.passwd = type { i8*, i8* }
@.str = [12 x i8] c"/etc/passwd\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [6 x i8] c":0:0:\00"
@.str.3 = [2 x i8] c":\00"
@.str.4 = [12 x i8] c"/etc/shadow\00"
define i32 @get_passwd(%struct.passwd* %0) {
%2 = alloca i32
%3 = alloca %struct.passwd*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca [256 x i8]
%7 = alloca i32*
store %struct.passwd* %0, %struct.passwd** %3
%8 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %8, i32** %7
%9 = load i32*, i32** %7
%10 = icmp ne i32* %9, null
br i1 %10, label %12, label %11
11: ; preds = %1
store i32 1, i32* %2
br label %126
12: ; preds = %1
br label %13
13: ; preds = %22, %12
%14 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%15 = load i32*, i32** %7
%16 = call i8* @fgets(i8* %14, i32 256, i32* %15)
store i8* %16, i8** %5
%17 = icmp ne i8* %16, null
br i1 %17, label %18, label %49
18: ; preds = %13
%19 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%20 = call i32 @strstr(i8* %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %18
br label %13
23: ; preds = %18
%24 = call i8* @strsep(i8** %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i8* %24, i8** %4
%25 = load i8*, i8** %4
%26 = icmp ne i8* %25, null
br i1 %26, label %28, label %27
27: ; preds = %23
br label %49
28: ; preds = %23
%29 = load i8*, i8** %4
%30 = call i8* @strdup(i8* %29)
%31 = load %struct.passwd*, %struct.passwd** %3
%32 = getelementptr inbounds %struct.passwd, %struct.passwd* %31, i32 0, i32 0
store i8* %30, i8** %32
%33 = call i8* @strsep(i8** %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i8* %33, i8** %4
%34 = load i8*, i8** %4
%35 = icmp ne i8* %34, null
br i1 %35, label %37, label %36
36: ; preds = %28
br label %49
37: ; preds = %28
%38 = load i8*, i8** %4
%39 = getelementptr inbounds i8, i8* %38, i64 0
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %41, 120
br i1 %42, label %43, label %48
43: ; preds = %37
%44 = load i8*, i8** %4
%45 = call i8* @strdup(i8* %44)
%46 = load %struct.passwd*, %struct.passwd** %3
%47 = getelementptr inbounds %struct.passwd, %struct.passwd* %46, i32 0, i32 1
store i8* %45, i8** %47
br label %48
48: ; preds = %43, %37
br label %49
49: ; preds = %48, %36, %27, %13
%50 = load i32*, i32** %7
%51 = call i32 @fclose(i32* %50)
%52 = load %struct.passwd*, %struct.passwd** %3
%53 = getelementptr inbounds %struct.passwd, %struct.passwd* %52, i32 0, i32 0
%54 = load i8*, i8** %53
%55 = icmp ne i8* %54, null
br i1 %55, label %57, label %56
56: ; preds = %49
store i32 1, i32* %2
br label %126
57: ; preds = %49
%58 = load %struct.passwd*, %struct.passwd** %3
%59 = getelementptr inbounds %struct.passwd, %struct.passwd* %58, i32 0, i32 1
%60 = load i8*, i8** %59
%61 = icmp ne i8* %60, null
br i1 %61, label %62, label %63
62: ; preds = %57
store i32 0, i32* %2
br label %126
63: ; preds = %57
%64 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %64, i32** %7
%65 = load i32*, i32** %7
%66 = icmp ne i32* %65, null
br i1 %66, label %78, label %67
67: ; preds = %63
%68 = load %struct.passwd*, %struct.passwd** %3
%69 = getelementptr inbounds %struct.passwd, %struct.passwd* %68, i32 0, i32 0
%70 = load i8*, i8** %69
%71 = icmp ne i8* %70, null
br i1 %71, label %72, label %77
72: ; preds = %67
%73 = load %struct.passwd*, %struct.passwd** %3
%74 = getelementptr inbounds %struct.passwd, %struct.passwd* %73, i32 0, i32 0
%75 = load i8*, i8** %74
%76 = call i32 @free(i8* %75)
br label %77
77: ; preds = %72, %67
store i32 1, i32* %2
br label %126
78: ; preds = %63
br label %79
79: ; preds = %96, %78
%80 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%81 = load i32*, i32** %7
%82 = call i8* @fgets(i8* %80, i32 256, i32* %81)
store i8* %82, i8** %5
%83 = icmp ne i8* %82, null
br i1 %83, label %84, label %107
84: ; preds = %79
%85 = call i8* @strsep(i8** %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i8* %85, i8** %4
%86 = load i8*, i8** %4
%87 = icmp ne i8* %86, null
br i1 %87, label %89, label %88
88: ; preds = %84
br label %107
89: ; preds = %84
%90 = load i8*, i8** %5
%91 = load %struct.passwd*, %struct.passwd** %3
%92 = getelementptr inbounds %struct.passwd, %struct.passwd* %91, i32 0, i32 0
%93 = load i8*, i8** %92
%94 = call i32 @strcmp(i8* %90, i8* %93)
%95 = icmp ne i32 %94, 0
br i1 %95, label %97, label %96
96: ; preds = %89
br label %79
97: ; preds = %89
%98 = call i8* @strsep(i8** %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i8* %98, i8** %4
%99 = load i8*, i8** %4
%100 = icmp ne i8* %99, null
br i1 %100, label %102, label %101
101: ; preds = %97
br label %107
102: ; preds = %97
%103 = load i8*, i8** %4
%104 = call i8* @strdup(i8* %103)
%105 = load %struct.passwd*, %struct.passwd** %3
%106 = getelementptr inbounds %struct.passwd, %struct.passwd* %105, i32 0, i32 1
store i8* %104, i8** %106
br label %107
107: ; preds = %102, %101, %88, %79
%108 = load i32*, i32** %7
%109 = call i32 @fclose(i32* %108)
%110 = load %struct.passwd*, %struct.passwd** %3
%111 = getelementptr inbounds %struct.passwd, %struct.passwd* %110, i32 0, i32 1
%112 = load i8*, i8** %111
%113 = icmp ne i8* %112, null
br i1 %113, label %125, label %114
114: ; preds = %107
%115 = load %struct.passwd*, %struct.passwd** %3
%116 = getelementptr inbounds %struct.passwd, %struct.passwd* %115, i32 0, i32 0
%117 = load i8*, i8** %116
%118 = icmp ne i8* %117, null
br i1 %118, label %119, label %124
119: ; preds = %114
%120 = load %struct.passwd*, %struct.passwd** %3
%121 = getelementptr inbounds %struct.passwd, %struct.passwd* %120, i32 0, i32 0
%122 = load i8*, i8** %121
%123 = call i32 @free(i8* %122)
br label %124
124: ; preds = %119, %114
store i32 1, i32* %2
br label %126
125: ; preds = %107
store i32 0, i32* %2
br label %126
126: ; preds = %125, %124, %77, %62, %56, %11
%127 = load i32, i32* %2
ret i32 %127
}

LLVM IR (-O2):
%struct.passwd = type { i8*, i8* }
@.str = [12 x i8] c"/etc/passwd\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [6 x i8] c":0:0:\00"
@.str.3 = [2 x i8] c":\00"
@.str.4 = [12 x i8] c"/etc/shadow\00"
define i32 @get_passwd(%struct.passwd* nocapture %0) {
%2 = alloca i8*
%3 = alloca [256 x i8]
%4 = bitcast i8** %2 to i8*
%5 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%6 = tail call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%7 = icmp eq i32* %6, null
br i1 %7, label %69, label %8
8: ; preds = %1, %11
%9 = call i8* @fgets(i8* %5, i32 256, i32* %6)
store i8* %9, i8** %2
%10 = icmp eq i8* %9, null
br i1 %10, label %28, label %11
11: ; preds = %8
%12 = call i32 @strstr(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
br i1 %13, label %8, label %14
14: ; preds = %11
%15 = call i8* @strsep(i8** %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i8* %15, null
br i1 %16, label %28, label %17
17: ; preds = %14
%18 = call i8* @strdup(i8* %15)
%19 = getelementptr inbounds %struct.passwd, %struct.passwd* %0, i64 0, i32 0
store i8* %18, i8** %19
%20 = call i8* @strsep(i8** %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%21 = icmp eq i8* %20, null
br i1 %21, label %28, label %22
22: ; preds = %17
%23 = load i8, i8* %20
%24 = icmp eq i8 %23, 120
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = call i8* @strdup(i8* %20)
%27 = getelementptr inbounds %struct.passwd, %struct.passwd* %0, i64 0, i32 1
store i8* %26, i8** %27
br label %28
28: ; preds = %8, %22, %25, %17, %14
%29 = call i32 @fclose(i32* %6)
%30 = getelementptr inbounds %struct.passwd, %struct.passwd* %0, i64 0, i32 0
%31 = load i8*, i8** %30
%32 = icmp eq i8* %31, null
br i1 %32, label %69, label %33
33: ; preds = %28
%34 = getelementptr inbounds %struct.passwd, %struct.passwd* %0, i64 0, i32 1
%35 = load i8*, i8** %34
%36 = icmp eq i8* %35, null
br i1 %36, label %37, label %69
37: ; preds = %33
%38 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%39 = icmp eq i32* %38, null
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = load i8*, i8** %30
%42 = icmp eq i8* %41, null
br i1 %42, label %69, label %66
43: ; preds = %37, %49
%44 = call i8* @fgets(i8* %5, i32 256, i32* %38)
store i8* %44, i8** %2
%45 = icmp eq i8* %44, null
br i1 %45, label %59, label %46
46: ; preds = %43
%47 = call i8* @strsep(i8** %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%48 = icmp eq i8* %47, null
br i1 %48, label %59, label %49
49: ; preds = %46
%50 = load i8*, i8** %2
%51 = load i8*, i8** %30
%52 = call i32 @strcmp(i8* dereferenceable(1) %50, i8* dereferenceable(1) %51)
%53 = icmp eq i32 %52, 0
br i1 %53, label %43, label %54
54: ; preds = %49
%55 = call i8* @strsep(i8** %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%56 = icmp eq i8* %55, null
br i1 %56, label %59, label %57
57: ; preds = %54
%58 = call i8* @strdup(i8* %55)
store i8* %58, i8** %34
br label %59
59: ; preds = %46, %43, %54, %57
%60 = call i32 @fclose(i32* %38)
%61 = load i8*, i8** %34
%62 = icmp eq i8* %61, null
br i1 %62, label %63, label %69
63: ; preds = %59
%64 = load i8*, i8** %30
%65 = icmp eq i8* %64, null
br i1 %65, label %69, label %66
66: ; preds = %63, %40
%67 = phi i8* [ %41, %40 ], [ %64, %63 ]
%68 = call i32 @free(i8* %67)
br label %69
69: ; preds = %66, %59, %63, %40, %33, %28, %1
%70 = phi i32 [ 1, %1 ], [ 1, %28 ], [ 0, %33 ], [ 1, %40 ], [ 1, %63 ], [ 0, %59 ], [ 1, %66 ]
ret i32 %70
}