#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 timespec {
  int tv_sec;
  scalar_t__ tv_nsec;
};
struct stat {
  int st_size;
  int st_atime;
  int st_mtime;
  int /*<<< orphan*/ st_mode;
};
typedef int off_t;

/* Variables and functions */
int O_CREAT;
int O_WRONLY;
int /*<<< orphan*/ R_OK;
int /*<<< orphan*/ SEEK_SET;
int S_ISDIR(int /*<<< orphan*/);
int access(char *, int /*<<< orphan*/);
int /*<<< orphan*/ assert(int);
int close(int);
int fstat(int, struct stat *);
scalar_t__ futimens(int, struct timespec *);
int lseek(int, int, int /*<<< orphan*/);
int mkdir(char *, int);
int open(char *, int, int);
int rmdir(char *);
int stat(char *, struct stat *);
int unlink(char *);
scalar_t__ write(int, char *, int);
int main(void) {
  struct timespec times[2];
  struct stat st;
  int fd;
  int ret;
  off_t pos;
  (void)st;
  ret = mkdir("/tmp"
              "/testdir",
              0755);
  assert(ret == 0);
  fd = open("/tmp"
            "/testdir"
            "/output.txt",
            O_CREAT | O_WRONLY, 0666);
  assert(fd != -1);
  pos = lseek(fd, 500 - 1, SEEK_SET);
  assert(pos == 500 - 1);
  ret = (int)write(fd, "", 1);
  assert(ret == 1);
  ret = fstat(fd, &st);
  assert(ret == 0);
  assert(st.st_size == 500);
  times[0].tv_sec = 4;
  times[0].tv_nsec = 0;
  times[1].tv_sec = 9;
  times[1].tv_nsec = 0;
  assert(0 == futimens(fd, times));
  assert(0 == fstat(fd, &st));
  assert(4 == st.st_atime);
  assert(9 == st.st_mtime);
  ret = close(fd);
  assert(ret == 0);
  ret = access("/tmp"
               "/testdir"
               "/output.txt",
               R_OK);
  assert(ret == 0);
  ret = stat("/tmp"
             "/testdir"
             "/output.txt",
             &st);
  assert(ret == 0);
  assert(st.st_size == 500);
  ret = unlink("/tmp"
               "/testdir"
               "/output.txt");
  assert(ret == 0);
  ret = stat("/tmp"
             "/testdir"
             "/output.txt",
             &st);
  assert(ret == -1);
  ret = stat("/tmp"
             "/testdir",
             &st);
  assert(ret == 0);
  assert(S_ISDIR(st.st_mode));
  ret = rmdir("/tmp"
              "/testdir");
  assert(ret == 0);
  ret = stat("/tmp"
             "/testdir",
             &st);
  assert(ret == -1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe1a(%rip),%rdi
mov    $0x1ed,%esi
call   1040 <mkdir@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x48(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    0x2ded(%rip),%rax
mov    (%rax),%esi
mov    0x2dac(%rip),%rax
or     (%rax),%esi
lea    0xdf0(%rip),%rdi
mov    $0x1b6,%edx
call   10c0 <open@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0xffffffff,-0x44(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    -0x44(%rbp),%edi
mov    0x2d93(%rip),%rax
mov    (%rax),%edx
mov    $0x1f3,%esi
call   1080 <lseek@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0x1f3,-0x4c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    -0x44(%rbp),%edi
lea    0xd9a(%rip),%rsi
mov    $0x1,%edx
call   1050 <write@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0x1,-0x48(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    -0x44(%rbp),%edi
lea    -0x40(%rbp),%rsi
call   10f0 <fstat@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x48(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
cmpl   $0x1f4,-0x40(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
movl   $0x4,-0x30(%rbp)
movq   $0x0,-0x28(%rbp)
movl   $0x9,-0x20(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x44(%rbp),%edi
lea    -0x30(%rbp),%rsi
call   10e0 <futimens@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    -0x44(%rbp),%edi
lea    -0x40(%rbp),%rsi
call   10f0 <fstat@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    $0x4,%eax
cmp    -0x3c(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    $0x9,%eax
cmp    -0x38(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    -0x44(%rbp),%edi
call   1090 <close@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x48(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    0x2c61(%rip),%rax
mov    (%rax),%esi
lea    0xc95(%rip),%rdi
call   10d0 <access@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x48(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xc75(%rip),%rdi
lea    -0x40(%rbp),%rsi
call   10b0 <stat@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x48(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
cmpl   $0x1f4,-0x40(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xc3d(%rip),%rdi
call   1030 <unlink@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x48(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xc1d(%rip),%rdi
lea    -0x40(%rbp),%rsi
call   10b0 <stat@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0xffffffff,-0x48(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xbec(%rip),%rdi
lea    -0x40(%rbp),%rsi
call   10b0 <stat@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x48(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
mov    -0x34(%rbp),%edi
call   1070 <S_ISDIR@plt>
mov    %eax,%edi
call   10a0 <assert@plt>
lea    0xbb9(%rip),%rdi
call   1060 <rmdir@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x48(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xb99(%rip),%rdi
lea    -0x40(%rbp),%rsi
call   10b0 <stat@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0xffffffff,-0x48(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x38,%rsp
lea    0xe1f(%rip),%r14
mov    %r14,%rdi
mov    $0x1ed,%esi
call   1040 <mkdir@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10a0 <assert@plt>
mov    0x2df6(%rip),%rax
mov    0x2db7(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
lea    0xdf9(%rip),%r15
mov    %r15,%rdi
mov    $0x1b6,%edx
call   10c0 <open@plt>
mov    %eax,%ebp
xor    %edi,%edi
cmp    $0xffffffff,%eax
setne  %dil
call   10a0 <assert@plt>
mov    0x2da0(%rip),%rax
mov    (%rax),%edx
mov    %ebp,%edi
mov    $0x1f3,%esi
call   1080 <lseek@plt>
xor    %edi,%edi
cmp    $0x1f3,%eax
sete   %dil
call   10a0 <assert@plt>
lea    0xdaf(%rip),%rsi
mov    %ebp,%edi
mov    $0x1,%edx
call   1050 <write@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   10a0 <assert@plt>
mov    %rsp,%rbx
mov    %ebp,%edi
mov    %rbx,%rsi
call   10f0 <fstat@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10a0 <assert@plt>
xor    %edi,%edi
cmpl   $0x1f4,(%rsp)
sete   %dil
call   10a0 <assert@plt>
movl   $0x4,0x10(%rsp)
movq   $0x0,0x18(%rsp)
movl   $0x9,0x20(%rsp)
movq   $0x0,0x28(%rsp)
lea    0x10(%rsp),%rsi
mov    %ebp,%edi
call   10e0 <futimens@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10a0 <assert@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   10f0 <fstat@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10a0 <assert@plt>
xor    %edi,%edi
cmpl   $0x4,0x4(%rsp)
sete   %dil
call   10a0 <assert@plt>
xor    %edi,%edi
cmpl   $0x9,0x8(%rsp)
sete   %dil
call   10a0 <assert@plt>
mov    %ebp,%edi
call   1090 <close@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10a0 <assert@plt>
mov    0x2c9f(%rip),%rax
mov    (%rax),%esi
mov    %r15,%rdi
call   10d0 <access@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10a0 <assert@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   10b0 <stat@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10a0 <assert@plt>
xor    %edi,%edi
cmpl   $0x1f4,(%rsp)
sete   %dil
call   10a0 <assert@plt>
mov    %r15,%rdi
call   1030 <unlink@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10a0 <assert@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   10b0 <stat@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   10a0 <assert@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   10b0 <stat@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10a0 <assert@plt>
mov    0xc(%rsp),%edi
call   1070 <S_ISDIR@plt>
mov    %eax,%edi
call   10a0 <assert@plt>
mov    %r14,%rdi
call   1060 <rmdir@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10a0 <assert@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   10b0 <stat@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   10a0 <assert@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.timespec = type { i32, i64 }
%struct.stat = type { i32, i32, i32, i32 }
@.str = [13 x i8] c"/tmp/testdir\00"
@.str.1 = [24 x i8] c"/tmp/testdir/output.txt\00"
@O_CREAT = global i32 0
@O_WRONLY = global i32 0
@SEEK_SET = global i32 0
@.str.2 = [1 x i8] zeroinitializer
@R_OK = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca [2 x %struct.timespec]
%3 = alloca %struct.stat
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = call i32 @mkdir(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 493)
store i32 %7, i32* %5
%8 = load i32, i32* %5
%9 = icmp eq i32 %8, 0
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 %10)
%12 = load i32, i32* @O_CREAT
%13 = load i32, i32* @O_WRONLY
%14 = or i32 %12, %13
%15 = call i32 @open(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %14, i32 438)
store i32 %15, i32* %4
%16 = load i32, i32* %4
%17 = icmp ne i32 %16, -1
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 %18)
%20 = load i32, i32* %4
%21 = load i32, i32* @SEEK_SET
%22 = call i32 @lseek(i32 %20, i32 499, i32 %21)
store i32 %22, i32* %6
%23 = load i32, i32* %6
%24 = icmp eq i32 %23, 499
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 %25)
%27 = load i32, i32* %4
%28 = call i64 @write(i32 %27, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 1)
%29 = trunc i64 %28 to i32
store i32 %29, i32* %5
%30 = load i32, i32* %5
%31 = icmp eq i32 %30, 1
%32 = zext i1 %31 to i32
%33 = call i32 @assert(i32 %32)
%34 = load i32, i32* %4
%35 = call i32 @fstat(i32 %34, %struct.stat* %3)
store i32 %35, i32* %5
%36 = load i32, i32* %5
%37 = icmp eq i32 %36, 0
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 %38)
%40 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%41 = load i32, i32* %40
%42 = icmp eq i32 %41, 500
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 %43)
%45 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %2, i64 0, i64 0
%46 = getelementptr inbounds %struct.timespec, %struct.timespec* %45, i32 0, i32 0
store i32 4, i32* %46
%47 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %2, i64 0, i64 0
%48 = getelementptr inbounds %struct.timespec, %struct.timespec* %47, i32 0, i32 1
store i64 0, i64* %48
%49 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %2, i64 0, i64 1
%50 = getelementptr inbounds %struct.timespec, %struct.timespec* %49, i32 0, i32 0
store i32 9, i32* %50
%51 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %2, i64 0, i64 1
%52 = getelementptr inbounds %struct.timespec, %struct.timespec* %51, i32 0, i32 1
store i64 0, i64* %52
%53 = load i32, i32* %4
%54 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %2, i64 0, i64 0
%55 = call i64 @futimens(i32 %53, %struct.timespec* %54)
%56 = icmp eq i64 0, %55
%57 = zext i1 %56 to i32
%58 = call i32 @assert(i32 %57)
%59 = load i32, i32* %4
%60 = call i32 @fstat(i32 %59, %struct.stat* %3)
%61 = icmp eq i32 0, %60
%62 = zext i1 %61 to i32
%63 = call i32 @assert(i32 %62)
%64 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 1
%65 = load i32, i32* %64
%66 = icmp eq i32 4, %65
%67 = zext i1 %66 to i32
%68 = call i32 @assert(i32 %67)
%69 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 2
%70 = load i32, i32* %69
%71 = icmp eq i32 9, %70
%72 = zext i1 %71 to i32
%73 = call i32 @assert(i32 %72)
%74 = load i32, i32* %4
%75 = call i32 @close(i32 %74)
store i32 %75, i32* %5
%76 = load i32, i32* %5
%77 = icmp eq i32 %76, 0
%78 = zext i1 %77 to i32
%79 = call i32 @assert(i32 %78)
%80 = load i32, i32* @R_OK
%81 = call i32 @access(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %80)
store i32 %81, i32* %5
%82 = load i32, i32* %5
%83 = icmp eq i32 %82, 0
%84 = zext i1 %83 to i32
%85 = call i32 @assert(i32 %84)
%86 = call i32 @stat(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), %struct.stat* %3)
store i32 %86, i32* %5
%87 = load i32, i32* %5
%88 = icmp eq i32 %87, 0
%89 = zext i1 %88 to i32
%90 = call i32 @assert(i32 %89)
%91 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%92 = load i32, i32* %91
%93 = icmp eq i32 %92, 500
%94 = zext i1 %93 to i32
%95 = call i32 @assert(i32 %94)
%96 = call i32 @unlink(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
store i32 %96, i32* %5
%97 = load i32, i32* %5
%98 = icmp eq i32 %97, 0
%99 = zext i1 %98 to i32
%100 = call i32 @assert(i32 %99)
%101 = call i32 @stat(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), %struct.stat* %3)
store i32 %101, i32* %5
%102 = load i32, i32* %5
%103 = icmp eq i32 %102, -1
%104 = zext i1 %103 to i32
%105 = call i32 @assert(i32 %104)
%106 = call i32 @stat(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), %struct.stat* %3)
store i32 %106, i32* %5
%107 = load i32, i32* %5
%108 = icmp eq i32 %107, 0
%109 = zext i1 %108 to i32
%110 = call i32 @assert(i32 %109)
%111 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 3
%112 = load i32, i32* %111
%113 = call i32 @S_ISDIR(i32 %112)
%114 = call i32 @assert(i32 %113)
%115 = call i32 @rmdir(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
store i32 %115, i32* %5
%116 = load i32, i32* %5
%117 = icmp eq i32 %116, 0
%118 = zext i1 %117 to i32
%119 = call i32 @assert(i32 %118)
%120 = call i32 @stat(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), %struct.stat* %3)
store i32 %120, i32* %5
%121 = load i32, i32* %5
%122 = icmp eq i32 %121, -1
%123 = zext i1 %122 to i32
%124 = call i32 @assert(i32 %123)
ret i32 0
}

LLVM IR (-O2):
%struct.timespec = type { i32, i64 }
%struct.stat = type { i32, i32, i32, i32 }
@.str = [13 x i8] c"/tmp/testdir\00"
@.str.1 = [24 x i8] c"/tmp/testdir/output.txt\00"
@O_CREAT = global i32 0
@O_WRONLY = global i32 0
@SEEK_SET = global i32 0
@.str.2 = [1 x i8] zeroinitializer
@R_OK = global i32 0
define i32 @main() {
%1 = alloca [2 x %struct.timespec]
%2 = alloca %struct.stat
%3 = bitcast [2 x %struct.timespec]* %1 to i8*
%4 = bitcast %struct.stat* %2 to i8*
%5 = tail call i32 @mkdir(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 493)
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 %7)
%9 = load i32, i32* @O_CREAT
%10 = load i32, i32* @O_WRONLY
%11 = or i32 %10, %9
%12 = tail call i32 @open(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %11, i32 438)
%13 = icmp ne i32 %12, -1
%14 = zext i1 %13 to i32
%15 = tail call i32 @assert(i32 %14)
%16 = load i32, i32* @SEEK_SET
%17 = tail call i32 @lseek(i32 %12, i32 499, i32 %16)
%18 = icmp eq i32 %17, 499
%19 = zext i1 %18 to i32
%20 = tail call i32 @assert(i32 %19)
%21 = tail call i64 @write(i32 %12, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 1)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 1
%24 = zext i1 %23 to i32
%25 = tail call i32 @assert(i32 %24)
%26 = call i32 @fstat(i32 %12, %struct.stat* %2)
%27 = icmp eq i32 %26, 0
%28 = zext i1 %27 to i32
%29 = tail call i32 @assert(i32 %28)
%30 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%31 = load i32, i32* %30
%32 = icmp eq i32 %31, 500
%33 = zext i1 %32 to i32
%34 = tail call i32 @assert(i32 %33)
%35 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %1, i64 0, i64 0
%36 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %1, i64 0, i64 0, i32 0
store i32 4, i32* %36
%37 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %1, i64 0, i64 0, i32 1
store i64 0, i64* %37
%38 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %1, i64 0, i64 1, i32 0
store i32 9, i32* %38
%39 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %1, i64 0, i64 1, i32 1
store i64 0, i64* %39
%40 = call i64 @futimens(i32 %12, %struct.timespec* %35)
%41 = icmp eq i64 %40, 0
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 %42)
%44 = call i32 @fstat(i32 %12, %struct.stat* %2)
%45 = icmp eq i32 %44, 0
%46 = zext i1 %45 to i32
%47 = call i32 @assert(i32 %46)
%48 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 1
%49 = load i32, i32* %48
%50 = icmp eq i32 %49, 4
%51 = zext i1 %50 to i32
%52 = call i32 @assert(i32 %51)
%53 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 2
%54 = load i32, i32* %53
%55 = icmp eq i32 %54, 9
%56 = zext i1 %55 to i32
%57 = call i32 @assert(i32 %56)
%58 = call i32 @close(i32 %12)
%59 = icmp eq i32 %58, 0
%60 = zext i1 %59 to i32
%61 = call i32 @assert(i32 %60)
%62 = load i32, i32* @R_OK
%63 = call i32 @access(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %62)
%64 = icmp eq i32 %63, 0
%65 = zext i1 %64 to i32
%66 = call i32 @assert(i32 %65)
%67 = call i32 @stat(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), %struct.stat* %2)
%68 = icmp eq i32 %67, 0
%69 = zext i1 %68 to i32
%70 = call i32 @assert(i32 %69)
%71 = load i32, i32* %30
%72 = icmp eq i32 %71, 500
%73 = zext i1 %72 to i32
%74 = call i32 @assert(i32 %73)
%75 = call i32 @unlink(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%76 = icmp eq i32 %75, 0
%77 = zext i1 %76 to i32
%78 = call i32 @assert(i32 %77)
%79 = call i32 @stat(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), %struct.stat* %2)
%80 = icmp eq i32 %79, -1
%81 = zext i1 %80 to i32
%82 = call i32 @assert(i32 %81)
%83 = call i32 @stat(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), %struct.stat* %2)
%84 = icmp eq i32 %83, 0
%85 = zext i1 %84 to i32
%86 = call i32 @assert(i32 %85)
%87 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 3
%88 = load i32, i32* %87
%89 = call i32 @S_ISDIR(i32 %88)
%90 = call i32 @assert(i32 %89)
%91 = call i32 @rmdir(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%92 = icmp eq i32 %91, 0
%93 = zext i1 %92 to i32
%94 = call i32 @assert(i32 %93)
%95 = call i32 @stat(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), %struct.stat* %2)
%96 = icmp eq i32 %95, -1
%97 = zext i1 %96 to i32
%98 = call i32 @assert(i32 %97)
ret i32 0
}