#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 dirent {
  char *d_name;
  int d_type;
};
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
#define DT_DIR 130
#define DT_LNK 129
#define DT_REG 128
int PATH_MAX;
int /*<<< orphan*/ closedir(int /*<<< orphan*/ *);
int /*<<< orphan*/ *opendir(char const *);
int /*<<< orphan*/ printf(char *, char const *);
struct dirent *readdir(int /*<<< orphan*/ *);
int /*<<< orphan*/ strcmp(char *, char *);
int find_directory(const char *dirname) {
  DIR *dir;
  char buffer[PATH_MAX + 2];
  char *p = buffer;
  const char *src;
  char *end = &buffer[PATH_MAX];
  int ok;
  src = dirname;
  while (p < end && *src != '\0') {
    *p++ = *src++;
  }
  *p = '\0';
  dir = opendir(dirname);
  if (dir != NULL) {
    struct dirent *ent;
    while ((ent = readdir(dir)) != NULL) {
      char *q = p;
      char c;
      if (buffer < q) {
        c = q[-1];
      } else {
        c = ':';
      }
      if (c != ':' && c != '/' && c != '\\') {
        *q++ = '/';
      }
      src = ent->d_name;
      while (q < end && *src != '\0') {
        *q++ = *src++;
      }
      *q = '\0';
      switch (ent->d_type) {
      case DT_LNK:
      case DT_REG:
        printf("%s\n", buffer);
        break;
      case DT_DIR:
        if (strcmp(ent->d_name, ".") != 0 && strcmp(ent->d_name, "..") != 0) {
          find_directory(buffer);
        }
        break;
      default:;
      }
    }
    closedir(dir);
    ok = 1;
  } else {
    printf("Cannot open directory %s\n", dirname);
    ok = 0;
  }
  return ok;
}


