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

/* Variables and functions */
int MAXPATHLEN;
int S_IFDIR;
int /*<<< orphan*/ closedir(int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ *opendir(char *);
struct dirent *readdir(int /*<<< orphan*/ *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *);
int /*<<< orphan*/ stat(char *, struct stat *);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
void descendAndDo(DIR *dir, char *fromDirName, char *toDirName,
                  char *baseSrcName, char *baseFromName, char *baseToName,
                  int allowAppend, char *archiveExtension, int doFunc()) {
  struct dirent *dp;
  char fromName[MAXPATHLEN];
  char toName[MAXPATHLEN];
  struct stat st;
  while ((dp = readdir(dir)) != NULL) {
    sprintf(fromName, "%s/%s", fromDirName, dp->d_name);
    sprintf(toName, "%s/%s", toDirName, dp->d_name);
    if (strcmp(dp->d_name, ".") && strcmp(dp->d_name, "..")) {
      stat(fromName, &st);
      if (st.st_mode & S_IFDIR) {
        DIR *childdir;
        if ((childdir = opendir(fromName)) == NULL) {
          fprintf(stderr, "Error: Couldn't open directory %s\n", fromName);
          exit(1);
        }
        if (!doFunc(fromName, toName, baseSrcName, baseToName, allowAppend,
                    archiveExtension)) {
          fprintf(stderr, "Error: Failed executing doFunc\n");
          exit(1);
        }
        descendAndDo(childdir, fromName, toName, baseSrcName, baseFromName,
                     baseToName, allowAppend, archiveExtension, doFunc);
      } else {
        if (!doFunc(fromName, toName, baseSrcName, baseToName, allowAppend,
                    archiveExtension)) {
          fprintf(stderr, "Error: Failed executing doFunc\n");
          exit(1);
        }
      }
    }
  }
  (void)closedir(dir);
}


x86 assembly (clang, -O0):
<descendAndDo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    0x2e26(%rip),%rax
mov    (%rax),%ecx
mov    %rsp,%rdx
mov    %rdx,-0x40(%rbp)
mov    %rcx,%rsi
add    $0xf,%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x70(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x48(%rbp)
mov    (%rax),%eax
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x68(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
mov    -0x8(%rbp),%rdi
call   1080 <readdir@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
je     13d3 <descendAndDo+0x243>
mov    -0x70(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x38(%rbp),%rax
mov    (%rax),%rcx
lea    0xdce(%rip),%rsi
call   10a0 <sprintf@plt>
mov    -0x68(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x38(%rbp),%rax
mov    (%rax),%rcx
lea    0xdb3(%rip),%rsi
call   10a0 <sprintf@plt>
mov    -0x38(%rbp),%rax
mov    (%rax),%rdi
lea    0xda7(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     13ce <descendAndDo+0x23e>
mov    -0x38(%rbp),%rax
mov    (%rax),%rdi
lea    0xd89(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     13ce <descendAndDo+0x23e>
mov    -0x70(%rbp),%rdi
lea    -0x58(%rbp),%rsi
call   1070 <stat@plt>
mov    -0x58(%rbp),%eax
mov    0x2d25(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1379 <descendAndDo+0x1e9>
mov    -0x70(%rbp),%rdi
call   1030 <opendir@plt>
mov    %rax,-0x60(%rbp)
cmp    $0x0,%rax
jne    12ea <descendAndDo+0x15a>
mov    -0x70(%rbp),%rdx
mov    0x2d08(%rip),%rax
mov    (%rax),%edi
lea    0xd30(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    -0x68(%rbp),%rsi
mov    -0x70(%rbp),%rdi
mov    0x20(%rbp),%r10
mov    -0x20(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    0x10(%rbp),%r8d
mov    0x18(%rbp),%r9
mov    $0x0,%al
call   *%r10
cmp    $0x0,%eax
jne    1335 <descendAndDo+0x1a5>
mov    0x2cbd(%rip),%rax
mov    (%rax),%edi
lea    0xd08(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    -0x68(%rbp),%rdx
mov    -0x70(%rbp),%rsi
mov    -0x60(%rbp),%rdi
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    0x10(%rbp),%r11d
mov    0x18(%rbp),%r10
mov    0x20(%rbp),%rax
sub    $0x20,%rsp
mov    %r11d,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1090 <descendAndDo@plt>
add    $0x20,%rsp
jmp    13c9 <descendAndDo+0x239>
mov    -0x68(%rbp),%rsi
mov    -0x70(%rbp),%rdi
mov    0x20(%rbp),%r10
mov    -0x20(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    0x10(%rbp),%r8d
mov    0x18(%rbp),%r9
mov    $0x0,%al
call   *%r10
cmp    $0x0,%eax
jne    13c4 <descendAndDo+0x234>
mov    0x2c2e(%rip),%rax
mov    (%rax),%edi
lea    0xc79(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
jmp    13c9 <descendAndDo+0x239>
jmp    13ce <descendAndDo+0x23e>
jmp    1205 <descendAndDo+0x75>
mov    -0x8(%rbp),%rdi
call   1040 <closedir@plt>
mov    -0x40(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<descendAndDo>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r9,-0x30(%rbp)
mov    %r8,-0x58(%rbp)
mov    %rcx,-0x48(%rbp)
mov    %rdx,-0x68(%rbp)
mov    %rsi,-0x70(%rbp)
mov    %rdi,%r15
mov    0x2e29(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rcx
mov    %rcx,-0x38(%rbp)
mov    %rcx,%rsp
mov    %rsp,%r12
sub    %rax,%r12
mov    %r12,%rsp
call   1080 <readdir@plt>
test   %rax,%rax
je     1331 <descendAndDo+0x1a1>
mov    %rax,%r14
mov    0x10(%rbp),%r13d
lea    0xe05(%rip),%rbx
mov    %r15,-0x50(%rbp)
jmp    1244 <descendAndDo+0xb4>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    -0x48(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    %r13d,%r8d
mov    0x18(%rbp),%r9
xor    %eax,%eax
call   *0x20(%rbp)
test   %eax,%eax
lea    0xddc(%rip),%rbx
je     1348 <descendAndDo+0x1b8>
nopw   0x0(%rax,%rax,1)
mov    %r15,%rdi
call   1080 <readdir@plt>
mov    %rax,%r14
test   %rax,%rax
je     1331 <descendAndDo+0x1a1>
mov    (%r14),%rcx
mov    -0x38(%rbp),%rdi
mov    %rbx,%rsi
mov    -0x70(%rbp),%rdx
call   10a0 <sprintf@plt>
mov    (%r14),%rcx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    -0x68(%rbp),%rdx
call   10a0 <sprintf@plt>
mov    (%r14),%rdi
lea    0xd94(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1230 <descendAndDo+0xa0>
mov    (%r14),%rdi
lea    0xd7f(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1230 <descendAndDo+0xa0>
mov    -0x38(%rbp),%rbx
mov    %rbx,%rdi
lea    -0x40(%rbp),%rsi
call   1070 <stat@plt>
mov    0x2d20(%rip),%rax
mov    (%rax),%eax
test   %eax,-0x40(%rbp)
je     1201 <descendAndDo+0x71>
mov    -0x48(%rbp),%r15
mov    %rbx,%rdi
call   1030 <opendir@plt>
mov    %rax,-0x60(%rbp)
test   %rax,%rax
mov    -0x30(%rbp),%rcx
je     1369 <descendAndDo+0x1d9>
mov    %rbx,%rdi
mov    %r12,%r14
mov    %r12,%rsi
mov    %r15,%r12
mov    %r15,%rdx
mov    %r13d,%r8d
mov    0x18(%rbp),%rbx
mov    %rbx,%r9
xor    %eax,%eax
mov    0x20(%rbp),%r15
call   *%r15
test   %eax,%eax
je     1348 <descendAndDo+0x1b8>
sub    $0x8,%rsp
mov    -0x60(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    %r14,%rdx
mov    %r12,%rcx
mov    -0x58(%rbp),%r8
mov    -0x30(%rbp),%r9
push   %r15
push   %rbx
push   %r13
call   1090 <descendAndDo@plt>
add    $0x20,%rsp
mov    -0x50(%rbp),%r15
mov    %r14,%r12
lea    0xcd4(%rip),%rbx
jmp    1230 <descendAndDo+0xa0>
mov    %r15,%rdi
call   1040 <closedir@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c89(%rip),%rax
mov    (%rax),%edi
lea    0xcd4(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    0x2c68(%rip),%rax
mov    (%rax),%edi
lea    0xc90(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
%struct.dirent = type { i8* }
%struct.stat = type { i32 }
@MAXPATHLEN = global i32 0
@.str = [6 x i8] c"%s/%s\00"
@.str.1 = [2 x i8] c".\00"
@.str.2 = [3 x i8] c"..\00"
@S_IFDIR = global i32 0
@stderr = global i32 0
@.str.3 = [35 x i8] c"Error: Couldn't open directory %s\0A\00"
@.str.4 = [32 x i8] c"Error: Failed executing doFunc\0A\00"
define void @descendAndDo(i32* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i32 %6, i8* %7, i32 (...)* %8) {
%10 = alloca i32*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i8*
%18 = alloca i32 (...)*
%19 = alloca %struct.dirent*
%20 = alloca i8*
%21 = alloca i64
%22 = alloca i64
%23 = alloca %struct.stat
%24 = alloca i32*
store i32* %0, i32** %10
store i8* %1, i8** %11
store i8* %2, i8** %12
store i8* %3, i8** %13
store i8* %4, i8** %14
store i8* %5, i8** %15
store i32 %6, i32* %16
store i8* %7, i8** %17
store i32 (...)* %8, i32 (...)** %18
%25 = load i32, i32* @MAXPATHLEN
%26 = zext i32 %25 to i64
%27 = call i8* @llvm.stacksave()
store i8* %27, i8** %20
%28 = alloca i8, i64 %26
store i64 %26, i64* %21
%29 = load i32, i32* @MAXPATHLEN
%30 = zext i32 %29 to i64
%31 = alloca i8, i64 %30
store i64 %30, i64* %22
br label %32
32: ; preds = %108, %9
%33 = load i32*, i32** %10
%34 = call %struct.dirent* @readdir(i32* %33)
store %struct.dirent* %34, %struct.dirent** %19
%35 = icmp ne %struct.dirent* %34, null
br i1 %35, label %36, label %109
36: ; preds = %32
%37 = load i8*, i8** %11
%38 = load %struct.dirent*, %struct.dirent** %19
%39 = getelementptr inbounds %struct.dirent, %struct.dirent* %38, i32 0, i32 0
%40 = load i8*, i8** %39
%41 = call i32 @sprintf(i8* %28, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %37, i8* %40)
%42 = load i8*, i8** %12
%43 = load %struct.dirent*, %struct.dirent** %19
%44 = getelementptr inbounds %struct.dirent, %struct.dirent* %43, i32 0, i32 0
%45 = load i8*, i8** %44
%46 = call i32 @sprintf(i8* %31, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %42, i8* %45)
%47 = load %struct.dirent*, %struct.dirent** %19
%48 = getelementptr inbounds %struct.dirent, %struct.dirent* %47, i32 0, i32 0
%49 = load i8*, i8** %48
%50 = call i64 @strcmp(i8* %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %108
52: ; preds = %36
%53 = load %struct.dirent*, %struct.dirent** %19
%54 = getelementptr inbounds %struct.dirent, %struct.dirent* %53, i32 0, i32 0
%55 = load i8*, i8** %54
%56 = call i64 @strcmp(i8* %55, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %108
58: ; preds = %52
%59 = call i32 @stat(i8* %28, %struct.stat* %23)
%60 = getelementptr inbounds %struct.stat, %struct.stat* %23, i32 0, i32 0
%61 = load i32, i32* %60
%62 = load i32, i32* @S_IFDIR
%63 = and i32 %61, %62
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %93
65: ; preds = %58
%66 = call i32* @opendir(i8* %28)
store i32* %66, i32** %24
%67 = icmp eq i32* %66, null
br i1 %67, label %68, label %72
68: ; preds = %65
%69 = load i32, i32* @stderr
%70 = call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i8* %28)
%71 = call i32 @exit(i32 1)
unreachable
72: ; preds = %65
%73 = load i32 (...)*, i32 (...)** %18
%74 = load i8*, i8** %13
%75 = load i8*, i8** %15
%76 = load i32, i32* %16
%77 = load i8*, i8** %17
%78 = bitcast i32 (...)* %73 to i32 (i8*, i8*, i8*, i8*, i32, i8*, ...)*
%79 = call i32 (i8*, i8*, i8*, i8*, i32, i8*, ...) %78(i8* %28, i8* %31, i8* %74, i8* %75, i32 %76, i8* %77)
%80 = icmp ne i32 %79, 0
br i1 %80, label %85, label %81
81: ; preds = %72
%82 = load i32, i32* @stderr
%83 = call i32 (i32, i8*, ...) @fprintf(i32 %82, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%84 = call i32 @exit(i32 1)
unreachable
85: ; preds = %72
%86 = load i32*, i32** %24
%87 = load i8*, i8** %13
%88 = load i8*, i8** %14
%89 = load i8*, i8** %15
%90 = load i32, i32* %16
%91 = load i8*, i8** %17
%92 = load i32 (...)*, i32 (...)** %18
br label %107
93: ; preds = %58
%94 = load i32 (...)*, i32 (...)** %18
%95 = load i8*, i8** %13
%96 = load i8*, i8** %15
%97 = load i32, i32* %16
%98 = load i8*, i8** %17
%99 = bitcast i32 (...)* %94 to i32 (i8*, i8*, i8*, i8*, i32, i8*, ...)*
%100 = call i32 (i8*, i8*, i8*, i8*, i32, i8*, ...) %99(i8* %28, i8* %31, i8* %95, i8* %96, i32 %97, i8* %98)
%101 = icmp ne i32 %100, 0
br i1 %101, label %106, label %102
102: ; preds = %93
%103 = load i32, i32* @stderr
%104 = call i32 (i32, i8*, ...) @fprintf(i32 %103, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%105 = call i32 @exit(i32 1)
unreachable
106: ; preds = %93
br label %107
107: ; preds = %106, %85
br label %108
108: ; preds = %107, %52, %36
br label %32
109: ; preds = %32
%110 = load i32*, i32** %10
%111 = call i32 @closedir(i32* %110)
%112 = load i8*, i8** %20
ret void
}

LLVM IR (-O2):
%struct.stat = type { i32 }
%struct.dirent = type { i8* }
@MAXPATHLEN = global i32 0
@.str = [6 x i8] c"%s/%s\00"
@.str.1 = [2 x i8] c".\00"
@.str.2 = [3 x i8] c"..\00"
@S_IFDIR = global i32 0
@stderr = global i32 0
@.str.3 = [35 x i8] c"Error: Couldn't open directory %s\0A\00"
@.str.4 = [32 x i8] c"Error: Failed executing doFunc\0A\00"
define void @descendAndDo(i32* %0, i8* %1, i8* %2, i8* %3, i8* nocapture readnone %4, i8* %5, i32 %6, i8* %7, i32 (...)* nocapture %8) {
%10 = alloca %struct.stat
%11 = load i32, i32* @MAXPATHLEN
%12 = zext i32 %11 to i64
%13 = alloca i8, i64 %12
%14 = alloca i8, i64 %12
%15 = bitcast %struct.stat* %10 to i8*
%16 = call %struct.dirent* @readdir(i32* %0)
%17 = icmp eq %struct.dirent* %16, null
br i1 %17, label %66, label %18
18: ; preds = %9
%19 = getelementptr inbounds %struct.stat, %struct.stat* %10, i64 0, i32 0
%20 = bitcast i32 (...)* %8 to i32 (i8*, i8*, i8*, i8*, i32, i8*, ...)*
br label %21
21: ; preds = %18, %63
%22 = phi %struct.dirent* [ %16, %18 ], [ %64, %63 ]
%23 = getelementptr inbounds %struct.dirent, %struct.dirent* %22, i64 0, i32 0
%24 = load i8*, i8** %23
%25 = call i32 @sprintf(i8* %13, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %24)
%26 = load i8*, i8** %23
%27 = call i32 @sprintf(i8* %14, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %2, i8* %26)
%28 = load i8*, i8** %23
%29 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %63, label %31
31: ; preds = %21
%32 = load i8*, i8** %23
%33 = call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %63, label %35
35: ; preds = %31
%36 = call i32 @stat(i8* %13, %struct.stat* %10)
%37 = load i32, i32* %19
%38 = load i32, i32* @S_IFDIR
%39 = and i32 %38, %37
%40 = icmp eq i32 %39, 0
br i1 %40, label %56, label %41
41: ; preds = %35
%42 = call i32* @opendir(i8* %13)
%43 = icmp eq i32* %42, null
br i1 %43, label %44, label %48
44: ; preds = %41
%45 = load i32, i32* @stderr
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i8* %13)
%47 = call i32 @exit(i32 1)
unreachable
48: ; preds = %41
%49 = call i32 (i8*, i8*, i8*, i8*, i32, i8*, ...) %20(i8* %13, i8* %14, i8* %3, i8* %5, i32 %6, i8* %7)
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %55
51: ; preds = %48
%52 = load i32, i32* @stderr
%53 = call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%54 = call i32 @exit(i32 1)
unreachable
55: ; preds = %48
br label %63
56: ; preds = %35
%57 = call i32 (i8*, i8*, i8*, i8*, i32, i8*, ...) %20(i8* %13, i8* %14, i8* %3, i8* %5, i32 %6, i8* %7)
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %63
59: ; preds = %56
%60 = load i32, i32* @stderr
%61 = call i32 (i32, i8*, ...) @fprintf(i32 %60, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%62 = call i32 @exit(i32 1)
unreachable
63: ; preds = %55, %56, %31, %21
%64 = call %struct.dirent* @readdir(i32* %0)
%65 = icmp eq %struct.dirent* %64, null
br i1 %65, label %66, label %21
66: ; preds = %63, %9
%67 = call i32 @closedir(i32* %0)
ret void
}