#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_6__ TYPE_3__;
typedef struct TYPE_5__ TYPE_2__;
typedef struct TYPE_4__ TYPE_1__;

/* Type definitions */
struct TYPE_6__ {
  int /*<<< orphan*/ tv_nsec;
  int /*<<< orphan*/ tv_sec;
};
struct TYPE_5__ {
  int /*<<< orphan*/ tv_nsec;
  int /*<<< orphan*/ tv_sec;
};
struct TYPE_4__ {
  int /*<<< orphan*/ tv_nsec;
  int /*<<< orphan*/ tv_sec;
};
struct stat {
  TYPE_3__ st_ctim;
  TYPE_2__ st_mtim;
  TYPE_1__ st_atim;
  int /*<<< orphan*/ st_blocks;
  int /*<<< orphan*/ st_blksize;
  int /*<<< orphan*/ st_size;
  int /*<<< orphan*/ st_rdev;
  int /*<<< orphan*/ st_gid;
  int /*<<< orphan*/ st_uid;
  int /*<<< orphan*/ st_nlink;
  int /*<<< orphan*/ st_mode;
  int /*<<< orphan*/ st_ino;
  int /*<<< orphan*/ st_dev;
};

/* Variables and functions */
int /*<<< orphan*/ asctime_r(int /*<<< orphan*/, char *);
int /*<<< orphan*/ gmtime(int /*<<< orphan*/ *);
scalar_t__ longest_len(struct stat, int *);
scalar_t__ lstat(char *, struct stat *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int strlen(char *);
int dump_stat(char *filename) {
  struct stat s;
  if (lstat(filename, &s) != 0) {
    perror(filename);
    return 1;
  }
  int numlen;
  if (longest_len(s, &numlen) != 0) {
    return 1;
  }
  printf("%s:\n", filename);
  printf("    st_dev     = %-*lu    // ID of device containing file\n", numlen,
         s.st_dev);
  printf("    st_ino     = %-*lu    // inode number\n", numlen, s.st_ino);
  printf("    st_mode    = %-*d     \b// file type and mode\n", numlen,
         s.st_mode);
  printf("    st_nlink   = %-*lu    // number of hard links\n", numlen,
         s.st_nlink);
  printf("    st_uid     = %-*d     \b// user ID of owner\n", numlen, s.st_uid);
  printf("    st_gid     = %-*d     \b// group ID of owner\n", numlen,
         s.st_gid);
  printf("    st_rdev    = %-*lu    // device ID (if special file)\n", numlen,
         s.st_rdev);
  printf("    st_size    = %-*lu    // total size, in bytes\n", numlen,
         s.st_size);
  printf("    st_blksize = %-*lu    // blocksize for filesystem I/O\n", numlen,
         s.st_blksize);
  printf("    st_blocks  = %-*lu    // number of 512B blocks allocated\n",
         numlen, s.st_blocks);
  char buf[80];
  asctime_r(gmtime(&s.st_atim.tv_sec), buf);
  buf[strlen(buf) - 1] = '\0';
  printf("    st_atim    = %s = (%lus + %ldns)  // time of last access\n", buf,
         s.st_atim.tv_sec, s.st_atim.tv_nsec);
  asctime_r(gmtime(&s.st_mtim.tv_sec), buf);
  buf[strlen(buf) - 1] = '\0';
  printf("    st_mtim    = %s = (%lus + %ldns)  // time of last modification\n",
         buf, s.st_mtim.tv_sec, s.st_mtim.tv_nsec);
  asctime_r(gmtime(&s.st_ctim.tv_sec), buf);
  buf[strlen(buf) - 1] = '\0';
  printf(
      "    st_ctim    = %s = (%lus + %ldns)  // time of last status change\n",
      buf, s.st_ctim.tv_sec, s.st_ctim.tv_nsec);
  return 0;
}


x86 assembly (clang, -O0):
<dump_stat>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1050 <lstat@plt>
cmp    $0x0,%rax
je     11ab <dump_stat+0x3b>
mov    -0x10(%rbp),%rdi
call   1070 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    13c2 <dump_stat+0x252>
movups -0x50(%rbp),%xmm0
movups -0x40(%rbp),%xmm1
movups -0x30(%rbp),%xmm2
movups -0x20(%rbp),%xmm3
mov    %rsp,%rax
movups %xmm3,0x30(%rax)
movups %xmm2,0x20(%rax)
movups %xmm1,0x10(%rax)
movups %xmm0,(%rax)
lea    -0x54(%rbp),%rdi
call   1090 <longest_len@plt>
cmp    $0x0,%rax
je     11ec <dump_stat+0x7c>
movl   $0x1,-0x4(%rbp)
jmp    13c2 <dump_stat+0x252>
mov    -0x10(%rbp),%rsi
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xdfa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xe21(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%esi
mov    -0x1c(%rbp),%edx
lea    0xe38(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%esi
mov    -0x20(%rbp),%edx
lea    0xe56(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%esi
mov    -0x24(%rbp),%edx
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%esi
mov    -0x28(%rbp),%edx
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%esi
mov    -0x30(%rbp),%edx
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%esi
mov    -0x34(%rbp),%edx
lea    0xef3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%esi
mov    -0x38(%rbp),%edx
lea    0xf1a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x50(%rbp),%rdi
add    $0x10,%rdi
add    $0x4,%rdi
call   1080 <gmtime@plt>
mov    %eax,%edi
lea    -0xb0(%rbp),%rsi
call   1060 <asctime_r@plt>
lea    -0xb0(%rbp),%rdi
call   1030 <strlen@plt>
sub    $0x1,%eax
cltq
movb   $0x0,-0xb0(%rbp,%rax,1)
lea    -0xb0(%rbp),%rsi
mov    -0x3c(%rbp),%edx
mov    -0x40(%rbp),%ecx
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x50(%rbp),%rdi
add    $0x8,%rdi
add    $0x4,%rdi
call   1080 <gmtime@plt>
mov    %eax,%edi
lea    -0xb0(%rbp),%rsi
call   1060 <asctime_r@plt>
lea    -0xb0(%rbp),%rdi
call   1030 <strlen@plt>
sub    $0x1,%eax
cltq
movb   $0x0,-0xb0(%rbp,%rax,1)
lea    -0xb0(%rbp),%rsi
mov    -0x44(%rbp),%edx
mov    -0x48(%rbp),%ecx
lea    0xef0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x50(%rbp),%rdi
add    $0x4,%rdi
call   1080 <gmtime@plt>
mov    %eax,%edi
lea    -0xb0(%rbp),%rsi
call   1060 <asctime_r@plt>
lea    -0xb0(%rbp),%rdi
call   1030 <strlen@plt>
sub    $0x1,%eax
cltq
movb   $0x0,-0xb0(%rbp,%rax,1)
lea    -0xb0(%rbp),%rsi
mov    -0x4c(%rbp),%edx
mov    -0x50(%rbp),%ecx
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump_stat>:
push   %rbp
push   %rbx
sub    $0xe8,%rsp
mov    %rdi,%rbx
lea    0x50(%rsp),%rsi
call   1050 <lstat@plt>
test   %rax,%rax
jne    1394 <dump_stat+0x224>
movups 0x50(%rsp),%xmm0
movups 0x60(%rsp),%xmm1
movups 0x70(%rsp),%xmm2
movups 0x80(%rsp),%xmm3
movups %xmm3,0x30(%rsp)
movups %xmm2,0x20(%rsp)
movups %xmm1,0x10(%rsp)
movups %xmm0,(%rsp)
lea    0x4c(%rsp),%rdi
call   1090 <longest_len@plt>
mov    $0x1,%ebp
test   %rax,%rax
jne    1388 <dump_stat+0x218>
lea    0xe28(%rip),%rdi
xor    %ebp,%ebp
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%esi
mov    0x8c(%rsp),%edx
lea    0xe0f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%esi
mov    0x88(%rsp),%edx
lea    0xe31(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%esi
mov    0x84(%rsp),%edx
lea    0xe43(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%esi
mov    0x80(%rsp),%edx
lea    0xe5c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%esi
mov    0x7c(%rsp),%edx
lea    0xe79(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%esi
mov    0x78(%rsp),%edx
lea    0xe93(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%esi
mov    0x74(%rsp),%edx
lea    0xeae(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%esi
mov    0x70(%rsp),%edx
lea    0xed2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%esi
mov    0x6c(%rsp),%edx
lea    0xeef(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%esi
mov    0x68(%rsp),%edx
lea    0xf14(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x64(%rsp),%rdi
call   1080 <gmtime@plt>
lea    0x90(%rsp),%rbx
mov    %eax,%edi
mov    %rbx,%rsi
call   1060 <asctime_r@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
mov    0x60(%rsp),%ecx
mov    0x64(%rsp),%edx
lea    0xf11(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x5c(%rsp),%rdi
call   1080 <gmtime@plt>
mov    %eax,%edi
mov    %rbx,%rsi
call   1060 <asctime_r@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
mov    0x58(%rsp),%ecx
mov    0x5c(%rsp),%edx
lea    0xf13(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x54(%rsp),%rdi
call   1080 <gmtime@plt>
mov    %eax,%edi
mov    %rbx,%rsi
call   1060 <asctime_r@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
mov    0x50(%rsp),%ecx
mov    0x54(%rsp),%edx
lea    0xf1b(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%eax
add    $0xe8,%rsp
pop    %rbx
pop    %rbp
ret
mov    %rbx,%rdi
call   1070 <perror@plt>
mov    $0x1,%ebp
jmp    1388 <dump_stat+0x218>

LLVM IR (-O0):
%struct.stat = type { %struct.TYPE_6__, %struct.TYPE_5__, %struct.TYPE_4__, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.TYPE_6__ = type { i32, i32 }
%struct.TYPE_5__ = type { i32, i32 }
%struct.TYPE_4__ = type { i32, i32 }
@.str = [5 x i8] c"%s:\0A\00"
@.str.1 = [59 x i8] c" st_dev = %-*lu // ID of device containing file\0A\00"
@.str.2 = [43 x i8] c" st_ino = %-*lu // inode number\0A\00"
@.str.3 = [50 x i8] c" st_mode = %-*d \08// file type and mode\0A\00"
@.str.4 = [51 x i8] c" st_nlink = %-*lu // number of hard links\0A\00"
@.str.5 = [48 x i8] c" st_uid = %-*d \08// user ID of owner\0A\00"
@.str.6 = [49 x i8] c" st_gid = %-*d \08// group ID of owner\0A\00"
@.str.7 = [58 x i8] c" st_rdev = %-*lu // device ID (if special file)\0A\00"
@.str.8 = [51 x i8] c" st_size = %-*lu // total size, in bytes\0A\00"
@.str.9 = [59 x i8] c" st_blksize = %-*lu // blocksize for filesystem I/O\0A\00"
@.str.10 = [62 x i8] c" st_blocks = %-*lu // number of 512B blocks allocated\0A\00"
@.str.11 = [62 x i8] c" st_atim = %s = (%lus + %ldns) // time of last access\0A\00"
@.str.12 = [68 x i8] c" st_mtim = %s = (%lus + %ldns) // time of last modification\0A\00"
@.str.13 = [69 x i8] c" st_ctim = %s = (%lus + %ldns) // time of last status change\0A\00"
define i32 @dump_stat(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca %struct.stat
%5 = alloca i32
%6 = alloca [80 x i8]
store i8* %0, i8** %3
%7 = load i8*, i8** %3
%8 = call i64 @lstat(i8* %7, %struct.stat* %4)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i8*, i8** %3
%12 = call i32 @perror(i8* %11)
store i32 1, i32* %2
br label %114
13: ; preds = %1
%14 = call i64 @longest_len(%struct.stat* byval(%struct.stat) align 8 %4, i32* %5)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %13
store i32 1, i32* %2
br label %114
17: ; preds = %13
%18 = load i8*, i8** %3
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %18)
%20 = load i32, i32* %5
%21 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 12
%22 = load i32, i32* %21
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0), i32 %20, i32 %22)
%24 = load i32, i32* %5
%25 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 11
%26 = load i32, i32* %25
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), i32 %24, i32 %26)
%28 = load i32, i32* %5
%29 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 10
%30 = load i32, i32* %29
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0), i32 %28, i32 %30)
%32 = load i32, i32* %5
%33 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 9
%34 = load i32, i32* %33
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0), i32 %32, i32 %34)
%36 = load i32, i32* %5
%37 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 8
%38 = load i32, i32* %37
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0), i32 %36, i32 %38)
%40 = load i32, i32* %5
%41 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 7
%42 = load i32, i32* %41
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0), i32 %40, i32 %42)
%44 = load i32, i32* %5
%45 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 6
%46 = load i32, i32* %45
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.7, i64 0, i64 0), i32 %44, i32 %46)
%48 = load i32, i32* %5
%49 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 5
%50 = load i32, i32* %49
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0), i32 %48, i32 %50)
%52 = load i32, i32* %5
%53 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 4
%54 = load i32, i32* %53
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0), i32 %52, i32 %54)
%56 = load i32, i32* %5
%57 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 3
%58 = load i32, i32* %57
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.10, i64 0, i64 0), i32 %56, i32 %58)
%60 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 2
%61 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %60, i32 0, i32 1
%62 = call i32 @gmtime(i32* %61)
%63 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%64 = call i32 @asctime_r(i32 %62, i8* %63)
%65 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%66 = call i32 @strlen(i8* %65)
%67 = sub nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 %68
store i8 0, i8* %69
%70 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%71 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 2
%72 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %71, i32 0, i32 1
%73 = load i32, i32* %72
%74 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 2
%75 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %74, i32 0, i32 0
%76 = load i32, i32* %75
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.11, i64 0, i64 0), i8* %70, i32 %73, i32 %76)
%78 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 1
%79 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %78, i32 0, i32 1
%80 = call i32 @gmtime(i32* %79)
%81 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%82 = call i32 @asctime_r(i32 %80, i8* %81)
%83 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%84 = call i32 @strlen(i8* %83)
%85 = sub nsw i32 %84, 1
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 %86
store i8 0, i8* %87
%88 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%89 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 1
%90 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %89, i32 0, i32 1
%91 = load i32, i32* %90
%92 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 1
%93 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %92, i32 0, i32 0
%94 = load i32, i32* %93
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, i64 0, i64 0), i8* %88, i32 %91, i32 %94)
%96 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%97 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %96, i32 0, i32 1
%98 = call i32 @gmtime(i32* %97)
%99 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%100 = call i32 @asctime_r(i32 %98, i8* %99)
%101 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%102 = call i32 @strlen(i8* %101)
%103 = sub nsw i32 %102, 1
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 %104
store i8 0, i8* %105
%106 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%107 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%108 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %107, i32 0, i32 1
%109 = load i32, i32* %108
%110 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%111 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %110, i32 0, i32 0
%112 = load i32, i32* %111
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.13, i64 0, i64 0), i8* %106, i32 %109, i32 %112)
store i32 0, i32* %2
br label %114
114: ; preds = %17, %16, %10
%115 = load i32, i32* %2
ret i32 %115
}

