#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
typedef int uint32_t;
typedef int time_t;
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  int /*<<< orphan*/ sin_port;
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
struct protoent {
  int /*<<< orphan*/ p_proto;
};
typedef int /*<<< orphan*/ server_addr;
typedef int /*<<< orphan*/ msg;
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ PF_INET;
int /*<<< orphan*/ SOCK_DGRAM;
struct protoent *getprotobyname(char *);
int /*<<< orphan*/ gmtime(int *);
int htonl(int);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ inet_addr(char *);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int ntohl(int);
int /*<<< orphan*/ printf(char *, ...);
int recv(int, unsigned long long *, int, int /*<<< orphan*/);
int sendto(int, unsigned char *, int, int /*<<< orphan*/, struct sockaddr *,
           int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ strftime(char *, int, char *, int /*<<< orphan*/);
ntpdate() {
  char *hostname = "81.83.19.45";
  int portno = 123;
  int maxlen = 1024;
  int i;
  unsigned char msg[48] = {010, 0, 0, 0, 0, 0, 0, 0, 0};
  unsigned long long buf[maxlen];
  struct protoent *proto;
  struct sockaddr_in server_addr;
  int s;
  int tmit;
  proto = getprotobyname("udp");
  s = socket(PF_INET, SOCK_DGRAM, proto->p_proto);
  if (s) {
  }
  memset(&server_addr, 0, sizeof(server_addr));
  server_addr.sin_family = AF_INET;
  server_addr.sin_addr.s_addr = inet_addr(hostname);
  server_addr.sin_port = htons(portno);
  i = sendto(s, msg, sizeof(msg), 0, (struct sockaddr *)&server_addr,
             sizeof(server_addr));
  i = recv(s, buf, sizeof(buf), 0);
  uint32_t high_part;
  uint32_t low_part;
  char buffer[30];
  i = 4;
  high_part = htonl((uint32_t)(buf[i] >> 32));
  low_part = htonl((uint32_t)(buf[i] & 0xFFFFFFFFLL));
  printf("%d:\n", i);
  printf("\t%08x", low_part);
  printf("%08x\n", high_part);
  high_part = (uint32_t)(buf[i] >> 32);
  low_part = (uint32_t)(buf[i] & 0xFFFFFFFFLL);
  double frac = (.00000001 * (0.5 + (double)(ntohl(high_part) / 42.94967296)));
  printf("frac: %f\n", frac);
  time_t seconds = ntohl(low_part) - 0x83aa7e80;
  strftime(buffer, 30, "%Y%m%dT%T", gmtime(&seconds));
  printf("Server recieved request at: %s.%d\n", buffer, (int)(frac * 1000000));
  printf("epoch:%d\n\n", (int)seconds);
}


x86 assembly (clang, -O0):
<ntpdate>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
lea    0xe4e(%rip),%rax
mov    %rax,-0x10(%rbp)
movl   $0x7b,-0x14(%rbp)
movl   $0x400,-0x18(%rbp)
xorps  %xmm0,%xmm0
movaps %xmm0,-0x30(%rbp)
movaps %xmm0,-0x40(%rbp)
movaps %xmm0,-0x50(%rbp)
movb   $0x8,-0x50(%rbp)
mov    -0x18(%rbp),%eax
mov    %rax,-0xd0(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x58(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xc8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x60(%rbp)
lea    0xdfd(%rip),%rdi
call   10a0 <getprotobyname@plt>
mov    %rax,-0x68(%rbp)
mov    0x2d91(%rip),%rax
mov    (%rax),%edi
mov    0x2d98(%rip),%rax
mov    (%rax),%esi
mov    -0x68(%rbp),%rax
mov    (%rax),%edx
call   10e0 <socket@plt>
mov    %eax,-0x7c(%rbp)
cmpl   $0x0,-0x7c(%rbp)
je     1267 <ntpdate+0xa7>
jmp    1267 <ntpdate+0xa7>
lea    -0x78(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
mov    0x2d6a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x70(%rbp)
mov    -0x10(%rbp),%rdi
call   1090 <inet_addr@plt>
mov    %eax,-0x74(%rbp)
mov    -0x14(%rbp),%edi
call   1040 <htons@plt>
mov    %eax,-0x78(%rbp)
mov    -0x7c(%rbp),%edi
lea    -0x50(%rbp),%rsi
lea    -0x78(%rbp),%r8
mov    $0x30,%edx
xor    %ecx,%ecx
mov    $0xc,%r9d
call   1080 <sendto@plt>
mov    -0xc8(%rbp),%rsi
mov    %eax,%ecx
mov    -0xd0(%rbp),%rax
mov    %ecx,-0x1c(%rbp)
mov    -0x7c(%rbp),%edi
shl    $0x3,%rax
mov    %eax,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    %eax,%ecx
mov    -0xc8(%rbp),%rax
mov    %ecx,-0x1c(%rbp)
movl   $0x4,-0x1c(%rbp)
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
shr    $0x20,%rax
mov    %eax,%edi
call   1060 <htonl@plt>
mov    -0xc8(%rbp),%rcx
mov    %eax,-0x84(%rbp)
movslq -0x1c(%rbp),%rdx
movabs $0xffffffff,%rax
and    (%rcx,%rdx,8),%rax
mov    %eax,%edi
call   1060 <htonl@plt>
mov    %eax,-0x88(%rbp)
mov    -0x1c(%rbp),%esi
lea    0xcfa(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x88(%rbp),%esi
lea    0xceb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x84(%rbp),%esi
lea    0xcdd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xc8(%rbp),%rcx
movslq -0x1c(%rbp),%rax
mov    (%rcx,%rax,8),%rax
shr    $0x20,%rax
mov    %eax,-0x84(%rbp)
movslq -0x1c(%rbp),%rdx
movabs $0xffffffff,%rax
and    (%rcx,%rdx,8),%rax
mov    %eax,-0x88(%rbp)
mov    -0x84(%rbp),%edi
call   10d0 <ntohl@plt>
cvtsi2sd %eax,%xmm0
movsd  0xc6b(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xc57(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0xc43(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
lea    0xc61(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x88(%rbp),%edi
call   10d0 <ntohl@plt>
sub    $0x83aa7e80,%eax
mov    %eax,-0xbc(%rbp)
lea    -0xb0(%rbp),%rax
mov    %rax,-0xd8(%rbp)
lea    -0xbc(%rbp),%rdi
call   10c0 <gmtime@plt>
mov    -0xd8(%rbp),%rdi
mov    %eax,%ecx
mov    $0x1e,%esi
lea    0xc1f(%rip),%rdx
call   10b0 <strftime@plt>
lea    -0xb0(%rbp),%rsi
movsd  0xbc0(%rip),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
cvttsd2si %xmm0,%edx
lea    0xc02(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xbc(%rbp),%esi
lea    0xc11(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ntpdate>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x2078,%rsp
mov    %rsp,%r15
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movb   $0x8,0x20(%rsp)
lea    0xe3e(%rip),%rdi
call   10a0 <getprotobyname@plt>
mov    0x2dd6(%rip),%rcx
mov    (%rcx),%edi
mov    0x2ddd(%rip),%rcx
mov    (%rcx),%esi
mov    (%rax),%edx
call   10e0 <socket@plt>
mov    %eax,%ebx
lea    0x8(%rsp),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
mov    0x2dbf(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
lea    0xdea(%rip),%rdi
call   1090 <inet_addr@plt>
mov    %eax,0xc(%rsp)
mov    $0x7b,%edi
call   1040 <htons@plt>
mov    %eax,0x8(%rsp)
lea    0x20(%rsp),%rsi
mov    %ebx,%edi
mov    $0x30,%edx
xor    %ecx,%ecx
mov    %r14,%r8
mov    $0xc,%r9d
call   1080 <sendto@plt>
lea    0x70(%rsp),%rsi
mov    %ebx,%edi
mov    $0x2000,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    0x90(%rsp),%rbx
mov    %rbx,%rdi
shr    $0x20,%rdi
call   1060 <htonl@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1060 <htonl@plt>
mov    %eax,%ebx
lea    0xd8e(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd80(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd76(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x90(%rsp),%rbx
mov    %rbx,%rdi
shr    $0x20,%rdi
call   10d0 <ntohl@plt>
cvtsi2sd %eax,%xmm0
divsd  0xd12(%rip),%xmm0
addsd  0xd12(%rip),%xmm0
mulsd  0xd12(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
lea    0xd36(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %ebx,%edi
call   10d0 <ntohl@plt>
add    $0x7c558180,%eax
mov    %eax,0x4(%rsp)
lea    0x4(%rsp),%rdi
call   10c0 <gmtime@plt>
lea    0xd18(%rip),%rdx
lea    0x50(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x1e,%esi
mov    %eax,%ecx
call   10b0 <strftime@plt>
movsd  0x18(%rsp),%xmm0
mulsd  0xcc3(%rip),%xmm0
cvttsd2si %xmm0,%edx
lea    0xcf5(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%esi
lea    0xd03(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rsp
add    $0x2078,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.protoent = type { i32 }
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [12 x i8] c"81.83.19.45\00"
@.str.1 = [4 x i8] c"udp\00"
@PF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@AF_INET = global i32 0
@.str.2 = [5 x i8] c"%d:\0A\00"
@.str.3 = [6 x i8] c"\09%08x\00"
@.str.4 = [6 x i8] c"%08x\0A\00"
@.str.5 = [10 x i8] c"frac: %f\0A\00"
@.str.6 = [10 x i8] c"%Y%m%dT%T\00"
@.str.7 = [35 x i8] c"Server recieved request at: %s.%d\0A\00"
@.str.8 = [11 x i8] c"epoch:%d\0A\0A\00"
define i32 @ntpdate() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [48 x i8]
%7 = alloca i8*
%8 = alloca i64
%9 = alloca %struct.protoent*
%10 = alloca %struct.sockaddr_in
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [30 x i8]
%16 = alloca double
%17 = alloca i32
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8** %2
store i32 123, i32* %3
store i32 1024, i32* %4
%18 = bitcast [48 x i8]* %6 to i8*
%19 = bitcast i8* %18 to <{ i8, [47 x i8] }>*
%20 = getelementptr inbounds <{ i8, [47 x i8] }>, <{ i8, [47 x i8] }>* %19, i32 0, i32 0
store i8 8, i8* %20
%21 = load i32, i32* %4
%22 = zext i32 %21 to i64
%23 = call i8* @llvm.stacksave()
store i8* %23, i8** %7
%24 = alloca i64, i64 %22
store i64 %22, i64* %8
%25 = call %struct.protoent* @getprotobyname(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
store %struct.protoent* %25, %struct.protoent** %9
%26 = load i32, i32* @PF_INET
%27 = load i32, i32* @SOCK_DGRAM
%28 = load %struct.protoent*, %struct.protoent** %9
%29 = getelementptr inbounds %struct.protoent, %struct.protoent* %28, i32 0, i32 0
%30 = load i32, i32* %29
%31 = call i32 @socket(i32 %26, i32 %27, i32 %30)
store i32 %31, i32* %11
%32 = load i32, i32* %11
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %0
br label %35
35: ; preds = %34, %0
%36 = call i32 @memset(%struct.sockaddr_in* %10, i32 0, i32 12)
%37 = load i32, i32* @AF_INET
%38 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 2
store i32 %37, i32* %38
%39 = load i8*, i8** %2
%40 = call i32 @inet_addr(i8* %39)
%41 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 1
%42 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %41, i32 0, i32 0
store i32 %40, i32* %42
%43 = load i32, i32* %3
%44 = call i32 @htons(i32 %43)
%45 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 0
store i32 %44, i32* %45
%46 = load i32, i32* %11
%47 = getelementptr inbounds [48 x i8], [48 x i8]* %6, i64 0, i64 0
%48 = bitcast %struct.sockaddr_in* %10 to %struct.sockaddr*
%49 = call i32 @sendto(i32 %46, i8* %47, i32 48, i32 0, %struct.sockaddr* %48, i32 12)
store i32 %49, i32* %5
%50 = load i32, i32* %11
%51 = mul nuw i64 8, %22
%52 = trunc i64 %51 to i32
%53 = call i32 @recv(i32 %50, i64* %24, i32 %52, i32 0)
store i32 %53, i32* %5
store i32 4, i32* %5
%54 = load i32, i32* %5
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i64, i64* %24, i64 %55
%57 = load i64, i64* %56
%58 = lshr i64 %57, 32
%59 = trunc i64 %58 to i32
%60 = call i32 @htonl(i32 %59)
store i32 %60, i32* %13
%61 = load i32, i32* %5
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i64, i64* %24, i64 %62
%64 = load i64, i64* %63
%65 = and i64 %64, 4294967295
%66 = trunc i64 %65 to i32
%67 = call i32 @htonl(i32 %66)
store i32 %67, i32* %14
%68 = load i32, i32* %5
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %68)
%70 = load i32, i32* %14
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %70)
%72 = load i32, i32* %13
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %72)
%74 = load i32, i32* %5
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i64, i64* %24, i64 %75
%77 = load i64, i64* %76
%78 = lshr i64 %77, 32
%79 = trunc i64 %78 to i32
store i32 %79, i32* %13
%80 = load i32, i32* %5
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i64, i64* %24, i64 %81
%83 = load i64, i64* %82
%84 = and i64 %83, 4294967295
%85 = trunc i64 %84 to i32
store i32 %85, i32* %14
%86 = load i32, i32* %13
%87 = call i32 @ntohl(i32 %86)
%88 = sitofp i32 %87 to double
%89 = fdiv double %88, 0x4045798EE2308C3A
%90 = fadd double 5.000000e-01, %89
%91 = fmul double 1.000000e-08, %90
store double %91, double* %16
%92 = load double, double* %16
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), double %92)
%94 = load i32, i32* %14
%95 = call i32 @ntohl(i32 %94)
%96 = sub i32 %95, -2085978496
store i32 %96, i32* %17
%97 = getelementptr inbounds [30 x i8], [30 x i8]* %15, i64 0, i64 0
%98 = call i32 @gmtime(i32* %17)
%99 = call i32 @strftime(i8* %97, i32 30, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 %98)
%100 = getelementptr inbounds [30 x i8], [30 x i8]* %15, i64 0, i64 0
%101 = load double, double* %16
%102 = fmul double %101, 1.000000e+06
%103 = fptosi double %102 to i32
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0), i8* %100, i32 %103)
%105 = load i32, i32* %17
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i32 %105)
%107 = load i8*, i8** %7
%108 = load i32, i32* %1
ret i32 %108
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.protoent = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [12 x i8] c"81.83.19.45\00"
@.str.1 = [4 x i8] c"udp\00"
@PF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@AF_INET = global i32 0
@.str.2 = [5 x i8] c"%d:\0A\00"
@.str.3 = [6 x i8] c"\09%08x\00"
@.str.4 = [6 x i8] c"%08x\0A\00"
@.str.5 = [10 x i8] c"frac: %f\0A\00"
@.str.6 = [10 x i8] c"%Y%m%dT%T\00"
@.str.7 = [35 x i8] c"Server recieved request at: %s.%d\0A\00"
@.str.8 = [11 x i8] c"epoch:%d\0A\0A\00"
define i32 @ntpdate() {
%1 = alloca [48 x i8]
%2 = alloca %struct.sockaddr_in
%3 = alloca [30 x i8]
%4 = alloca i32
%5 = getelementptr inbounds [48 x i8], [48 x i8]* %1, i64 0, i64 0
store i8 8, i8* %5
%6 = tail call i8* @llvm.stacksave()
%7 = alloca [1024 x i64]
%8 = getelementptr inbounds [1024 x i64], [1024 x i64]* %7, i64 0, i64 0
%9 = bitcast %struct.sockaddr_in* %2 to i8*
%10 = tail call %struct.protoent* @getprotobyname(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%11 = load i32, i32* @PF_INET
%12 = load i32, i32* @SOCK_DGRAM
%13 = getelementptr inbounds %struct.protoent, %struct.protoent* %10, i64 0, i32 0
%14 = load i32, i32* %13
%15 = tail call i32 @socket(i32 %11, i32 %12, i32 %14)
%16 = call i32 @memset(%struct.sockaddr_in* %2, i32 0, i32 12)
%17 = load i32, i32* @AF_INET
%18 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i64 0, i32 2
store i32 %17, i32* %18
%19 = call i32 @inet_addr(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%20 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i64 0, i32 1, i32 0
store i32 %19, i32* %20
%21 = call i32 @htons(i32 123)
%22 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i64 0, i32 0
store i32 %21, i32* %22
%23 = bitcast %struct.sockaddr_in* %2 to %struct.sockaddr*
%24 = call i32 @sendto(i32 %15, i8* %5, i32 48, i32 0, %struct.sockaddr* %23, i32 12)
%25 = call i32 @recv(i32 %15, i64* %8, i32 8192, i32 0)
%26 = getelementptr inbounds [30 x i8], [30 x i8]* %3, i64 0, i64 0
%27 = getelementptr inbounds [1024 x i64], [1024 x i64]* %7, i64 0, i64 4
%28 = load i64, i64* %27
%29 = lshr i64 %28, 32
%30 = trunc i64 %29 to i32
%31 = call i32 @htonl(i32 %30)
%32 = trunc i64 %28 to i32
%33 = call i32 @htonl(i32 %32)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 4)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %33)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %31)
%37 = load i64, i64* %27
%38 = lshr i64 %37, 32
%39 = trunc i64 %38 to i32
%40 = trunc i64 %37 to i32
%41 = call i32 @ntohl(i32 %39)
%42 = sitofp i32 %41 to double
%43 = fdiv double %42, 0x4045798EE2308C3A
%44 = fadd double %43, 5.000000e-01
%45 = fmul double %44, 1.000000e-08
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), double %45)
%47 = bitcast i32* %4 to i8*
%48 = call i32 @ntohl(i32 %40)
%49 = add i32 %48, 2085978496
store i32 %49, i32* %4
%50 = call i32 @gmtime(i32* %4)
%51 = call i32 @strftime(i8* %26, i32 30, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 %50)
%52 = fmul double %45, 1.000000e+06
%53 = fptosi double %52 to i32
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0), i8* %26, i32 %53)
%55 = load i32, i32* %4
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i32 %55)
ret i32 undef
}