#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 tm {
  int tm_sec;
  int tm_min;
  int tm_hour;
  int tm_mday;
  int tm_mon;
  int tm_year;
  int tm_wday;
  int tm_yday;
  int tm_isdst;
};
struct stat {
  int st_dev;
  int st_ino;
  int st_mode;
  int st_nlink;
  int st_uid;
  int st_gid;
  int st_size;
  int st_blksize;
  int st_blocks;
  int st_atime;
  int st_mtime;
  int st_ctime;
};
struct dirent {
  char *d_name;
};
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
int O_CREAT;
int O_WRONLY;
int /*<<< orphan*/ fstat(int, struct stat *);
struct tm *gmtime(int *);
int open(char *, int, int);
int /*<<< orphan*/ *opendir(char *);
int /*<<< orphan*/ printf(char *, ...);
struct dirent *readdir(int /*<<< orphan*/ *);
int main(int argc, char **argv) {
  char *dir;
  int fd;
  struct tm tim;
  struct stat str;
  dir = argv[1];
  DIR *current_dir = opendir(dir);
  struct dirent *current_file = readdir(current_dir);
  while (current_file != NULL) {
    printf("%s\n", current_file->d_name);
    current_file = readdir(current_dir);
    fd = open(current_file->d_name, O_WRONLY | O_CREAT, 0666);
    fstat(fd, &str);
    printf("st_dev = %d\n", str.st_dev);
    printf("st_ino = %d\n", str.st_ino);
    printf("st_mode = %d\n", str.st_mode);
    printf("st_nlink = %d\n", str.st_nlink);
    printf("st_uid = %d\n", str.st_uid);
    printf("st_gid = %d\n", str.st_gid);
    printf("st_size = %d\n", str.st_size);
    printf("st_blksize = %u\n", str.st_blksize);
    printf("st_blocks = %u\n", str.st_blocks);
    printf("st_atime = %u\n", str.st_atime);
    tim = *gmtime(&(str.st_atime));
    printf("sec = %d\n", tim.tm_sec);
    printf("min = %d\n", tim.tm_min);
    printf("hour = %d\n", tim.tm_hour);
    printf("mday = %d\n", tim.tm_mday);
    printf("mon = %d\n", tim.tm_mon);
    printf("year = %d\n", tim.tm_year);
    printf("wday = %d\n", tim.tm_wday);
    printf("yday = %d\n", tim.tm_yday);
    printf("isdst = %d\n", tim.tm_isdst);
    printf("st_mtime = %u\n", str.st_mtime);
    tim = *gmtime(&(str.st_mtime));
    printf("sec = %d\n", tim.tm_sec);
    printf("min = %d\n", tim.tm_min);
    printf("hour = %d\n", tim.tm_hour);
    printf("mday = %d\n", tim.tm_mday);
    printf("mon = %d\n", tim.tm_mon);
    printf("year = %d\n", tim.tm_year);
    printf("wday = %d\n", tim.tm_wday);
    printf("yday = %d\n", tim.tm_yday);
    printf("isdst = %d\n", tim.tm_isdst);
    printf("st_ctime = %u\n", str.st_ctime);
    tim = *gmtime(&(str.st_ctime));
    printf("sec = %d\n", tim.tm_sec);
    printf("min = %d\n", tim.tm_min);
    printf("hour = %d\n", tim.tm_hour);
    printf("mday = %d\n", tim.tm_mday);
    printf("mon = %d\n", tim.tm_mon);
    printf("year = %d\n", tim.tm_year);
    printf("wday = %d\n", tim.tm_wday);
    printf("yday = %d\n", tim.tm_yday);
    printf("isdst = %d\n", tim.tm_isdst);
    printf("\n\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <opendir@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
call   1060 <readdir@plt>
mov    %rax,-0x80(%rbp)
cmpq   $0x0,-0x80(%rbp)
je     1512 <main+0x3a2>
mov    -0x80(%rbp),%rax
mov    (%rax),%rsi
lea    0xe38(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x78(%rbp),%rdi
call   1060 <readdir@plt>
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
mov    (%rax),%rdi
mov    0x2de6(%rip),%rax
mov    (%rax),%esi
mov    0x2e05(%rip),%rax
or     (%rax),%esi
mov    $0x1b6,%edx
call   1070 <open@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
lea    -0x70(%rbp),%rsi
call   1090 <fstat@plt>
mov    -0x70(%rbp),%esi
lea    0xdec(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x6c(%rbp),%esi
lea    0xde8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x68(%rbp),%esi
lea    0xde4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x64(%rbp),%esi
lea    0xde1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x60(%rbp),%esi
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x5c(%rbp),%esi
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x58(%rbp),%esi
lea    0xdd7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%esi
lea    0xdd4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x50(%rbp),%esi
lea    0xdd4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4c(%rbp),%esi
lea    0xdd3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x70(%rbp),%rdi
add    $0x24,%rdi
call   1080 <gmtime@plt>
mov    %rax,%rsi
lea    -0x40(%rbp),%rdi
mov    $0x24,%edx
call   1050 <memcpy@plt>
mov    -0x40(%rbp),%esi
lea    0xdb3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%esi
lea    0xdac(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%esi
lea    0xda5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x34(%rbp),%esi
lea    0xd9f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%esi
lea    0xd99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x2c(%rbp),%esi
lea    0xd92(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%esi
lea    0xd8c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0xd86(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%esi
lea    0xd80(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x48(%rbp),%esi
lea    0xd7b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x70(%rbp),%rdi
add    $0x28,%rdi
call   1080 <gmtime@plt>
mov    %rax,%rsi
lea    -0x40(%rbp),%rdi
mov    $0x24,%edx
call   1050 <memcpy@plt>
mov    -0x40(%rbp),%esi
lea    0xceb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%esi
lea    0xce4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%esi
lea    0xcdd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x34(%rbp),%esi
lea    0xcd7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%esi
lea    0xcd1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x2c(%rbp),%esi
lea    0xcca(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%esi
lea    0xcc4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0xcbe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%esi
lea    0xcb8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x44(%rbp),%esi
lea    0xcc2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x70(%rbp),%rdi
add    $0x2c,%rdi
call   1080 <gmtime@plt>
mov    %rax,%rsi
lea    -0x40(%rbp),%rdi
mov    $0x24,%edx
call   1050 <memcpy@plt>
mov    -0x40(%rbp),%esi
lea    0xc23(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%esi
lea    0xc1c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%esi
lea    0xc15(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x34(%rbp),%esi
lea    0xc0f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%esi
lea    0xc09(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x2c(%rbp),%esi
lea    0xc02(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%esi
lea    0xbfc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0xbf6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%esi
lea    0xbf0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11af <main+0x3f>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    0x8(%rsi),%rdi
call   1040 <opendir@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1060 <readdir@plt>
test   %rax,%rax
je     151f <main+0x3af>
mov    %rbx,0x38(%rsp)
mov    (%rax),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1060 <readdir@plt>
mov    %rax,0x40(%rsp)
mov    (%rax),%rdi
mov    0x2e39(%rip),%rax
mov    (%rax),%esi
mov    0x2e08(%rip),%rax
or     (%rax),%esi
mov    $0x1b6,%edx
call   1070 <open@plt>
mov    %eax,%edi
lea    0x8(%rsp),%rsi
call   1090 <fstat@plt>
mov    0x8(%rsp),%esi
lea    0xe15(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%esi
lea    0xe10(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%esi
lea    0xe0b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%esi
lea    0xe07(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rsp),%esi
lea    0xe04(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rsp),%esi
lea    0xdff(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%esi
lea    0xdfa(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rsp),%esi
lea    0xdf6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rsp),%esi
lea    0xdf5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rsp),%esi
lea    0xdf3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x2c(%rsp),%rdi
call   1080 <gmtime@plt>
mov    (%rax),%esi
mov    0x4(%rax),%r12d
mov    0x8(%rax),%r13d
mov    0xc(%rax),%ebp
mov    0x10(%rax),%r15d
mov    0x14(%rax),%r14d
mov    0x18(%rax),%ebx
mov    0x1c(%rax),%ecx
mov    %ecx,(%rsp)
mov    0x20(%rax),%eax
mov    %eax,0x4(%rsp)
lea    0xdc5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdc1(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdba(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdb4(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdaf(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xda8(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xda2(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd9d(%rip),%rdi
mov    (%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd97(%rip),%rdi
mov    0x4(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%esi
lea    0xd8d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x30(%rsp),%rdi
call   1080 <gmtime@plt>
mov    (%rax),%esi
mov    0x4(%rax),%ebx
mov    0x8(%rax),%r13d
mov    0xc(%rax),%r14d
mov    0x10(%rax),%ebp
mov    0x14(%rax),%r12d
mov    0x18(%rax),%r15d
mov    0x1c(%rax),%ecx
mov    %ecx,(%rsp)
mov    0x20(%rax),%eax
mov    %eax,0x4(%rsp)
lea    0xcef(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xceb(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xce5(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcdf(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcd9(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcd3(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xccd(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcc7(%rip),%rdi
mov    (%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcc1(%rip),%rdi
mov    0x4(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x34(%rsp),%esi
lea    0xcc6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x34(%rsp),%rdi
call   1080 <gmtime@plt>
mov    (%rax),%esi
mov    0x4(%rax),%ebx
mov    0x8(%rax),%r13d
mov    0xc(%rax),%r14d
mov    0x10(%rax),%ebp
mov    0x14(%rax),%r12d
mov    0x18(%rax),%r15d
mov    0x1c(%rax),%ecx
mov    %ecx,(%rsp)
mov    0x20(%rax),%eax
mov    %eax,0x4(%rsp)
lea    0xc19(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc15(%rip),%rdi
mov    %ebx,%esi
mov    0x38(%rsp),%rbx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc0a(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc04(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xbfe(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xbf8(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xbf2(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xbec(%rip),%rdi
mov    (%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xbe6(%rip),%rdi
mov    0x4(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xb87(%rip),%rdi
call   1030 <puts@plt>
mov    0x40(%rsp),%rax
jmp    11a0 <main+0x30>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.stat = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.dirent = type { i8* }
@.str = [4 x i8] c"%s\0A\00"
@O_WRONLY = global i32 0
@O_CREAT = global i32 0
@.str.1 = [13 x i8] c"st_dev = %d\0A\00"
@.str.2 = [13 x i8] c"st_ino = %d\0A\00"
@.str.3 = [14 x i8] c"st_mode = %d\0A\00"
@.str.4 = [15 x i8] c"st_nlink = %d\0A\00"
@.str.5 = [13 x i8] c"st_uid = %d\0A\00"
@.str.6 = [13 x i8] c"st_gid = %d\0A\00"
@.str.7 = [14 x i8] c"st_size = %d\0A\00"
@.str.8 = [17 x i8] c"st_blksize = %u\0A\00"
@.str.9 = [16 x i8] c"st_blocks = %u\0A\00"
@.str.10 = [15 x i8] c"st_atime = %u\0A\00"
@.str.11 = [10 x i8] c"sec = %d\0A\00"
@.str.12 = [10 x i8] c"min = %d\0A\00"
@.str.13 = [11 x i8] c"hour = %d\0A\00"
@.str.14 = [11 x i8] c"mday = %d\0A\00"
@.str.15 = [10 x i8] c"mon = %d\0A\00"
@.str.16 = [11 x i8] c"year = %d\0A\00"
@.str.17 = [11 x i8] c"wday = %d\0A\00"
@.str.18 = [11 x i8] c"yday = %d\0A\00"
@.str.19 = [12 x i8] c"isdst = %d\0A\00"
@.str.20 = [15 x i8] c"st_mtime = %u\0A\00"
@.str.21 = [15 x i8] c"st_ctime = %u\0A\00"
@.str.22 = [3 x i8] c"\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca %struct.tm
%9 = alloca %struct.stat
%10 = alloca i32*
%11 = alloca %struct.dirent*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 1
%14 = load i8*, i8** %13
store i8* %14, i8** %6
%15 = load i8*, i8** %6
%16 = call i32* @opendir(i8* %15)
store i32* %16, i32** %10
%17 = load i32*, i32** %10
%18 = call %struct.dirent* @readdir(i32* %17)
store %struct.dirent* %18, %struct.dirent** %11
br label %19
19: ; preds = %22, %2
%20 = load %struct.dirent*, %struct.dirent** %11
%21 = icmp ne %struct.dirent* %20, null
br i1 %21, label %22, label %168
22: ; preds = %19
%23 = load %struct.dirent*, %struct.dirent** %11
%24 = getelementptr inbounds %struct.dirent, %struct.dirent* %23, i32 0, i32 0
%25 = load i8*, i8** %24
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %25)
%27 = load i32*, i32** %10
%28 = call %struct.dirent* @readdir(i32* %27)
store %struct.dirent* %28, %struct.dirent** %11
%29 = load %struct.dirent*, %struct.dirent** %11
%30 = getelementptr inbounds %struct.dirent, %struct.dirent* %29, i32 0, i32 0
%31 = load i8*, i8** %30
%32 = load i32, i32* @O_WRONLY
%33 = load i32, i32* @O_CREAT
%34 = or i32 %32, %33
%35 = call i32 @open(i8* %31, i32 %34, i32 438)
store i32 %35, i32* %7
%36 = load i32, i32* %7
%37 = call i32 @fstat(i32 %36, %struct.stat* %9)
%38 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 0
%39 = load i32, i32* %38
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %39)
%41 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 1
%42 = load i32, i32* %41
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %42)
%44 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 2
%45 = load i32, i32* %44
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %45)
%47 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 3
%48 = load i32, i32* %47
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %48)
%50 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 4
%51 = load i32, i32* %50
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 %51)
%53 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 5
%54 = load i32, i32* %53
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %54)
%56 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 6
%57 = load i32, i32* %56
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 %57)
%59 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 7
%60 = load i32, i32* %59
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32 %60)
%62 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 8
%63 = load i32, i32* %62
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %63)
%65 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 9
%66 = load i32, i32* %65
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 %66)
%68 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 9
%69 = call %struct.tm* @gmtime(i32* %68)
%70 = bitcast %struct.tm* %8 to i8*
%71 = bitcast %struct.tm* %69 to i8*
%72 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 0
%73 = load i32, i32* %72
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i32 %73)
%75 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 1
%76 = load i32, i32* %75
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %76)
%78 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 2
%79 = load i32, i32* %78
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32 %79)
%81 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 3
%82 = load i32, i32* %81
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %82)
%84 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 4
%85 = load i32, i32* %84
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 %85)
%87 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 5
%88 = load i32, i32* %87
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i32 %88)
%90 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 6
%91 = load i32, i32* %90
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0), i32 %91)
%93 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 7
%94 = load i32, i32* %93
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0), i32 %94)
%96 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 8
%97 = load i32, i32* %96
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0), i32 %97)
%99 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 10
%100 = load i32, i32* %99
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i32 %100)
%102 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 10
%103 = call %struct.tm* @gmtime(i32* %102)
%104 = bitcast %struct.tm* %8 to i8*
%105 = bitcast %struct.tm* %103 to i8*
%106 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 0
%107 = load i32, i32* %106
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i32 %107)
%109 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 1
%110 = load i32, i32* %109
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %110)
%112 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 2
%113 = load i32, i32* %112
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32 %113)
%115 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 3
%116 = load i32, i32* %115
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %116)
%118 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 4
%119 = load i32, i32* %118
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 %119)
%121 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 5
%122 = load i32, i32* %121
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i32 %122)
%124 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 6
%125 = load i32, i32* %124
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0), i32 %125)
%127 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 7
%128 = load i32, i32* %127
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0), i32 %128)
%130 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 8
%131 = load i32, i32* %130
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0), i32 %131)
%133 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 11
%134 = load i32, i32* %133
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32 %134)
%136 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 11
%137 = call %struct.tm* @gmtime(i32* %136)
%138 = bitcast %struct.tm* %8 to i8*
%139 = bitcast %struct.tm* %137 to i8*
%140 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 0
%141 = load i32, i32* %140
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i32 %141)
%143 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 1
%144 = load i32, i32* %143
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %144)
%146 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 2
%147 = load i32, i32* %146
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32 %147)
%149 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 3
%150 = load i32, i32* %149
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %150)
%152 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 4
%153 = load i32, i32* %152
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 %153)
%155 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 5
%156 = load i32, i32* %155
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i32 %156)
%158 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 6
%159 = load i32, i32* %158
%160 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0), i32 %159)
%161 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 7
%162 = load i32, i32* %161
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0), i32 %162)
%164 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 8
%165 = load i32, i32* %164
%166 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0), i32 %165)
%167 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
br label %19
168: ; preds = %19
ret i32 0
}

