#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 {
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ sa;
typedef int /*<<< orphan*/ new_sa;
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ IPPROTO_TCP;
int /*<<< orphan*/ PF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int accept(int, struct sockaddr *, int *);
scalar_t__ bind(int, struct sockaddr *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ htonl(int /*<<< orphan*/);
int /*<<< orphan*/ htons(int);
char *inet_ntoa(TYPE_1__);
scalar_t__ listen(int, int);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(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 strlen(char *);
int main(int argc, char *argv[]) {
  int listen_sock, comm_sock, msg_len, sa_len, cnt, n;
  struct sockaddr_in sa, new_sa;
  char buf[1024];
  listen_sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
  memset(&sa, 0, sizeof(sa));
  sa.sin_family = AF_INET;
  sa.sin_port = htons(49152);
  sa.sin_addr.s_addr = htonl(INADDR_ANY);
  if (bind(listen_sock, (struct sockaddr *)&sa, sizeof(sa)) < 0) {
    fprintf(stderr, "bind() failure\n");
    exit(1);
  }
  if (listen(listen_sock, 1024) < 0) {
    fprintf(stderr, "listen() failure\n");
    exit(1);
  }
  cnt = 1;
  while (1) {
    printf("Waitinf for a client\n");
    sa_len = sizeof(new_sa);
    if ((comm_sock = accept(listen_sock, (struct sockaddr *)&new_sa, &sa_len)) <
        0) {
      fprintf(stderr, "accept() failure\n");
      exit(1);
    }
    printf("Client %d (%s) connected\n", cnt, inet_ntoa(new_sa.sin_addr));
    if ((n = recv(comm_sock, buf, sizeof(buf), 0)) > 0) {
      buf[n] = '\0';
      msg_len = strlen(buf);
      printf("Client %d: %s\n", cnt, buf);
      if (send(comm_sock, buf, msg_len, 0) != msg_len) {
        fprintf(stderr, "listen() failure\n");
        exit(1);
      }
    }
    close(comm_sock);
    printf("Client %d disconnected\n", cnt);
    ++cnt;
  }
  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    0x2da8(%rip),%rax
mov    (%rax),%edi
mov    0x2da7(%rip),%rax
mov    (%rax),%esi
mov    0x2db6(%rip),%rax
mov    (%rax),%edx
call   1110 <socket@plt>
mov    %eax,-0x14(%rbp)
lea    -0x38(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   10a0 <memset@plt>
mov    0x2da5(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    $0xc000,%edi
call   1060 <htons@plt>
mov    %eax,-0x34(%rbp)
mov    0x2d84(%rip),%rax
mov    (%rax),%edi
call   1090 <htonl@plt>
mov    %eax,-0x38(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x38(%rbp),%rsi
mov    $0xc,%edx
call   10e0 <bind@plt>
cmp    $0x0,%rax
jge    12a0 <main+0xb0>
mov    0x2d40(%rip),%rax
mov    (%rax),%edi
lea    0xd6f(%rip),%rsi
call   10c0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x14(%rbp),%edi
mov    $0x400,%esi
call   10d0 <listen@plt>
cmp    $0x0,%rax
jge    12d6 <main+0xe6>
mov    0x2d0a(%rip),%rax
mov    (%rax),%edi
lea    0xd49(%rip),%rsi
call   10c0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
movl   $0x1,-0x24(%rbp)
lea    0xd3e(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0xc,-0x20(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x48(%rbp),%rsi
lea    -0x20(%rbp),%rdx
call   10f0 <accept@plt>
mov    %eax,-0x18(%rbp)
cmp    $0x0,%eax
jge    132d <main+0x13d>
mov    0x2cb3(%rip),%rax
mov    (%rax),%edi
lea    0xd1a(%rip),%rsi
call   10c0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x24(%rbp),%eax
mov    %eax,-0x454(%rbp)
mov    -0x48(%rbp),%edi
call   1040 <inet_ntoa@plt>
mov    -0x454(%rbp),%esi
mov    %rax,%rdx
lea    0xcfc(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x18(%rbp),%edi
lea    -0x450(%rbp),%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    %eax,-0x28(%rbp)
cmp    $0x0,%eax
jle    13eb <main+0x1fb>
movslq -0x28(%rbp),%rax
movb   $0x0,-0x450(%rbp,%rax,1)
lea    -0x450(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x24(%rbp),%esi
lea    -0x450(%rbp),%rdx
lea    0xcc1(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x18(%rbp),%edi
lea    -0x450(%rbp),%rsi
mov    -0x1c(%rbp),%edx
xor    %ecx,%ecx
call   1070 <send@plt>
cmp    -0x1c(%rbp),%eax
je     13e6 <main+0x1f6>
mov    0x2bfa(%rip),%rax
mov    (%rax),%edi
lea    0xc39(%rip),%rsi
call   10c0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
jmp    13eb <main+0x1fb>
mov    -0x18(%rbp),%edi
call   10b0 <close@plt>
mov    -0x24(%rbp),%esi
lea    0xc76(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12dd <main+0xed>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x438,%rsp
mov    0x2da0(%rip),%rax
mov    (%rax),%edi
mov    0x2d9f(%rip),%rax
mov    (%rax),%esi
mov    0x2dae(%rip),%rax
mov    (%rax),%edx
call   1120 <socket@plt>
mov    %eax,%r15d
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   10b0 <memset@plt>
mov    0x2d99(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x18(%rsp)
mov    $0xc000,%edi
call   1070 <htons@plt>
mov    %eax,0x14(%rsp)
mov    0x2d76(%rip),%rax
mov    (%rax),%edi
call   10a0 <htonl@plt>
mov    %eax,0x10(%rsp)
mov    %r15d,%edi
mov    %rbx,%rsi
mov    $0xc,%edx
call   10f0 <bind@plt>
test   %rax,%rax
jns    129c <main+0x9c>
mov    0x2d37(%rip),%rax
mov    (%rax),%edi
lea    0xd66(%rip),%rsi
jmp    12fa <main+0xfa>
mov    %r15d,%edi
mov    $0x400,%esi
call   10e0 <listen@plt>
test   %rax,%rax
jns    12c0 <main+0xc0>
mov    0x2d13(%rip),%rax
mov    (%rax),%edi
lea    0xd52(%rip),%rsi
jmp    12fa <main+0xfa>
lea    0xdae(%rip),%rdi
call   1040 <puts@plt>
movl   $0xc,0xc(%rsp)
lea    0x20(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    %r15d,%edi
call   1100 <accept@plt>
test   %eax,%eax
jns    1309 <main+0x109>
mov    0x2cd7(%rip),%rax
mov    (%rax),%edi
lea    0xd28(%rip),%rsi
call   10d0 <fprintf@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
mov    %eax,%r12d
mov    $0x1,%ebp
lea    0x30(%rsp),%rbx
lea    0xc(%rsp),%r13
jmp    1366 <main+0x166>
nopl   (%rax)
mov    %r12d,%edi
call   10c0 <close@plt>
lea    0xd2e(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1090 <printf@plt>
add    $0x1,%ebp
lea    0xd33(%rip),%rdi
call   1040 <puts@plt>
movl   $0xc,0xc(%rsp)
mov    %r15d,%edi
lea    0x20(%rsp),%rsi
mov    %r13,%rdx
call   1100 <accept@plt>
mov    %eax,%r12d
test   %eax,%eax
js     12ea <main+0xea>
mov    0x20(%rsp),%edi
call   1050 <inet_ntoa@plt>
lea    0xcbe(%rip),%rdi
mov    %ebp,%esi
mov    %rax,%rdx
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r12d,%edi
mov    %rbx,%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
test   %eax,%eax
jle    1320 <main+0x120>
mov    %eax,%eax
movb   $0x0,0x30(%rsp,%rax,1)
mov    %rbx,%rdi
call   1060 <strlen@plt>
mov    %eax,%r14d
lea    0xc9d(%rip),%rdi
mov    %ebp,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r12d,%edi
mov    %rbx,%rsi
mov    %r14d,%edx
xor    %ecx,%ecx
call   1080 <send@plt>
cmp    %r14d,%eax
je     1320 <main+0x120>
jmp    12ae <main+0xae>

LLVM IR (-O0):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@IPPROTO_TCP = global i32 0
@AF_INET = global i32 0
@INADDR_ANY = global i32 0
@stderr = global i32 0
@.str = [16 x i8] c"bind() failure\0A\00"
@.str.1 = [18 x i8] c"listen() failure\0A\00"
@.str.2 = [22 x i8] c"Waitinf for a client\0A\00"
@.str.3 = [18 x i8] c"accept() failure\0A\00"
@.str.4 = [26 x i8] c"Client %d (%s) connected\0A\00"
@.str.5 = [15 x i8] c"Client %d: %s\0A\00"
@.str.6 = [24 x i8] c"Client %d disconnected\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca %struct.sockaddr_in
%13 = alloca %struct.sockaddr_in
%14 = alloca [1024 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = load i32, i32* @PF_INET
%16 = load i32, i32* @SOCK_STREAM
%17 = load i32, i32* @IPPROTO_TCP
%18 = call i32 @socket(i32 %15, i32 %16, i32 %17)
store i32 %18, i32* %6
%19 = call i32 @memset(%struct.sockaddr_in* %12, i32 0, i32 12)
%20 = load i32, i32* @AF_INET
%21 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %12, i32 0, i32 2
store i32 %20, i32* %21
%22 = call i32 @htons(i32 49152)
%23 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %12, i32 0, i32 1
store i32 %22, i32* %23
%24 = load i32, i32* @INADDR_ANY
%25 = call i32 @htonl(i32 %24)
%26 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %12, i32 0, i32 0
%27 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %26, i32 0, i32 0
store i32 %25, i32* %27
%28 = load i32, i32* %6
%29 = bitcast %struct.sockaddr_in* %12 to %struct.sockaddr*
%30 = call i64 @bind(i32 %28, %struct.sockaddr* %29, i32 12)
%31 = icmp slt i64 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %2
%33 = load i32, i32* @stderr
%34 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%35 = call i32 @exit(i32 1)
unreachable
36: ; preds = %2
%37 = load i32, i32* %6
%38 = call i64 @listen(i32 %37, i32 1024)
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %36
%41 = load i32, i32* @stderr
%42 = call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%43 = call i32 @exit(i32 1)
unreachable
44: ; preds = %36
store i32 1, i32* %10
br label %45
45: ; preds = %44, %86
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
store i32 12, i32* %9
%47 = load i32, i32* %6
%48 = bitcast %struct.sockaddr_in* %13 to %struct.sockaddr*
%49 = call i32 @accept(i32 %47, %struct.sockaddr* %48, i32* %9)
store i32 %49, i32* %7
%50 = icmp slt i32 %49, 0
br i1 %50, label %51, label %55
51: ; preds = %45
%52 = load i32, i32* @stderr
%53 = call i32 @fprintf(i32 %52, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%54 = call i32 @exit(i32 1)
unreachable
55: ; preds = %45
%56 = load i32, i32* %10
%57 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %13, i32 0, i32 0
%58 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %57, i32 0, i32 0
%59 = load i32, i32* %58
%60 = call i8* @inet_ntoa(i32 %59)
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %56, i8* %60)
%62 = load i32, i32* %7
%63 = getelementptr inbounds [1024 x i8], [1024 x i8]* %14, i64 0, i64 0
%64 = call i32 @recv(i32 %62, i8* %63, i32 1024, i32 0)
store i32 %64, i32* %11
%65 = icmp sgt i32 %64, 0
br i1 %65, label %66, label %86
66: ; preds = %55
%67 = load i32, i32* %11
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [1024 x i8], [1024 x i8]* %14, i64 0, i64 %68
store i8 0, i8* %69
%70 = getelementptr inbounds [1024 x i8], [1024 x i8]* %14, i64 0, i64 0
%71 = call i32 @strlen(i8* %70)
store i32 %71, i32* %8
%72 = load i32, i32* %10
%73 = getelementptr inbounds [1024 x i8], [1024 x i8]* %14, i64 0, i64 0
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i32 %72, i8* %73)
%75 = load i32, i32* %7
%76 = getelementptr inbounds [1024 x i8], [1024 x i8]* %14, i64 0, i64 0
%77 = load i32, i32* %8
%78 = call i32 @send(i32 %75, i8* %76, i32 %77, i32 0)
%79 = load i32, i32* %8
%80 = icmp ne i32 %78, %79
br i1 %80, label %81, label %85
81: ; preds = %66
%82 = load i32, i32* @stderr
%83 = call i32 @fprintf(i32 %82, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%84 = call i32 @exit(i32 1)
unreachable
85: ; preds = %66
br label %86
86: ; preds = %85, %55
%87 = load i32, i32* %7
%88 = call i32 @close(i32 %87)
%89 = load i32, i32* %10
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 %89)
%91 = load i32, i32* %10
%92 = add nsw i32 %91, 1
store i32 %92, i32* %10
br label %45
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@IPPROTO_TCP = global i32 0
@AF_INET = global i32 0
@INADDR_ANY = global i32 0
@stderr = global i32 0
@.str = [16 x i8] c"bind() failure\0A\00"
@.str.1 = [18 x i8] c"listen() failure\0A\00"
@.str.3 = [18 x i8] c"accept() failure\0A\00"
@.str.4 = [26 x i8] c"Client %d (%s) connected\0A\00"
@.str.5 = [15 x i8] c"Client %d: %s\0A\00"
@.str.6 = [24 x i8] c"Client %d disconnected\0A\00"
@str = [21 x i8] c"Waitinf for a client\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca %struct.sockaddr_in
%5 = alloca %struct.sockaddr_in
%6 = alloca [1024 x i8]
%7 = bitcast i32* %3 to i8*
%8 = bitcast %struct.sockaddr_in* %4 to i8*
%9 = bitcast %struct.sockaddr_in* %5 to i8*
%10 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%11 = load i32, i32* @PF_INET
%12 = load i32, i32* @SOCK_STREAM
%13 = load i32, i32* @IPPROTO_TCP
%14 = tail call i32 @socket(i32 %11, i32 %12, i32 %13)
%15 = call i32 @memset(%struct.sockaddr_in* %4, i32 0, i32 12)
%16 = load i32, i32* @AF_INET
%17 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 2
store i32 %16, i32* %17
%18 = call i32 @htons(i32 49152)
%19 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1
store i32 %18, i32* %19
%20 = load i32, i32* @INADDR_ANY
%21 = call i32 @htonl(i32 %20)
%22 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0, i32 0
store i32 %21, i32* %22
%23 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%24 = call i64 @bind(i32 %14, %struct.sockaddr* %23, i32 12)
%25 = icmp slt i64 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %2
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%29 = call i32 @exit(i32 1)
unreachable
30: ; preds = %2
%31 = call i64 @listen(i32 %14, i32 1024)
%32 = icmp slt i64 %31, 0
br i1 %32, label %40, label %33
33: ; preds = %30
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
store i32 12, i32* %3
%35 = bitcast %struct.sockaddr_in* %5 to %struct.sockaddr*
%36 = call i32 @accept(i32 %14, %struct.sockaddr* %35, i32* %3)
%37 = icmp slt i32 %36, 0
br i1 %37, label %44, label %38
38: ; preds = %33
%39 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 0, i32 0
br label %48
40: ; preds = %30
%41 = load i32, i32* @stderr
%42 = call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%43 = call i32 @exit(i32 1)
unreachable
44: ; preds = %67, %33
%45 = load i32, i32* @stderr
%46 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%47 = call i32 @exit(i32 1)
unreachable
48: ; preds = %38, %67
%49 = phi i32 [ %36, %38 ], [ %72, %67 ]
%50 = phi i32 [ 1, %38 ], [ %70, %67 ]
%51 = load i32, i32* %39
%52 = call i8* @inet_ntoa(i32 %51)
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %50, i8* %52)
%54 = call i32 @recv(i32 %49, i8* %10, i32 1024, i32 0)
%55 = icmp sgt i32 %54, 0
br i1 %55, label %56, label %67
56: ; preds = %48
%57 = zext i32 %54 to i64
%58 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 %57
store i8 0, i8* %58
%59 = call i32 @strlen(i8* %10)
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i32 %50, i8* %10)
%61 = call i32 @send(i32 %49, i8* %10, i32 %59, i32 0)
%62 = icmp eq i32 %61, %59
br i1 %62, label %67, label %63
63: ; preds = %56
%64 = load i32, i32* @stderr
%65 = call i32 @fprintf(i32 %64, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%66 = call i32 @exit(i32 1)
unreachable
67: ; preds = %56, %48
%68 = call i32 @close(i32 %49)
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 %50)
%70 = add nuw nsw i32 %50, 1
%71 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
store i32 12, i32* %3
%72 = call i32 @accept(i32 %14, %struct.sockaddr* %35, i32* %3)
%73 = icmp slt i32 %72, 0
br i1 %73, label %44, label %48
}