#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 timeval {
  int /*<<< orphan*/ tv_usec;
  int /*<<< orphan*/ tv_sec;
};
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  int sin_port;
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int socklen_t;
typedef int /*<<< orphan*/ server;
typedef int /*<<< orphan*/ opt;
typedef int /*<<< orphan*/ client;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ SOL_SOCKET;
int SO_REUSEADDR;
int accept(int, struct sockaddr *, int *);
int bind(int, struct sockaddr *, int);
int /*<<< orphan*/ bzero(struct sockaddr_in *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
int /*<<< orphan*/ htonl(int /*<<< orphan*/);
int htons(int);
char *inet_ntoa(TYPE_1__);
int listen(int, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char *, ...);
int recv(int, char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ send(int, char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ setsockopt(int, int /*<<< orphan*/, int, int *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  char buf[1024];
  int listenfd, connectfd;
  struct sockaddr_in server;
  struct sockaddr_in client;
  socklen_t addrlen;
  if ((listenfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
    perror("socket() error. Failed to initiate a socket");
    exit(1);
  }
  int opt = SO_REUSEADDR;
  setsockopt(listenfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));
  bzero(&server, sizeof(server));
  server.sin_family = AF_INET;
  server.sin_port = htons(4321);
  server.sin_addr.s_addr = htonl(INADDR_ANY);
  if (bind(listenfd, (struct sockaddr *)&server, sizeof(server)) == -1) {
    perror("Bind() error.");
    exit(1);
  }
  if (listen(listenfd, 1) == -1) {
    perror("listen() error. \n");
    exit(1);
  }
  addrlen = sizeof(client);
  while (1) {
    if ((connectfd = accept(listenfd, (struct sockaddr *)&client, &addrlen)) ==
        -1) {
      perror("accept() error. \n");
      exit(1);
    }
    struct timeval tv;
    gettimeofday(&tv, NULL);
    printf(
        "You got a connection from client's ip %s, port %d at time %ld.%ld\n",
        inet_ntoa(client.sin_addr), htons(client.sin_port), tv.tv_sec,
        tv.tv_usec);
    int iret = -1;
    while (1) {
      iret = recv(connectfd, buf, 1024, 0);
      if (iret > 0) {
        printf("%s\n", buf);
      } else {
        close(connectfd);
        break;
      }
      send(connectfd, buf, iret, 0);
    }
  }
  close(listenfd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x460,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2dc0(%rip),%rax
mov    (%rax),%edi
mov    0x2d9f(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1120 <socket@plt>
mov    %eax,-0x414(%rbp)
cmp    $0xffffffff,%eax
jne    1257 <main+0x57>
lea    0xdb8(%rip),%rdi
call   10e0 <perror@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
mov    0x2d62(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x440(%rbp)
mov    -0x414(%rbp),%edi
mov    0x2d75(%rip),%rax
mov    (%rax),%esi
mov    0x2d44(%rip),%rax
mov    (%rax),%edx
lea    -0x440(%rbp),%rcx
mov    $0x4,%r8d
call   1040 <setsockopt@plt>
lea    -0x428(%rbp),%rdi
mov    $0xc,%esi
call   10f0 <bzero@plt>
mov    0x2d38(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x420(%rbp)
mov    $0x10e1,%edi
call   1060 <htons@plt>
mov    %eax,-0x428(%rbp)
mov    0x2d11(%rip),%rax
mov    (%rax),%edi
call   10a0 <htonl@plt>
mov    %eax,-0x424(%rbp)
mov    -0x414(%rbp),%edi
lea    -0x428(%rbp),%rsi
mov    $0xc,%edx
call   10d0 <bind@plt>
cmp    $0xffffffff,%eax
jne    130a <main+0x10a>
lea    0xd31(%rip),%rdi
call   10e0 <perror@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
mov    -0x414(%rbp),%edi
mov    $0x1,%esi
call   10c0 <listen@plt>
cmp    $0xffffffff,%eax
jne    1339 <main+0x139>
lea    0xd10(%rip),%rdi
call   10e0 <perror@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
movl   $0xc,-0x43c(%rbp)
mov    -0x414(%rbp),%edi
lea    -0x438(%rbp),%rsi
lea    -0x43c(%rbp),%rdx
call   1100 <accept@plt>
mov    %eax,-0x418(%rbp)
cmp    $0xffffffff,%eax
jne    1381 <main+0x181>
lea    0xcda(%rip),%rdi
call   10e0 <perror@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
lea    -0x448(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1090 <gettimeofday@plt>
mov    -0x434(%rbp),%edi
call   1050 <inet_ntoa@plt>
mov    %rax,-0x458(%rbp)
mov    -0x438(%rbp),%edi
call   1060 <htons@plt>
mov    -0x458(%rbp),%rsi
mov    %eax,%edx
mov    -0x444(%rbp),%ecx
mov    -0x448(%rbp),%r8d
lea    0xc93(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0xffffffff,-0x44c(%rbp)
ff ff ff
mov    -0x418(%rbp),%edi
lea    -0x410(%rbp),%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    %eax,-0x44c(%rbp)
cmpl   $0x0,-0x44c(%rbp)
jle    1422 <main+0x222>
lea    -0x410(%rbp),%rsi
lea    0xc8b(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1432 <main+0x232>
mov    -0x418(%rbp),%edi
call   10b0 <close@plt>
jmp    1451 <main+0x251>
mov    -0x418(%rbp),%edi
lea    -0x410(%rbp),%rsi
mov    -0x44c(%rbp),%edx
xor    %ecx,%ecx
call   1070 <send@plt>
jmp    13dc <main+0x1dc>
jmp    1343 <main+0x143>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x438,%rsp
mov    0x2dc8(%rip),%rbp
mov    0x0(%rbp),%edi
mov    0x2da6(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1120 <socket@plt>
cmp    $0xffffffff,%eax
jne    123c <main+0x3c>
lea    0xdc9(%rip),%rdi
jmp    12fd <main+0xfd>
mov    %eax,%r12d
mov    0x2d7a(%rip),%rax
mov    (%rax),%edx
mov    %edx,0x4(%rsp)
mov    0x2d95(%rip),%rax
mov    (%rax),%esi
lea    0x4(%rsp),%rcx
mov    %r12d,%edi
mov    $0x4,%r8d
call   1040 <setsockopt@plt>
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xc,%esi
call   10f0 <bzero@plt>
mov    0x0(%rbp),%eax
mov    %eax,0x28(%rsp)
mov    $0x10e1,%edi
call   1060 <htons@plt>
mov    %eax,0x20(%rsp)
mov    0x2d42(%rip),%rax
mov    (%rax),%edi
call   10a0 <htonl@plt>
mov    %eax,0x24(%rsp)
mov    %r12d,%edi
mov    %rbx,%rsi
mov    $0xc,%edx
call   10d0 <bind@plt>
cmp    $0xffffffff,%eax
jne    12bf <main+0xbf>
lea    0xd6f(%rip),%rdi
jmp    12fd <main+0xfd>
mov    %r12d,%edi
mov    $0x1,%esi
call   10c0 <listen@plt>
cmp    $0xffffffff,%eax
jne    12da <main+0xda>
lea    0xd62(%rip),%rdi
jmp    12fd <main+0xfd>
movl   $0xc,(%rsp)
lea    0x10(%rsp),%rsi
mov    %rsp,%rdx
mov    %r12d,%edi
call   1100 <accept@plt>
cmp    $0xffffffff,%eax
jne    130c <main+0x10c>
lea    0xd4f(%rip),%rdi
call   10e0 <perror@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
mov    %eax,%ebp
lea    0x30(%rsp),%rbx
lea    0xd87(%rip),%r13
mov    %rsp,%r15
jmp    133e <main+0x13e>
nop
mov    %ebp,%edi
call   10b0 <close@plt>
mov    %r12d,%edi
lea    0x10(%rsp),%rsi
mov    %r15,%rdx
call   1100 <accept@plt>
mov    %eax,%ebp
cmp    $0xffffffff,%eax
je     12f6 <main+0xf6>
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1090 <gettimeofday@plt>
mov    0x14(%rsp),%edi
call   1050 <inet_ntoa@plt>
mov    %rax,%r14
mov    0x10(%rsp),%edi
call   1060 <htons@plt>
mov    0x8(%rsp),%r8d
mov    0xc(%rsp),%ecx
lea    0xcef(%rip),%rdi
mov    %r14,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1080 <printf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
test   %eax,%eax
jle    1320 <main+0x120>
mov    %eax,%r14d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14d,%edx
xor    %ecx,%ecx
call   1070 <send@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    %eax,%r14d
test   %eax,%eax
jg     13a0 <main+0x1a0>
jmp    1320 <main+0x120>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.timeval = type { i32, i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [44 x i8] c"socket() error. Failed to initiate a socket\00"
@SO_REUSEADDR = global i32 0
@SOL_SOCKET = global i32 0
@INADDR_ANY = global i32 0
@.str.1 = [14 x i8] c"Bind() error.\00"
@.str.2 = [18 x i8] c"listen() error. \0A\00"
@.str.3 = [18 x i8] c"accept() error. \0A\00"
@.str.4 = [67 x i8] c"You got a connection from client's ip %s, port %d at time %ld.%ld\0A\00"
@.str.5 = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [1024 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca %struct.sockaddr_in
%10 = alloca %struct.sockaddr_in
%11 = alloca i32
%12 = alloca i32
%13 = alloca %struct.timeval
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = load i32, i32* @AF_INET
%16 = load i32, i32* @SOCK_STREAM
%17 = call i32 @socket(i32 %15, i32 %16, i32 0)
store i32 %17, i32* %7
%18 = icmp eq i32 %17, -1
br i1 %18, label %19, label %22
19: ; preds = %2
%20 = call i32 @perror(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%21 = call i32 @exit(i32 1)
unreachable
22: ; preds = %2
%23 = load i32, i32* @SO_REUSEADDR
store i32 %23, i32* %12
%24 = load i32, i32* %7
%25 = load i32, i32* @SOL_SOCKET
%26 = load i32, i32* @SO_REUSEADDR
%27 = call i32 @setsockopt(i32 %24, i32 %25, i32 %26, i32* %12, i32 4)
%28 = call i32 @bzero(%struct.sockaddr_in* %9, i32 12)
%29 = load i32, i32* @AF_INET
%30 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 2
store i32 %29, i32* %30
%31 = call i32 @htons(i32 4321)
%32 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 0
store i32 %31, i32* %32
%33 = load i32, i32* @INADDR_ANY
%34 = call i32 @htonl(i32 %33)
%35 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 1
%36 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %35, i32 0, i32 0
store i32 %34, i32* %36
%37 = load i32, i32* %7
%38 = bitcast %struct.sockaddr_in* %9 to %struct.sockaddr*
%39 = call i32 @bind(i32 %37, %struct.sockaddr* %38, i32 12)
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %44
41: ; preds = %22
%42 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%43 = call i32 @exit(i32 1)
unreachable
44: ; preds = %22
%45 = load i32, i32* %7
%46 = call i32 @listen(i32 %45, i32 1)
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %51
48: ; preds = %44
%49 = call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%50 = call i32 @exit(i32 1)
unreachable
51: ; preds = %44
store i32 12, i32* %11
br label %52
52: ; preds = %51, %91
%53 = load i32, i32* %7
%54 = bitcast %struct.sockaddr_in* %10 to %struct.sockaddr*
%55 = call i32 @accept(i32 %53, %struct.sockaddr* %54, i32* %11)
store i32 %55, i32* %8
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %60
57: ; preds = %52
%58 = call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%59 = call i32 @exit(i32 1)
unreachable
60: ; preds = %52
%61 = call i32 @gettimeofday(%struct.timeval* %13, i32* null)
%62 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 1
%63 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %62, i32 0, i32 0
%64 = load i32, i32* %63
%65 = call i8* @inet_ntoa(i32 %64)
%66 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 0
%67 = load i32, i32* %66
%68 = call i32 @htons(i32 %67)
%69 = getelementptr inbounds %struct.timeval, %struct.timeval* %13, i32 0, i32 1
%70 = load i32, i32* %69
%71 = getelementptr inbounds %struct.timeval, %struct.timeval* %13, i32 0, i32 0
%72 = load i32, i32* %71
%73 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.4, i64 0, i64 0), i8* %65, i32 %68, i32 %70, i32 %72)
store i32 -1, i32* %14
br label %74
74: ; preds = %60, %86
%75 = load i32, i32* %8
%76 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%77 = call i32 @recv(i32 %75, i8* %76, i32 1024, i32 0)
store i32 %77, i32* %14
%78 = load i32, i32* %14
%79 = icmp sgt i32 %78, 0
br i1 %79, label %80, label %83
80: ; preds = %74
%81 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%82 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %81)
br label %86
83: ; preds = %74
%84 = load i32, i32* %8
%85 = call i32 @close(i32 %84)
br label %91
86: ; preds = %80
%87 = load i32, i32* %8
%88 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%89 = load i32, i32* %14
%90 = call i32 @send(i32 %87, i8* %88, i32 %89, i32 0)
br label %74
91: ; preds = %83
br label %52
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.timeval = type { i32, i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [44 x i8] c"socket() error. Failed to initiate a socket\00"
@SO_REUSEADDR = global i32 0
@SOL_SOCKET = global i32 0
@INADDR_ANY = global i32 0
@.str.1 = [14 x i8] c"Bind() error.\00"
@.str.2 = [18 x i8] c"listen() error. \0A\00"
@.str.3 = [18 x i8] c"accept() error. \0A\00"
@.str.4 = [67 x i8] c"You got a connection from client's ip %s, port %d at time %ld.%ld\0A\00"
@.str.5 = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [1024 x i8]
%4 = alloca %struct.sockaddr_in
%5 = alloca %struct.sockaddr_in
%6 = alloca i32
%7 = alloca i32
%8 = alloca %struct.timeval
%9 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%10 = bitcast %struct.sockaddr_in* %4 to i8*
%11 = bitcast %struct.sockaddr_in* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = load i32, i32* @AF_INET
%14 = load i32, i32* @SOCK_STREAM
%15 = tail call i32 @socket(i32 %13, i32 %14, i32 0)
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = tail call i32 @perror(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%19 = tail call i32 @exit(i32 1)
unreachable
20: ; preds = %2
%21 = bitcast i32* %7 to i8*
%22 = load i32, i32* @SO_REUSEADDR
store i32 %22, i32* %7
%23 = load i32, i32* @SOL_SOCKET
%24 = call i32 @setsockopt(i32 %15, i32 %23, i32 %22, i32* %7, i32 4)
%25 = call i32 @bzero(%struct.sockaddr_in* %4, i32 12)
%26 = load i32, i32* @AF_INET
%27 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 2
store i32 %26, i32* %27
%28 = call i32 @htons(i32 4321)
%29 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0
store i32 %28, i32* %29
%30 = load i32, i32* @INADDR_ANY
%31 = call i32 @htonl(i32 %30)
%32 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1, i32 0
store i32 %31, i32* %32
%33 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%34 = call i32 @bind(i32 %15, %struct.sockaddr* %33, i32 12)
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %39
36: ; preds = %20
%37 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%38 = call i32 @exit(i32 1)
unreachable
39: ; preds = %20
%40 = call i32 @listen(i32 %15, i32 1)
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %45
42: ; preds = %39
%43 = call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%44 = call i32 @exit(i32 1)
unreachable
45: ; preds = %39
store i32 12, i32* %6
%46 = bitcast %struct.sockaddr_in* %5 to %struct.sockaddr*
%47 = call i32 @accept(i32 %15, %struct.sockaddr* %46, i32* %6)
%48 = icmp eq i32 %47, -1
br i1 %48, label %55, label %49
49: ; preds = %45
%50 = bitcast %struct.timeval* %8 to i8*
%51 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 1, i32 0
%52 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 0
%53 = getelementptr inbounds %struct.timeval, %struct.timeval* %8, i64 0, i32 1
%54 = getelementptr inbounds %struct.timeval, %struct.timeval* %8, i64 0, i32 0
br label %58
55: ; preds = %76, %45
%56 = call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%57 = call i32 @exit(i32 1)
unreachable
58: ; preds = %49, %76
%59 = phi i32 [ %47, %49 ], [ %78, %76 ]
%60 = call i32 @gettimeofday(%struct.timeval* %8, i32* null)
%61 = load i32, i32* %51
%62 = call i8* @inet_ntoa(i32 %61)
%63 = load i32, i32* %52
%64 = call i32 @htons(i32 %63)
%65 = load i32, i32* %53
%66 = load i32, i32* %54
%67 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.4, i64 0, i64 0), i8* %62, i32 %64, i32 %65, i32 %66)
%68 = call i32 @recv(i32 %59, i8* %9, i32 1024, i32 0)
%69 = icmp sgt i32 %68, 0
br i1 %69, label %70, label %76
70: ; preds = %58, %70
%71 = phi i32 [ %74, %70 ], [ %68, %58 ]
%72 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %9)
%73 = call i32 @send(i32 %59, i8* %9, i32 %71, i32 0)
%74 = call i32 @recv(i32 %59, i8* %9, i32 1024, i32 0)
%75 = icmp sgt i32 %74, 0
br i1 %75, label %70, label %76
76: ; preds = %70, %58
%77 = call i32 @close(i32 %59)
%78 = call i32 @accept(i32 %15, %struct.sockaddr* %46, i32* %6)
%79 = icmp eq i32 %78, -1
br i1 %79, label %55, label %58
}