#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct tm {
  int tm_year;
  int tm_mon;
  int tm_mday;
  int tm_hour;
  int tm_min;
  int tm_sec;
};
struct stat {
  int st_mode;
  int st_size;
  int st_uid;
  int st_mtime;
};
typedef int /*<<< orphan*/ buf;
struct TYPE_2__ {
  char *pw_name;
};

/* Variables and functions */
int F_OK;
int R_OK;
scalar_t__ S_ISDIR(int);
scalar_t__ S_ISREG(int);
int X_OK;
scalar_t__ access(char *, int);
TYPE_1__ *getpwuid(int);
struct tm *localtime(int *);
int lstat(char *, struct stat *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ strftime(char *, int, char *, struct tm *);
int main() {
  if (access("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/moehuster/czq/refs/heads/master/day03/"
             "info.c",
             F_OK))
    puts("不存在"
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/moehuster/czq/refs/heads/master/day03/"
         "info.c");
  else
    puts(
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/moehuster/czq/refs/heads/master/day03/info.c"
        "存在");
  if (access("/etc/shadow", R_OK))
    puts("/etc/shadow不可读");
  if (access("main", R_OK | X_OK) == 0)
    puts("对main有读和执行权限");
  struct stat s;
  if (lstat("furong", &s) == -1)
    perror("lstat furong");
  if (lstat("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/moehuster/czq/refs/heads/master/day03/"
            "info.c",
            &s) == -1)
    perror("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/moehuster/czq/refs/heads/master/day03/"
           "info.c");
  printf("mode:0%o\nsize:%d\nuser:%d\nmtime:%d\n", s.st_mode, s.st_size,
         s.st_uid, s.st_mtime);
  printf("类型:%s\n", S_ISREG(s.st_mode)   ? "文件"
                      : S_ISDIR(s.st_mode) ? "目录"
                                           : "其他");
  printf("权限:0%o\n", s.st_mode & 0777);
  printf("所有者:%s\n", getpwuid(s.st_uid)->pw_name);
  struct tm *p = localtime(&s.st_mtime);
  printf("最后修改时间:%d-%02d-%02d %02d:%02d:%02d\n", p->tm_year + 1900,
         p->tm_mon + 1, p->tm_mday, p->tm_hour, p->tm_min, p->tm_sec);
  char buf[200];
  strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", p);
  puts(buf);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e0f(%rip),%rax
mov    (%rax),%esi
lea    0xe47(%rip),%rdi
call   10b0 <access@plt>
cmp    $0x0,%rax
je     11e2 <main+0x42>
lea    0xe28(%rip),%rdi
call   1040 <puts@plt>
jmp    11ee <main+0x4e>
lea    0xea7(%rip),%rdi
call   1040 <puts@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%esi
lea    0xf1f(%rip),%rdi
call   10b0 <access@plt>
cmp    $0x0,%rax
je     1219 <main+0x79>
lea    0xf15(%rip),%rdi
call   1040 <puts@plt>
mov    0x2db8(%rip),%rax
mov    (%rax),%esi
mov    0x2dbf(%rip),%rax
or     (%rax),%esi
lea    0xf0c(%rip),%rdi
call   10b0 <access@plt>
cmp    $0x0,%rax
jne    124d <main+0xad>
lea    0xefb(%rip),%rdi
call   1040 <puts@plt>
lea    0xf12(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1080 <lstat@plt>
cmp    $0xffffffff,%eax
jne    1272 <main+0xd2>
lea    0xef3(%rip),%rdi
call   10c0 <perror@plt>
lea    0xd90(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1080 <lstat@plt>
cmp    $0xffffffff,%eax
jne    1297 <main+0xf7>
lea    0xd77(%rip),%rdi
call   10c0 <perror@plt>
mov    -0x18(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%r8d
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%edi
call   1090 <S_ISREG@plt>
cmp    $0x0,%rax
je     12d7 <main+0x137>
lea    0xed0(%rip),%rax
mov    %rax,-0xf8(%rbp)
jmp    12ff <main+0x15f>
mov    -0x18(%rbp),%edi
call   1070 <S_ISDIR@plt>
mov    %rax,%rdx
lea    0xec0(%rip),%rax
lea    0xeb2(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0xf8(%rbp)
mov    -0xf8(%rbp),%rsi
lea    0xe83(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%esi
and    $0x1ff,%esi
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x10(%rbp),%edi
call   1050 <getpwuid@plt>
mov    (%rax),%rsi
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x18(%rbp),%rdi
add    $0xc,%rdi
call   1030 <localtime@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%esi
add    $0x76c,%esi
mov    -0x20(%rbp),%rax
mov    0x4(%rax),%edx
add    $0x1,%edx
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%ecx
mov    -0x20(%rbp),%rax
mov    0xc(%rax),%r8d
mov    -0x20(%rbp),%rax
mov    0x10(%rax),%r9d
mov    -0x20(%rbp),%rax
mov    0x14(%rax),%eax
lea    0xe3a(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xf0(%rbp),%rdi
mov    -0x20(%rbp),%rcx
mov    $0xc8,%esi
lea    0xe49(%rip),%rdx
call   10a0 <strftime@plt>
lea    -0xf0(%rbp),%rdi
call   1040 <puts@plt>
mov    -0x4(%rbp),%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0xf0,%rsp
mov    0x2e16(%rip),%rax
mov    (%rax),%esi
lea    0xe4e(%rip),%rdi
call   10b0 <access@plt>
test   %rax,%rax
lea    0xec6(%rip),%rax
lea    0xe2f(%rip),%rdi
cmove  %rax,%rdi
call   1040 <puts@plt>
mov    0x2df7(%rip),%rbx
mov    (%rbx),%esi
lea    0xf33(%rip),%rdi
call   10b0 <access@plt>
test   %rax,%rax
je     1200 <main+0x60>
lea    0xf2e(%rip),%rdi
call   1040 <puts@plt>
mov    0x2de1(%rip),%rax
mov    (%rax),%esi
or     (%rbx),%esi
lea    0xf2c(%rip),%rdi
call   10b0 <access@plt>
test   %rax,%rax
jne    1228 <main+0x88>
lea    0xf20(%rip),%rdi
call   1040 <puts@plt>
lea    0xf37(%rip),%rdi
lea    0x10(%rsp),%rsi
call   1080 <lstat@plt>
cmp    $0xffffffff,%eax
je     135a <main+0x1ba>
lea    0xdc0(%rip),%rdi
lea    0x10(%rsp),%rsi
call   1080 <lstat@plt>
cmp    $0xffffffff,%eax
je     136b <main+0x1cb>
mov    0x10(%rsp),%ebx
mov    0x14(%rsp),%edx
mov    0x18(%rsp),%ebp
lea    0x1c(%rsp),%r14
mov    0x1c(%rsp),%r8d
lea    0xef4(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%ecx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %ebx,%edi
call   1090 <S_ISREG@plt>
test   %rax,%rax
je     1299 <main+0xf9>
lea    0xf04(%rip),%rsi
jmp    12b5 <main+0x115>
mov    %ebx,%edi
call   1070 <S_ISDIR@plt>
test   %rax,%rax
lea    0xeff(%rip),%rax
lea    0xef1(%rip),%rsi
cmove  %rax,%rsi
lea    0xed4(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
and    $0x1ff,%ebx
lea    0xee0(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %ebp,%edi
call   1050 <getpwuid@plt>
mov    (%rax),%rsi
lea    0xed2(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
call   1030 <localtime@plt>
mov    %rax,%rbx
mov    $0x76c,%esi
add    (%rax),%esi
mov    0x4(%rax),%edx
mov    0x8(%rax),%ecx
add    $0x1,%edx
mov    0xc(%rax),%r8d
mov    0x10(%rax),%r9d
mov    0x14(%rax),%eax
mov    %eax,(%rsp)
lea    0xea9(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xecb(%rip),%rdx
lea    0x20(%rsp),%rbp
mov    %rbp,%rdi
mov    $0xc8,%esi
mov    %rbx,%rcx
call   10a0 <strftime@plt>
mov    %rbp,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
lea    0xdff(%rip),%rdi
call   10c0 <perror@plt>
jmp    1242 <main+0xa2>
lea    0xc97(%rip),%rdi
call   10c0 <perror@plt>
jmp    125c <main+0xbc>

LLVM IR (-O0):
%struct.stat = type { i32, i32, i32, i32 }
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
%struct.TYPE_2__ = type { i8* }
@.str = [135 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/moehuster/czq/refs/heads/master/day03/info.c\00"
@F_OK = global i32 0
@.str.1 = [144 x i8] c"\E4\B8\8D\E5\AD\98\E5\9C\A8/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/moehuster/czq/refs/heads/master/day03/info.c\00"
@.str.2 = [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/moehuster/czq/refs/heads/master/day03/info.c\E5\AD\98\E5\9C\A8\00"
@.str.3 = [12 x i8] c"/etc/shadow\00"
@R_OK = global i32 0
@.str.4 = [21 x i8] c"/etc/shadow\E4\B8\8D\E5\8F\AF\E8\AF\BB\00"
@.str.5 = [5 x i8] c"main\00"
@X_OK = global i32 0
@.str.6 = [29 x i8] c"\E5\AF\B9main\E6\9C\89\E8\AF\BB\E5\92\8C\E6\89\A7\E8\A1\8C\E6\9D\83\E9\99\90\00"
@.str.7 = [7 x i8] c"furong\00"
@.str.8 = [13 x i8] c"lstat furong\00"
@.str.9 = [35 x i8] c"mode:0%o\0Asize:%d\0Auser:%d\0Amtime:%d\0A\00"
@.str.10 = [11 x i8] c"\E7\B1\BB\E5\9E\8B:%s\0A\00"
@.str.11 = [7 x i8] c"\E6\96\87\E4\BB\B6\00"
@.str.12 = [7 x i8] c"\E7\9B\AE\E5\BD\95\00"
@.str.13 = [7 x i8] c"\E5\85\B6\E4\BB\96\00"
@.str.14 = [12 x i8] c"\E6\9D\83\E9\99\90:0%o\0A\00"
@.str.15 = [14 x i8] c"\E6\89\80\E6\9C\89\E8\80\85:%s\0A\00"
@.str.16 = [48 x i8] c"\E6\9C\80\E5\90\8E\E4\BF\AE\E6\94\B9\E6\97\B6\E9\97\B4:%d-%02d-%02d %02d:%02d:%02d\0A\00"
@.str.17 = [18 x i8] c"%Y-%m-%d %H:%M:%S\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.stat
%3 = alloca %struct.tm*
%4 = alloca [200 x i8]
store i32 0, i32* %1
%5 = load i32, i32* @F_OK
%6 = call i64 @access(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @puts(i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.1, i64 0, i64 0))
br label %12
10: ; preds = %0
%11 = call i32 @puts(i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.2, i64 0, i64 0))
br label %12
12: ; preds = %10, %8
%13 = load i32, i32* @R_OK
%14 = call i64 @access(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
br label %18
18: ; preds = %16, %12
%19 = load i32, i32* @R_OK
%20 = load i32, i32* @X_OK
%21 = or i32 %19, %20
%22 = call i64 @access(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %21)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %18
%25 = call i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0))
br label %26
26: ; preds = %24, %18
%27 = call i32 @lstat(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), %struct.stat* %2)
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
br label %31
31: ; preds = %29, %26
%32 = call i32 @lstat(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), %struct.stat* %2)
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 @perror(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0))
br label %36
36: ; preds = %34, %31
%37 = getelementptr inbounds %struct.stat, %struct.stat* %2, i32 0, i32 0
%38 = load i32, i32* %37
%39 = getelementptr inbounds %struct.stat, %struct.stat* %2, i32 0, i32 1
%40 = load i32, i32* %39
%41 = getelementptr inbounds %struct.stat, %struct.stat* %2, i32 0, i32 2
%42 = load i32, i32* %41
%43 = getelementptr inbounds %struct.stat, %struct.stat* %2, i32 0, i32 3
%44 = load i32, i32* %43
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), i32 %38, i32 %40, i32 %42, i32 %44)
%46 = getelementptr inbounds %struct.stat, %struct.stat* %2, i32 0, i32 0
%47 = load i32, i32* %46
%48 = call i64 @S_ISREG(i32 %47)
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %36
br label %58
51: ; preds = %36
%52 = getelementptr inbounds %struct.stat, %struct.stat* %2, i32 0, i32 0
%53 = load i32, i32* %52
%54 = call i64 @S_ISDIR(i32 %53)
%55 = icmp ne i64 %54, 0
%56 = zext i1 %55 to i64
%57 = select i1 %55, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0)
br label %58
58: ; preds = %51, %50
%59 = phi i8* [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), %50 ], [ %57, %51 ]
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i8* %59)
%61 = getelementptr inbounds %struct.stat, %struct.stat* %2, i32 0, i32 0
%62 = load i32, i32* %61
%63 = and i32 %62, 511
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0), i32 %63)
%65 = getelementptr inbounds %struct.stat, %struct.stat* %2, i32 0, i32 2
%66 = load i32, i32* %65
%67 = call %struct.TYPE_2__* @getpwuid(i32 %66)
%68 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %67, i32 0, i32 0
%69 = load i8*, i8** %68
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), i8* %69)
%71 = getelementptr inbounds %struct.stat, %struct.stat* %2, i32 0, i32 3
%72 = call %struct.tm* @localtime(i32* %71)
store %struct.tm* %72, %struct.tm** %3
%73 = load %struct.tm*, %struct.tm** %3
%74 = getelementptr inbounds %struct.tm, %struct.tm* %73, i32 0, i32 0
%75 = load i32, i32* %74
%76 = add nsw i32 %75, 1900
%77 = load %struct.tm*, %struct.tm** %3
%78 = getelementptr inbounds %struct.tm, %struct.tm* %77, i32 0, i32 1
%79 = load i32, i32* %78
%80 = add nsw i32 %79, 1
%81 = load %struct.tm*, %struct.tm** %3
%82 = getelementptr inbounds %struct.tm, %struct.tm* %81, i32 0, i32 2
%83 = load i32, i32* %82
%84 = load %struct.tm*, %struct.tm** %3
%85 = getelementptr inbounds %struct.tm, %struct.tm* %84, i32 0, i32 3
%86 = load i32, i32* %85
%87 = load %struct.tm*, %struct.tm** %3
%88 = getelementptr inbounds %struct.tm, %struct.tm* %87, i32 0, i32 4
%89 = load i32, i32* %88
%90 = load %struct.tm*, %struct.tm** %3
%91 = getelementptr inbounds %struct.tm, %struct.tm* %90, i32 0, i32 5
%92 = load i32, i32* %91
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.16, i64 0, i64 0), i32 %76, i32 %80, i32 %83, i32 %86, i32 %89, i32 %92)
%94 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%95 = load %struct.tm*, %struct.tm** %3
%96 = call i32 @strftime(i8* %94, i32 200, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), %struct.tm* %95)
%97 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%98 = call i32 @puts(i8* %97)
%99 = load i32, i32* %1
ret i32 %99
}

