#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*/ print_dir_data_base();
int /*<<< orphan*/ print_file_data_base();
int /*<<< orphan*/ print_rule_data_base();
int /*<<< orphan*/ print_variable_data_base();
int /*<<< orphan*/ print_vpath_data_base();
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
void print_data_base() {
  extern char *ctime();
  time_t when;
  when = time((time_t *)0);
  printf("\n# Make data base, printed on %s", ctime(&when));
  print_variable_data_base();
  print_dir_data_base();
  print_rule_data_base();
  print_file_data_base();
  print_vpath_data_base();
  when = time((time_t *)0);
  printf("\n# Finished Make data base on %s\n", ctime(&when));
}


x86 assembly (clang, -O0):
<print_data_base>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,-0x4(%rbp)
lea    -0x4(%rbp),%rdi
mov    $0x0,%al
call   1030 <ctime@plt>
mov    %rax,%rsi
lea    0xe57(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1080 <print_variable_data_base@plt>
mov    $0x0,%al
call   1060 <print_dir_data_base@plt>
mov    $0x0,%al
call   1090 <print_rule_data_base@plt>
mov    $0x0,%al
call   1070 <print_file_data_base@plt>
mov    $0x0,%al
call   10a0 <print_vpath_data_base@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,-0x4(%rbp)
lea    -0x4(%rbp),%rdi
mov    $0x0,%al
call   1030 <ctime@plt>
mov    %rax,%rsi
lea    0xe2f(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_data_base>:
push   %rbx
sub    $0x10,%rsp
xor    %edi,%edi
call   1050 <time@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <ctime@plt>
lea    0xe5a(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
xor    %eax,%eax
call   1080 <print_variable_data_base@plt>
xor    %eax,%eax
call   1060 <print_dir_data_base@plt>
xor    %eax,%eax
call   1090 <print_rule_data_base@plt>
xor    %eax,%eax
call   1070 <print_file_data_base@plt>
xor    %eax,%eax
call   10a0 <print_vpath_data_base@plt>
xor    %edi,%edi
call   1050 <time@plt>
mov    %eax,0xc(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <ctime@plt>
lea    0xe34(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [33 x i8] c"\0A# Make data base, printed on %s\00"
@.str.1 = [34 x i8] c"\0A# Finished Make data base on %s\0A\00"
define void @print_data_base() {
%1 = alloca i32
%2 = call i32 @time(i32* null)
store i32 %2, i32* %1
%3 = call i8* (i32*, ...) bitcast (i8* (...)* @ctime to i8* (i32*, ...)*)(i32* %1)
%4 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (...) @print_variable_data_base()
%6 = call i32 (...) @print_dir_data_base()
%7 = call i32 (...) @print_rule_data_base()
%8 = call i32 (...) @print_file_data_base()
%9 = call i32 (...) @print_vpath_data_base()
%10 = call i32 @time(i32* null)
store i32 %10, i32* %1
%11 = call i8* (i32*, ...) bitcast (i8* (...)* @ctime to i8* (i32*, ...)*)(i32* %1)
%12 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* %11)
ret void
}

LLVM IR (-O2):
@.str = [33 x i8] c"\0A# Make data base, printed on %s\00"
@.str.1 = [34 x i8] c"\0A# Finished Make data base on %s\0A\00"
define void @print_data_base() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @time(i32* null)
store i32 %3, i32* %1
%4 = call i8* (i32*, ...) bitcast (i8* (...)* @ctime to i8* (i32*, ...)*)(i32* %1)
%5 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 (...) @print_variable_data_base()
%7 = call i32 (...) @print_dir_data_base()
%8 = call i32 (...) @print_rule_data_base()
%9 = call i32 (...) @print_file_data_base()
%10 = call i32 (...) @print_vpath_data_base()
%11 = call i32 @time(i32* null)
store i32 %11, i32* %1
%12 = call i8* (i32*, ...) bitcast (i8* (...)* @ctime to i8* (i32*, ...)*)(i32* %1)
%13 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* %12)
ret void
}