#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__ {
  void *s_addr;
};
struct sockaddr_in {
  void *sin_port;
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ serv_addr;
typedef int /*<<< orphan*/ cli_addr;
typedef int /*<<< orphan*/ buff;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int INADDR_ANY;
int /*<<< orphan*/ SOCK_STREAM;
int accept(int, struct sockaddr *, int *);
scalar_t__ bind(int, struct sockaddr *, int);
int /*<<< orphan*/ bzero(char *, int);
int /*<<< orphan*/ close(int);
int errno;
int /*<<< orphan*/ exit(int);
int getpid();
void *htons(int);
scalar_t__ listen(int, int);
int /*<<< orphan*/ printf(char *, ...);
int read(int, char *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ write(int, char *, int);
main(int argc, char *argv[]) {
  int sockfd, newsockfd, clilen;
  int cnt, cnt1;
  struct sockaddr_in serv_addr, cli_addr;
  char buff[80];
  if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
    printf(" NETWORK SERVER SOCKET FAILURE %d \n", errno);
    exit(1);
  }
  bzero((char *)&serv_addr, sizeof(serv_addr));
  serv_addr.sin_family = AF_INET;
  serv_addr.sin_addr.s_addr = htons(INADDR_ANY);
  serv_addr.sin_port = htons(7210);
  if (bind(sockfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) < 0) {
    printf(" NETWORK SERVER BIND FALIURE %d\n", errno);
    close(sockfd);
    exit(2);
  }
  if (listen(sockfd, 1) < 0) {
    printf(" NETWORK SERVER BIND FAILURE %d\n", errno);
    close(sockfd);
    exit(3);
  }
  for (;;) {
    clilen = sizeof(cli_addr);
    if ((newsockfd = accept(sockfd, (struct sockaddr *)&cli_addr, &clilen)) <
        0) {
      printf(" NETWORK SERVER ACCEPT FAILURE %d\n", errno);
      close(sockfd);
      exit(4);
    }
    bzero(buff, sizeof(buff));
    if ((cnt = read(newsockfd, buff, sizeof(buff))) < 0) {
      printf(" NETWORK SERVER READ ERROR %d\n", errno);
      close(sockfd);
      exit(5);
    } else
      printf("NETWORK SERVER WITH PID %d RECIEVED %s FROM THE CLIENT \n\n",
             getpid(), buff);
    if (cnt1 = write(newsockfd, buff, sizeof(buff)) < 0)
      printf(" NETWORK SERVER UNABLE TO WRITE ");
    printf("NETWORK SERVER WITH PID %d SENT %s TO THE CLIENT \n\n", getpid(),
           buff);
    close(newsockfd);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
mov    0x2de7(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10e0 <socket@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jge    121f <main+0x5f>
mov    0x2dc3(%rip),%rax
mov    (%rax),%esi
lea    0xdf2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    -0x40(%rbp),%rdi
mov    $0x18,%esi
call   10b0 <bzero@plt>
mov    0x2db4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    0x2da0(%rip),%rax
mov    (%rax),%edi
call   1050 <htons@plt>
mov    %rax,-0x38(%rbp)
mov    $0x1c2a,%edi
call   1050 <htons@plt>
mov    %rax,-0x40(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x40(%rbp),%rsi
mov    $0x18,%edx
call   10a0 <bind@plt>
cmp    $0x0,%rax
jge    129d <main+0xdd>
mov    0x2d4d(%rip),%rax
mov    (%rax),%esi
lea    0xda0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%edi
call   1070 <close@plt>
mov    $0x2,%edi
call   10d0 <exit@plt>
mov    -0x14(%rbp),%edi
mov    $0x1,%esi
call   1090 <listen@plt>
cmp    $0x0,%rax
jge    12dd <main+0x11d>
mov    0x2d0d(%rip),%rax
mov    (%rax),%esi
lea    0xd81(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%edi
call   1070 <close@plt>
mov    $0x3,%edi
call   10d0 <exit@plt>
jmp    12e2 <main+0x122>
movl   $0x18,-0x1c(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x58(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
call   10c0 <accept@plt>
mov    %eax,-0x18(%rbp)
cmp    $0x0,%eax
jge    132e <main+0x16e>
mov    0x2cbc(%rip),%rax
mov    (%rax),%esi
lea    0xd51(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%edi
call   1070 <close@plt>
mov    $0x4,%edi
call   10d0 <exit@plt>
lea    -0xb0(%rbp),%rdi
mov    $0x50,%esi
call   10b0 <bzero@plt>
mov    -0x18(%rbp),%edi
lea    -0xb0(%rbp),%rsi
mov    $0x50,%edx
call   1080 <read@plt>
mov    %eax,-0x20(%rbp)
cmp    $0x0,%eax
jge    1388 <main+0x1c8>
mov    0x2c62(%rip),%rax
mov    (%rax),%esi
lea    0xd1a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%edi
call   1070 <close@plt>
mov    $0x5,%edi
call   10d0 <exit@plt>
mov    $0x0,%al
call   1040 <getpid@plt>
mov    %eax,%esi
lea    -0xb0(%rbp),%rdx
lea    0xd09(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%edi
lea    -0xb0(%rbp),%rsi
mov    $0x50,%edx
call   1030 <write@plt>
cmp    $0x0,%rax
setl   %al
mov    %al,%cl
and    $0x1,%cl
movzbl %cl,%ecx
mov    %ecx,-0x24(%rbp)
test   $0x1,%al
jne    13d9 <main+0x219>
jmp    13e7 <main+0x227>
lea    0xd02(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x0,%al
call   1040 <getpid@plt>
mov    %eax,%esi
lea    -0xb0(%rbp),%rdx
lea    0xd05(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%edi
call   1070 <close@plt>
jmp    12e2 <main+0x122>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    0x2e10(%rip),%rbp
mov    0x0(%rbp),%edi
mov    0x2dee(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10e0 <socket@plt>
test   %eax,%eax
jns    1210 <main+0x50>
mov    0x2dd2(%rip),%rax
mov    (%rax),%esi
lea    0xe01(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    %eax,%ebx
lea    0x10(%rsp),%r14
mov    %r14,%rdi
mov    $0x18,%esi
call   10b0 <bzero@plt>
mov    0x0(%rbp),%eax
mov    %eax,0x20(%rsp)
mov    0x2dae(%rip),%rax
mov    (%rax),%edi
call   1050 <htons@plt>
mov    %rax,0x18(%rsp)
mov    $0x1c2a,%edi
call   1050 <htons@plt>
mov    %rax,0x10(%rsp)
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x18,%edx
call   10a0 <bind@plt>
test   %rax,%rax
jns    1289 <main+0xc9>
mov    0x2d60(%rip),%rax
mov    (%rax),%esi
lea    0xdb3(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %ebx,%edi
call   1070 <close@plt>
mov    $0x2,%edi
call   10d0 <exit@plt>
mov    %ebx,%edi
mov    $0x1,%esi
call   1090 <listen@plt>
test   %rax,%rax
jns    12c2 <main+0x102>
mov    0x2d27(%rip),%rax
mov    (%rax),%esi
lea    0xd9b(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %ebx,%edi
call   1070 <close@plt>
mov    $0x3,%edi
call   10d0 <exit@plt>
movl   $0x18,0xc(%rsp)
lea    0x28(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    %ebx,%r12d
mov    %ebx,%edi
call   10c0 <accept@plt>
test   %eax,%eax
jns    130b <main+0x14b>
mov    0x2cdf(%rip),%rax
mov    (%rax),%esi
lea    0xd74(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
call   1070 <close@plt>
mov    $0x4,%edi
call   10d0 <exit@plt>
mov    %eax,%ebp
lea    0x40(%rsp),%rbx
lea    0xdea(%rip),%r13
lea    0x28(%rsp),%r15
lea    0xc(%rsp),%r14
jmp    136d <main+0x1ad>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
call   1040 <getpid@plt>
mov    %r13,%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %ebp,%edi
call   1070 <close@plt>
movl   $0x18,0xc(%rsp)
mov    %r12d,%edi
mov    %r15,%rsi
mov    %r14,%rdx
call   10c0 <accept@plt>
mov    %eax,%ebp
test   %eax,%eax
js     12e2 <main+0x122>
mov    %rbx,%rdi
mov    $0x50,%esi
call   10b0 <bzero@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x50,%edx
call   1080 <read@plt>
test   %eax,%eax
js     13d2 <main+0x212>
xor    %eax,%eax
call   1040 <getpid@plt>
lea    0xd0d(%rip),%rdi
mov    %eax,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x50,%edx
call   1030 <write@plt>
test   %rax,%rax
jns    1330 <main+0x170>
lea    0xd1c(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1330 <main+0x170>
mov    0x2bef(%rip),%rax
mov    (%rax),%esi
lea    0xca7(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12d,%edi
call   1070 <close@plt>
mov    $0x5,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { i8*, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i8* }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [36 x i8] c" NETWORK SERVER SOCKET FAILURE %d \0A\00"
@errno = global i32 0
@INADDR_ANY = global i32 0
@.str.1 = [33 x i8] c" NETWORK SERVER BIND FALIURE %d\0A\00"
@.str.2 = [33 x i8] c" NETWORK SERVER BIND FAILURE %d\0A\00"
@.str.3 = [35 x i8] c" NETWORK SERVER ACCEPT FAILURE %d\0A\00"
@.str.4 = [31 x i8] c" NETWORK SERVER READ ERROR %d\0A\00"
@.str.5 = [58 x i8] c"NETWORK SERVER WITH PID %d RECIEVED %s FROM THE CLIENT \0A\0A\00"
@.str.6 = [33 x i8] c" NETWORK SERVER UNABLE TO WRITE \00"
@.str.7 = [52 x i8] c"NETWORK SERVER WITH PID %d SENT %s TO THE CLIENT \0A\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 %struct.sockaddr_in
%12 = alloca %struct.sockaddr_in
%13 = alloca [80 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* @AF_INET
%15 = load i32, i32* @SOCK_STREAM
%16 = call i32 @socket(i32 %14, i32 %15, i32 0)
store i32 %16, i32* %6
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %2
%19 = load i32, i32* @errno
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 %19)
%21 = call i32 @exit(i32 1)
unreachable
22: ; preds = %2
%23 = bitcast %struct.sockaddr_in* %11 to i8*
%24 = call i32 @bzero(i8* %23, i32 24)
%25 = load i32, i32* @AF_INET
%26 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 2
store i32 %25, i32* %26
%27 = load i32, i32* @INADDR_ANY
%28 = call i8* @htons(i32 %27)
%29 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 1
%30 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %29, i32 0, i32 0
store i8* %28, i8** %30
%31 = call i8* @htons(i32 7210)
%32 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 0
store i8* %31, i8** %32
%33 = load i32, i32* %6
%34 = bitcast %struct.sockaddr_in* %11 to %struct.sockaddr*
%35 = call i64 @bind(i32 %33, %struct.sockaddr* %34, i32 24)
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %22
%38 = load i32, i32* @errno
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %38)
%40 = load i32, i32* %6
%41 = call i32 @close(i32 %40)
%42 = call i32 @exit(i32 2)
unreachable
43: ; preds = %22
%44 = load i32, i32* %6
%45 = call i64 @listen(i32 %44, i32 1)
%46 = icmp slt i64 %45, 0
br i1 %46, label %47, label %53
47: ; preds = %43
%48 = load i32, i32* @errno
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %6
%51 = call i32 @close(i32 %50)
%52 = call i32 @exit(i32 3)
unreachable
53: ; preds = %43
br label %54
54: ; preds = %90, %53
store i32 24, i32* %8
%55 = load i32, i32* %6
%56 = bitcast %struct.sockaddr_in* %12 to %struct.sockaddr*
%57 = call i32 @accept(i32 %55, %struct.sockaddr* %56, i32* %8)
store i32 %57, i32* %7
%58 = icmp slt i32 %57, 0
br i1 %58, label %59, label %65
59: ; preds = %54
%60 = load i32, i32* @errno
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 %60)
%62 = load i32, i32* %6
%63 = call i32 @close(i32 %62)
%64 = call i32 @exit(i32 4)
unreachable
65: ; preds = %54
%66 = getelementptr inbounds [80 x i8], [80 x i8]* %13, i64 0, i64 0
%67 = call i32 @bzero(i8* %66, i32 80)
%68 = load i32, i32* %7
%69 = getelementptr inbounds [80 x i8], [80 x i8]* %13, i64 0, i64 0
%70 = call i32 @read(i32 %68, i8* %69, i32 80)
store i32 %70, i32* %9
%71 = icmp slt i32 %70, 0
br i1 %71, label %72, label %78
72: ; preds = %65
%73 = load i32, i32* @errno
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i32 %73)
%75 = load i32, i32* %6
%76 = call i32 @close(i32 %75)
%77 = call i32 @exit(i32 5)
unreachable
78: ; preds = %65
%79 = call i32 (...) @getpid()
%80 = getelementptr inbounds [80 x i8], [80 x i8]* %13, i64 0, i64 0
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i32 %79, i8* %80)
br label %82
82: ; preds = %78
%83 = load i32, i32* %7
%84 = getelementptr inbounds [80 x i8], [80 x i8]* %13, i64 0, i64 0
%85 = call i64 @write(i32 %83, i8* %84, i32 80)
%86 = icmp slt i64 %85, 0
%87 = zext i1 %86 to i32
store i32 %87, i32* %10
br i1 %86, label %88, label %90
88: ; preds = %82
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0))
br label %90
90: ; preds = %88, %82
%91 = call i32 (...) @getpid()
%92 = getelementptr inbounds [80 x i8], [80 x i8]* %13, i64 0, i64 0
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0), i32 %91, i8* %92)
%94 = load i32, i32* %7
%95 = call i32 @close(i32 %94)
br label %54
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i8*, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i8* }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [36 x i8] c" NETWORK SERVER SOCKET FAILURE %d \0A\00"
@errno = global i32 0
@INADDR_ANY = global i32 0
@.str.1 = [33 x i8] c" NETWORK SERVER BIND FALIURE %d\0A\00"
@.str.2 = [33 x i8] c" NETWORK SERVER BIND FAILURE %d\0A\00"
@.str.3 = [35 x i8] c" NETWORK SERVER ACCEPT FAILURE %d\0A\00"
@.str.4 = [31 x i8] c" NETWORK SERVER READ ERROR %d\0A\00"
@.str.5 = [58 x i8] c"NETWORK SERVER WITH PID %d RECIEVED %s FROM THE CLIENT \0A\0A\00"
@.str.6 = [33 x i8] c" NETWORK SERVER UNABLE TO WRITE \00"
@.str.7 = [52 x i8] c"NETWORK SERVER WITH PID %d SENT %s TO THE CLIENT \0A\0A\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 [80 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 [80 x i8], [80 x i8]* %6, i64 0, i64 0
%11 = load i32, i32* @AF_INET
%12 = load i32, i32* @SOCK_STREAM
%13 = tail call i32 @socket(i32 %11, i32 %12, i32 0)
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = load i32, i32* @errno
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 %16)
%18 = tail call i32 @exit(i32 1)
unreachable
19: ; preds = %2
%20 = call i32 @bzero(i8* %8, i32 24)
%21 = load i32, i32* @AF_INET
%22 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 2
store i32 %21, i32* %22
%23 = load i32, i32* @INADDR_ANY
%24 = tail call i8* @htons(i32 %23)
%25 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1, i32 0
store i8* %24, i8** %25
%26 = tail call i8* @htons(i32 7210)
%27 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0
store i8* %26, i8** %27
%28 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%29 = call i64 @bind(i32 %13, %struct.sockaddr* %28, i32 24)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %19
%32 = load i32, i32* @errno
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %32)
%34 = call i32 @close(i32 %13)
%35 = call i32 @exit(i32 2)
unreachable
36: ; preds = %19
%37 = call i64 @listen(i32 %13, i32 1)
%38 = icmp slt i64 %37, 0
br i1 %38, label %43, label %39
39: ; preds = %36
%40 = bitcast %struct.sockaddr_in* %5 to %struct.sockaddr*
store i32 24, i32* %3
%41 = call i32 @accept(i32 %13, %struct.sockaddr* %40, i32* %3)
%42 = icmp slt i32 %41, 0
br i1 %42, label %48, label %53
43: ; preds = %36
%44 = load i32, i32* @errno
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %44)
%46 = call i32 @close(i32 %13)
%47 = call i32 @exit(i32 3)
unreachable
48: ; preds = %70, %39
%49 = load i32, i32* @errno
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 %49)
%51 = call i32 @close(i32 %13)
%52 = call i32 @exit(i32 4)
unreachable
53: ; preds = %39, %70
%54 = phi i32 [ %74, %70 ], [ %41, %39 ]
%55 = call i32 @bzero(i8* %10, i32 80)
%56 = call i32 @read(i32 %54, i8* %10, i32 80)
%57 = icmp slt i32 %56, 0
br i1 %57, label %58, label %63
58: ; preds = %53
%59 = load i32, i32* @errno
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i32 %59)
%61 = call i32 @close(i32 %13)
%62 = call i32 @exit(i32 5)
unreachable
63: ; preds = %53
%64 = call i32 (...) @getpid()
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i32 %64, i8* %10)
%66 = call i64 @write(i32 %54, i8* %10, i32 80)
%67 = icmp slt i64 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %63
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0))
br label %70
70: ; preds = %68, %63
%71 = call i32 (...) @getpid()
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0), i32 %71, i8* %10)
%73 = call i32 @close(i32 %54)
store i32 24, i32* %3
%74 = call i32 @accept(i32 %13, %struct.sockaddr* %40, i32* %3)
%75 = icmp slt i32 %74, 0
br i1 %75, label %48, label %53
}