#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_uid;
  int st_gid;
  int /*<<< orphan*/ st_mode;
  int /*<<< orphan*/ st_mtime;
  scalar_t__ st_size;
  scalar_t__ st_nlink;
  scalar_t__ st_ino;
};
struct passwd {
  char *pw_name;
};
struct group {
  char *gr_name;
};
typedef int /*<<< orphan*/ fecha;

/* Variables and functions */
int /*<<< orphan*/ PATH_MAX;
int S_ISLNK(int /*<<< orphan*/);
char *convierte_modo2(int /*<<< orphan*/);
int errno;
struct group *getgrgid(int);
struct passwd *getpwuid(int);
int /*<<< orphan*/ localtime(int /*<<< orphan*/ *);
int lstat(char const *, struct stat *);
int /*<<< orphan*/ printf(char *, ...);
char *realpath(char const *, char *);
char *strerror(int);
int /*<<< orphan*/ strftime(char *, int, char *, int /*<<< orphan*/);
void imprimir_info(const char *nombre) {
  char fecha[256];
  struct stat atributos;
  struct passwd *pwd;
  struct group *grp;
  int salida = lstat(nombre, &atributos);
  if (salida == 0) {
    printf("%ld ", (long)atributos.st_ino);
    printf("%s", convierte_modo2(atributos.st_mode));
    printf("%ld ", (long)atributos.st_nlink);
    if ((pwd = getpwuid(atributos.st_uid)) != NULL) {
      printf("%-8.8s ", pwd->pw_name);
    } else {
      printf("%-8d ", atributos.st_uid);
    }
    if ((grp = getgrgid(atributos.st_gid)) != NULL) {
      printf("%-8.8s ", grp->gr_name);
    } else {
      printf("%-8d ", atributos.st_gid);
    }
    printf("%lld ", (long long)atributos.st_size);
    strftime(fecha, sizeof(fecha), "%b %e %H:%M",
             localtime(&(atributos.st_mtime)));
    printf("%s ", fecha);
    char symlink_s[PATH_MAX + 1];
    char *resultado_rp = realpath(nombre, symlink_s);
    int es_link = S_ISLNK(atributos.st_mode);
    if (es_link && resultado_rp) {
      printf("%s -> %s\n", nombre, symlink_s);
    } else {
      printf("%s\n", nombre);
    }
  } else {
    if (errno == 2) {
      printf("Fichero o directorio desconocido: %s\n", nombre);
    } else {
      printf("Error obteniendo info de fichero %s: %d %s\n", nombre, errno,
             strerror(errno));
    }
  }
}