LLVM IR (-O2):
%struct.stat = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.dirent = type { i8* }
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
@O_WRONLY = global i32 0
@O_CREAT = global i32 0
@.str.1 = [13 x i8] c"st_dev = %d\0A\00"
@.str.2 = [13 x i8] c"st_ino = %d\0A\00"
@.str.3 = [14 x i8] c"st_mode = %d\0A\00"
@.str.4 = [15 x i8] c"st_nlink = %d\0A\00"
@.str.5 = [13 x i8] c"st_uid = %d\0A\00"
@.str.6 = [13 x i8] c"st_gid = %d\0A\00"
@.str.7 = [14 x i8] c"st_size = %d\0A\00"
@.str.8 = [17 x i8] c"st_blksize = %u\0A\00"
@.str.9 = [16 x i8] c"st_blocks = %u\0A\00"
@.str.10 = [15 x i8] c"st_atime = %u\0A\00"
@.str.11 = [10 x i8] c"sec = %d\0A\00"
@.str.12 = [10 x i8] c"min = %d\0A\00"
@.str.13 = [11 x i8] c"hour = %d\0A\00"
@.str.14 = [11 x i8] c"mday = %d\0A\00"
@.str.15 = [10 x i8] c"mon = %d\0A\00"
@.str.16 = [11 x i8] c"year = %d\0A\00"
@.str.17 = [11 x i8] c"wday = %d\0A\00"
@.str.18 = [11 x i8] c"yday = %d\0A\00"
@.str.19 = [12 x i8] c"isdst = %d\0A\00"
@.str.20 = [15 x i8] c"st_mtime = %u\0A\00"
@.str.21 = [15 x i8] c"st_ctime = %u\0A\00"
@str = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.stat
%4 = bitcast %struct.stat* %3 to i8*
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32* @opendir(i8* %6)
%8 = tail call %struct.dirent* @readdir(i32* %7)
%9 = icmp eq %struct.dirent* %8, null
br i1 %9, label %145, label %10
10: ; preds = %2
%11 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%12 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 1
%13 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 2
%14 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 3
%15 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 4
%16 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 5
%17 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 6
%18 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 7
%19 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 8
%20 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 9
%21 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 10
%22 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 11
br label %23
23: ; preds = %23, %10
%24 = phi %struct.dirent* [ %8, %10 ], [ %28, %23 ]
%25 = getelementptr inbounds %struct.dirent, %struct.dirent* %24, i64 0, i32 0
%26 = load i8*, i8** %25
%27 = call i32 @puts(i8* dereferenceable(1) %26)
%28 = call %struct.dirent* @readdir(i32* %7)
%29 = getelementptr inbounds %struct.dirent, %struct.dirent* %28, i64 0, i32 0
%30 = load i8*, i8** %29
%31 = load i32, i32* @O_WRONLY
%32 = load i32, i32* @O_CREAT
%33 = or i32 %32, %31
%34 = call i32 @open(i8* %30, i32 %33, i32 438)
%35 = call i32 @fstat(i32 %34, %struct.stat* %3)
%36 = load i32, i32* %11
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %36)
%38 = load i32, i32* %12
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %38)
%40 = load i32, i32* %13
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %40)
%42 = load i32, i32* %14
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %42)
%44 = load i32, i32* %15
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 %44)
%46 = load i32, i32* %16
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %46)
%48 = load i32, i32* %17
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %18
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %19
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %52)
%54 = load i32, i32* %20
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 %54)
%56 = call %struct.tm* @gmtime(i32* %20)
%57 = getelementptr inbounds %struct.tm, %struct.tm* %56, i64 0, i32 0
%58 = load i32, i32* %57
%59 = getelementptr inbounds %struct.tm, %struct.tm* %56, i64 0, i32 1
%60 = load i32, i32* %59
%61 = getelementptr inbounds %struct.tm, %struct.tm* %56, i64 0, i32 2
%62 = load i32, i32* %61
%63 = getelementptr inbounds %struct.tm, %struct.tm* %56, i64 0, i32 3
%64 = load i32, i32* %63
%65 = getelementptr inbounds %struct.tm, %struct.tm* %56, i64 0, i32 4
%66 = load i32, i32* %65
%67 = getelementptr inbounds %struct.tm, %struct.tm* %56, i64 0, i32 5
%68 = load i32, i32* %67
%69 = getelementptr inbounds %struct.tm, %struct.tm* %56, i64 0, i32 6
%70 = load i32, i32* %69
%71 = getelementptr inbounds %struct.tm, %struct.tm* %56, i64 0, i32 7
%72 = load i32, i32* %71
%73 = getelementptr inbounds %struct.tm, %struct.tm* %56, i64 0, i32 8
%74 = load i32, i32* %73
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i32 %58)
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %60)
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32 %62)
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %64)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 %66)
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i32 %68)
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0), i32 %70)
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0), i32 %72)
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0), i32 %74)
%84 = load i32, i32* %21
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i32 %84)
%86 = call %struct.tm* @gmtime(i32* %21)
%87 = getelementptr inbounds %struct.tm, %struct.tm* %86, i64 0, i32 0
%88 = load i32, i32* %87
%89 = getelementptr inbounds %struct.tm, %struct.tm* %86, i64 0, i32 1
%90 = load i32, i32* %89
%91 = getelementptr inbounds %struct.tm, %struct.tm* %86, i64 0, i32 2
%92 = load i32, i32* %91
%93 = getelementptr inbounds %struct.tm, %struct.tm* %86, i64 0, i32 3
%94 = load i32, i32* %93
%95 = getelementptr inbounds %struct.tm, %struct.tm* %86, i64 0, i32 4
%96 = load i32, i32* %95
%97 = getelementptr inbounds %struct.tm, %struct.tm* %86, i64 0, i32 5
%98 = load i32, i32* %97
%99 = getelementptr inbounds %struct.tm, %struct.tm* %86, i64 0, i32 6
%100 = load i32, i32* %99
%101 = getelementptr inbounds %struct.tm, %struct.tm* %86, i64 0, i32 7
%102 = load i32, i32* %101
%103 = getelementptr inbounds %struct.tm, %struct.tm* %86, i64 0, i32 8
%104 = load i32, i32* %103
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i32 %88)
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %90)
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32 %92)
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %94)
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 %96)
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i32 %98)
%111 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0), i32 %100)
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0), i32 %102)
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0), i32 %104)
%114 = load i32, i32* %22
%115 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32 %114)
%116 = call %struct.tm* @gmtime(i32* %22)
%117 = getelementptr inbounds %struct.tm, %struct.tm* %116, i64 0, i32 0
%118 = load i32, i32* %117
%119 = getelementptr inbounds %struct.tm, %struct.tm* %116, i64 0, i32 1
%120 = load i32, i32* %119
%121 = getelementptr inbounds %struct.tm, %struct.tm* %116, i64 0, i32 2
%122 = load i32, i32* %121
%123 = getelementptr inbounds %struct.tm, %struct.tm* %116, i64 0, i32 3
%124 = load i32, i32* %123
%125 = getelementptr inbounds %struct.tm, %struct.tm* %116, i64 0, i32 4
%126 = load i32, i32* %125
%127 = getelementptr inbounds %struct.tm, %struct.tm* %116, i64 0, i32 5
%128 = load i32, i32* %127
%129 = getelementptr inbounds %struct.tm, %struct.tm* %116, i64 0, i32 6
%130 = load i32, i32* %129
%131 = getelementptr inbounds %struct.tm, %struct.tm* %116, i64 0, i32 7
%132 = load i32, i32* %131
%133 = getelementptr inbounds %struct.tm, %struct.tm* %116, i64 0, i32 8
%134 = load i32, i32* %133
%135 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i32 %118)
%136 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %120)
%137 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32 %122)
%138 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %124)
%139 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 %126)
%140 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i32 %128)
%141 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0), i32 %130)
%142 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0), i32 %132)
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0), i32 %134)
%144 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
br label %23
145: ; preds = %2
ret i32 0
}