#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*/ NP2_TickCount_GetCount();
int /*<<< orphan*/ NP2_TickCount_GetCountFromInit();
int /*<<< orphan*/ NP2_TickCount_GetFrequency();
int /*<<< orphan*/ NP2_TickCount_Initialize();
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
void main(void) {
  NP2_TickCount_Initialize();
  printf("Count      : %ld\n", NP2_TickCount_GetCount());
  printf("Frequency  : %ld Hz\n", NP2_TickCount_GetFrequency());
  printf("Count(run) : %ld\n", NP2_TickCount_GetCountFromInit());
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <NP2_TickCount_Initialize@plt>
mov    $0x0,%al
call   1040 <NP2_TickCount_GetCount@plt>
mov    %eax,%esi
lea    0xe95(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <NP2_TickCount_GetFrequency@plt>
mov    %eax,%esi
lea    0xe92(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <NP2_TickCount_GetCountFromInit@plt>
mov    %eax,%esi
lea    0xe92(%rip),%rdi
call   1050 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <NP2_TickCount_Initialize@plt>
xor    %eax,%eax
call   1040 <NP2_TickCount_GetCount@plt>
lea    0xe9a(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1060 <NP2_TickCount_GetFrequency@plt>
lea    0xe97(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1070 <NP2_TickCount_GetCountFromInit@plt>
lea    0xe97(%rip),%rdi
mov    %eax,%esi
pop    %rax
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"Count : %ld\0A\00"
@.str.1 = [21 x i8] c"Frequency : %ld Hz\0A\00"
@.str.2 = [18 x i8] c"Count(run) : %ld\0A\00"
define void @main() {
%1 = call i32 (...) @NP2_TickCount_Initialize()
%2 = call i32 (...) @NP2_TickCount_GetCount()
%3 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = call i32 (...) @NP2_TickCount_GetFrequency()
%5 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = call i32 (...) @NP2_TickCount_GetCountFromInit()
%7 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %6)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"Count : %ld\0A\00"
@.str.1 = [21 x i8] c"Frequency : %ld Hz\0A\00"
@.str.2 = [18 x i8] c"Count(run) : %ld\0A\00"
define void @main() {
%1 = tail call i32 (...) @NP2_TickCount_Initialize()
%2 = tail call i32 (...) @NP2_TickCount_GetCount()
%3 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = tail call i32 (...) @NP2_TickCount_GetFrequency()
%5 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = tail call i32 (...) @NP2_TickCount_GetCountFromInit()
%7 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %6)
ret void
}