x86 assembly (clang, -O0):
<find_directory>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2e7d(%rip),%rax
mov    (%rax),%eax
add    $0x2,%eax
mov    %eax,%ecx
mov    %rsp,%rax
mov    %rax,-0x18(%rbp)
mov    %rcx,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rax
sub    %rdx,%rax
mov    %rax,-0x60(%rbp)
mov    %rax,%rsp
mov    %rcx,-0x20(%rbp)
mov    %rax,-0x28(%rbp)
mov    0x2e48(%rip),%rcx
movslq (%rcx),%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rcx
xor    %eax,%eax
cmp    -0x38(%rbp),%rcx
mov    %al,-0x61(%rbp)
jae    11dd <find_directory+0x7d>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x61(%rbp)
mov    -0x61(%rbp),%al
test   $0x1,%al
jne    11ed <find_directory+0x8d>
jmp    1214 <find_directory+0xb4>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    (%rax),%cl
mov    -0x28(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x28(%rbp)
mov    %cl,(%rax)
jmp    11ba <find_directory+0x5a>
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x8(%rbp),%rdi
call   1030 <opendir@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     13c5 <find_directory+0x265>
jmp    1238 <find_directory+0xd8>
mov    -0x10(%rbp),%rdi
call   1080 <readdir@plt>
mov    %rax,-0x48(%rbp)
cmp    $0x0,%rax
je     13b0 <find_directory+0x250>
mov    -0x60(%rbp),%rax
mov    -0x28(%rbp),%rcx
mov    %rcx,-0x50(%rbp)
cmp    -0x50(%rbp),%rax
jae    1274 <find_directory+0x114>
mov    -0x50(%rbp),%rax
mov    -0x1(%rax),%al
mov    %al,-0x51(%rbp)
jmp    1278 <find_directory+0x118>
movb   $0x3a,-0x51(%rbp)
movsbl -0x51(%rbp),%eax
cmp    $0x3a,%eax
je     12b1 <find_directory+0x151>
movsbl -0x51(%rbp),%eax
cmp    $0x2f,%eax
je     12b1 <find_directory+0x151>
movsbl -0x51(%rbp),%eax
cmp    $0x5c,%eax
je     12b1 <find_directory+0x151>
mov    -0x50(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x50(%rbp)
movb   $0x2f,(%rax)
mov    -0x48(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x50(%rbp),%rcx
xor    %eax,%eax
cmp    -0x38(%rbp),%rcx
mov    %al,-0x62(%rbp)
jae    12df <find_directory+0x17f>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x62(%rbp)
mov    -0x62(%rbp),%al
test   $0x1,%al
jne    12ef <find_directory+0x18f>
jmp    1316 <find_directory+0x1b6>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    (%rax),%cl
mov    -0x50(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x50(%rbp)
mov    %cl,(%rax)
jmp    12bc <find_directory+0x15c>
mov    -0x50(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x48(%rbp),%rax
mov    0x8(%rax),%eax
mov    %eax,-0x68(%rbp)
add    $0xffffff80,%eax
sub    $0x2,%eax
jb     134b <find_directory+0x1eb>
jmp    1338 <find_directory+0x1d8>
mov    -0x68(%rbp),%eax
sub    $0x82,%eax
je     1360 <find_directory+0x200>
jmp    13a6 <find_directory+0x246>
mov    -0x60(%rbp),%rsi
lea    0xcc3(%rip),%rdi
call   1040 <printf@plt>
jmp    13ab <find_directory+0x24b>
mov    -0x48(%rbp),%rax
mov    (%rax),%rdi
lea    0xc93(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
je     13a1 <find_directory+0x241>
mov    -0x48(%rbp),%rax
mov    (%rax),%rdi
lea    0xc76(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
je     13a1 <find_directory+0x241>
mov    -0x60(%rbp),%rdi
call   1070 <find_directory@plt>
jmp    13ab <find_directory+0x24b>
jmp    13ab <find_directory+0x24b>
jmp    1238 <find_directory+0xd8>
mov    -0x10(%rbp),%rdi
call   1050 <closedir@plt>
movl   $0x1,-0x3c(%rbp)
jmp    13dc <find_directory+0x27c>
mov    -0x8(%rbp),%rsi
lea    0xc33(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x18(%rbp),%rcx
mov    %rcx,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<find_directory>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdi,%r13
mov    0x2e75(%rip),%rax
movslq (%rax),%rax
lea    0x2(%rax),%ecx
mov    %rsp,%r14
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%r14
mov    %r14,%rsp
lea    (%r14,%rax,1),%r12
mov    %r14,%r15
test   %rax,%rax
jle    11c7 <find_directory+0x67>
mov    %r14,%r15
mov    %r13,%rax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl (%rax),%ecx
test   %cl,%cl
je     11c7 <find_directory+0x67>
add    $0x1,%rax
mov    %cl,(%r15)
add    $0x1,%r15
cmp    %r12,%r15
jb     11b0 <find_directory+0x50>
movb   $0x0,(%r15)
mov    %r13,%rdi
call   1030 <opendir@plt>
test   %rax,%rax
je     12f8 <find_directory+0x198>
mov    %rax,%rbx
mov    %rax,%rdi
call   1080 <readdir@plt>
test   %rax,%rax
je     12e9 <find_directory+0x189>
lea    0x1(%r15),%rcx
mov    %rcx,-0x38(%rbp)
mov    %rbx,-0x30(%rbp)
jmp    1224 <find_directory+0xc4>
xchg   %ax,%ax
lea    0xe12(%rip),%rdi
mov    %r14,%rsi
call   1040 <printf@plt>
mov    -0x30(%rbp),%rbx
mov    %rbx,%rdi
call   1080 <readdir@plt>
test   %rax,%rax
je     12e9 <find_directory+0x189>
mov    %r15,%rcx
cmp    %r15,%r14
jae    1256 <find_directory+0xf6>
mov    -0x1(%r15),%cl
add    $0xd1,%cl
cmp    $0x2d,%cl
ja     12d6 <find_directory+0x176>
movzbl %cl,%ecx
movabs $0x200000000801,%rdx
bt     %rcx,%rdx
mov    %r15,%rcx
jae    12d6 <find_directory+0x176>
cmp    %r12,%rcx
jae    1276 <find_directory+0x116>
mov    (%rax),%rdx
xchg   %ax,%ax
movzbl (%rdx),%ebx
test   %bl,%bl
je     1276 <find_directory+0x116>
add    $0x1,%rdx
mov    %bl,(%rcx)
add    $0x1,%rcx
cmp    %r12,%rcx
jb     1260 <find_directory+0x100>
movb   $0x0,(%rcx)
mov    0x8(%rax),%ecx
lea    -0x80(%rcx),%edx
cmp    $0x2,%edx
jb     1200 <find_directory+0xa0>
cmp    $0x82,%ecx
mov    -0x30(%rbp),%rbx
jne    1213 <find_directory+0xb3>
mov    (%rax),%r13
mov    %r13,%rdi
lea    0xd5c(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1213 <find_directory+0xb3>
mov    %r13,%rdi
lea    0xd44(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1213 <find_directory+0xb3>
mov    %r14,%rdi
call   1070 <find_directory@plt>
jmp    1213 <find_directory+0xb3>
movb   $0x2f,(%r15)
mov    -0x38(%rbp),%rcx
cmp    %r12,%rcx
jb     125b <find_directory+0xfb>
jmp    1276 <find_directory+0x116>
mov    %rbx,%rdi
call   1050 <closedir@plt>
mov    $0x1,%eax
jmp    1309 <find_directory+0x1a9>
lea    0xd04(%rip),%rdi
mov    %r13,%rsi
call   1040 <printf@plt>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
%struct.dirent = type { i8*, i32 }
@PATH_MAX = global i32 0
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [2 x i8] c".\00"
@.str.2 = [3 x i8] c"..\00"
@.str.3 = [26 x i8] c"Cannot open directory %s\0A\00"
define i32 @find_directory(i8* %0) {
%2 = load i32, i32* @PATH_MAX
%3 = add nsw i32 %2, 2
%4 = zext i32 %3 to i64
%5 = alloca i8, i64 %4
%6 = sext i32 %2 to i64
%7 = getelementptr inbounds i8, i8* %5, i64 %6
%8 = icmp sgt i32 %2, 0
br i1 %8, label %9, label %18
9: ; preds = %1, %14
%10 = phi i8* [ %16, %14 ], [ %5, %1 ]
%11 = phi i8* [ %15, %14 ], [ %0, %1 ]
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, 0
br i1 %13, label %18, label %14
14: ; preds = %9
%15 = getelementptr inbounds i8, i8* %11, i64 1
%16 = getelementptr inbounds i8, i8* %10, i64 1
store i8 %12, i8* %10
%17 = icmp ult i8* %16, %7
br i1 %17, label %9, label %18
18: ; preds = %9, %14, %1
%19 = phi i8* [ %5, %1 ], [ %16, %14 ], [ %10, %9 ]
store i8 0, i8* %19
%20 = call i32* @opendir(i8* %0)
%21 = icmp eq i32* %20, null
br i1 %21, label %69, label %22
22: ; preds = %18
%23 = call %struct.dirent* @readdir(i32* %20)
%24 = icmp eq %struct.dirent* %23, null
br i1 %24, label %67, label %25
25: ; preds = %22
%26 = icmp ult i8* %5, %19
%27 = getelementptr inbounds i8, i8* %19, i64 -1
%28 = getelementptr inbounds i8, i8* %19, i64 1
br label %29
29: ; preds = %25, %64
%30 = phi %struct.dirent* [ %23, %25 ], [ %65, %64 ]
br i1 %26, label %31, label %34
31: ; preds = %29
%32 = load i8, i8* %27
switch i8 %32, label %33 [
i8 92, label %34
i8 58, label %34
i8 47, label %34
]
33: ; preds = %31
store i8 47, i8* %19
br label %34
34: ; preds = %29, %31, %31, %31, %33
%35 = phi i8* [ %28, %33 ], [ %19, %31 ], [ %19, %31 ], [ %19, %31 ], [ %19, %29 ]
%36 = getelementptr inbounds %struct.dirent, %struct.dirent* %30, i64 0, i32 0
%37 = icmp ult i8* %35, %7
br i1 %37, label %38, label %49
38: ; preds = %34
%39 = load i8*, i8** %36
br label %40
40: ; preds = %38, %45
%41 = phi i8* [ %47, %45 ], [ %35, %38 ]
%42 = phi i8* [ %46, %45 ], [ %39, %38 ]
%43 = load i8, i8* %42
%44 = icmp eq i8 %43, 0
br i1 %44, label %49, label %45
45: ; preds = %40
%46 = getelementptr inbounds i8, i8* %42, i64 1
%47 = getelementptr inbounds i8, i8* %41, i64 1
store i8 %43, i8* %41
%48 = icmp ult i8* %47, %7
br i1 %48, label %40, label %49
49: ; preds = %40, %45, %34
%50 = phi i8* [ %35, %34 ], [ %47, %45 ], [ %41, %40 ]
store i8 0, i8* %50
%51 = getelementptr inbounds %struct.dirent, %struct.dirent* %30, i64 0, i32 1
%52 = load i32, i32* %51
switch i32 %52, label %64 [
i32 129, label %53
i32 128, label %53
i32 130, label %55
]
53: ; preds = %49, %49
%54 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %5)
br label %64
55: ; preds = %49
%56 = load i8*, i8** %36
%57 = call i32 @strcmp(i8* dereferenceable(1) %56, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%58 = icmp eq i32 %57, 0
br i1 %58, label %64, label %59
59: ; preds = %55
%60 = call i32 @strcmp(i8* dereferenceable(1) %56, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%61 = icmp eq i32 %60, 0
br i1 %61, label %64, label %62
62: ; preds = %59
%63 = call i32 @find_directory(i8* %5)
br label %64
64: ; preds = %49, %55, %59, %62, %53
%65 = call %struct.dirent* @readdir(i32* %20)
%66 = icmp eq %struct.dirent* %65, null
br i1 %66, label %67, label %29
67: ; preds = %64, %22
%68 = call i32 @closedir(i32* %20)
br label %71
69: ; preds = %18
%70 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* %0)
br label %71
71: ; preds = %69, %67
%72 = phi i32 [ 1, %67 ], [ 0, %69 ]
ret i32 %72
}