#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__ {
  scalar_t__ tv_nsec;
};
struct TYPE_5__ {
  scalar_t__ tv_nsec;
};
struct TYPE_4__ {
  scalar_t__ tv_nsec;
};
struct stat {
  TYPE_3__ st_ctim;
  scalar_t__ st_ctime;
  TYPE_2__ st_mtim;
  scalar_t__ st_mtime;
  TYPE_1__ st_atim;
  scalar_t__ st_atime;
  scalar_t__ st_blocks;
  scalar_t__ st_blksize;
  scalar_t__ st_size;
  scalar_t__ st_rdev;
  scalar_t__ st_gid;
  scalar_t__ st_uid;
  scalar_t__ st_nlink;
  scalar_t__ st_mode;
  scalar_t__ st_ino;
  scalar_t__ st_dev;
};

/* Variables and functions */
int /*<<< orphan*/ printf(char *, long, long, long, long, long, long, long,
                          long, long, long, long, long, long, long, long, long);
void show_stat(struct stat *st) {
  printf("------------------\n"
         "st_dev     = %li\n"
         "st_ino     = %li\n"
         "st_mode    = %li\n"
         "st_nlink   = %li\n"
         "st_uid     = %li\n"
         "st_gid     = %li\n"
         "st_rdev    = %li\n"
         "st_size    = %li\n"
         "st_blksize = %li\n"
         "st_blocks  = %li\n"
         "st_atime   = %li\n"
         "st_ansec   = %li\n"
         "st_mtime   = %li\n"
         "st_mnsec   = %li\n"
         "st_ctime   = %li\n"
         "st_cnsec   = %li\n",
         (long int)st->st_dev, (long int)st->st_ino, (long int)st->st_mode,
         (long int)st->st_nlink, (long int)st->st_uid, (long int)st->st_gid,
         (long int)st->st_rdev, (long int)st->st_size, (long int)st->st_blksize,
         (long int)st->st_blocks, (long int)st->st_atime,
         (long int)st->st_atim.tv_nsec, (long int)st->st_mtime,
         (long int)st->st_mtim.tv_nsec, (long int)st->st_ctime,
         (long int)st->st_ctim.tv_nsec);
}