LLVM IR (-O2):
%struct.stat = type { %struct.TYPE_6__, %struct.TYPE_5__, %struct.TYPE_4__, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.TYPE_6__ = type { i32, i32 }
%struct.TYPE_5__ = type { i32, i32 }
%struct.TYPE_4__ = type { i32, i32 }
@.str = [5 x i8] c"%s:\0A\00"
@.str.1 = [59 x i8] c" st_dev = %-*lu // ID of device containing file\0A\00"
@.str.2 = [43 x i8] c" st_ino = %-*lu // inode number\0A\00"
@.str.3 = [50 x i8] c" st_mode = %-*d \08// file type and mode\0A\00"
@.str.4 = [51 x i8] c" st_nlink = %-*lu // number of hard links\0A\00"
@.str.5 = [48 x i8] c" st_uid = %-*d \08// user ID of owner\0A\00"
@.str.6 = [49 x i8] c" st_gid = %-*d \08// group ID of owner\0A\00"
@.str.7 = [58 x i8] c" st_rdev = %-*lu // device ID (if special file)\0A\00"
@.str.8 = [51 x i8] c" st_size = %-*lu // total size, in bytes\0A\00"
@.str.9 = [59 x i8] c" st_blksize = %-*lu // blocksize for filesystem I/O\0A\00"
@.str.10 = [62 x i8] c" st_blocks = %-*lu // number of 512B blocks allocated\0A\00"
@.str.11 = [62 x i8] c" st_atim = %s = (%lus + %ldns) // time of last access\0A\00"
@.str.12 = [68 x i8] c" st_mtim = %s = (%lus + %ldns) // time of last modification\0A\00"
@.str.13 = [69 x i8] c" st_ctim = %s = (%lus + %ldns) // time of last status change\0A\00"
define i32 @dump_stat(i8* %0) {
%2 = alloca %struct.stat
%3 = alloca i32
%4 = alloca [80 x i8]
%5 = bitcast %struct.stat* %2 to i8*
%6 = call i64 @lstat(i8* %0, %struct.stat* %2)
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %1
%9 = tail call i32 @perror(i8* %0)
br label %92
10: ; preds = %1
%11 = bitcast i32* %3 to i8*
%12 = call i64 @longest_len(%struct.stat* byval(%struct.stat) align 8 %2, i32* %3)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %90
14: ; preds = %10
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %0)
%16 = load i32, i32* %3
%17 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 12
%18 = load i32, i32* %17
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0), i32 %16, i32 %18)
%20 = load i32, i32* %3
%21 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 11
%22 = load i32, i32* %21
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), i32 %20, i32 %22)
%24 = load i32, i32* %3
%25 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 10
%26 = load i32, i32* %25
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0), i32 %24, i32 %26)
%28 = load i32, i32* %3
%29 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 9
%30 = load i32, i32* %29
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0), i32 %28, i32 %30)
%32 = load i32, i32* %3
%33 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 8
%34 = load i32, i32* %33
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0), i32 %32, i32 %34)
%36 = load i32, i32* %3
%37 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 7
%38 = load i32, i32* %37
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0), i32 %36, i32 %38)
%40 = load i32, i32* %3
%41 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 6
%42 = load i32, i32* %41
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.7, i64 0, i64 0), i32 %40, i32 %42)
%44 = load i32, i32* %3
%45 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 5
%46 = load i32, i32* %45
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0), i32 %44, i32 %46)
%48 = load i32, i32* %3
%49 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 4
%50 = load i32, i32* %49
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0), i32 %48, i32 %50)
%52 = load i32, i32* %3
%53 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 3
%54 = load i32, i32* %53
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.10, i64 0, i64 0), i32 %52, i32 %54)
%56 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%57 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 2, i32 1
%58 = call i32 @gmtime(i32* %57)
%59 = call i32 @asctime_r(i32 %58, i8* %56)
%60 = call i32 @strlen(i8* %56)
%61 = add nsw i32 %60, -1
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 %62
store i8 0, i8* %63
%64 = load i32, i32* %57
%65 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 2, i32 0
%66 = load i32, i32* %65
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.11, i64 0, i64 0), i8* %56, i32 %64, i32 %66)
%68 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 1, i32 1
%69 = call i32 @gmtime(i32* %68)
%70 = call i32 @asctime_r(i32 %69, i8* %56)
%71 = call i32 @strlen(i8* %56)
%72 = add nsw i32 %71, -1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 %73
store i8 0, i8* %74
%75 = load i32, i32* %68
%76 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 1, i32 0
%77 = load i32, i32* %76
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, i64 0, i64 0), i8* %56, i32 %75, i32 %77)
%79 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0, i32 1
%80 = call i32 @gmtime(i32* %79)
%81 = call i32 @asctime_r(i32 %80, i8* %56)
%82 = call i32 @strlen(i8* %56)
%83 = add nsw i32 %82, -1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 %84
store i8 0, i8* %85
%86 = load i32, i32* %79
%87 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0, i32 0
%88 = load i32, i32* %87
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.13, i64 0, i64 0), i8* %56, i32 %86, i32 %88)
br label %90
90: ; preds = %10, %14
%91 = phi i32 [ 0, %14 ], [ 1, %10 ]
br label %92
92: ; preds = %90, %8
%93 = phi i32 [ 1, %8 ], [ %91, %90 ]
ret i32 %93
}