#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 /*<<< orphan*/ u_short;
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*/ s_addr;
typedef int /*<<< orphan*/ _sfd;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_ANY;
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*/ htons(int /*<<< orphan*/);
scalar_t__ islower(char);
scalar_t__ listen(int, int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int read(int, char *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ write(int, char *, int);
int main(int argc, char const *argv[]) {
  struct sockaddr_in s_addr, c_addr;
  char buffer[1024];
  int sfd, _sfd, cli_len, n, i;
  memset((char *)&s_addr, 0, sizeof(s_addr));
  if ((sfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
    printf("%s\n", "socket() error");
    exit(1);
  };
  s_addr.sin_family = AF_INET;
  s_addr.sin_port = htons((u_short)9503);
  s_addr.sin_addr.s_addr = INADDR_ANY;
  if (bind(sfd, (struct sockaddr *)&s_addr, sizeof(s_addr)) < 0) {
    printf("%s\n", "bind() error");
    exit(1);
  };
  if (listen(sfd, 5) < 0) {
    printf("%s\n", "listen() error");
    exit(1);
  };
  printf("Server Listening ...\n");
  int nClient = 0;
  while (1) {
    cli_len = sizeof(_sfd);
    if ((_sfd = accept(sfd, (struct sockaddr *)&_sfd, &cli_len)) < 0) {
      printf("%s\n", "accept() error");
      exit(1);
    };
    nClient++;
    n = read(_sfd, buffer, 1024);
    write(1, buffer, n);
    for (i = 0; i < n; i++)
      if (islower(buffer[i]))
        buffer[i] = buffer[i] - 32;
    if (write(_sfd, buffer, n) < 0) {
      printf("%s\n", "write() error");
      exit(1);
    };
    printf("\nClient %d disconnented.\n", nClient);
    close(_sfd);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x450,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
mov    0x2df8(%rip),%rax
mov    (%rax),%edi
mov    0x2dd7(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10e0 <socket@plt>
mov    %eax,-0x434(%rbp)
cmp    $0xffffffff,%eax
jne    1230 <main+0x70>
lea    0xde8(%rip),%rdi
lea    0xde5(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x2db1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    $0x251f,%edi
call   1050 <htons@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2d90(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    -0x434(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0xc,%edx
call   10b0 <bind@plt>
cmp    $0x0,%rax
jge    1292 <main+0xd2>
lea    0xd86(%rip),%rdi
lea    0xd92(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x434(%rbp),%edi
mov    $0x5,%esi
call   10a0 <listen@plt>
cmp    $0x0,%rax
jge    12cb <main+0x10b>
lea    0xd4d(%rip),%rdi
lea    0xd66(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    0xd5d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x448(%rbp)
movl   $0x4,-0x43c(%rbp)
mov    -0x434(%rbp),%edi
lea    -0x438(%rbp),%rsi
lea    -0x43c(%rbp),%rdx
call   10c0 <accept@plt>
mov    %eax,-0x438(%rbp)
cmp    $0x0,%eax
jge    1334 <main+0x174>
lea    0xce4(%rip),%rdi
lea    0xd22(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x448(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x448(%rbp)
mov    -0x438(%rbp),%edi
lea    -0x430(%rbp),%rsi
mov    $0x400,%edx
call   1090 <read@plt>
mov    %eax,-0x440(%rbp)
lea    -0x430(%rbp),%rsi
mov    -0x440(%rbp),%edx
mov    $0x1,%edi
call   1040 <write@plt>
movl   $0x0,-0x444(%rbp)
mov    -0x444(%rbp),%eax
cmp    -0x440(%rbp),%eax
jge    13ec <main+0x22c>
movslq -0x444(%rbp),%rax
movsbl -0x430(%rbp,%rax,1),%edi
ff
call   1030 <islower@plt>
cmp    $0x0,%rax
je     13d3 <main+0x213>
movslq -0x444(%rbp),%rax
movsbl -0x430(%rbp,%rax,1),%eax
ff
sub    $0x20,%eax
mov    %al,%cl
movslq -0x444(%rbp),%rax
mov    %cl,-0x430(%rbp,%rax,1)
jmp    13d8 <main+0x218>
mov    -0x444(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x444(%rbp)
jmp    1381 <main+0x1c1>
mov    -0x438(%rbp),%edi
lea    -0x430(%rbp),%rsi
mov    -0x440(%rbp),%edx
call   1040 <write@plt>
cmp    $0x0,%rax
jge    142d <main+0x26d>
lea    0xbeb(%rip),%rdi
lea    0xc38(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x448(%rbp),%esi
lea    0xc28(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x438(%rbp),%edi
call   1080 <close@plt>
jmp    12e3 <main+0x123>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x428,%rsp
lea    0x10(%rsp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    0x2def(%rip),%rbp
mov    0x0(%rbp),%edi
mov    0x2dcd(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10f0 <socket@plt>
cmp    $0xffffffff,%eax
jne    121d <main+0x4d>
lea    0xde8(%rip),%rdi
jmp    139c <main+0x1cc>
mov    %eax,%r14d
mov    0x0(%rbp),%eax
mov    %eax,0x18(%rsp)
mov    $0x251f,%edi
call   1060 <htons@plt>
mov    %eax,0x14(%rsp)
mov    0x2da4(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
lea    0x10(%rsp),%rsi
mov    %r14d,%edi
mov    $0xc,%edx
call   10c0 <bind@plt>
test   %rax,%rax
jns    1265 <main+0x95>
lea    0xdaf(%rip),%rdi
jmp    139c <main+0x1cc>
mov    %r14d,%edi
mov    $0x5,%esi
call   10b0 <listen@plt>
test   %rax,%rax
jns    1283 <main+0xb3>
lea    0xd9e(%rip),%rdi
jmp    139c <main+0x1cc>
lea    0xdd8(%rip),%rdi
call   1040 <puts@plt>
movl   $0x4,0x8(%rsp)
lea    0x4(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %r14d,%edi
call   10d0 <accept@plt>
mov    %eax,0x4(%rsp)
test   %eax,%eax
js     138c <main+0x1bc>
lea    0x20(%rsp),%rbp
xor    %ebx,%ebx
mov    %r14d,0xc(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %eax,%edi
mov    %rbp,%rsi
mov    $0x400,%edx
call   10a0 <read@plt>
mov    %eax,%r14d
mov    $0x1,%edi
mov    %rbp,%rsi
mov    %eax,%edx
call   1050 <write@plt>
test   %r14d,%r14d
jle    1330 <main+0x160>
mov    %r14d,%r15d
xor    %r12d,%r12d
jmp    1309 <main+0x139>
xchg   %ax,%ax
add    $0x1,%r12
cmp    %r12,%r15
je     1330 <main+0x160>
movzbl 0x20(%rsp,%r12,1),%r13d
movsbl %r13b,%edi
call   1030 <islower@plt>
test   %rax,%rax
je     1300 <main+0x130>
add    $0xe0,%r13b
mov    %r13b,0x20(%rsp,%r12,1)
jmp    1300 <main+0x130>
nopl   0x0(%rax,%rax,1)
mov    0x4(%rsp),%edi
lea    0x20(%rsp),%rbp
mov    %rbp,%rsi
mov    %r14d,%edx
call   1050 <write@plt>
test   %rax,%rax
js     1395 <main+0x1c5>
add    $0x1,%ebx
lea    0xcf5(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x4(%rsp),%edi
call   1090 <close@plt>
movl   $0x4,0x8(%rsp)
mov    0xc(%rsp),%edi
lea    0x4(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   10d0 <accept@plt>
mov    %eax,0x4(%rsp)
test   %eax,%eax
jns    12d0 <main+0x100>
lea    0xc98(%rip),%rdi
jmp    139c <main+0x1cc>
lea    0xc9e(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [15 x i8] c"socket() error\00"
@INADDR_ANY = global i32 0
@.str.2 = [13 x i8] c"bind() error\00"
@.str.3 = [15 x i8] c"listen() error\00"
@.str.4 = [22 x i8] c"Server Listening ...\0A\00"
@.str.5 = [15 x i8] c"accept() error\00"
@.str.6 = [14 x i8] c"write() error\00"
@.str.7 = [26 x i8] c"\0AClient %d disconnented.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.sockaddr_in
%7 = alloca %struct.sockaddr_in
%8 = alloca [1024 x i8]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = bitcast %struct.sockaddr_in* %6 to i8*
%16 = call i32 @memset(i8* %15, i32 0, i32 12)
%17 = load i32, i32* @AF_INET
%18 = load i32, i32* @SOCK_STREAM
%19 = call i32 @socket(i32 %17, i32 %18, i32 0)
store i32 %19, i32* %9
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %24
21: ; preds = %2
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%23 = call i32 @exit(i32 1)
unreachable
24: ; preds = %2
%25 = load i32, i32* @AF_INET
%26 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 2
store i32 %25, i32* %26
%27 = call i32 @htons(i32 9503)
%28 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 1
store i32 %27, i32* %28
%29 = load i32, i32* @INADDR_ANY
%30 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
%31 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %30, i32 0, i32 0
store i32 %29, i32* %31
%32 = load i32, i32* %9
%33 = bitcast %struct.sockaddr_in* %6 to %struct.sockaddr*
%34 = call i64 @bind(i32 %32, %struct.sockaddr* %33, i32 12)
%35 = icmp slt i64 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %24
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%38 = call i32 @exit(i32 1)
unreachable
39: ; preds = %24
%40 = load i32, i32* %9
%41 = call i64 @listen(i32 %40, i32 5)
%42 = icmp slt i64 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %39
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%45 = call i32 @exit(i32 1)
unreachable
46: ; preds = %39
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %14
br label %48
48: ; preds = %46, %100
store i32 4, i32* %11
%49 = load i32, i32* %9
%50 = bitcast i32* %10 to %struct.sockaddr*
%51 = call i32 @accept(i32 %49, %struct.sockaddr* %50, i32* %11)
store i32 %51, i32* %10
%52 = icmp slt i32 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %48
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%55 = call i32 @exit(i32 1)
unreachable
56: ; preds = %48
%57 = load i32, i32* %14
%58 = add nsw i32 %57, 1
store i32 %58, i32* %14
%59 = load i32, i32* %10
%60 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%61 = call i32 @read(i32 %59, i8* %60, i32 1024)
store i32 %61, i32* %12
%62 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%63 = load i32, i32* %12
%64 = call i64 @write(i32 1, i8* %62, i32 %63)
store i32 0, i32* %13
br label %65
65: ; preds = %88, %56
%66 = load i32, i32* %13
%67 = load i32, i32* %12
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %91
69: ; preds = %65
%70 = load i32, i32* %13
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 %71
%73 = load i8, i8* %72
%74 = call i64 @islower(i8 signext %73)
%75 = icmp ne i64 %74, 0
br i1 %75, label %76, label %87
76: ; preds = %69
%77 = load i32, i32* %13
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 %78
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = sub nsw i32 %81, 32
%83 = trunc i32 %82 to i8
%84 = load i32, i32* %13
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 %85
store i8 %83, i8* %86
br label %87
87: ; preds = %76, %69
br label %88
88: ; preds = %87
%89 = load i32, i32* %13
%90 = add nsw i32 %89, 1
store i32 %90, i32* %13
br label %65
91: ; preds = %65
%92 = load i32, i32* %10
%93 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%94 = load i32, i32* %12
%95 = call i64 @write(i32 %92, i8* %93, i32 %94)
%96 = icmp slt i64 %95, 0
br i1 %96, label %97, label %100
97: ; preds = %91
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%99 = call i32 @exit(i32 1)
unreachable
100: ; preds = %91
%101 = load i32, i32* %14
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i32 %101)
%103 = load i32, i32* %10
%104 = call i32 @close(i32 %103)
br label %48
}

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