#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 const *d_name;
  scalar_t__ d_type;
};
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
scalar_t__ DT_DIR;
int /*<<< orphan*/ closedir(int /*<<< orphan*/ *);
scalar_t__ errno;
int /*<<< orphan*/ free(char *);
char *malloc(int);
int /*<<< orphan*/ *opendir(char *);
int /*<<< orphan*/ printf(char *, char *);
struct dirent *readdir(int /*<<< orphan*/ *);
int rmdir(char *);
int /*<<< orphan*/ strcat(char *, char const *);
scalar_t__ strcmp(char *, char *);
char *strerror(scalar_t__);
int strlen(char const *);
int unlink(char *);
int deleteR(DIR *d, const char *path) {
  errno = 0;
  while (errno == 0) {
    struct dirent *ent = readdir(d);
    if (ent == NULL) {
      break;
    }
    char *name =
        malloc(sizeof(char) * (strlen(path) + 1 + strlen(ent->d_name) + 1));
    name[0] = '\0';
    strcat(name, path);
    strcat(name, "/");
    strcat(name, ent->d_name);
    if (ent->d_type == DT_DIR) {
      DIR *dir = opendir(name);
      if (dir == NULL) {
        printf("couldn't open directory %s\n", name);
        free(name);
        printf("error: %s\n", strerror(errno));
        return -1;
      }
      if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) {
        free(name);
        closedir(dir);
        continue;
      }
      int err = deleteR(dir, name);
      closedir(dir);
      if (err == -1) {
        free(name);
        printf("couldn't delete contents of directory %s\n", name);
        return -1;
      }
      if (rmdir(name) == -1) {
        free(name);
        printf("couldn't delete directory %s\n", name);
        printf("error: %s\n", strerror(errno));
        return -1;
      }
    } else if (unlink(name) == -1) {
      printf("couldn't delete file %s\n", name);
      free(name);
      printf("error: %s\n", strerror(errno));
      return -1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<deleteR>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    0x2df1(%rip),%rax
movq   $0x0,(%rax)
mov    0x2de3(%rip),%rax
cmpq   $0x0,(%rax)
jne    144b <deleteR+0x27b>
mov    -0x10(%rbp),%rdi
call   10c0 <readdir@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    121c <deleteR+0x4c>
jmp    144b <deleteR+0x27b>
mov    -0x18(%rbp),%rdi
call   1080 <strlen@plt>
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
call   1080 <strlen@plt>
mov    %eax,%ecx
mov    -0x38(%rbp),%eax
add    %ecx,%eax
add    $0x1,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   10d0 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x28(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   10e0 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    0xd8f(%rip),%rsi
call   10e0 <strcat@plt>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    (%rax),%rsi
call   10e0 <strcat@plt>
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x2d4b(%rip),%rcx
cmp    (%rcx),%rax
jne    13ec <deleteR+0x21c>
mov    -0x28(%rbp),%rdi
call   1060 <opendir@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    12f9 <deleteR+0x129>
mov    -0x28(%rbp),%rsi
lea    0xd41(%rip),%rdi
call   1090 <printf@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    0x2d02(%rip),%rax
mov    (%rax),%rdi
call   10f0 <strerror@plt>
mov    %rax,%rsi
lea    0xd36(%rip),%rdi
call   1090 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1452 <deleteR+0x282>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
lea    0xd23(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
je     1333 <deleteR+0x163>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
lea    0xd05(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    134a <deleteR+0x17a>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   10a0 <closedir@plt>
jmp    11ee <deleteR+0x1e>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1050 <deleteR@plt>
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%rdi
call   10a0 <closedir@plt>
cmpl   $0xffffffff,-0x34(%rbp)
jne    1392 <deleteR+0x1c2>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rsi
lea    0xcab(%rip),%rdi
call   1090 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1452 <deleteR+0x282>
mov    -0x28(%rbp),%rdi
call   1070 <rmdir@plt>
cmp    $0xffffffff,%eax
jne    13e7 <deleteR+0x217>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rsi
lea    0xc9e(%rip),%rdi
call   1090 <printf@plt>
mov    0x2c14(%rip),%rax
mov    (%rax),%rdi
call   10f0 <strerror@plt>
mov    %rax,%rsi
lea    0xc48(%rip),%rdi
call   1090 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1452 <deleteR+0x282>
jmp    1446 <deleteR+0x276>
mov    -0x28(%rbp),%rdi
call   1040 <unlink@plt>
cmp    $0xffffffff,%eax
jne    1441 <deleteR+0x271>
mov    -0x28(%rbp),%rsi
lea    0xc6b(%rip),%rdi
call   1090 <printf@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    0x2bba(%rip),%rax
mov    (%rax),%rdi
call   10f0 <strerror@plt>
mov    %rax,%rsi
lea    0xbee(%rip),%rdi
call   1090 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1452 <deleteR+0x282>
jmp    1446 <deleteR+0x276>
jmp    11ee <deleteR+0x1e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<deleteR>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%r12
mov    0x2df0(%rip),%rbx
movq   $0x0,(%rbx)
jmp    121b <deleteR+0x4b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
call   1040 <unlink@plt>
cmp    $0xffffffff,%eax
je     133e <deleteR+0x16e>
cmpq   $0x0,(%rbx)
jne    137b <deleteR+0x1ab>
mov    %r12,%rdi
call   10c0 <readdir@plt>
xor    %r15d,%r15d
test   %rax,%rax
je     137b <deleteR+0x1ab>
mov    %rax,%r13
mov    %r14,%rdi
call   1080 <strlen@plt>
mov    %eax,%ebp
mov    0x0(%r13),%rdi
call   1080 <strlen@plt>
lea    (%rax,%rbp,1),%edi
add    $0x2,%edi
call   10d0 <malloc@plt>
mov    %rax,%rbp
movb   $0x0,(%rax)
mov    %rax,%rdi
mov    %r14,%rsi
call   10e0 <strcat@plt>
mov    %rbp,%rdi
lea    0xd95(%rip),%rsi
call   10e0 <strcat@plt>
mov    0x0(%r13),%rsi
mov    %rbp,%rdi
call   10e0 <strcat@plt>
mov    0x8(%r13),%rax
mov    0x2d59(%rip),%rcx
cmp    (%rcx),%rax
jne    1200 <deleteR+0x30>
mov    %r14,%r15
mov    %r12,%r14
mov    %rbp,%rdi
call   1060 <opendir@plt>
test   %rax,%rax
je     1347 <deleteR+0x177>
mov    %rax,%r12
mov    0x0(%r13),%rdi
lea    0xd75(%rip),%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1320 <deleteR+0x150>
mov    0x0(%r13),%rdi
lea    0xd5f(%rip),%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1320 <deleteR+0x150>
mov    %r12,%rdi
mov    %rbp,%rsi
call   1050 <deleteR@plt>
mov    %eax,%r13d
mov    %r12,%rdi
call   10a0 <closedir@plt>
mov    %rbp,%rdi
cmp    $0xffffffff,%r13d
je     138d <deleteR+0x1bd>
call   1070 <rmdir@plt>
cmp    $0xffffffff,%eax
mov    %r14,%r12
mov    %r15,%r14
mov    $0x0,%r15d
jne    1211 <deleteR+0x41>
jmp    139e <deleteR+0x1ce>
cs nopw 0x0(%rax,%rax,1)
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   10a0 <closedir@plt>
mov    %r14,%r12
mov    %r15,%r14
xor    %r15d,%r15d
jmp    1211 <deleteR+0x41>
lea    0xd2f(%rip),%rdi
jmp    134e <deleteR+0x17e>
lea    0xcb4(%rip),%rdi
mov    %rbp,%rsi
call   1090 <printf@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    (%rbx),%rdi
call   10f0 <strerror@plt>
lea    0xcb1(%rip),%rdi
mov    %rax,%rsi
call   1090 <printf@plt>
mov    $0xffffffff,%r15d
mov    %r15d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
call   1030 <free@plt>
lea    0xc93(%rip),%rdi
mov    %rbp,%rsi
jmp    1370 <deleteR+0x1a0>
mov    %rbp,%rdi
call   1030 <free@plt>
lea    0xca9(%rip),%rdi
mov    %rbp,%rsi
call   1090 <printf@plt>
jmp    135e <deleteR+0x18e>

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

LLVM IR (-O2):
%struct.dirent = type { i8*, i64 }
@errno = global i64 0
@.str = [2 x i8] c"/\00"
@DT_DIR = global i64 0
@.str.1 = [28 x i8] c"couldn't open directory %s\0A\00"
@.str.2 = [11 x i8] c"error: %s\0A\00"
@.str.3 = [2 x i8] c".\00"
@.str.4 = [3 x i8] c"..\00"
@.str.5 = [42 x i8] c"couldn't delete contents of directory %s\0A\00"
@.str.6 = [30 x i8] c"couldn't delete directory %s\0A\00"
@.str.7 = [25 x i8] c"couldn't delete file %s\0A\00"
define i32 @deleteR(i32* %0, i8* %1) {
store i64 0, i64* @errno
br label %6
3: ; preds = %58, %49, %67
%4 = load i64, i64* @errno
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %70
6: ; preds = %2, %3
%7 = tail call %struct.dirent* @readdir(i32* %0)
%8 = icmp eq %struct.dirent* %7, null
br i1 %8, label %70, label %9
9: ; preds = %6
%10 = tail call i32 @strlen(i8* %1)
%11 = getelementptr inbounds %struct.dirent, %struct.dirent* %7, i64 0, i32 0
%12 = load i8*, i8** %11
%13 = tail call i32 @strlen(i8* %12)
%14 = add i32 %10, 2
%15 = add i32 %14, %13
%16 = tail call i8* @malloc(i32 %15)
store i8 0, i8* %16
%17 = tail call i32 @strcat(i8* %16, i8* %1)
%18 = tail call i32 @strcat(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%19 = load i8*, i8** %11
%20 = tail call i32 @strcat(i8* %16, i8* %19)
%21 = getelementptr inbounds %struct.dirent, %struct.dirent* %7, i64 0, i32 1
%22 = load i64, i64* %21
%23 = load i64, i64* @DT_DIR
%24 = icmp eq i64 %22, %23
br i1 %24, label %25, label %58
25: ; preds = %9
%26 = tail call i32* @opendir(i8* %16)
%27 = icmp eq i32* %26, null
br i1 %27, label %28, label %34
28: ; preds = %25
%29 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* %16)
%30 = tail call i32 @free(i8* %16)
%31 = load i64, i64* @errno
%32 = tail call i8* @strerror(i64 %31)
%33 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %32)
br label %70
34: ; preds = %25
%35 = load i8*, i8** %11
%36 = tail call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %67, label %38
38: ; preds = %34
%39 = load i8*, i8** %11
%40 = tail call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %67, label %42
42: ; preds = %38
%43 = tail call i32 @deleteR(i32* %26, i8* %16)
%44 = tail call i32 @closedir(i32* %26)
%45 = icmp eq i32 %43, -1
br i1 %45, label %46, label %49
46: ; preds = %42
%47 = tail call i32 @free(i8* %16)
%48 = tail call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), i8* %16)
br label %70
49: ; preds = %42
%50 = tail call i32 @rmdir(i8* %16)
%51 = icmp eq i32 %50, -1
br i1 %51, label %52, label %3
52: ; preds = %49
%53 = tail call i32 @free(i8* %16)
%54 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %16)
%55 = load i64, i64* @errno
%56 = tail call i8* @strerror(i64 %55)
%57 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %56)
br label %70
58: ; preds = %9
%59 = tail call i32 @unlink(i8* %16)
%60 = icmp eq i32 %59, -1
br i1 %60, label %61, label %3
61: ; preds = %58
%62 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8* %16)
%63 = tail call i32 @free(i8* %16)
%64 = load i64, i64* @errno
%65 = tail call i8* @strerror(i64 %64)
%66 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %65)
br label %70
67: ; preds = %34, %38
%68 = tail call i32 @free(i8* %16)
%69 = tail call i32 @closedir(i32* %26)
br label %3
70: ; preds = %6, %3, %28, %46, %52, %61
%71 = phi i32 [ -1, %61 ], [ -1, %52 ], [ -1, %46 ], [ -1, %28 ], [ 0, %3 ], [ 0, %6 ]
ret i32 %71
}