#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 */
struct sockaddr_un {
  int /*<<< orphan*/ sun_path;
  int /*<<< orphan*/ sun_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ srvaddr;
typedef int socklen_t;
typedef int /*<<< orphan*/ cliaddr;

/* Variables and functions */
int /*<<< orphan*/ AF_LOCAL;
int /*<<< orphan*/ EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ SOCK_STREAM;
int accept(int, struct sockaddr *, int *);
int bind(int, struct sockaddr *, int);
scalar_t__ close(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int listen(int, int);
int /*<<< orphan*/ memset(struct sockaddr_un *, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int recv(int, char *, int, int /*<<< orphan*/);
int send(int, char *, int, int /*<<< orphan*/);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strncpy(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ unlink(char *);
int main(int argc, char *argv[]) {
  int sockfd = 0;
  char msg[1500];
  struct sockaddr_un srvaddr;
  char *socket_path;
  if (argc != 2) {
    fprintf(stderr, "usage: %s <socket path>\n", argv[0]);
    exit(EXIT_FAILURE);
  }
  socket_path = argv[1];
  sockfd = socket(AF_LOCAL, SOCK_STREAM, 0);
  if (-1 == sockfd) {
    perror("socket");
    exit(EXIT_FAILURE);
  }
  memset(&srvaddr, 0, sizeof(srvaddr));
  srvaddr.sun_family = AF_LOCAL;
  strncpy(srvaddr.sun_path, socket_path, sizeof(srvaddr.sun_path) - 1);
  unlink(socket_path);
  if (-1 == bind(sockfd, (struct sockaddr *)&srvaddr, sizeof(srvaddr))) {
    perror("bind");
    exit(EXIT_FAILURE);
  }
  if (-1 == listen(sockfd, 1)) {
    perror("listen");
    exit(EXIT_FAILURE);
  }
  while (1) {
    int connfd;
    struct sockaddr_un cliaddr;
    socklen_t clilen = sizeof(cliaddr);
    int n;
    connfd = accept(sockfd, (struct sockaddr *)&cliaddr, &clilen);
    if (connfd < 0) {
      perror("accept");
      exit(EXIT_FAILURE);
    }
    while (1) {
      if ((n = recv(connfd, msg, 1500, 0)) < 0) {
        perror("recv");
        exit(EXIT_FAILURE);
      } else if (0 == n) {
        if (close(connfd) < 0) {
          perror("close(cli_conn)");
          exit(EXIT_FAILURE);
        }
        break;
      }
      if ((n = send(connfd, msg, n, 0)) < 0) {
        perror("send");
        exit(EXIT_FAILURE);
      }
    }
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x620,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1224 <main+0x54>
mov    0x2dd7(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xdef(%rip),%rsi
call   1090 <fprintf@plt>
mov    0x2dab(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x600(%rbp)
mov    0x2dae(%rip),%rax
mov    (%rax),%edi
mov    0x2d8d(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10f0 <socket@plt>
mov    %eax,-0x14(%rbp)
mov    $0xffffffff,%eax
cmp    -0x14(%rbp),%eax
jne    1277 <main+0xa7>
lea    0xdb5(%rip),%rdi
call   10c0 <perror@plt>
mov    0x2d58(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
lea    -0x5f8(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1070 <memset@plt>
mov    0x2d57(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x5f4(%rbp)
mov    -0x5f8(%rbp),%edi
mov    -0x600(%rbp),%rsi
mov    $0x3,%edx
call   1050 <strncpy@plt>
mov    -0x600(%rbp),%rdi
call   1040 <unlink@plt>
mov    -0x14(%rbp),%edi
lea    -0x5f8(%rbp),%rsi
mov    $0x8,%edx
call   10b0 <bind@plt>
mov    %eax,%ecx
mov    $0xffffffff,%eax
cmp    %ecx,%eax
jne    12f9 <main+0x129>
lea    0xd3a(%rip),%rdi
call   10c0 <perror@plt>
mov    0x2cd6(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    -0x14(%rbp),%edi
mov    $0x1,%esi
call   10a0 <listen@plt>
mov    %eax,%ecx
mov    $0xffffffff,%eax
cmp    %ecx,%eax
jne    132f <main+0x15f>
lea    0xd09(%rip),%rdi
call   10c0 <perror@plt>
mov    0x2ca0(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
jmp    1334 <main+0x164>
movl   $0x8,-0x614(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x610(%rbp),%rsi
lea    -0x614(%rbp),%rdx
call   10d0 <accept@plt>
mov    %eax,-0x604(%rbp)
cmpl   $0x0,-0x604(%rbp)
jge    1381 <main+0x1b1>
lea    0xcbe(%rip),%rdi
call   10c0 <perror@plt>
mov    0x2c4e(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
jmp    1386 <main+0x1b6>
mov    -0x604(%rbp),%edi
lea    -0x5f0(%rbp),%rsi
mov    $0x5dc,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    %eax,-0x618(%rbp)
cmp    $0x0,%eax
jge    13c8 <main+0x1f8>
lea    0xc7e(%rip),%rdi
call   10c0 <perror@plt>
mov    0x2c07(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
xor    %eax,%eax
cmp    -0x618(%rbp),%eax
jne    140a <main+0x23a>
mov    -0x604(%rbp),%edi
call   1080 <close@plt>
cmp    $0x0,%rax
jge    1405 <main+0x235>
lea    0xc46(%rip),%rdi
call   10c0 <perror@plt>
mov    0x2bca(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
jmp    1457 <main+0x287>
jmp    140f <main+0x23f>
mov    -0x604(%rbp),%edi
lea    -0x5f0(%rbp),%rsi
mov    -0x618(%rbp),%edx
xor    %ecx,%ecx
call   1060 <send@plt>
mov    %eax,-0x618(%rbp)
cmp    $0x0,%eax
jge    1452 <main+0x282>
lea    0xc09(%rip),%rdi
call   10c0 <perror@plt>
mov    0x2b7d(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
jmp    1386 <main+0x1b6>
jmp    1334 <main+0x164>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x600,%rsp
cmp    $0x2,%edi
jne    1213 <main+0x43>
mov    0x8(%rsi),%rbx
mov    0x2df9(%rip),%rbp
mov    0x0(%rbp),%edi
mov    0x2dd7(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10f0 <socket@plt>
cmp    $0xffffffff,%eax
jne    1230 <main+0x60>
lea    0xe0b(%rip),%rdi
jmp    1353 <main+0x183>
mov    0x2dbe(%rip),%rax
mov    (%rax),%edi
mov    (%rsi),%rdx
lea    0xdda(%rip),%rsi
call   1090 <fprintf@plt>
jmp    1358 <main+0x188>
mov    %eax,%r12d
lea    0x10(%rsp),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1070 <memset@plt>
mov    0x0(%rbp),%eax
mov    %eax,0x14(%rsp)
mov    0x10(%rsp),%edi
mov    %rbx,%rsi
mov    $0x3,%edx
call   1050 <strncpy@plt>
mov    %rbx,%rdi
call   1040 <unlink@plt>
mov    %r12d,%edi
mov    %r14,%rsi
mov    $0x8,%edx
call   10b0 <bind@plt>
cmp    $0xffffffff,%eax
jne    1288 <main+0xb8>
lea    0xd9d(%rip),%rdi
jmp    1353 <main+0x183>
mov    %r12d,%edi
mov    $0x1,%esi
call   10a0 <listen@plt>
cmp    $0xffffffff,%eax
jne    12a6 <main+0xd6>
lea    0xd84(%rip),%rdi
jmp    1353 <main+0x183>
movl   $0x8,0xc(%rsp)
lea    0x18(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    %r12d,%edi
call   10d0 <accept@plt>
test   %eax,%eax
jns    12d0 <main+0x100>
lea    0xd61(%rip),%rdi
jmp    1353 <main+0x183>
mov    %eax,%ebp
lea    0x20(%rsp),%rbx
lea    0x18(%rsp),%r14
lea    0xc(%rsp),%r15
jmp    1302 <main+0x132>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %ecx,%ecx
call   1060 <send@plt>
test   %eax,%eax
js     134c <main+0x17c>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x5dc,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
test   %eax,%eax
js     1343 <main+0x173>
jne    12f0 <main+0x120>
mov    %ebp,%edi
call   1080 <close@plt>
test   %rax,%rax
js     1366 <main+0x196>
movl   $0x8,0xc(%rsp)
mov    %r12d,%edi
mov    %r14,%rsi
mov    %r15,%rdx
call   10d0 <accept@plt>
mov    %eax,%ebp
test   %eax,%eax
jns    1302 <main+0x132>
jmp    12c4 <main+0xf4>
lea    0xce9(%rip),%rdi
jmp    1353 <main+0x183>
lea    0xcf5(%rip),%rdi
call   10c0 <perror@plt>
mov    0x2c69(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
lea    0xccb(%rip),%rdi
jmp    1353 <main+0x183>

LLVM IR (-O0):
%struct.sockaddr_un = type { i32, i32 }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [25 x i8] c"usage: %s <socket path>\0A\00"
@EXIT_FAILURE = global i32 0
@AF_LOCAL = global i32 0
@SOCK_STREAM = global i32 0
@.str.1 = [7 x i8] c"socket\00"
@.str.2 = [5 x i8] c"bind\00"
@.str.3 = [7 x i8] c"listen\00"
@.str.4 = [7 x i8] c"accept\00"
@.str.5 = [5 x i8] c"recv\00"
@.str.6 = [16 x i8] c"close(cli_conn)\00"
@.str.7 = [5 x i8] c"send\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [1500 x i8]
%8 = alloca %struct.sockaddr_un
%9 = alloca i8*
%10 = alloca i32
%11 = alloca %struct.sockaddr_un
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%14 = load i32, i32* %4
%15 = icmp ne i32 %14, 2
br i1 %15, label %16, label %24
16: ; preds = %2
%17 = load i32, i32* @stderr
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 0
%20 = load i8*, i8** %19
%21 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %20)
%22 = load i32, i32* @EXIT_FAILURE
%23 = call i32 @exit(i32 %22)
unreachable
24: ; preds = %2
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 1
%27 = load i8*, i8** %26
store i8* %27, i8** %9
%28 = load i32, i32* @AF_LOCAL
%29 = load i32, i32* @SOCK_STREAM
%30 = call i32 @socket(i32 %28, i32 %29, i32 0)
store i32 %30, i32* %6
%31 = load i32, i32* %6
%32 = icmp eq i32 -1, %31
br i1 %32, label %33, label %37
33: ; preds = %24
%34 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%35 = load i32, i32* @EXIT_FAILURE
%36 = call i32 @exit(i32 %35)
unreachable
37: ; preds = %24
%38 = call i32 @memset(%struct.sockaddr_un* %8, i32 0, i32 8)
%39 = load i32, i32* @AF_LOCAL
%40 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %8, i32 0, i32 1
store i32 %39, i32* %40
%41 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %8, i32 0, i32 0
%42 = load i32, i32* %41
%43 = load i8*, i8** %9
%44 = call i32 @strncpy(i32 %42, i8* %43, i32 3)
%45 = load i8*, i8** %9
%46 = call i32 @unlink(i8* %45)
%47 = load i32, i32* %6
%48 = bitcast %struct.sockaddr_un* %8 to %struct.sockaddr*
%49 = call i32 @bind(i32 %47, %struct.sockaddr* %48, i32 8)
%50 = icmp eq i32 -1, %49
br i1 %50, label %51, label %55
51: ; preds = %37
%52 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%53 = load i32, i32* @EXIT_FAILURE
%54 = call i32 @exit(i32 %53)
unreachable
55: ; preds = %37
%56 = load i32, i32* %6
%57 = call i32 @listen(i32 %56, i32 1)
%58 = icmp eq i32 -1, %57
br i1 %58, label %59, label %63
59: ; preds = %55
%60 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%61 = load i32, i32* @EXIT_FAILURE
%62 = call i32 @exit(i32 %61)
unreachable
63: ; preds = %55
br label %64
64: ; preds = %63, %108
store i32 8, i32* %12
%65 = load i32, i32* %6
%66 = bitcast %struct.sockaddr_un* %11 to %struct.sockaddr*
%67 = call i32 @accept(i32 %65, %struct.sockaddr* %66, i32* %12)
store i32 %67, i32* %10
%68 = load i32, i32* %10
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %74
70: ; preds = %64
%71 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%72 = load i32, i32* @EXIT_FAILURE
%73 = call i32 @exit(i32 %72)
unreachable
74: ; preds = %64
br label %75
75: ; preds = %74, %107
%76 = load i32, i32* %10
%77 = getelementptr inbounds [1500 x i8], [1500 x i8]* %7, i64 0, i64 0
%78 = call i32 @recv(i32 %76, i8* %77, i32 1500, i32 0)
store i32 %78, i32* %13
%79 = icmp slt i32 %78, 0
br i1 %79, label %80, label %84
80: ; preds = %75
%81 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%82 = load i32, i32* @EXIT_FAILURE
%83 = call i32 @exit(i32 %82)
unreachable
84: ; preds = %75
%85 = load i32, i32* %13
%86 = icmp eq i32 0, %85
br i1 %86, label %87, label %96
87: ; preds = %84
%88 = load i32, i32* %10
%89 = call i64 @close(i32 %88)
%90 = icmp slt i64 %89, 0
br i1 %90, label %91, label %95
91: ; preds = %87
%92 = call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%93 = load i32, i32* @EXIT_FAILURE
%94 = call i32 @exit(i32 %93)
unreachable
95: ; preds = %87
br label %108
96: ; preds = %84
br label %97
97: ; preds = %96
%98 = load i32, i32* %10
%99 = getelementptr inbounds [1500 x i8], [1500 x i8]* %7, i64 0, i64 0
%100 = load i32, i32* %13
%101 = call i32 @send(i32 %98, i8* %99, i32 %100, i32 0)
store i32 %101, i32* %13
%102 = icmp slt i32 %101, 0
br i1 %102, label %103, label %107
103: ; preds = %97
%104 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%105 = load i32, i32* @EXIT_FAILURE
%106 = call i32 @exit(i32 %105)
unreachable
107: ; preds = %97
br label %75
108: ; preds = %95
br label %64
}

LLVM IR (-O2):
%struct.sockaddr_un = type { i32, i32 }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [25 x i8] c"usage: %s <socket path>\0A\00"
@EXIT_FAILURE = global i32 0
@AF_LOCAL = global i32 0
@SOCK_STREAM = global i32 0
@.str.1 = [7 x i8] c"socket\00"
@.str.2 = [5 x i8] c"bind\00"
@.str.3 = [7 x i8] c"listen\00"
@.str.4 = [7 x i8] c"accept\00"
@.str.5 = [5 x i8] c"recv\00"
@.str.6 = [16 x i8] c"close(cli_conn)\00"
@.str.7 = [5 x i8] c"send\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [1500 x i8]
%4 = alloca %struct.sockaddr_un
%5 = alloca %struct.sockaddr_un
%6 = alloca i32
%7 = getelementptr inbounds [1500 x i8], [1500 x i8]* %3, i64 0, i64 0
%8 = bitcast %struct.sockaddr_un* %4 to i8*
%9 = icmp eq i32 %0, 2
br i1 %9, label %16, label %10
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = load i8*, i8** %1
%13 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = load i32, i32* @EXIT_FAILURE
%15 = tail call i32 @exit(i32 %14)
unreachable
16: ; preds = %2
%17 = getelementptr inbounds i8*, i8** %1, i64 1
%18 = load i8*, i8** %17
%19 = load i32, i32* @AF_LOCAL
%20 = load i32, i32* @SOCK_STREAM
%21 = tail call i32 @socket(i32 %19, i32 %20, i32 0)
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %27
23: ; preds = %16
%24 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%25 = load i32, i32* @EXIT_FAILURE
%26 = tail call i32 @exit(i32 %25)
unreachable
27: ; preds = %16
%28 = call i32 @memset(%struct.sockaddr_un* %4, i32 0, i32 8)
%29 = load i32, i32* @AF_LOCAL
%30 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %4, i64 0, i32 1
store i32 %29, i32* %30
%31 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %4, i64 0, i32 0
%32 = load i32, i32* %31
%33 = call i32 @strncpy(i32 %32, i8* %18, i32 3)
%34 = call i32 @unlink(i8* %18)
%35 = bitcast %struct.sockaddr_un* %4 to %struct.sockaddr*
%36 = call i32 @bind(i32 %21, %struct.sockaddr* %35, i32 8)
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %42
38: ; preds = %27
%39 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%40 = load i32, i32* @EXIT_FAILURE
%41 = call i32 @exit(i32 %40)
unreachable
42: ; preds = %27
%43 = call i32 @listen(i32 %21, i32 1)
%44 = icmp eq i32 %43, -1
br i1 %44, label %51, label %45
45: ; preds = %42
%46 = bitcast %struct.sockaddr_un* %5 to i8*
%47 = bitcast i32* %6 to i8*
%48 = bitcast %struct.sockaddr_un* %5 to %struct.sockaddr*
store i32 8, i32* %6
%49 = call i32 @accept(i32 %21, %struct.sockaddr* %48, i32* %6)
%50 = icmp slt i32 %49, 0
br i1 %50, label %57, label %55
51: ; preds = %42
%52 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%53 = load i32, i32* @EXIT_FAILURE
%54 = call i32 @exit(i32 %53)
unreachable
55: ; preds = %45, %84
%56 = phi i32 [ %85, %84 ], [ %49, %45 ]
br label %61
57: ; preds = %84, %45
%58 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%59 = load i32, i32* @EXIT_FAILURE
%60 = call i32 @exit(i32 %59)
unreachable
61: ; preds = %55, %77
%62 = call i32 @recv(i32 %56, i8* %7, i32 1500, i32 0)
%63 = icmp slt i32 %62, 0
br i1 %63, label %64, label %68
64: ; preds = %61
%65 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%66 = load i32, i32* @EXIT_FAILURE
%67 = call i32 @exit(i32 %66)
unreachable
68: ; preds = %61
%69 = icmp eq i32 %62, 0
br i1 %69, label %70, label %77
70: ; preds = %68
%71 = call i64 @close(i32 %56)
%72 = icmp slt i64 %71, 0
br i1 %72, label %73, label %84
73: ; preds = %70
%74 = call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%75 = load i32, i32* @EXIT_FAILURE
%76 = call i32 @exit(i32 %75)
unreachable
77: ; preds = %68
%78 = call i32 @send(i32 %56, i8* %7, i32 %62, i32 0)
%79 = icmp slt i32 %78, 0
br i1 %79, label %80, label %61
80: ; preds = %77
%81 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%82 = load i32, i32* @EXIT_FAILURE
%83 = call i32 @exit(i32 %82)
unreachable
84: ; preds = %70
store i32 8, i32* %6
%85 = call i32 @accept(i32 %21, %struct.sockaddr* %48, i32* %6)
%86 = icmp slt i32 %85, 0
br i1 %86, label %57, label %55
}