#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;

/* Variables and functions */
int /*<<< orphan*/ get_indonesian_local_time_string(int /*<<< orphan*/ *,
                                                    char *, int);
int /*<<< orphan*/ get_utc_time_iso_string(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ get_utc_time_string(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(void) {
  char string_buf[64];
  time_t t = time(NULL);
  printf("%ld seconds since the Epoch\n", t);
  get_utc_time_string(&t, string_buf);
  puts(string_buf);
  get_utc_time_iso_string(&t, string_buf);
  puts(string_buf);
  get_indonesian_local_time_string(&t, string_buf, 64);
  puts(string_buf);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1060 <time@plt>
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%esi
lea    0xe7b(%rip),%rdi
call   1050 <printf@plt>
lea    -0x50(%rbp),%rsi
lea    -0x54(%rbp),%rdi
call   1080 <get_utc_time_string@plt>
lea    -0x50(%rbp),%rdi
call   1030 <puts@plt>
lea    -0x50(%rbp),%rsi
lea    -0x54(%rbp),%rdi
call   1070 <get_utc_time_iso_string@plt>
lea    -0x50(%rbp),%rdi
call   1030 <puts@plt>
lea    -0x50(%rbp),%rsi
lea    -0x54(%rbp),%rdi
mov    $0x40,%edx
call   1040 <get_indonesian_local_time_string@plt>
lea    -0x50(%rbp),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x58,%rsp
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,0xc(%rsp)
lea    0xe87(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
lea    0xc(%rsp),%r14
lea    0x10(%rsp),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1080 <get_utc_time_string@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <get_utc_time_iso_string@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x40,%edx
call   1040 <get_indonesian_local_time_string@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [29 x i8] c"%ld seconds since the Epoch\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [64 x i8]
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @time(i32* null)
store i32 %4, i32* %3
%5 = load i32, i32* %3
%6 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%8 = call i32 @get_utc_time_string(i32* %3, i8* %7)
%9 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%10 = call i32 @puts(i8* %9)
%11 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%12 = call i32 @get_utc_time_iso_string(i32* %3, i8* %11)
%13 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%14 = call i32 @puts(i8* %13)
%15 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%16 = call i32 @get_indonesian_local_time_string(i32* %3, i8* %15, i32 64)
%17 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%18 = call i32 @puts(i8* %17)
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c"%ld seconds since the Epoch\0A\00"
define i32 @main() {
%1 = alloca [64 x i8]
%2 = alloca i32
%3 = getelementptr inbounds [64 x i8], [64 x i8]* %1, i64 0, i64 0
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 @time(i32* null)
store i32 %5, i32* %2
%6 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = call i32 @get_utc_time_string(i32* %2, i8* %3)
%8 = call i32 @puts(i8* %3)
%9 = call i32 @get_utc_time_iso_string(i32* %2, i8* %3)
%10 = call i32 @puts(i8* %3)
%11 = call i32 @get_indonesian_local_time_string(i32* %2, i8* %3, i32 64)
%12 = call i32 @puts(i8* %3)
ret i32 0
}