#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 */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int tm_year;
  int tm_mon;
  int tm_sec;
  int tm_min;
  int tm_hour;
  int tm_mday;
};

/* Variables and functions */
struct tm *localtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ print_int64(int);
int /*<<< orphan*/ putchar(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  time_t rawTime;
  time(&rawTime);
  struct tm *curTime = localtime(&rawTime);
  curTime->tm_year += 1900;
  curTime->tm_mon++;
  print_int64(curTime->tm_sec);
  print_int64(curTime->tm_min);
  print_int64(curTime->tm_hour);
  print_int64(curTime->tm_mday);
  print_int64(curTime->tm_mon);
  print_int64(curTime->tm_year % 100);
  print_int64(curTime->tm_year / 100);
  while (1) {
    putchar(0);
    putchar(0);
    putchar(0);
    putchar(0);
    putchar(0);
    putchar(0);
    putchar(0);
    putchar(0);
    putchar(0);
    putchar(0);
    putchar(0);
    putchar(0);
    putchar(0);
    putchar(0);
    putchar(0);
    putchar(0);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x8(%rbp),%rdi
call   1060 <time@plt>
lea    -0x8(%rbp),%rdi
call   1040 <localtime@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
add    $0x76c,%ecx
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%ecx
add    $0x1,%ecx
mov    %ecx,0x4(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%edi
call   1050 <print_int64@plt>
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%edi
call   1050 <print_int64@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%edi
call   1050 <print_int64@plt>
mov    -0x10(%rbp),%rax
mov    0x14(%rax),%edi
call   1050 <print_int64@plt>
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%edi
call   1050 <print_int64@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
call   1050 <print_int64@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
call   1050 <print_int64@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
jmp    11e6 <main+0xa6>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xc(%rsp),%rbx
mov    %rbx,%rdi
call   1060 <time@plt>
mov    %rbx,%rdi
call   1040 <localtime@plt>
mov    %rax,%rbx
addl   $0x76c,(%rax)
addl   $0x1,0x4(%rax)
mov    0x8(%rax),%edi
call   1050 <print_int64@plt>
mov    0xc(%rbx),%edi
call   1050 <print_int64@plt>
mov    0x10(%rbx),%edi
call   1050 <print_int64@plt>
mov    0x14(%rbx),%edi
call   1050 <print_int64@plt>
mov    0x4(%rbx),%edi
call   1050 <print_int64@plt>
movslq (%rbx),%rdi
imul   $0x51eb851f,%rdi,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
add    %ecx,%eax
imul   $0x64,%eax,%eax
sub    %eax,%edi
call   1050 <print_int64@plt>
movslq (%rbx),%rax
imul   $0x51eb851f,%rax,%rdi
mov    %rdi,%rax
shr    $0x3f,%rax
sar    $0x25,%rdi
add    %eax,%edi
call   1050 <print_int64@plt>
nopl   0x0(%rax)
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1030 <putchar@plt>
jmp    11d0 <main+0x90>

LLVM IR (-O0):
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca %struct.tm*
store i32 0, i32* %1
%4 = call i32 @time(i32* %2)
%5 = call %struct.tm* @localtime(i32* %2)
store %struct.tm* %5, %struct.tm** %3
%6 = load %struct.tm*, %struct.tm** %3
%7 = getelementptr inbounds %struct.tm, %struct.tm* %6, i32 0, i32 0
%8 = load i32, i32* %7
%9 = add nsw i32 %8, 1900
store i32 %9, i32* %7
%10 = load %struct.tm*, %struct.tm** %3
%11 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 1
%12 = load i32, i32* %11
%13 = add nsw i32 %12, 1
store i32 %13, i32* %11
%14 = load %struct.tm*, %struct.tm** %3
%15 = getelementptr inbounds %struct.tm, %struct.tm* %14, i32 0, i32 2
%16 = load i32, i32* %15
%17 = call i32 @print_int64(i32 %16)
%18 = load %struct.tm*, %struct.tm** %3
%19 = getelementptr inbounds %struct.tm, %struct.tm* %18, i32 0, i32 3
%20 = load i32, i32* %19
%21 = call i32 @print_int64(i32 %20)
%22 = load %struct.tm*, %struct.tm** %3
%23 = getelementptr inbounds %struct.tm, %struct.tm* %22, i32 0, i32 4
%24 = load i32, i32* %23
%25 = call i32 @print_int64(i32 %24)
%26 = load %struct.tm*, %struct.tm** %3
%27 = getelementptr inbounds %struct.tm, %struct.tm* %26, i32 0, i32 5
%28 = load i32, i32* %27
%29 = call i32 @print_int64(i32 %28)
%30 = load %struct.tm*, %struct.tm** %3
%31 = getelementptr inbounds %struct.tm, %struct.tm* %30, i32 0, i32 1
%32 = load i32, i32* %31
%33 = call i32 @print_int64(i32 %32)
%34 = load %struct.tm*, %struct.tm** %3
%35 = getelementptr inbounds %struct.tm, %struct.tm* %34, i32 0, i32 0
%36 = load i32, i32* %35
%37 = srem i32 %36, 100
%38 = call i32 @print_int64(i32 %37)
%39 = load %struct.tm*, %struct.tm** %3
%40 = getelementptr inbounds %struct.tm, %struct.tm* %39, i32 0, i32 0
%41 = load i32, i32* %40
%42 = sdiv i32 %41, 100
%43 = call i32 @print_int64(i32 %42)
br label %44
44: ; preds = %0, %44
%45 = call i32 @putchar(i32 0)
%46 = call i32 @putchar(i32 0)
%47 = call i32 @putchar(i32 0)
%48 = call i32 @putchar(i32 0)
%49 = call i32 @putchar(i32 0)
%50 = call i32 @putchar(i32 0)
%51 = call i32 @putchar(i32 0)
%52 = call i32 @putchar(i32 0)
%53 = call i32 @putchar(i32 0)
%54 = call i32 @putchar(i32 0)
%55 = call i32 @putchar(i32 0)
%56 = call i32 @putchar(i32 0)
%57 = call i32 @putchar(i32 0)
%58 = call i32 @putchar(i32 0)
%59 = call i32 @putchar(i32 0)
%60 = call i32 @putchar(i32 0)
br label %44
}

LLVM IR (-O2):
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @time(i32* %1)
%4 = call %struct.tm* @localtime(i32* %1)
%5 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 0
%6 = load i32, i32* %5
%7 = add nsw i32 %6, 1900
store i32 %7, i32* %5
%8 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 1
%9 = load i32, i32* %8
%10 = add nsw i32 %9, 1
store i32 %10, i32* %8
%11 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 2
%12 = load i32, i32* %11
%13 = call i32 @print_int64(i32 %12)
%14 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 3
%15 = load i32, i32* %14
%16 = call i32 @print_int64(i32 %15)
%17 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 4
%18 = load i32, i32* %17
%19 = call i32 @print_int64(i32 %18)
%20 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 5
%21 = load i32, i32* %20
%22 = call i32 @print_int64(i32 %21)
%23 = load i32, i32* %8
%24 = call i32 @print_int64(i32 %23)
%25 = load i32, i32* %5
%26 = srem i32 %25, 100
%27 = call i32 @print_int64(i32 %26)
%28 = load i32, i32* %5
%29 = sdiv i32 %28, 100
%30 = call i32 @print_int64(i32 %29)
br label %31
31: ; preds = %31, %0
%32 = call i32 @putchar(i32 0)
%33 = call i32 @putchar(i32 0)
%34 = call i32 @putchar(i32 0)
%35 = call i32 @putchar(i32 0)
%36 = call i32 @putchar(i32 0)
%37 = call i32 @putchar(i32 0)
%38 = call i32 @putchar(i32 0)
%39 = call i32 @putchar(i32 0)
%40 = call i32 @putchar(i32 0)
%41 = call i32 @putchar(i32 0)
%42 = call i32 @putchar(i32 0)
%43 = call i32 @putchar(i32 0)
%44 = call i32 @putchar(i32 0)
%45 = call i32 @putchar(i32 0)
%46 = call i32 @putchar(i32 0)
%47 = call i32 @putchar(i32 0)
br label %31
}