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

/* Variables and functions */
int SQLITE_OK;
scalar_t__ S_ISREG(int /*<<< orphan*/);
int /*<<< orphan*/ closedir(int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ *opendir(char *);
struct dirent *readdir(int /*<<< orphan*/ *);
int /*<<< orphan*/ remove(char *);
int /*<<< orphan*/ snprintf(char *, int, char *, char *, char *);
int /*<<< orphan*/ sqlite3_close(int /*<<< orphan*/ *);
char *sqlite3_errmsg(int /*<<< orphan*/ *);
int sqlite3_exec(int /*<<< orphan*/ *, char *, int /*<<< orphan*/ *,
                 int /*<<< orphan*/, char **);
int /*<<< orphan*/ sqlite3_free(char *);
int sqlite3_open(char *, int /*<<< orphan*/ **);
int /*<<< orphan*/ stat(char *, struct stat *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
int destroy_db() {
  char *zErrMsg = 0;
  char *sql;
  sqlite3 *db = NULL;
  int rc;
  rc = sqlite3_open("DataBase_facificator.db", &db);
  if (rc) {
    fprintf(stderr, "Can't open database: %s\n", sqlite3_errmsg(db));
  } else {
    fprintf(stderr, "Opened database successfully\n");
  }
  sql = "DELETE FROM FACIFICATOR";
  rc = sqlite3_exec(db, sql, NULL, 0, &zErrMsg);
  if (rc != SQLITE_OK) {
    fprintf(stderr, "SQL error: %s\n", zErrMsg);
    sqlite3_free(zErrMsg);
  } else {
    fprintf(stdout, "Successfull destroy...\n\n");
  }
  sqlite3_close(db);
  DIR *directory;
  struct dirent *entry;
  struct stat file_stat;
  char buffer[1024] = {0};
  directory = opendir("Pictures/");
  if (directory == NULL) {
    fprintf(stderr, "cannot open directory %s\n", "Pictures/");
    return 0;
  }
  while ((entry = readdir(directory)) != NULL) {
    if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) {
      continue;
    }
    snprintf(buffer, 1024, "%s/%s", "Pictures/", entry->d_name);
    stat(buffer, &file_stat);
    if (S_ISREG(file_stat.st_mode)) {
      remove(buffer);
    }
  }
  closedir(directory);
  return 0;
}


x86 assembly (clang, -O0):
<destroy_db>:
push   %rbp
mov    %rsp,%rbp
sub    $0x450,%rsp
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x20(%rbp)
lea    0xdee(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   1050 <sqlite3_open@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     125c <destroy_db+0x6c>
mov    0x2da9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x444(%rbp)
mov    -0x20(%rbp),%rdi
call   10a0 <sqlite3_errmsg@plt>
mov    -0x444(%rbp),%edi
mov    %rax,%rdx
lea    0xdc8(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
jmp    1273 <destroy_db+0x83>
mov    0x2d75(%rip),%rax
mov    (%rax),%edi
lea    0xdc5(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
lea    0xdd5(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
xor    %ecx,%ecx
lea    -0x10(%rbp),%r8
call   1040 <sqlite3_exec@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    0x2d46(%rip),%rcx
cmp    (%rcx),%eax
je     12d3 <destroy_db+0xe3>
mov    0x2d27(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xda9(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1110 <sqlite3_free@plt>
jmp    12ea <destroy_db+0xfa>
mov    0x2cf6(%rip),%rax
mov    (%rax),%edi
lea    0xd93(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    -0x20(%rbp),%rdi
call   10e0 <sqlite3_close@plt>
lea    -0x440(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
lea    0xd82(%rip),%rdi
call   1060 <opendir@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    134b <destroy_db+0x15b>
mov    0x2cb0(%rip),%rax
mov    (%rax),%edi
lea    0xd68(%rip),%rsi
lea    0xd57(%rip),%rdx
mov    $0x0,%al
call   10c0 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    140f <destroy_db+0x21f>
jmp    1350 <destroy_db+0x160>
mov    -0x30(%rbp),%rdi
call   1100 <readdir@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
je     13ff <destroy_db+0x20f>
mov    -0x38(%rbp),%rax
mov    (%rax),%rdi
lea    0xd3f(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
je     13a1 <destroy_db+0x1b1>
mov    -0x38(%rbp),%rax
mov    (%rax),%rdi
lea    0xd21(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    13a6 <destroy_db+0x1b6>
jmp    1350 <destroy_db+0x160>
lea    -0x440(%rbp),%rdi
mov    -0x38(%rbp),%rax
mov    (%rax),%r8
mov    $0x400,%esi
lea    0xcf6(%rip),%rdx
lea    0xcc8(%rip),%rcx
call   1070 <snprintf@plt>
lea    -0x440(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   10d0 <stat@plt>
mov    -0x40(%rbp),%edi
call   10f0 <S_ISREG@plt>
cmp    $0x0,%rax
je     13fa <destroy_db+0x20a>
lea    -0x440(%rbp),%rdi
call   1030 <remove@plt>
jmp    1350 <destroy_db+0x160>
mov    -0x30(%rbp),%rdi
call   1090 <closedir@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x450,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<destroy_db>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x428,%rsp
movq   $0x0,0x18(%rsp)
movq   $0x0,0x8(%rsp)
lea    0xde6(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1050 <sqlite3_open@plt>
mov    0x2dad(%rip),%rbp
mov    0x0(%rbp),%ebx
test   %eax,%eax
je     1251 <destroy_db+0x61>
mov    0x8(%rsp),%rdi
call   10a0 <sqlite3_errmsg@plt>
lea    0xdd5(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
xor    %eax,%eax
call   10c0 <fprintf@plt>
jmp    1261 <destroy_db+0x71>
lea    0xdd9(%rip),%rsi
mov    %ebx,%edi
xor    %eax,%eax
call   10c0 <fprintf@plt>
mov    0x8(%rsp),%rdi
lea    0xde2(%rip),%rsi
lea    0x18(%rsp),%r8
xor    %edx,%edx
xor    %ecx,%ecx
call   1040 <sqlite3_exec@plt>
mov    0x2d66(%rip),%rcx
cmp    (%rcx),%eax
jne    129f <destroy_db+0xaf>
mov    0x2d43(%rip),%rax
mov    (%rax),%edi
lea    0xde0(%rip),%rsi
xor    %eax,%eax
call   10c0 <fprintf@plt>
jmp    12bf <destroy_db+0xcf>
mov    0x0(%rbp),%edi
mov    0x18(%rsp),%rdx
lea    0xdb9(%rip),%rsi
xor    %eax,%eax
call   10c0 <fprintf@plt>
mov    0x18(%rsp),%rdi
call   1110 <sqlite3_free@plt>
mov    0x8(%rsp),%rdi
call   10e0 <sqlite3_close@plt>
lea    0x20(%rsp),%rdi
mov    $0x400,%edx
xor    %esi,%esi
call   1080 <memset@plt>
lea    0xdae(%rip),%rdi
call   1060 <opendir@plt>
test   %rax,%rax
je     139e <destroy_db+0x1ae>
mov    %rax,%rbx
mov    %rax,%rdi
call   1100 <readdir@plt>
test   %rax,%rax
je     1394 <destroy_db+0x1a4>
mov    %rax,%r13
lea    0xda7(%rip),%r14
lea    0xd9f(%rip),%r15
lea    0x20(%rsp),%rbp
lea    0x10(%rsp),%r12
jmp    1330 <destroy_db+0x140>
mov    %rbx,%rdi
call   1100 <readdir@plt>
mov    %rax,%r13
test   %rax,%rax
je     1394 <destroy_db+0x1a4>
mov    0x0(%r13),%rdi
mov    %r14,%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1320 <destroy_db+0x130>
mov    0x0(%r13),%rdi
mov    %r15,%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1320 <destroy_db+0x130>
mov    0x0(%r13),%r8
mov    %rbp,%rdi
mov    $0x400,%esi
lea    0xd51(%rip),%rdx
lea    0xd23(%rip),%rcx
call   1070 <snprintf@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
call   10d0 <stat@plt>
mov    0x10(%rsp),%edi
call   10f0 <S_ISREG@plt>
test   %rax,%rax
je     1320 <destroy_db+0x130>
mov    %rbp,%rdi
call   1030 <remove@plt>
jmp    1320 <destroy_db+0x130>
mov    %rbx,%rdi
call   1090 <closedir@plt>
jmp    13b6 <destroy_db+0x1c6>
mov    0x0(%rbp),%edi
lea    0xcf1(%rip),%rsi
lea    0xce0(%rip),%rdx
xor    %eax,%eax
call   10c0 <fprintf@plt>
xor    %eax,%eax
add    $0x428,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.dirent = type { i8* }
%struct.stat = type { i32 }
@.str = [24 x i8] c"DataBase_facificator.db\00"
@stderr = global i32 0
@.str.1 = [25 x i8] c"Can't open database: %s\0A\00"
@.str.2 = [30 x i8] c"Opened database successfully\0A\00"
@.str.3 = [24 x i8] c"DELETE FROM FACIFICATOR\00"
@SQLITE_OK = global i32 0
@.str.4 = [15 x i8] c"SQL error: %s\0A\00"
@stdout = global i32 0
@.str.5 = [25 x i8] c"Successfull destroy...\0A\0A\00"
@.str.6 = [10 x i8] c"Pictures/\00"
@.str.7 = [26 x i8] c"cannot open directory %s\0A\00"
@.str.8 = [2 x i8] c".\00"
@.str.9 = [3 x i8] c"..\00"
@.str.10 = [6 x i8] c"%s/%s\00"
define i32 @destroy_db() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32*
%7 = alloca %struct.dirent*
%8 = alloca %struct.stat
%9 = alloca [1024 x i8]
store i8* null, i8** %2
store i32* null, i32** %4
%10 = call i32 @sqlite3_open(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32** %4)
store i32 %10, i32* %5
%11 = load i32, i32* %5
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %0
%14 = load i32, i32* @stderr
%15 = load i32*, i32** %4
%16 = call i8* @sqlite3_errmsg(i32* %15)
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* %16)
br label %21
18: ; preds = %0
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
br label %21
21: ; preds = %18, %13
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i8** %3
%22 = load i32*, i32** %4
%23 = load i8*, i8** %3
%24 = call i32 @sqlite3_exec(i32* %22, i8* %23, i32* null, i32 0, i8** %2)
store i32 %24, i32* %5
%25 = load i32, i32* %5
%26 = load i32, i32* @SQLITE_OK
%27 = icmp ne i32 %25, %26
br i1 %27, label %28, label %34
28: ; preds = %21
%29 = load i32, i32* @stderr
%30 = load i8*, i8** %2
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %30)
%32 = load i8*, i8** %2
%33 = call i32 @sqlite3_free(i8* %32)
br label %37
34: ; preds = %21
%35 = load i32, i32* @stdout
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
br label %37
37: ; preds = %34, %28
%38 = load i32*, i32** %4
%39 = call i32 @sqlite3_close(i32* %38)
%40 = bitcast [1024 x i8]* %9 to i8*
%41 = call i32* @opendir(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
store i32* %41, i32** %6
%42 = load i32*, i32** %6
%43 = icmp eq i32* %42, null
br i1 %43, label %44, label %47
44: ; preds = %37
%45 = load i32, i32* @stderr
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %1
br label %84
47: ; preds = %37
br label %48
48: ; preds = %80, %64, %47
%49 = load i32*, i32** %6
%50 = call %struct.dirent* @readdir(i32* %49)
store %struct.dirent* %50, %struct.dirent** %7
%51 = icmp ne %struct.dirent* %50, null
br i1 %51, label %52, label %81
52: ; preds = %48
%53 = load %struct.dirent*, %struct.dirent** %7
%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 ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %64, label %58
58: ; preds = %52
%59 = load %struct.dirent*, %struct.dirent** %7
%60 = getelementptr inbounds %struct.dirent, %struct.dirent* %59, i32 0, i32 0
%61 = load i8*, i8** %60
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %58, %52
br label %48
65: ; preds = %58
%66 = getelementptr inbounds [1024 x i8], [1024 x i8]* %9, i64 0, i64 0
%67 = load %struct.dirent*, %struct.dirent** %7
%68 = getelementptr inbounds %struct.dirent, %struct.dirent* %67, i32 0, i32 0
%69 = load i8*, i8** %68
%70 = call i32 @snprintf(i8* %66, i32 1024, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %69)
%71 = getelementptr inbounds [1024 x i8], [1024 x i8]* %9, i64 0, i64 0
%72 = call i32 @stat(i8* %71, %struct.stat* %8)
%73 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%74 = load i32, i32* %73
%75 = call i64 @S_ISREG(i32 %74)
%76 = icmp ne i64 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %65
%78 = getelementptr inbounds [1024 x i8], [1024 x i8]* %9, i64 0, i64 0
%79 = call i32 @remove(i8* %78)
br label %80
80: ; preds = %77, %65
br label %48
81: ; preds = %48
%82 = load i32*, i32** %6
%83 = call i32 @closedir(i32* %82)
store i32 0, i32* %1
br label %84
84: ; preds = %81, %44
%85 = load i32, i32* %1
ret i32 %85
}

LLVM IR (-O2):
%struct.stat = type { i32 }
%struct.dirent = type { i8* }
@.str = [24 x i8] c"DataBase_facificator.db\00"
@stderr = global i32 0
@.str.1 = [25 x i8] c"Can't open database: %s\0A\00"
@.str.2 = [30 x i8] c"Opened database successfully\0A\00"
@.str.3 = [24 x i8] c"DELETE FROM FACIFICATOR\00"
@SQLITE_OK = global i32 0
@.str.4 = [15 x i8] c"SQL error: %s\0A\00"
@stdout = global i32 0
@.str.5 = [25 x i8] c"Successfull destroy...\0A\0A\00"
@.str.6 = [10 x i8] c"Pictures/\00"
@.str.7 = [26 x i8] c"cannot open directory %s\0A\00"
@.str.8 = [2 x i8] c".\00"
@.str.9 = [3 x i8] c"..\00"
@.str.10 = [6 x i8] c"%s/%s\00"
define i32 @destroy_db() {
%1 = alloca i8*
%2 = alloca i32*
%3 = alloca %struct.stat
%4 = alloca [1024 x i8]
%5 = bitcast i8** %1 to i8*
store i8* null, i8** %1
%6 = bitcast i32** %2 to i8*
store i32* null, i32** %2
%7 = call i32 @sqlite3_open(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32** %2)
%8 = icmp eq i32 %7, 0
%9 = load i32, i32* @stderr
br i1 %8, label %14, label %10
10: ; preds = %0
%11 = load i32*, i32** %2
%12 = call i8* @sqlite3_errmsg(i32* %11)
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* %12)
br label %16
14: ; preds = %0
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
br label %16
16: ; preds = %14, %10
%17 = load i32*, i32** %2
%18 = call i32 @sqlite3_exec(i32* %17, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i32* null, i32 0, i8** %1)
%19 = load i32, i32* @SQLITE_OK
%20 = icmp eq i32 %18, %19
br i1 %20, label %27, label %21
21: ; preds = %16
%22 = load i32, i32* @stderr
%23 = load i8*, i8** %1
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %23)
%25 = load i8*, i8** %1
%26 = call i32 @sqlite3_free(i8* %25)
br label %30
27: ; preds = %16
%28 = load i32, i32* @stdout
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
br label %30
30: ; preds = %27, %21
%31 = load i32*, i32** %2
%32 = call i32 @sqlite3_close(i32* %31)
%33 = bitcast %struct.stat* %3 to i8*
%34 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%35 = call i32* @opendir(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%36 = icmp eq i32* %35, null
br i1 %36, label %42, label %37
37: ; preds = %30
%38 = call %struct.dirent* @readdir(i32* %35)
%39 = icmp eq %struct.dirent* %38, null
br i1 %39, label %67, label %40
40: ; preds = %37
%41 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
br label %45
42: ; preds = %30
%43 = load i32, i32* @stderr
%44 = call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %69
45: ; preds = %40, %55
%46 = phi %struct.dirent* [ %38, %40 ], [ %56, %55 ]
%47 = getelementptr inbounds %struct.dirent, %struct.dirent* %46, i64 0, i32 0
%48 = load i8*, i8** %47
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %55, label %51
51: ; preds = %45
%52 = load i8*, i8** %47
%53 = call i64 @strcmp(i8* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %58, %65, %45, %51
%56 = call %struct.dirent* @readdir(i32* %35)
%57 = icmp eq %struct.dirent* %56, null
br i1 %57, label %67, label %45
58: ; preds = %51
%59 = load i8*, i8** %47
%60 = call i32 @snprintf(i8* %34, i32 1024, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %59)
%61 = call i32 @stat(i8* %34, %struct.stat* %3)
%62 = load i32, i32* %41
%63 = call i64 @S_ISREG(i32 %62)
%64 = icmp eq i64 %63, 0
br i1 %64, label %55, label %65
65: ; preds = %58
%66 = call i32 @remove(i8* %34)
br label %55
67: ; preds = %55, %37
%68 = call i32 @closedir(i32* %35)
br label %69
69: ; preds = %67, %42
ret i32 0
}