x86 assembly (clang, -O0):
<show_stat>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rdi,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    0x78(%rax),%rsi
mov    -0x30(%rbp),%rax
mov    0x70(%rax),%rdx
mov    -0x30(%rbp),%rax
mov    0x68(%rax),%rcx
mov    -0x30(%rbp),%rax
mov    0x60(%rax),%r8
mov    -0x30(%rbp),%rax
mov    0x58(%rax),%r9
mov    -0x30(%rbp),%rax
mov    0x50(%rax),%rax
mov    -0x30(%rbp),%rdi
mov    0x48(%rdi),%rdi
mov    %rdi,-0x48(%rbp)
mov    -0x30(%rbp),%rdi
mov    0x40(%rdi),%rdi
mov    %rdi,-0x40(%rbp)
mov    -0x30(%rbp),%rdi
mov    0x38(%rdi),%r13
mov    -0x30(%rbp),%rdi
mov    0x30(%rdi),%r12
mov    -0x30(%rbp),%rdi
mov    0x28(%rdi),%r15
mov    -0x30(%rbp),%rdi
mov    0x20(%rdi),%r14
mov    -0x30(%rbp),%rdi
mov    0x18(%rdi),%rbx
mov    -0x30(%rbp),%rdi
mov    0x10(%rdi),%r11
mov    -0x30(%rbp),%rdi
mov    0x8(%rdi),%r10
mov    -0x30(%rbp),%rdi
mov    (%rdi),%rdi
mov    %rdi,-0x38(%rbp)
lea    0xe49(%rip),%rdi
mov    %rax,(%rsp)
mov    -0x48(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x40(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0x38(%rbp),%rax
mov    %r13,0x18(%rsp)
mov    %r12,0x20(%rsp)
mov    %r15,0x28(%rsp)
mov    %r14,0x30(%rsp)
mov    %rbx,0x38(%rsp)
mov    %r11,0x40(%rsp)
mov    %r10,0x48(%rsp)
mov    %rax,0x50(%rsp)
call   1030 <printf@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_stat>:
push   %rax
mov    %rdi,%rax
mov    0x78(%rdi),%rsi
mov    0x70(%rdi),%rdx
mov    0x68(%rdi),%rcx
mov    0x60(%rdi),%r8
mov    0x58(%rdi),%r9
sub    $0x8,%rsp
lea    0xecd(%rip),%rdi
push   (%rax)
push   0x8(%rax)
push   0x10(%rax)
push   0x18(%rax)
push   0x20(%rax)
push   0x28(%rax)
push   0x30(%rax)
push   0x38(%rax)
push   0x40(%rax)
push   0x48(%rax)
push   0x50(%rax)
call   1030 <printf@plt>
add    $0x60,%rsp
pop    %rax
ret

LLVM IR (-O0):
%struct.stat = type { %struct.TYPE_6__, i64, %struct.TYPE_5__, i64, %struct.TYPE_4__, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
%struct.TYPE_6__ = type { i64 }
%struct.TYPE_5__ = type { i64 }
%struct.TYPE_4__ = type { i64 }
@.str = [292 x i8] c"------------------\0Ast_dev = %li\0Ast_ino = %li\0Ast_mode = %li\0Ast_nlink = %li\0Ast_uid = %li\0Ast_gid = %li\0Ast_rdev = %li\0Ast_size = %li\0Ast_blksize = %li\0Ast_blocks = %li\0Ast_atime = %li\0Ast_ansec = %li\0Ast_mtime = %li\0Ast_mnsec = %li\0Ast_ctime = %li\0Ast_cnsec = %li\0A\00"
define void @show_stat(%struct.stat* %0) {
%2 = alloca %struct.stat*
store %struct.stat* %0, %struct.stat** %2
%3 = load %struct.stat*, %struct.stat** %2
%4 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 15
%5 = load i64, i64* %4
%6 = load %struct.stat*, %struct.stat** %2
%7 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 14
%8 = load i64, i64* %7
%9 = load %struct.stat*, %struct.stat** %2
%10 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 13
%11 = load i64, i64* %10
%12 = load %struct.stat*, %struct.stat** %2
%13 = getelementptr inbounds %struct.stat, %struct.stat* %12, i32 0, i32 12
%14 = load i64, i64* %13
%15 = load %struct.stat*, %struct.stat** %2
%16 = getelementptr inbounds %struct.stat, %struct.stat* %15, i32 0, i32 11
%17 = load i64, i64* %16
%18 = load %struct.stat*, %struct.stat** %2
%19 = getelementptr inbounds %struct.stat, %struct.stat* %18, i32 0, i32 10
%20 = load i64, i64* %19
%21 = load %struct.stat*, %struct.stat** %2
%22 = getelementptr inbounds %struct.stat, %struct.stat* %21, i32 0, i32 9
%23 = load i64, i64* %22
%24 = load %struct.stat*, %struct.stat** %2
%25 = getelementptr inbounds %struct.stat, %struct.stat* %24, i32 0, i32 8
%26 = load i64, i64* %25
%27 = load %struct.stat*, %struct.stat** %2
%28 = getelementptr inbounds %struct.stat, %struct.stat* %27, i32 0, i32 7
%29 = load i64, i64* %28
%30 = load %struct.stat*, %struct.stat** %2
%31 = getelementptr inbounds %struct.stat, %struct.stat* %30, i32 0, i32 6
%32 = load i64, i64* %31
%33 = load %struct.stat*, %struct.stat** %2
%34 = getelementptr inbounds %struct.stat, %struct.stat* %33, i32 0, i32 5
%35 = load i64, i64* %34
%36 = load %struct.stat*, %struct.stat** %2
%37 = getelementptr inbounds %struct.stat, %struct.stat* %36, i32 0, i32 4
%38 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %37, i32 0, i32 0
%39 = load i64, i64* %38
%40 = load %struct.stat*, %struct.stat** %2
%41 = getelementptr inbounds %struct.stat, %struct.stat* %40, i32 0, i32 3
%42 = load i64, i64* %41
%43 = load %struct.stat*, %struct.stat** %2
%44 = getelementptr inbounds %struct.stat, %struct.stat* %43, i32 0, i32 2
%45 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %44, i32 0, i32 0
%46 = load i64, i64* %45
%47 = load %struct.stat*, %struct.stat** %2
%48 = getelementptr inbounds %struct.stat, %struct.stat* %47, i32 0, i32 1
%49 = load i64, i64* %48
%50 = load %struct.stat*, %struct.stat** %2
%51 = getelementptr inbounds %struct.stat, %struct.stat* %50, i32 0, i32 0
%52 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %51, i32 0, i32 0
%53 = load i64, i64* %52
%54 = call i32 @printf(i8* getelementptr inbounds ([292 x i8], [292 x i8]* @.str, i64 0, i64 0), i64 %5, i64 %8, i64 %11, i64 %14, i64 %17, i64 %20, i64 %23, i64 %26, i64 %29, i64 %32, i64 %35, i64 %39, i64 %42, i64 %46, i64 %49, i64 %53)
ret void
}

LLVM IR (-O2):
%struct.stat = type { %struct.TYPE_6__, i64, %struct.TYPE_5__, i64, %struct.TYPE_4__, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
%struct.TYPE_6__ = type { i64 }
%struct.TYPE_5__ = type { i64 }
%struct.TYPE_4__ = type { i64 }
@.str = [292 x i8] c"------------------\0Ast_dev = %li\0Ast_ino = %li\0Ast_mode = %li\0Ast_nlink = %li\0Ast_uid = %li\0Ast_gid = %li\0Ast_rdev = %li\0Ast_size = %li\0Ast_blksize = %li\0Ast_blocks = %li\0Ast_atime = %li\0Ast_ansec = %li\0Ast_mtime = %li\0Ast_mnsec = %li\0Ast_ctime = %li\0Ast_cnsec = %li\0A\00"
define void @show_stat(%struct.stat* nocapture %0) {
%2 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 15
%3 = load i64, i64* %2
%4 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 14
%5 = load i64, i64* %4
%6 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 13
%7 = load i64, i64* %6
%8 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 12
%9 = load i64, i64* %8
%10 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 11
%11 = load i64, i64* %10
%12 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 10
%13 = load i64, i64* %12
%14 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 9
%15 = load i64, i64* %14
%16 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 8
%17 = load i64, i64* %16
%18 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 7
%19 = load i64, i64* %18
%20 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 6
%21 = load i64, i64* %20
%22 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 5
%23 = load i64, i64* %22
%24 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 4, i32 0
%25 = load i64, i64* %24
%26 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 3
%27 = load i64, i64* %26
%28 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 2, i32 0
%29 = load i64, i64* %28
%30 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 1
%31 = load i64, i64* %30
%32 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 0, i32 0
%33 = load i64, i64* %32
%34 = tail call i32 @printf(i8* getelementptr inbounds ([292 x i8], [292 x i8]* @.str, i64 0, i64 0), i64 %3, i64 %5, i64 %7, i64 %9, i64 %11, i64 %13, i64 %15, i64 %17, i64 %19, i64 %21, i64 %23, i64 %25, i64 %27, i64 %29, i64 %31, i64 %33)
ret void
}