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

/* Variables and functions */
char *asctime(int /*<<< orphan*/);
int /*<<< orphan*/ gmtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, char *);
void print_file_stats(struct stat *target_stat) {
  printf("Last Acess Time: %s", asctime(gmtime(&(target_stat->st_atime))));
  printf("Last Modified Time: %s", asctime(gmtime(&(target_stat->st_mtime))));
}


x86 assembly (clang, -O0):
<print_file_stats>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
add    $0x4,%rdi
call   1050 <gmtime@plt>
mov    %eax,%edi
call   1030 <asctime@plt>
mov    %rax,%rsi
lea    0xea6(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <gmtime@plt>
mov    %eax,%edi
call   1030 <asctime@plt>
mov    %rax,%rsi
lea    0xe9b(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_file_stats>:
push   %rbx
mov    %rdi,%rbx
add    $0x4,%rdi
call   1050 <gmtime@plt>
mov    %eax,%edi
call   1030 <asctime@plt>
lea    0xeb5(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1050 <gmtime@plt>
mov    %eax,%edi
call   1030 <asctime@plt>
lea    0xeab(%rip),%rdi
mov    %rax,%rsi
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
%struct.stat = type { i32, i32 }
@.str = [20 x i8] c"Last Acess Time: %s\00"
@.str.1 = [23 x i8] c"Last Modified Time: %s\00"
define void @print_file_stats(%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 1
%5 = call i32 @gmtime(i32* %4)
%6 = call i8* @asctime(i32 %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load %struct.stat*, %struct.stat** %2
%9 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%10 = call i32 @gmtime(i32* %9)
%11 = call i8* @asctime(i32 %10)
%12 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %11)
ret void
}

LLVM IR (-O2):
%struct.stat = type { i32, i32 }
@.str = [20 x i8] c"Last Acess Time: %s\00"
@.str.1 = [23 x i8] c"Last Modified Time: %s\00"
define void @print_file_stats(%struct.stat* %0) {
%2 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 1
%3 = tail call i32 @gmtime(i32* %2)
%4 = tail call i8* @asctime(i32 %3)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 0
%7 = tail call i32 @gmtime(i32* %6)
%8 = tail call i8* @asctime(i32 %7)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %8)
ret void
}