#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 */

/* Variables and functions */
int /*<<< orphan*/ addFailsIfDirectoryNotExistsAndNotWriteable();
int /*<<< orphan*/ addRecoversIfDirectoryDoesntExist();
int /*<<< orphan*/ addTestWithOverwrites();
int /*<<< orphan*/ createFailsIfPathNotWritable();
int /*<<< orphan*/ createTest();
int /*<<< orphan*/ evictionTest();
int /*<<< orphan*/ loadAndAddWithCorruptCacheDataFileTest();
int /*<<< orphan*/ mkdir(char *, int);
int /*<<< orphan*/ recursiveDeletePath(char *);
int /*<<< orphan*/ simpleAddTest();
int /*<<< orphan*/ testLookupSetsAccessTimeAndReplacesEarliestAccessed();
int main(int argc, char **argv) {
  mkdir("/tmp/dc_test", 0777);
  createTest();
  createFailsIfPathNotWritable();
  loadAndAddWithCorruptCacheDataFileTest();
  simpleAddTest();
  addTestWithOverwrites();
  addRecoversIfDirectoryDoesntExist();
  addFailsIfDirectoryNotExistsAndNotWriteable();
  testLookupSetsAccessTimeAndReplacesEarliestAccessed();
  evictionTest();
  recursiveDeletePath("/tmp/dc_test");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe33(%rip),%rdi
mov    $0x1ff,%esi
call   1030 <mkdir@plt>
mov    $0x0,%al
call   1090 <createTest@plt>
mov    $0x0,%al
call   1060 <createFailsIfPathNotWritable@plt>
mov    $0x0,%al
call   1040 <loadAndAddWithCorruptCacheDataFileTest@plt>
mov    $0x0,%al
call   1070 <simpleAddTest@plt>
mov    $0x0,%al
call   1080 <addTestWithOverwrites@plt>
mov    $0x0,%al
call   10a0 <addRecoversIfDirectoryDoesntExist@plt>
mov    $0x0,%al
call   1050 <addFailsIfDirectoryNotExistsAndNotWriteable@plt>
mov    $0x0,%al
call   10b0 <testLookupSetsAccessTimeAndReplacesEarliestAccessed@plt>
mov    $0x0,%al
call   10c0 <evictionTest@plt>
lea    0xde3(%rip),%rdi
call   10d0 <recursiveDeletePath@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xe48(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1ff,%esi
call   1030 <mkdir@plt>
xor    %eax,%eax
call   1090 <createTest@plt>
xor    %eax,%eax
call   1060 <createFailsIfPathNotWritable@plt>
xor    %eax,%eax
call   1040 <loadAndAddWithCorruptCacheDataFileTest@plt>
xor    %eax,%eax
call   1070 <simpleAddTest@plt>
xor    %eax,%eax
call   1080 <addTestWithOverwrites@plt>
xor    %eax,%eax
call   10a0 <addRecoversIfDirectoryDoesntExist@plt>
xor    %eax,%eax
call   1050 <addFailsIfDirectoryNotExistsAndNotWriteable@plt>
xor    %eax,%eax
call   10b0 <testLookupSetsAccessTimeAndReplacesEarliestAccessed@plt>
xor    %eax,%eax
call   10c0 <evictionTest@plt>
mov    %rbx,%rdi
call   10d0 <recursiveDeletePath@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"/tmp/dc_test\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @mkdir(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 511)
%7 = call i32 (...) @createTest()
%8 = call i32 (...) @createFailsIfPathNotWritable()
%9 = call i32 (...) @loadAndAddWithCorruptCacheDataFileTest()
%10 = call i32 (...) @simpleAddTest()
%11 = call i32 (...) @addTestWithOverwrites()
%12 = call i32 (...) @addRecoversIfDirectoryDoesntExist()
%13 = call i32 (...) @addFailsIfDirectoryNotExistsAndNotWriteable()
%14 = call i32 (...) @testLookupSetsAccessTimeAndReplacesEarliestAccessed()
%15 = call i32 (...) @evictionTest()
%16 = call i32 @recursiveDeletePath(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"/tmp/dc_test\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @mkdir(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 511)
%4 = tail call i32 (...) @createTest()
%5 = tail call i32 (...) @createFailsIfPathNotWritable()
%6 = tail call i32 (...) @loadAndAddWithCorruptCacheDataFileTest()
%7 = tail call i32 (...) @simpleAddTest()
%8 = tail call i32 (...) @addTestWithOverwrites()
%9 = tail call i32 (...) @addRecoversIfDirectoryDoesntExist()
%10 = tail call i32 (...) @addFailsIfDirectoryNotExistsAndNotWriteable()
%11 = tail call i32 (...) @testLookupSetsAccessTimeAndReplacesEarliestAccessed()
%12 = tail call i32 (...) @evictionTest()
%13 = tail call i32 @recursiveDeletePath(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 0
}