#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*/ data2hex(int, int /*<<< orphan*/, char *);
int /*<<< orphan*/ get_hmdl_time();
int /*<<< orphan*/ get_hmdl_time_inc();
int /*<<< orphan*/ sendMesg(char *);
void send_time() {
  char mes[12] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
  data2hex(8, get_hmdl_time(), mes);
  sendMesg("!");
  sendMesg(mes);
  sendMesg("\r\n");
  data2hex(8, get_hmdl_time_inc(), mes);
  sendMesg("inc: ");
  sendMesg(mes);
  sendMesg("\r\n");
}


x86 assembly (clang, -O0):
<send_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0xc(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
mov    $0x0,%al
call   1070 <get_hmdl_time@plt>
mov    %eax,%esi
lea    -0xc(%rbp),%rdx
mov    $0x8,%edi
call   1030 <data2hex@plt>
lea    0xe7a(%rip),%rdi
call   1060 <sendMesg@plt>
lea    -0xc(%rbp),%rdi
call   1060 <sendMesg@plt>
lea    0xe67(%rip),%rdi
call   1060 <sendMesg@plt>
mov    $0x0,%al
call   1040 <get_hmdl_time_inc@plt>
mov    %eax,%esi
lea    -0xc(%rbp),%rdx
mov    $0x8,%edi
call   1030 <data2hex@plt>
lea    0xe47(%rip),%rdi
call   1060 <sendMesg@plt>
lea    -0xc(%rbp),%rdi
call   1060 <sendMesg@plt>
lea    0xe2f(%rip),%rdi
call   1060 <sendMesg@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<send_time>:
push   %r14
push   %rbx
sub    $0x18,%rsp
movl   $0x0,0x10(%rsp)
movq   $0x0,0x8(%rsp)
xor    %eax,%eax
call   1060 <get_hmdl_time@plt>
lea    0x8(%rsp),%rbx
mov    $0x8,%edi
mov    %eax,%esi
mov    %rbx,%rdx
call   1030 <data2hex@plt>
lea    0xe86(%rip),%rdi
call   1050 <sendMesg@plt>
mov    %rbx,%rdi
call   1050 <sendMesg@plt>
lea    0xe74(%rip),%r14
mov    %r14,%rdi
call   1050 <sendMesg@plt>
xor    %eax,%eax
call   1040 <get_hmdl_time_inc@plt>
mov    $0x8,%edi
mov    %eax,%esi
mov    %rbx,%rdx
call   1030 <data2hex@plt>
lea    0xe52(%rip),%rdi
call   1050 <sendMesg@plt>
mov    %rbx,%rdi
call   1050 <sendMesg@plt>
mov    %r14,%rdi
call   1050 <sendMesg@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [2 x i8] c"!\00"
@.str.1 = [3 x i8] c"\0D\0A\00"
@.str.2 = [6 x i8] c"inc: \00"
define void @send_time() {
%1 = alloca [12 x i8]
%2 = bitcast [12 x i8]* %1 to i8*
%3 = call i32 (...) @get_hmdl_time()
%4 = getelementptr inbounds [12 x i8], [12 x i8]* %1, i64 0, i64 0
%5 = call i32 @data2hex(i32 8, i32 %3, i8* %4)
%6 = call i32 @sendMesg(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%7 = getelementptr inbounds [12 x i8], [12 x i8]* %1, i64 0, i64 0
%8 = call i32 @sendMesg(i8* %7)
%9 = call i32 @sendMesg(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (...) @get_hmdl_time_inc()
%11 = getelementptr inbounds [12 x i8], [12 x i8]* %1, i64 0, i64 0
%12 = call i32 @data2hex(i32 8, i32 %10, i8* %11)
%13 = call i32 @sendMesg(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%14 = getelementptr inbounds [12 x i8], [12 x i8]* %1, i64 0, i64 0
%15 = call i32 @sendMesg(i8* %14)
%16 = call i32 @sendMesg(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"!\00"
@.str.1 = [3 x i8] c"\0D\0A\00"
@.str.2 = [6 x i8] c"inc: \00"
define void @send_time() {
%1 = alloca [12 x i8]
%2 = getelementptr inbounds [12 x i8], [12 x i8]* %1, i64 0, i64 0
%3 = tail call i32 (...) @get_hmdl_time()
%4 = call i32 @data2hex(i32 8, i32 %3, i8* %2)
%5 = call i32 @sendMesg(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @sendMesg(i8* %2)
%7 = call i32 @sendMesg(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 (...) @get_hmdl_time_inc()
%9 = call i32 @data2hex(i32 8, i32 %8, i8* %2)
%10 = call i32 @sendMesg(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @sendMesg(i8* %2)
%12 = call i32 @sendMesg(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
ret void
}