#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 */

/* Variables and functions */
int /*<<< orphan*/ log_lprint(int /*<<< orphan*/, char *, int /*<<< orphan*/);
int /*<<< orphan*/ player_get_build_name_info();
int /*<<< orphan*/ player_get_build_time_info();
int /*<<< orphan*/ player_get_git_version_info();
int /*<<< orphan*/ player_get_last_chaned_time_info();
int /*<<< orphan*/ player_get_version_info();
int /*<<< orphan*/ player_get_version_serail();
int /*<<< orphan*/ player_version_info_init();
void print_version_info() {
  player_version_info_init();
  log_lprint(0, "LibPlayer version:%s\n", player_get_version_info());
  log_lprint(0, "LibPlayer git version:%s\n", player_get_git_version_info());
  log_lprint(0, "LibPlayer version serial:%llx\n", player_get_version_serail());
  log_lprint(0, "LibPlayer Last Changed:%s\n",
             player_get_last_chaned_time_info());
  log_lprint(0, "LibPlayer Last Build:%s\n", player_get_build_time_info());
  log_lprint(0, "LibPlayer Builer Name:%s\n", player_get_build_name_info());
}


x86 assembly (clang, -O0):
<print_version_info>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <player_version_info_init@plt>
mov    $0x0,%al
call   1040 <player_get_version_info@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xe63(%rip),%rsi
call   1080 <log_lprint@plt>
mov    $0x0,%al
call   1050 <player_get_git_version_info@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xe62(%rip),%rsi
call   1080 <log_lprint@plt>
mov    $0x0,%al
call   1060 <player_get_version_serail@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xe65(%rip),%rsi
call   1080 <log_lprint@plt>
mov    $0x0,%al
call   1090 <player_get_last_chaned_time_info@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xe6d(%rip),%rsi
call   1080 <log_lprint@plt>
mov    $0x0,%al
call   10a0 <player_get_build_time_info@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xe71(%rip),%rsi
call   1080 <log_lprint@plt>
mov    $0x0,%al
call   1070 <player_get_build_name_info@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xe73(%rip),%rsi
call   1080 <log_lprint@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_version_info>:
push   %rax
xor    %eax,%eax
call   1030 <player_version_info_init@plt>
xor    %eax,%eax
call   1040 <player_get_version_info@plt>
lea    0xe6a(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1080 <log_lprint@plt>
xor    %eax,%eax
call   1050 <player_get_git_version_info@plt>
lea    0xe69(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1080 <log_lprint@plt>
xor    %eax,%eax
call   1060 <player_get_version_serail@plt>
lea    0xe6c(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1080 <log_lprint@plt>
xor    %eax,%eax
call   1090 <player_get_last_chaned_time_info@plt>
lea    0xe74(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1080 <log_lprint@plt>
xor    %eax,%eax
call   10a0 <player_get_build_time_info@plt>
lea    0xe78(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1080 <log_lprint@plt>
xor    %eax,%eax
call   1070 <player_get_build_name_info@plt>
lea    0xe7a(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
pop    %rax
jmp    1080 <log_lprint@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"LibPlayer version:%s\0A\00"
@.str.1 = [26 x i8] c"LibPlayer git version:%s\0A\00"
@.str.2 = [31 x i8] c"LibPlayer version serial:%llx\0A\00"
@.str.3 = [27 x i8] c"LibPlayer Last Changed:%s\0A\00"
@.str.4 = [25 x i8] c"LibPlayer Last Build:%s\0A\00"
@.str.5 = [26 x i8] c"LibPlayer Builer Name:%s\0A\00"
define void @print_version_info() {
%1 = call i32 (...) @player_version_info_init()
%2 = call i32 (...) @player_get_version_info()
%3 = call i32 @log_lprint(i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = call i32 (...) @player_get_git_version_info()
%5 = call i32 @log_lprint(i32 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = call i32 (...) @player_get_version_serail()
%7 = call i32 @log_lprint(i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = call i32 (...) @player_get_last_chaned_time_info()
%9 = call i32 @log_lprint(i32 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = call i32 (...) @player_get_build_time_info()
%11 = call i32 @log_lprint(i32 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = call i32 (...) @player_get_build_name_info()
%13 = call i32 @log_lprint(i32 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i32 %12)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"LibPlayer version:%s\0A\00"
@.str.1 = [26 x i8] c"LibPlayer git version:%s\0A\00"
@.str.2 = [31 x i8] c"LibPlayer version serial:%llx\0A\00"
@.str.3 = [27 x i8] c"LibPlayer Last Changed:%s\0A\00"
@.str.4 = [25 x i8] c"LibPlayer Last Build:%s\0A\00"
@.str.5 = [26 x i8] c"LibPlayer Builer Name:%s\0A\00"
define void @print_version_info() {
%1 = tail call i32 (...) @player_version_info_init()
%2 = tail call i32 (...) @player_get_version_info()
%3 = tail call i32 @log_lprint(i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = tail call i32 (...) @player_get_git_version_info()
%5 = tail call i32 @log_lprint(i32 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = tail call i32 (...) @player_get_version_serail()
%7 = tail call i32 @log_lprint(i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = tail call i32 (...) @player_get_last_chaned_time_info()
%9 = tail call i32 @log_lprint(i32 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = tail call i32 (...) @player_get_build_time_info()
%11 = tail call i32 @log_lprint(i32 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = tail call i32 (...) @player_get_build_name_info()
%13 = tail call i32 @log_lprint(i32 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i32 %12)
ret void
}