x86 assembly (clang, -O0):
<imprimir_info>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x138(%rbp),%rsi
call   1090 <lstat@plt>
mov    %eax,-0x14c(%rbp)
cmpl   $0x0,-0x14c(%rbp)
jne    13c6 <imprimir_info+0x226>
mov    -0x118(%rbp),%rsi
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x130(%rbp),%edi
call   1040 <convierte_modo2@plt>
mov    %rax,%rsi
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x120(%rbp),%rsi
lea    0xdef(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x138(%rbp),%edi
call   1060 <getpwuid@plt>
mov    %rax,-0x140(%rbp)
cmp    $0x0,%rax
je     1251 <imprimir_info+0xb1>
mov    -0x140(%rbp),%rax
mov    (%rax),%rsi
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1265 <imprimir_info+0xc5>
mov    -0x138(%rbp),%esi
lea    0xdb2(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x134(%rbp),%edi
call   1080 <getgrgid@plt>
mov    %rax,-0x148(%rbp)
cmp    $0x0,%rax
je     129e <imprimir_info+0xfe>
mov    -0x148(%rbp),%rax
mov    (%rax),%rsi
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    12b2 <imprimir_info+0x112>
mov    -0x134(%rbp),%esi
lea    0xd65(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x128(%rbp),%rsi
lea    0xd56(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x179(%rbp)
call   1070 <printf@plt>
lea    -0x12c(%rbp),%rdi
call   1030 <localtime@plt>
mov    %eax,%ecx
lea    0xd3a(%rip),%rdx
lea    -0x110(%rbp),%rdi
mov    %rdi,-0x188(%rbp)
mov    $0x100,%esi
call   10b0 <strftime@plt>
mov    -0x188(%rbp),%rsi
mov    -0x179(%rbp),%al
lea    0xd1a(%rip),%rdi
call   1070 <printf@plt>
mov    0x2cd6(%rip),%rax
mov    (%rax),%eax
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x158(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rsi
sub    %rcx,%rsi
mov    %rsi,-0x178(%rbp)
mov    %rsi,%rsp
mov    %rax,-0x160(%rbp)
mov    -0x8(%rbp),%rdi
call   10a0 <realpath@plt>
mov    %rax,-0x168(%rbp)
mov    -0x130(%rbp),%edi
call   1050 <S_ISLNK@plt>
mov    %eax,-0x16c(%rbp)
cmpl   $0x0,-0x16c(%rbp)
je     13a5 <imprimir_info+0x205>
cmpq   $0x0,-0x168(%rbp)
je     13a5 <imprimir_info+0x205>
mov    -0x178(%rbp),%rdx
mov    -0x8(%rbp),%rsi
lea    0xc93(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    13b7 <imprimir_info+0x217>
mov    -0x8(%rbp),%rsi
lea    0xca8(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x158(%rbp),%rax
mov    %rax,%rsp
jmp    1438 <imprimir_info+0x298>
mov    0x2c0b(%rip),%rax
cmpl   $0x2,(%rax)
jne    13ed <imprimir_info+0x24d>
mov    -0x8(%rbp),%rsi
lea    0xc55(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1433 <imprimir_info+0x293>
mov    -0x8(%rbp),%rax
mov    %rax,-0x198(%rbp)
mov    0x2bd9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18c(%rbp)
mov    0x2bca(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x198(%rbp),%rsi
mov    -0x18c(%rbp),%edx
mov    %rax,%rcx
lea    0xc30(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1438 <imprimir_info+0x298>
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<imprimir_info>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x130,%rsp
mov    %rdi,%r14
lea    -0x48(%rbp),%rsi
call   10a0 <lstat@plt>
test   %eax,%eax
je     11fd <imprimir_info+0x4d>
mov    0x2dff(%rip),%rax
mov    (%rax),%ebx
cmp    $0x2,%ebx
jne    125b <imprimir_info+0xab>
lea    0xe4f(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
lea    -0x20(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1080 <printf@plt>
mov    -0x28(%rbp),%rsi
lea    0xdf8(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    -0x40(%rbp),%edi
call   1040 <convierte_modo2@plt>
lea    0xde4(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    -0x30(%rbp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    -0x48(%rbp),%ebx
mov    %ebx,%edi
call   1070 <getpwuid@plt>
test   %rax,%rax
je     1284 <imprimir_info+0xd4>
mov    (%rax),%rsi
lea    0xdb6(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
jmp    1294 <imprimir_info+0xe4>
mov    %ebx,%edi
call   10d0 <strerror@plt>
lea    0xdf3(%rip),%rdi
mov    %r14,%rsi
mov    %ebx,%edx
mov    %rax,%rcx
xor    %eax,%eax
lea    -0x20(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1080 <printf@plt>
lea    0xd85(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1080 <printf@plt>
mov    -0x44(%rbp),%ebx
mov    %ebx,%edi
call   1090 <getgrgid@plt>
test   %rax,%rax
je     12b6 <imprimir_info+0x106>
mov    (%rax),%rsi
lea    0xd5b(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
jmp    12c6 <imprimir_info+0x116>
lea    0xd53(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1080 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xd45(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    -0x3c(%rbp),%rdi
call   1030 <localtime@plt>
lea    0xd34(%rip),%rdx
lea    -0x150(%rbp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %eax,%ecx
call   10c0 <strftime@plt>
lea    0xd23(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rsp,%r12
mov    0x2cd7(%rip),%rax
mov    (%rax),%eax
add    $0x1,%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %r14,%rdi
mov    %rbx,%rsi
call   10b0 <realpath@plt>
mov    %rax,%r15
mov    -0x40(%rbp),%edi
call   1050 <S_ISLNK@plt>
test   %r15,%r15
je     1364 <imprimir_info+0x1b4>
test   %eax,%eax
je     1364 <imprimir_info+0x1b4>
lea    0xcd7(%rip),%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1080 <printf@plt>
jmp    136c <imprimir_info+0x1bc>
mov    %r14,%rdi
call   1060 <puts@plt>
mov    %r12,%rsp
lea    -0x20(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.stat = type { i32, i32, i32, i32, i64, i64, i64 }
%struct.passwd = type { i8* }
%struct.group = type { i8* }
@.str = [5 x i8] c"%ld \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [8 x i8] c"%-8.8s \00"
@.str.3 = [6 x i8] c"%-8d \00"
@.str.4 = [6 x i8] c"%lld \00"
@.str.5 = [12 x i8] c"%b %e %H:%M\00"
@.str.6 = [4 x i8] c"%s \00"
@PATH_MAX = global i32 0
@.str.7 = [10 x i8] c"%s -> %s\0A\00"
@.str.8 = [4 x i8] c"%s\0A\00"
@errno = global i32 0
@.str.9 = [38 x i8] c"Fichero o directorio desconocido: %s\0A\00"
@.str.10 = [44 x i8] c"Error obteniendo info de fichero %s: %d %s\0A\00"
define void @imprimir_info(i8* %0) {
%2 = alloca i8*
%3 = alloca [256 x i8]
%4 = alloca %struct.stat
%5 = alloca %struct.passwd*
%6 = alloca %struct.group*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i32
store i8* %0, i8** %2
%12 = load i8*, i8** %2
%13 = call i32 @lstat(i8* %12, %struct.stat* %4)
store i32 %13, i32* %7
%14 = load i32, i32* %7
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %87
16: ; preds = %1
%17 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 6
%18 = load i64, i64* %17
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %18)
%20 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 2
%21 = load i32, i32* %20
%22 = call i8* @convierte_modo2(i32 %21)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %22)
%24 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 5
%25 = load i64, i64* %24
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %25)
%27 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%28 = load i32, i32* %27
%29 = call %struct.passwd* @getpwuid(i32 %28)
store %struct.passwd* %29, %struct.passwd** %5
%30 = icmp ne %struct.passwd* %29, null
br i1 %30, label %31, label %36
31: ; preds = %16
%32 = load %struct.passwd*, %struct.passwd** %5
%33 = getelementptr inbounds %struct.passwd, %struct.passwd* %32, i32 0, i32 0
%34 = load i8*, i8** %33
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %34)
br label %40
36: ; preds = %16
%37 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%38 = load i32, i32* %37
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %38)
br label %40
40: ; preds = %36, %31
%41 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 1
%42 = load i32, i32* %41
%43 = call %struct.group* @getgrgid(i32 %42)
store %struct.group* %43, %struct.group** %6
%44 = icmp ne %struct.group* %43, null
br i1 %44, label %45, label %50
45: ; preds = %40
%46 = load %struct.group*, %struct.group** %6
%47 = getelementptr inbounds %struct.group, %struct.group* %46, i32 0, i32 0
%48 = load i8*, i8** %47
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %48)
br label %54
50: ; preds = %40
%51 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 1
%52 = load i32, i32* %51
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %52)
br label %54
54: ; preds = %50, %45
%55 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 4
%56 = load i64, i64* %55
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i64 %56)
%58 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%59 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 3
%60 = call i32 @localtime(i32* %59)
%61 = call i32 @strftime(i8* %58, i32 256, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %60)
%62 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %62)
%64 = load i32, i32* @PATH_MAX
%65 = add nsw i32 %64, 1
%66 = zext i32 %65 to i64
%67 = call i8* @llvm.stacksave()
store i8* %67, i8** %8
%68 = alloca i8, i64 %66
store i64 %66, i64* %9
%69 = load i8*, i8** %2
%70 = call i8* @realpath(i8* %69, i8* %68)
store i8* %70, i8** %10
%71 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 2
%72 = load i32, i32* %71
%73 = call i32 @S_ISLNK(i32 %72)
store i32 %73, i32* %11
%74 = load i32, i32* %11
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %82
76: ; preds = %54
%77 = load i8*, i8** %10
%78 = icmp ne i8* %77, null
br i1 %78, label %79, label %82
79: ; preds = %76
%80 = load i8*, i8** %2
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* %80, i8* %68)
br label %85
82: ; preds = %76, %54
%83 = load i8*, i8** %2
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %83)
br label %85
85: ; preds = %82, %79
%86 = load i8*, i8** %8
br label %100
87: ; preds = %1
%88 = load i32, i32* @errno
%89 = icmp eq i32 %88, 2
br i1 %89, label %90, label %93
90: ; preds = %87
%91 = load i8*, i8** %2
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i8* %91)
br label %99
93: ; preds = %87
%94 = load i8*, i8** %2
%95 = load i32, i32* @errno
%96 = load i32, i32* @errno
%97 = call i8* @strerror(i32 %96)
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0), i8* %94, i32 %95, i8* %97)
br label %99
99: ; preds = %93, %90
br label %100
100: ; preds = %99, %85
ret void
}

LLVM IR (-O2):
%struct.stat = type { i32, i32, i32, i32, i64, i64, i64 }
%struct.passwd = type { i8* }
%struct.group = type { i8* }
@.str = [5 x i8] c"%ld \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [8 x i8] c"%-8.8s \00"
@.str.3 = [6 x i8] c"%-8d \00"
@.str.4 = [6 x i8] c"%lld \00"
@.str.5 = [12 x i8] c"%b %e %H:%M\00"
@.str.6 = [4 x i8] c"%s \00"
@PATH_MAX = global i32 0
@.str.7 = [10 x i8] c"%s -> %s\0A\00"
@errno = global i32 0
@.str.9 = [38 x i8] c"Fichero o directorio desconocido: %s\0A\00"
@.str.10 = [44 x i8] c"Error obteniendo info de fichero %s: %d %s\0A\00"
define void @imprimir_info(i8* %0) {
%2 = alloca [256 x i8]
%3 = alloca %struct.stat
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%5 = bitcast %struct.stat* %3 to i8*
%6 = call i32 @lstat(i8* %0, %struct.stat* %3)
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %64
8: ; preds = %1
%9 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 6
%10 = load i64, i64* %9
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %10)
%12 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 2
%13 = load i32, i32* %12
%14 = tail call i8* @convierte_modo2(i32 %13)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %14)
%16 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 5
%17 = load i64, i64* %16
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %17)
%19 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%20 = load i32, i32* %19
%21 = tail call %struct.passwd* @getpwuid(i32 %20)
%22 = icmp eq %struct.passwd* %21, null
br i1 %22, label %27, label %23
23: ; preds = %8
%24 = getelementptr inbounds %struct.passwd, %struct.passwd* %21, i64 0, i32 0
%25 = load i8*, i8** %24
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %25)
br label %29
27: ; preds = %8
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %20)
br label %29
29: ; preds = %27, %23
%30 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 1
%31 = load i32, i32* %30
%32 = tail call %struct.group* @getgrgid(i32 %31)
%33 = icmp eq %struct.group* %32, null
br i1 %33, label %38, label %34
34: ; preds = %29
%35 = getelementptr inbounds %struct.group, %struct.group* %32, i64 0, i32 0
%36 = load i8*, i8** %35
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %36)
br label %40
38: ; preds = %29
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %31)
br label %40
40: ; preds = %38, %34
%41 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 4
%42 = load i64, i64* %41
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i64 %42)
%44 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 3
%45 = call i32 @localtime(i32* %44)
%46 = call i32 @strftime(i8* %4, i32 256, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %45)
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %4)
%48 = load i32, i32* @PATH_MAX
%49 = add nsw i32 %48, 1
%50 = zext i32 %49 to i64
%51 = call i8* @llvm.stacksave()
%52 = alloca i8, i64 %50
%53 = call i8* @realpath(i8* %0, i8* %52)
%54 = load i32, i32* %12
%55 = call i32 @S_ISLNK(i32 %54)
%56 = icmp ne i32 %55, 0
%57 = icmp ne i8* %53, null
%58 = and i1 %57, %56
br i1 %58, label %59, label %61
59: ; preds = %40
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* %0, i8* %52)
br label %63
61: ; preds = %40
%62 = call i32 @puts(i8* dereferenceable(1) %0)
br label %63
63: ; preds = %61, %59
br label %72
64: ; preds = %1
%65 = load i32, i32* @errno
%66 = icmp eq i32 %65, 2
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i8* %0)
br label %72
69: ; preds = %64
%70 = tail call i8* @strerror(i32 %65)
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0), i8* %0, i32 %65, i8* %70)
br label %72
72: ; preds = %67, %69, %63
ret void
}