#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 */
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;
};
typedef int /*<<< orphan*/ myaddr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ SOCK_DGRAM;
scalar_t__ bind(int, struct sockaddr *, int);
int /*<<< orphan*/ close(int);
unsigned int getTimestamp();
char getchar();
int /*<<< orphan*/ getstr(char *);
int /*<<< orphan*/ htonl(int /*<<< orphan*/);
int /*<<< orphan*/ htons(int /*<<< orphan*/);
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ noecho();
int /*<<< orphan*/ printw(char *, ...);
int /*<<< orphan*/ refresh();
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ sendPing(int, char *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ strtok(char *, char *);
int main() {
  initscr();
  noecho();
  printw("Welcome to desktop client v1!\n\n");
  char ipString[16];
  int port;
  bool hasAddress = false;
  while (!hasAddress) {
    printw("Game server IP\n");
    refresh();
    getstr(ipString);
    strtok(ipString, "\n");
    printw("Game server Port\n");
    refresh();
    scanf("%d", &port);
    getchar();
    printw("connect to %s:%d? (y/n)\n", ipString, port);
    char confirmation;
    confirmation = getchar();
    getchar();
    while (confirmation != 'y' && confirmation != 'n') {
      printw("eh?");
      confirmation = getchar();
      getchar();
    }
    hasAddress = confirmation == 'y';
  }
  printw("connecting to %s:%d...\n", ipString, port);
  int fd;
  if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
    printw("unable to create socket\n");
    return 0;
  }
  struct sockaddr_in myaddr;
  memset((char *)&myaddr, 0, sizeof(myaddr));
  myaddr.sin_family = AF_INET;
  myaddr.sin_addr.s_addr = htonl(INADDR_ANY);
  myaddr.sin_port = htons(0);
  if (bind(fd, (struct sockaddr *)&myaddr, sizeof(myaddr)) < 0) {
    printw("unable to bind socket\n");
    close(fd);
    return 0;
  }
  unsigned int timestamp = getTimestamp();
  sendPing(fd, ipString, port);
  unsigned int ping = 0;
  printw("connected with ping: %d at %u\n", ping, timestamp);
  close(fd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <initscr@plt>
mov    $0x0,%al
call   1100 <noecho@plt>
lea    0xddc(%rip),%rdi
mov    $0x0,%al
call   10b0 <printw@plt>
movl   $0x0,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1248 <main+0x48>
jmp    1332 <main+0x132>
lea    0xdd1(%rip),%rdi
mov    $0x0,%al
call   10b0 <printw@plt>
mov    $0x0,%al
call   10c0 <refresh@plt>
lea    -0x20(%rbp),%rdi
call   1090 <getstr@plt>
lea    -0x20(%rbp),%rdi
lea    0xdad(%rip),%rsi
call   10f0 <strtok@plt>
lea    0xdb3(%rip),%rdi
mov    $0x0,%al
call   10b0 <printw@plt>
mov    $0x0,%al
call   10c0 <refresh@plt>
lea    0xdb0(%rip),%rdi
lea    -0x24(%rbp),%rsi
call   10d0 <scanf@plt>
mov    $0x0,%al
call   10a0 <getchar@plt>
lea    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
lea    0xd95(%rip),%rdi
mov    $0x0,%al
call   10b0 <printw@plt>
mov    $0x0,%al
call   10a0 <getchar@plt>
mov    %al,-0x29(%rbp)
mov    $0x0,%al
call   10a0 <getchar@plt>
movsbl -0x29(%rbp),%ecx
xor    %eax,%eax
cmp    $0x79,%ecx
mov    %al,-0x49(%rbp)
je     12e7 <main+0xe7>
movsbl -0x29(%rbp),%eax
cmp    $0x6e,%eax
setne  %al
mov    %al,-0x49(%rbp)
mov    -0x49(%rbp),%al
test   $0x1,%al
jne    12f7 <main+0xf7>
jmp    131b <main+0x11b>
lea    0xd60(%rip),%rdi
mov    $0x0,%al
call   10b0 <printw@plt>
mov    $0x0,%al
call   10a0 <getchar@plt>
mov    %al,-0x29(%rbp)
mov    $0x0,%al
call   10a0 <getchar@plt>
jmp    12c8 <main+0xc8>
movsbl -0x29(%rbp),%eax
cmp    $0x79,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x28(%rbp)
jmp    1232 <main+0x32>
lea    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
lea    0xd22(%rip),%rdi
mov    $0x0,%al
call   10b0 <printw@plt>
mov    0x2c9a(%rip),%rax
mov    (%rax),%edi
mov    0x2c81(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1120 <socket@plt>
mov    %eax,-0x30(%rbp)
cmp    $0x0,%eax
jge    1386 <main+0x186>
lea    0xd07(%rip),%rdi
mov    $0x0,%al
call   10b0 <printw@plt>
movl   $0x0,-0x4(%rbp)
jmp    143d <main+0x23d>
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
mov    0x2c4b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    0x2c37(%rip),%rax
mov    (%rax),%edi
call   1060 <htonl@plt>
mov    %eax,-0x3c(%rbp)
xor    %edi,%edi
call   1040 <htons@plt>
mov    %eax,-0x40(%rbp)
mov    -0x30(%rbp),%edi
lea    -0x40(%rbp),%rsi
mov    $0xc,%edx
call   10e0 <bind@plt>
cmp    $0x0,%rax
jge    13fa <main+0x1fa>
lea    0xcb4(%rip),%rdi
mov    $0x0,%al
call   10b0 <printw@plt>
mov    -0x30(%rbp),%edi
call   1080 <close@plt>
movl   $0x0,-0x4(%rbp)
jmp    143d <main+0x23d>
mov    $0x0,%al
call   1030 <getTimestamp@plt>
mov    %eax,-0x44(%rbp)
mov    -0x30(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
call   1110 <sendPing@plt>
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%esi
mov    -0x44(%rbp),%edx
lea    0xc83(%rip),%rdi
mov    $0x0,%al
call   10b0 <printw@plt>
mov    -0x30(%rbp),%edi
call   1080 <close@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
xor    %eax,%eax
call   1050 <initscr@plt>
xor    %eax,%eax
call   1100 <noecho@plt>
lea    0xddd(%rip),%rdi
xor    %eax,%eax
call   10b0 <printw@plt>
lea    0x20(%rsp),%rbx
lea    0xe0c(%rip),%r13
lea    0xc(%rsp),%rbp
lea    0xe03(%rip),%r14
lea    0xe15(%rip),%r15
lea    0xdd0(%rip),%rdi
xor    %eax,%eax
call   10b0 <printw@plt>
xor    %eax,%eax
call   10c0 <refresh@plt>
mov    %rbx,%rdi
call   1090 <getstr@plt>
mov    %rbx,%rdi
lea    0xdae(%rip),%rsi
call   10f0 <strtok@plt>
lea    0xdb4(%rip),%rdi
xor    %eax,%eax
call   10b0 <printw@plt>
xor    %eax,%eax
call   10c0 <refresh@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
call   10d0 <scanf@plt>
xor    %eax,%eax
call   10a0 <getchar@plt>
mov    0xc(%rsp),%edx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   10b0 <printw@plt>
nopl   (%rax)
xor    %eax,%eax
call   10a0 <getchar@plt>
mov    %eax,%r12d
xor    %eax,%eax
call   10a0 <getchar@plt>
cmp    $0x6e,%r12b
je     1249 <main+0x49>
cmp    $0x79,%r12b
je     12d9 <main+0xd9>
mov    %r15,%rdi
xor    %eax,%eax
call   10b0 <printw@plt>
jmp    12b0 <main+0xb0>
mov    0xc(%rsp),%edx
lea    0xd7e(%rip),%rdi
lea    0x20(%rsp),%rsi
xor    %eax,%eax
call   10b0 <printw@plt>
mov    0x2cf1(%rip),%rbp
mov    0x0(%rbp),%edi
mov    0x2cd7(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1120 <socket@plt>
test   %eax,%eax
js     1389 <main+0x189>
mov    %eax,%ebx
lea    0x10(%rsp),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
mov    0x0(%rbp),%eax
mov    %eax,0x18(%rsp)
mov    0x2cae(%rip),%rax
mov    (%rax),%edi
call   1060 <htonl@plt>
mov    %eax,0x14(%rsp)
xor    %edi,%edi
call   1040 <htons@plt>
mov    %eax,0x10(%rsp)
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0xc,%edx
call   10e0 <bind@plt>
test   %rax,%rax
js     1399 <main+0x199>
xor    %eax,%eax
call   1030 <getTimestamp@plt>
mov    %eax,%ebp
mov    0xc(%rsp),%edx
lea    0x20(%rsp),%rsi
mov    %ebx,%edi
call   1110 <sendPing@plt>
lea    0xd2e(%rip),%rdi
xor    %esi,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   10b0 <printw@plt>
jmp    13a7 <main+0x1a7>
lea    0xcea(%rip),%rdi
xor    %eax,%eax
call   10b0 <printw@plt>
jmp    13ae <main+0x1ae>
lea    0xcf3(%rip),%rdi
xor    %eax,%eax
call   10b0 <printw@plt>
mov    %ebx,%edi
call   1080 <close@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [32 x i8] c"Welcome to desktop client v1!\0A\0A\00"
@.str.1 = [16 x i8] c"Game server IP\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [18 x i8] c"Game server Port\0A\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [25 x i8] c"connect to %s:%d? (y/n)\0A\00"
@.str.6 = [4 x i8] c"eh?\00"
@.str.7 = [24 x i8] c"connecting to %s:%d...\0A\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@.str.8 = [25 x i8] c"unable to create socket\0A\00"
@INADDR_ANY = global i32 0
@.str.9 = [23 x i8] c"unable to bind socket\0A\00"
@.str.10 = [31 x i8] c"connected with ping: %d at %u\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [16 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
%6 = alloca i32
%7 = alloca %struct.sockaddr_in
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
%10 = call i32 (...) @initscr()
%11 = call i32 (...) @noecho()
%12 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %4
br label %13
13: ; preds = %47, %0
%14 = load i32, i32* %4
%15 = icmp ne i32 %14, 0
%16 = xor i1 %15, true
br i1 %16, label %17, label %52
17: ; preds = %13
%18 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%19 = call i32 (...) @refresh()
%20 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 0
%21 = call i32 @getstr(i8* %20)
%22 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 0
%23 = call i32 @strtok(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%25 = call i32 (...) @refresh()
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%27 = call signext i8 (...) @getchar()
%28 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 0
%29 = load i32, i32* %3
%30 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* %28, i32 %29)
%31 = call signext i8 (...) @getchar()
store i8 %31, i8* %5
%32 = call signext i8 (...) @getchar()
br label %33
33: ; preds = %43, %17
%34 = load i8, i8* %5
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %35, 121
br i1 %36, label %37, label %41
37: ; preds = %33
%38 = load i8, i8* %5
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %39, 110
br label %41
41: ; preds = %37, %33
%42 = phi i1 [ false, %33 ], [ %40, %37 ]
br i1 %42, label %43, label %47
43: ; preds = %41
%44 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%45 = call signext i8 (...) @getchar()
store i8 %45, i8* %5
%46 = call signext i8 (...) @getchar()
br label %33
47: ; preds = %41
%48 = load i8, i8* %5
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 121
%51 = zext i1 %50 to i32
store i32 %51, i32* %4
br label %13
52: ; preds = %13
%53 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 0
%54 = load i32, i32* %3
%55 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i8* %53, i32 %54)
%56 = load i32, i32* @AF_INET
%57 = load i32, i32* @SOCK_DGRAM
%58 = call i32 @socket(i32 %56, i32 %57, i32 0)
store i32 %58, i32* %6
%59 = icmp slt i32 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %52
%61 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %1
br label %92
62: ; preds = %52
%63 = bitcast %struct.sockaddr_in* %7 to i8*
%64 = call i32 @memset(i8* %63, i32 0, i32 12)
%65 = load i32, i32* @AF_INET
%66 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 2
store i32 %65, i32* %66
%67 = load i32, i32* @INADDR_ANY
%68 = call i32 @htonl(i32 %67)
%69 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 1
%70 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %69, i32 0, i32 0
store i32 %68, i32* %70
%71 = call i32 @htons(i32 0)
%72 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 0
store i32 %71, i32* %72
%73 = load i32, i32* %6
%74 = bitcast %struct.sockaddr_in* %7 to %struct.sockaddr*
%75 = call i64 @bind(i32 %73, %struct.sockaddr* %74, i32 12)
%76 = icmp slt i64 %75, 0
br i1 %76, label %77, label %81
77: ; preds = %62
%78 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%79 = load i32, i32* %6
%80 = call i32 @close(i32 %79)
store i32 0, i32* %1
br label %92
81: ; preds = %62
%82 = call i32 (...) @getTimestamp()
store i32 %82, i32* %8
%83 = load i32, i32* %6
%84 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 0
%85 = load i32, i32* %3
%86 = call i32 @sendPing(i32 %83, i8* %84, i32 %85)
store i32 0, i32* %9
%87 = load i32, i32* %9
%88 = load i32, i32* %8
%89 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i32 %87, i32 %88)
%90 = load i32, i32* %6
%91 = call i32 @close(i32 %90)
store i32 0, i32* %1
br label %92
92: ; preds = %81, %77, %60
%93 = load i32, i32* %1
ret i32 %93
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [32 x i8] c"Welcome to desktop client v1!\0A\0A\00"
@.str.1 = [16 x i8] c"Game server IP\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [18 x i8] c"Game server Port\0A\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [25 x i8] c"connect to %s:%d? (y/n)\0A\00"
@.str.6 = [4 x i8] c"eh?\00"
@.str.7 = [24 x i8] c"connecting to %s:%d...\0A\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@.str.8 = [25 x i8] c"unable to create socket\0A\00"
@INADDR_ANY = global i32 0
@.str.9 = [23 x i8] c"unable to bind socket\0A\00"
@.str.10 = [31 x i8] c"connected with ping: %d at %u\0A\00"
define i32 @main() {
%1 = alloca [16 x i8]
%2 = alloca i32
%3 = alloca %struct.sockaddr_in
%4 = tail call i32 (...) @initscr()
%5 = tail call i32 (...) @noecho()
%6 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%7 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
%8 = bitcast i32* %2 to i8*
br label %9
9: ; preds = %20, %0
%10 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (...) @refresh()
%12 = call i32 @getstr(i8* %7)
%13 = call i32 @strtok(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%15 = call i32 (...) @refresh()
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%17 = call signext i8 (...) @getchar()
%18 = load i32, i32* %2
%19 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* %7, i32 %18)
br label %20
20: ; preds = %23, %9
%21 = call signext i8 (...) @getchar()
%22 = call signext i8 (...) @getchar()
switch i8 %21, label %23 [
i8 121, label %25
i8 110, label %9
]
23: ; preds = %20
%24 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %20
25: ; preds = %20
%26 = load i32, i32* %2
%27 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i8* %7, i32 %26)
%28 = load i32, i32* @AF_INET
%29 = load i32, i32* @SOCK_DGRAM
%30 = call i32 @socket(i32 %28, i32 %29, i32 0)
%31 = icmp slt i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %25
%33 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0))
br label %56
34: ; preds = %25
%35 = bitcast %struct.sockaddr_in* %3 to i8*
%36 = call i32 @memset(i8* %35, i32 0, i32 12)
%37 = load i32, i32* @AF_INET
%38 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %37, i32* %38
%39 = load i32, i32* @INADDR_ANY
%40 = call i32 @htonl(i32 %39)
%41 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1, i32 0
store i32 %40, i32* %41
%42 = call i32 @htons(i32 0)
%43 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
store i32 %42, i32* %43
%44 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%45 = call i64 @bind(i32 %30, %struct.sockaddr* %44, i32 12)
%46 = icmp slt i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %34
%48 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
br label %54
49: ; preds = %34
%50 = call i32 (...) @getTimestamp()
%51 = load i32, i32* %2
%52 = call i32 @sendPing(i32 %30, i8* %7, i32 %51)
%53 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i32 0, i32 %50)
br label %54
54: ; preds = %49, %47
%55 = call i32 @close(i32 %30)
br label %56
56: ; preds = %54, %32
ret i32 0
}