LLVM IR (-O2):
%struct.stat = type { i32, i32, i32, i32 }
%struct.TYPE_2__ = type { i8* }
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
@.str = [135 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/moehuster/czq/refs/heads/master/day03/info.c\00"
@F_OK = global i32 0
@.str.1 = [144 x i8] c"\E4\B8\8D\E5\AD\98\E5\9C\A8/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/moehuster/czq/refs/heads/master/day03/info.c\00"
@.str.2 = [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/moehuster/czq/refs/heads/master/day03/info.c\E5\AD\98\E5\9C\A8\00"
@.str.3 = [12 x i8] c"/etc/shadow\00"
@R_OK = global i32 0
@.str.4 = [21 x i8] c"/etc/shadow\E4\B8\8D\E5\8F\AF\E8\AF\BB\00"
@.str.5 = [5 x i8] c"main\00"
@X_OK = global i32 0
@.str.6 = [29 x i8] c"\E5\AF\B9main\E6\9C\89\E8\AF\BB\E5\92\8C\E6\89\A7\E8\A1\8C\E6\9D\83\E9\99\90\00"
@.str.7 = [7 x i8] c"furong\00"
@.str.8 = [13 x i8] c"lstat furong\00"
@.str.9 = [35 x i8] c"mode:0%o\0Asize:%d\0Auser:%d\0Amtime:%d\0A\00"
@.str.10 = [11 x i8] c"\E7\B1\BB\E5\9E\8B:%s\0A\00"
@.str.11 = [7 x i8] c"\E6\96\87\E4\BB\B6\00"
@.str.12 = [7 x i8] c"\E7\9B\AE\E5\BD\95\00"
@.str.13 = [7 x i8] c"\E5\85\B6\E4\BB\96\00"
@.str.14 = [12 x i8] c"\E6\9D\83\E9\99\90:0%o\0A\00"
@.str.15 = [14 x i8] c"\E6\89\80\E6\9C\89\E8\80\85:%s\0A\00"
@.str.16 = [48 x i8] c"\E6\9C\80\E5\90\8E\E4\BF\AE\E6\94\B9\E6\97\B6\E9\97\B4:%d-%02d-%02d %02d:%02d:%02d\0A\00"
@.str.17 = [18 x i8] c"%Y-%m-%d %H:%M:%S\00"
define i32 @main() {
%1 = alloca %struct.stat
%2 = alloca [200 x i8]
%3 = load i32, i32* @F_OK
%4 = tail call i64 @access(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = icmp eq i64 %4, 0
%6 = select i1 %5, i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.1, i64 0, i64 0)
%7 = tail call i32 @puts(i8* dereferenceable(1) %6)
%8 = load i32, i32* @R_OK
%9 = tail call i64 @access(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %0
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
br label %13
13: ; preds = %11, %0
%14 = load i32, i32* @R_OK
%15 = load i32, i32* @X_OK
%16 = or i32 %15, %14
%17 = tail call i64 @access(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %16)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0))
br label %21
21: ; preds = %19, %13
%22 = bitcast %struct.stat* %1 to i8*
%23 = call i32 @lstat(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), %struct.stat* %1)
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = tail call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
br label %27
27: ; preds = %25, %21
%28 = call i32 @lstat(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), %struct.stat* %1)
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = tail call i32 @perror(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0))
br label %32
32: ; preds = %30, %27
%33 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 0
%34 = load i32, i32* %33
%35 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 1
%36 = load i32, i32* %35
%37 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 2
%38 = load i32, i32* %37
%39 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 3
%40 = load i32, i32* %39
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), i32 %34, i32 %36, i32 %38, i32 %40)
%42 = tail call i64 @S_ISREG(i32 %34)
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %32
%45 = tail call i64 @S_ISDIR(i32 %34)
%46 = icmp eq i64 %45, 0
%47 = select i1 %46, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0)
br label %48
48: ; preds = %32, %44
%49 = phi i8* [ %47, %44 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), %32 ]
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i8* %49)
%51 = and i32 %34, 511
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0), i32 %51)
%53 = tail call %struct.TYPE_2__* @getpwuid(i32 %38)
%54 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %53, i64 0, i32 0
%55 = load i8*, i8** %54
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), i8* %55)
%57 = call %struct.tm* @localtime(i32* %39)
%58 = getelementptr inbounds %struct.tm, %struct.tm* %57, i64 0, i32 0
%59 = load i32, i32* %58
%60 = add nsw i32 %59, 1900
%61 = getelementptr inbounds %struct.tm, %struct.tm* %57, i64 0, i32 1
%62 = load i32, i32* %61
%63 = add nsw i32 %62, 1
%64 = getelementptr inbounds %struct.tm, %struct.tm* %57, i64 0, i32 2
%65 = load i32, i32* %64
%66 = getelementptr inbounds %struct.tm, %struct.tm* %57, i64 0, i32 3
%67 = load i32, i32* %66
%68 = getelementptr inbounds %struct.tm, %struct.tm* %57, i64 0, i32 4
%69 = load i32, i32* %68
%70 = getelementptr inbounds %struct.tm, %struct.tm* %57, i64 0, i32 5
%71 = load i32, i32* %70
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.16, i64 0, i64 0), i32 %60, i32 %63, i32 %65, i32 %67, i32 %69, i32 %71)
%73 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%74 = call i32 @strftime(i8* %73, i32 200, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), %struct.tm* %57)
%75 = call i32 @puts(i8* %73)
ret i32 0
}