#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 st_mode;
  char *st_size;
  int /*<<< orphan*/ st_mtime;
};

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int S_IRGRP;
int S_IROTH;
int S_IRUSR;
scalar_t__ S_ISBLK(int);
scalar_t__ S_ISCHR(int);
scalar_t__ S_ISDIR(int);
scalar_t__ S_ISFIFO(int);
scalar_t__ S_ISLNK(int);
scalar_t__ S_ISREG(int);
scalar_t__ S_ISSOCK(int);
int S_IWGRP;
int S_IWOTH;
int S_IWUSR;
int S_IXGRP;
int S_IXOTH;
int S_IXUSR;
char *ctime(int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int stat(char *, struct stat *);
int strlen(char *);
void printFileDetails(char *name) {
  struct stat fileInfo;
  char r;
  char *modtime;
  if (stat(name, &fileInfo) == -1) {
    do {
      perror("stat");
      exit(EXIT_FAILURE);
    } while (0);
  }
  if (S_ISREG(fileInfo.st_mode)) {
    r = '-';
  }
  if (S_ISDIR(fileInfo.st_mode)) {
    r = 'd';
  }
  if (S_ISCHR(fileInfo.st_mode)) {
    r = 'c';
  }
  if (S_ISBLK(fileInfo.st_mode)) {
    r = 'b';
  }
  if (S_ISFIFO(fileInfo.st_mode)) {
    r = 'p';
  }
  if (S_ISLNK(fileInfo.st_mode)) {
    r = 'l';
  }
  if (S_ISSOCK(fileInfo.st_mode)) {
    r = 's';
  }
  printf("%c%c%c%c%c%c%c%c%c%c", r, (fileInfo.st_mode & S_IRUSR) ? 'r' : '-',
         (fileInfo.st_mode & S_IWUSR) ? 'w' : '-',
         (fileInfo.st_mode & S_IXUSR) ? 'x' : '-',
         (fileInfo.st_mode & S_IRGRP) ? 'r' : '-',
         (fileInfo.st_mode & S_IWGRP) ? 'w' : '-',
         (fileInfo.st_mode & S_IXGRP) ? 'x' : '-',
         (fileInfo.st_mode & S_IROTH) ? 'r' : '-',
         (fileInfo.st_mode & S_IWOTH) ? 'w' : '-',
         (fileInfo.st_mode & S_IXOTH) ? 'x' : '-');
  printf(" %8ld", fileInfo.st_size);
  modtime = ctime(&fileInfo.st_mtime);
  modtime[strlen(modtime) - 1] = '\0';
  printf(" %s", modtime);
  printf(" %s\n", name);
  return;
}


x86 assembly (clang, -O0):
<printFileDetails>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x68,%rsp
mov    %rdi,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
lea    -0x38(%rbp),%rsi
call   10a0 <stat@plt>
cmp    $0xffffffff,%eax
jne    1216 <printFileDetails+0x46>
jmp    11fc <printFileDetails+0x2c>
lea    0xdfd(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2d99(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
mov    -0x38(%rbp),%edi
call   10b0 <S_ISREG@plt>
cmp    $0x0,%rax
je     122c <printFileDetails+0x5c>
movb   $0x2d,-0x39(%rbp)
mov    -0x38(%rbp),%edi
call   1090 <S_ISDIR@plt>
cmp    $0x0,%rax
je     1242 <printFileDetails+0x72>
movb   $0x64,-0x39(%rbp)
mov    -0x38(%rbp),%edi
call   10c0 <S_ISCHR@plt>
cmp    $0x0,%rax
je     1258 <printFileDetails+0x88>
movb   $0x63,-0x39(%rbp)
mov    -0x38(%rbp),%edi
call   10d0 <S_ISBLK@plt>
cmp    $0x0,%rax
je     126e <printFileDetails+0x9e>
movb   $0x62,-0x39(%rbp)
mov    -0x38(%rbp),%edi
call   1060 <S_ISFIFO@plt>
cmp    $0x0,%rax
je     1284 <printFileDetails+0xb4>
movb   $0x70,-0x39(%rbp)
mov    -0x38(%rbp),%edi
call   1030 <S_ISLNK@plt>
cmp    $0x0,%rax
je     129a <printFileDetails+0xca>
movb   $0x6c,-0x39(%rbp)
mov    -0x38(%rbp),%edi
call   1070 <S_ISSOCK@plt>
cmp    $0x0,%rax
je     12b0 <printFileDetails+0xe0>
movb   $0x73,-0x39(%rbp)
movsbl -0x39(%rbp),%esi
mov    -0x38(%rbp),%ecx
mov    0x2ce2(%rip),%rax
and    (%rax),%ecx
mov    $0x2d,%edx
mov    $0x72,%eax
cmp    $0x0,%ecx
cmovne %eax,%edx
mov    -0x38(%rbp),%edi
mov    0x2cf6(%rip),%rax
and    (%rax),%edi
mov    $0x2d,%ecx
mov    $0x77,%eax
cmp    $0x0,%edi
cmovne %eax,%ecx
mov    -0x38(%rbp),%edi
mov    0x2cea(%rip),%rax
and    (%rax),%edi
mov    $0x2d,%r8d
mov    $0x78,%eax
cmp    $0x0,%edi
cmovne %eax,%r8d
mov    -0x38(%rbp),%edi
mov    0x2ca4(%rip),%rax
and    (%rax),%edi
mov    $0x2d,%r9d
mov    $0x72,%eax
cmp    $0x0,%edi
cmovne %eax,%r9d
mov    -0x38(%rbp),%edi
mov    0x2ca6(%rip),%rax
and    (%rax),%edi
mov    $0x2d,%r14d
mov    $0x77,%eax
cmp    $0x0,%edi
cmovne %eax,%r14d
mov    -0x38(%rbp),%edi
mov    0x2c78(%rip),%rax
and    (%rax),%edi
mov    $0x2d,%ebx
mov    $0x78,%eax
cmp    $0x0,%edi
cmovne %eax,%ebx
mov    -0x38(%rbp),%edi
mov    0x2c44(%rip),%rax
and    (%rax),%edi
mov    $0x2d,%r11d
mov    $0x72,%eax
cmp    $0x0,%edi
cmovne %eax,%r11d
mov    -0x38(%rbp),%edi
mov    0x2c06(%rip),%rax
and    (%rax),%edi
mov    $0x2d,%r10d
mov    $0x77,%eax
cmp    $0x0,%edi
cmovne %eax,%r10d
mov    -0x38(%rbp),%r15d
mov    0x2c3f(%rip),%rax
and    (%rax),%r15d
mov    $0x2d,%eax
mov    $0x78,%edi
cmp    $0x0,%r15d
cmovne %edi,%eax
lea    0xc41(%rip),%rdi
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xc2e(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    -0x38(%rbp),%rdi
add    $0x10,%rdi
call   1040 <ctime@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x50(%rbp),%rax
sub    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x48(%rbp),%rsi
lea    0xbf0(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xbe2(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<printFileDetails>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdi,%r14
mov    %rsp,%rsi
call   10a0 <stat@plt>
cmp    $0xffffffff,%eax
je     13ac <printFileDetails+0x1dc>
mov    (%rsp),%ebp
mov    %ebp,%edi
call   10b0 <S_ISREG@plt>
mov    %ebp,%edi
call   1090 <S_ISDIR@plt>
test   %rax,%rax
mov    $0x2d,%r15d
mov    $0x64,%ebx
cmove  %r15d,%ebx
mov    %ebp,%edi
call   10c0 <S_ISCHR@plt>
test   %rax,%rax
mov    $0x63,%r12d
cmove  %ebx,%r12d
mov    %ebp,%edi
call   10d0 <S_ISBLK@plt>
test   %rax,%rax
mov    $0x62,%ebx
cmove  %r12d,%ebx
mov    %ebp,%edi
call   1060 <S_ISFIFO@plt>
test   %rax,%rax
mov    $0x70,%r12d
cmove  %ebx,%r12d
mov    %ebp,%edi
call   1030 <S_ISLNK@plt>
test   %rax,%rax
mov    $0x6c,%ebx
cmove  %r12d,%ebx
mov    %ebp,%edi
call   1070 <S_ISSOCK@plt>
test   %rax,%rax
mov    $0x73,%esi
cmove  %ebx,%esi
mov    0x2d24(%rip),%rax
mov    (%rax),%eax
and    %ebp,%eax
mov    $0x72,%edx
cmove  %r15d,%edx
mov    $0x72,%r10d
mov    0x2d3a(%rip),%rax
mov    (%rax),%eax
and    %ebp,%eax
mov    $0x77,%r11d
mov    $0x77,%ecx
cmove  %r15d,%ecx
mov    0x2d30(%rip),%rax
mov    (%rax),%eax
and    %ebp,%eax
mov    $0x78,%r8d
cmove  %r15d,%r8d
mov    0x2cf3(%rip),%rax
mov    (%rax),%eax
and    %ebp,%eax
mov    $0x72,%r9d
cmove  %r15d,%r9d
mov    0x2cfe(%rip),%rax
mov    (%rax),%eax
and    %ebp,%eax
mov    $0x77,%r12d
cmove  %r15d,%r12d
mov    0x2cd9(%rip),%rax
mov    (%rax),%eax
and    %ebp,%eax
mov    $0x78,%r13d
cmove  %r15d,%r13d
mov    $0x78,%ebx
mov    0x2ca7(%rip),%rax
mov    (%rax),%eax
and    %ebp,%eax
cmove  %r15d,%r10d
mov    0x2c78(%rip),%rax
mov    (%rax),%eax
and    %ebp,%eax
cmove  %r15d,%r11d
mov    0x2cc1(%rip),%rax
and    (%rax),%ebp
cmove  %r15d,%ebx
sub    $0x8,%rsp
lea    0xccd(%rip),%rdi
xor    %eax,%eax
push   %rbx
push   %r11
push   %r10
push   %r13
push   %r12
call   1080 <printf@plt>
add    $0x30,%rsp
mov    0x8(%rsp),%rsi
lea    0xcc2(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x10(%rsp),%rdi
call   1040 <ctime@plt>
mov    %rax,%rbp
mov    %rax,%rdi
call   1050 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbp,1)
lea    0xc9e(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xc91(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc4d(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2be9(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>

LLVM IR (-O0):
%struct.stat = type { i32, i8*, i32 }
@.str = [5 x i8] c"stat\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [21 x i8] c"%c%c%c%c%c%c%c%c%c%c\00"
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@S_IXUSR = global i32 0
@S_IRGRP = global i32 0
@S_IWGRP = global i32 0
@S_IXGRP = global i32 0
@S_IROTH = global i32 0
@S_IWOTH = global i32 0
@S_IXOTH = global i32 0
@.str.2 = [6 x i8] c" %8ld\00"
@.str.3 = [4 x i8] c" %s\00"
@.str.4 = [5 x i8] c" %s\0A\00"
define void @printFileDetails(i8* %0) {
%2 = alloca i8*
%3 = alloca %struct.stat
%4 = alloca i8
%5 = alloca i8*
store i8* %0, i8** %2
%6 = load i8*, i8** %2
%7 = call i32 @stat(i8* %6, %struct.stat* %3)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %15
9: ; preds = %1
br label %10
10: ; preds = %9
%11 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* @EXIT_FAILURE
%13 = call i32 @exit(i32 %12)
unreachable
14: ; No predecessors!
br label %15
15: ; preds = %14, %1
%16 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%17 = load i32, i32* %16
%18 = call i64 @S_ISREG(i32 %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %15
store i8 45, i8* %4
br label %21
21: ; preds = %20, %15
%22 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%23 = load i32, i32* %22
%24 = call i64 @S_ISDIR(i32 %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %21
store i8 100, i8* %4
br label %27
27: ; preds = %26, %21
%28 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%29 = load i32, i32* %28
%30 = call i64 @S_ISCHR(i32 %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %27
store i8 99, i8* %4
br label %33
33: ; preds = %32, %27
%34 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%35 = load i32, i32* %34
%36 = call i64 @S_ISBLK(i32 %35)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %33
store i8 98, i8* %4
br label %39
39: ; preds = %38, %33
%40 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%41 = load i32, i32* %40
%42 = call i64 @S_ISFIFO(i32 %41)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %39
store i8 112, i8* %4
br label %45
45: ; preds = %44, %39
%46 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%47 = load i32, i32* %46
%48 = call i64 @S_ISLNK(i32 %47)
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %45
store i8 108, i8* %4
br label %51
51: ; preds = %50, %45
%52 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%53 = load i32, i32* %52
%54 = call i64 @S_ISSOCK(i32 %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %51
store i8 115, i8* %4
br label %57
57: ; preds = %56, %51
%58 = load i8, i8* %4
%59 = sext i8 %58 to i32
%60 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%61 = load i32, i32* %60
%62 = load i32, i32* @S_IRUSR
%63 = and i32 %61, %62
%64 = icmp ne i32 %63, 0
%65 = zext i1 %64 to i64
%66 = select i1 %64, i32 114, i32 45
%67 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%68 = load i32, i32* %67
%69 = load i32, i32* @S_IWUSR
%70 = and i32 %68, %69
%71 = icmp ne i32 %70, 0
%72 = zext i1 %71 to i64
%73 = select i1 %71, i32 119, i32 45
%74 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%75 = load i32, i32* %74
%76 = load i32, i32* @S_IXUSR
%77 = and i32 %75, %76
%78 = icmp ne i32 %77, 0
%79 = zext i1 %78 to i64
%80 = select i1 %78, i32 120, i32 45
%81 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%82 = load i32, i32* %81
%83 = load i32, i32* @S_IRGRP
%84 = and i32 %82, %83
%85 = icmp ne i32 %84, 0
%86 = zext i1 %85 to i64
%87 = select i1 %85, i32 114, i32 45
%88 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%89 = load i32, i32* %88
%90 = load i32, i32* @S_IWGRP
%91 = and i32 %89, %90
%92 = icmp ne i32 %91, 0
%93 = zext i1 %92 to i64
%94 = select i1 %92, i32 119, i32 45
%95 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%96 = load i32, i32* %95
%97 = load i32, i32* @S_IXGRP
%98 = and i32 %96, %97
%99 = icmp ne i32 %98, 0
%100 = zext i1 %99 to i64
%101 = select i1 %99, i32 120, i32 45
%102 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%103 = load i32, i32* %102
%104 = load i32, i32* @S_IROTH
%105 = and i32 %103, %104
%106 = icmp ne i32 %105, 0
%107 = zext i1 %106 to i64
%108 = select i1 %106, i32 114, i32 45
%109 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%110 = load i32, i32* %109
%111 = load i32, i32* @S_IWOTH
%112 = and i32 %110, %111
%113 = icmp ne i32 %112, 0
%114 = zext i1 %113 to i64
%115 = select i1 %113, i32 119, i32 45
%116 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%117 = load i32, i32* %116
%118 = load i32, i32* @S_IXOTH
%119 = and i32 %117, %118
%120 = icmp ne i32 %119, 0
%121 = zext i1 %120 to i64
%122 = select i1 %120, i32 120, i32 45
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %59, i32 %66, i32 %73, i32 %80, i32 %87, i32 %94, i32 %101, i32 %108, i32 %115, i32 %122)
%124 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 1
%125 = load i8*, i8** %124
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %125)
%127 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 2
%128 = call i8* @ctime(i32* %127)
store i8* %128, i8** %5
%129 = load i8*, i8** %5
%130 = load i8*, i8** %5
%131 = call i32 @strlen(i8* %130)
%132 = sub nsw i32 %131, 1
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i8, i8* %129, i64 %133
store i8 0, i8* %134
%135 = load i8*, i8** %5
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %135)
%137 = load i8*, i8** %2
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %137)
ret void
}

LLVM IR (-O2):
%struct.stat = type { i32, i8*, i32 }
@.str = [5 x i8] c"stat\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [21 x i8] c"%c%c%c%c%c%c%c%c%c%c\00"
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@S_IXUSR = global i32 0
@S_IRGRP = global i32 0
@S_IWGRP = global i32 0
@S_IXGRP = global i32 0
@S_IROTH = global i32 0
@S_IWOTH = global i32 0
@S_IXOTH = global i32 0
@.str.2 = [6 x i8] c" %8ld\00"
@.str.3 = [4 x i8] c" %s\00"
@.str.4 = [5 x i8] c" %s\0A\00"
define void @printFileDetails(i8* %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = call i32 @stat(i8* %0, %struct.stat* %2)
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = tail call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* @EXIT_FAILURE
%9 = tail call i32 @exit(i32 %8)
unreachable
10: ; preds = %1
%11 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%12 = load i32, i32* %11
%13 = tail call i64 @S_ISREG(i32 %12)
%14 = tail call i64 @S_ISDIR(i32 %12)
%15 = icmp eq i64 %14, 0
%16 = select i1 %15, i32 45, i32 100
%17 = tail call i64 @S_ISCHR(i32 %12)
%18 = icmp eq i64 %17, 0
%19 = select i1 %18, i32 %16, i32 99
%20 = tail call i64 @S_ISBLK(i32 %12)
%21 = icmp eq i64 %20, 0
%22 = select i1 %21, i32 %19, i32 98
%23 = tail call i64 @S_ISFIFO(i32 %12)
%24 = icmp eq i64 %23, 0
%25 = select i1 %24, i32 %22, i32 112
%26 = tail call i64 @S_ISLNK(i32 %12)
%27 = icmp eq i64 %26, 0
%28 = select i1 %27, i32 %25, i32 108
%29 = tail call i64 @S_ISSOCK(i32 %12)
%30 = icmp eq i64 %29, 0
%31 = select i1 %30, i32 %28, i32 115
%32 = load i32, i32* @S_IRUSR
%33 = and i32 %32, %12
%34 = icmp eq i32 %33, 0
%35 = select i1 %34, i32 45, i32 114
%36 = load i32, i32* @S_IWUSR
%37 = and i32 %36, %12
%38 = icmp eq i32 %37, 0
%39 = select i1 %38, i32 45, i32 119
%40 = load i32, i32* @S_IXUSR
%41 = and i32 %40, %12
%42 = icmp eq i32 %41, 0
%43 = select i1 %42, i32 45, i32 120
%44 = load i32, i32* @S_IRGRP
%45 = and i32 %44, %12
%46 = icmp eq i32 %45, 0
%47 = select i1 %46, i32 45, i32 114
%48 = load i32, i32* @S_IWGRP
%49 = and i32 %48, %12
%50 = icmp eq i32 %49, 0
%51 = select i1 %50, i32 45, i32 119
%52 = load i32, i32* @S_IXGRP
%53 = and i32 %52, %12
%54 = icmp eq i32 %53, 0
%55 = select i1 %54, i32 45, i32 120
%56 = load i32, i32* @S_IROTH
%57 = and i32 %56, %12
%58 = icmp eq i32 %57, 0
%59 = select i1 %58, i32 45, i32 114
%60 = load i32, i32* @S_IWOTH
%61 = and i32 %60, %12
%62 = icmp eq i32 %61, 0
%63 = select i1 %62, i32 45, i32 119
%64 = load i32, i32* @S_IXOTH
%65 = and i32 %64, %12
%66 = icmp eq i32 %65, 0
%67 = select i1 %66, i32 45, i32 120
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %31, i32 %35, i32 %39, i32 %43, i32 %47, i32 %51, i32 %55, i32 %59, i32 %63, i32 %67)
%69 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 1
%70 = load i8*, i8** %69
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %70)
%72 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 2
%73 = call i8* @ctime(i32* %72)
%74 = call i32 @strlen(i8* %73)
%75 = add nsw i32 %74, -1
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, i8* %73, i64 %76
store i8 0, i8* %77
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %73)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %0)
ret void
}