#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*/ soma;
typedef int /*<<< orphan*/ num;
typedef int /*<<< orphan*/ me;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ SOMAXCONN;
int accept(int, struct sockaddr *, int *);
int bind(int, struct sockaddr *, int);
int /*<<< orphan*/ bzero(char *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fork();
int /*<<< orphan*/ htonl(int /*<<< orphan*/);
int /*<<< orphan*/ htons(int);
char *inet_ntoa(TYPE_1__);
int /*<<< orphan*/ listen(int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ read(int, int *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ strcmp(char *);
int /*<<< orphan*/ write(int, int *, int);
void main(int argc, char **argv) {
  struct sockaddr_in me, from;
  int newSock, sock, adl;
  int num, soma;
  if (argc < 2) {
    puts("falta de argumentos\n");
    exit(1);
  }
  adl = sizeof(me);
  sock = socket(AF_INET, SOCK_STREAM, 0);
  bzero((char *)&me, adl);
  me.sin_family = AF_INET;
  me.sin_addr.s_addr = htonl(INADDR_ANY);
  me.sin_port = htons(60112);
  if (-1 == bind(sock, (struct sockaddr *)&me, adl)) {
    puts("Porta ocupada");
    close(sock);
    exit(1);
  }
  listen(sock, SOMAXCONN);
  for (;;) {
    newSock = accept(sock, (struct sockaddr *)&from, &adl);
    if (!fork()) {
      close(sock);
      int i;
      for (i = 0; i < argc; ++i) {
        if (!strcmp(argv[i]), inet_ntoa(from.sin_addr))
          break;
        if (i == argc) {
          printf("cliente recusado:%s\n", inet_ntoa(from.sin_addr));
          close(newSock);
          exit(0);
        }
      }
      printf("cliente aceite:%s\n", inet_ntoa(from.sin_addr));
      do {
        soma = 0;
        do {
          read(newSock, &num, sizeof(num));
          soma = soma + num;
        } while (num);
        write(newSock, &soma, sizeof(soma));
      } while (soma);
      close(newSock);
      exit(0);
    }
    close(newSock);
  }
  close(sock);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x4(%rbp)
jge    122f <main+0x2f>
lea    0xde0(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
movl   $0xc,-0x3c(%rbp)
mov    0x2dab(%rip),%rax
mov    (%rax),%edi
mov    0x2d82(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1120 <socket@plt>
mov    %eax,-0x38(%rbp)
lea    -0x20(%rbp),%rdi
mov    -0x3c(%rbp),%esi
call   10e0 <bzero@plt>
mov    0x2d83(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    0x2d6f(%rip),%rax
mov    (%rax),%edi
call   1080 <htonl@plt>
mov    %eax,-0x20(%rbp)
mov    $0xead0,%edi
call   1060 <htons@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x38(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    -0x3c(%rbp),%edx
call   10d0 <bind@plt>
mov    %eax,%ecx
mov    $0xffffffff,%eax
cmp    %ecx,%eax
jne    12c4 <main+0xc4>
lea    0xd68(%rip),%rdi
call   1030 <puts@plt>
mov    -0x38(%rbp),%edi
call   1090 <close@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x38(%rbp),%edi
mov    0x2d02(%rip),%rax
mov    (%rax),%esi
call   10c0 <listen@plt>
mov    -0x38(%rbp),%edi
lea    -0x30(%rbp),%rsi
lea    -0x3c(%rbp),%rdx
call   10f0 <accept@plt>
mov    %eax,-0x34(%rbp)
mov    $0x0,%al
call   1110 <fork@plt>
cmp    $0x0,%eax
jne    13ec <main+0x1ec>
mov    -0x38(%rbp),%edi
call   1090 <close@plt>
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1380 <main+0x180>
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   10b0 <strcmp@plt>
mov    -0x30(%rbp),%edi
call   1050 <inet_ntoa@plt>
cmp    $0x0,%rax
je     133b <main+0x13b>
jmp    1380 <main+0x180>
mov    -0x48(%rbp),%eax
cmp    -0x4(%rbp),%eax
jne    136d <main+0x16d>
mov    -0x30(%rbp),%edi
call   1050 <inet_ntoa@plt>
mov    %rax,%rsi
lea    0xcca(%rip),%rdi
call   1070 <printf@plt>
mov    -0x34(%rbp),%edi
call   1090 <close@plt>
xor    %edi,%edi
call   1100 <exit@plt>
jmp    1372 <main+0x172>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1307 <main+0x107>
mov    -0x30(%rbp),%edi
call   1050 <inet_ntoa@plt>
mov    %rax,%rsi
lea    0xca6(%rip),%rdi
call   1070 <printf@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x34(%rbp),%edi
lea    -0x40(%rbp),%rsi
mov    $0x4,%edx
call   10a0 <read@plt>
mov    -0x44(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x40(%rbp)
jne    139e <main+0x19e>
mov    -0x34(%rbp),%edi
lea    -0x44(%rbp),%rsi
mov    $0x4,%edx
call   1040 <write@plt>
cmpl   $0x0,-0x44(%rbp)
jne    1397 <main+0x197>
mov    -0x34(%rbp),%edi
call   1090 <close@plt>
xor    %edi,%edi
call   1100 <exit@plt>
mov    -0x34(%rbp),%edi
call   1090 <close@plt>
jmp    12d5 <main+0xd5>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
cmp    $0x1,%edi
jg     1229 <main+0x29>
lea    0xde6(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    %rsi,%r12
mov    %edi,%r14d
movl   $0xc,0xc(%rsp)
mov    0x2daa(%rip),%rbp
mov    0x0(%rbp),%edi
mov    0x2d80(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1120 <socket@plt>
mov    %eax,%r15d
lea    0x28(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xc,%esi
call   10e0 <bzero@plt>
mov    0x0(%rbp),%eax
mov    %eax,0x30(%rsp)
mov    0x2d6c(%rip),%rax
mov    (%rax),%edi
call   1080 <htonl@plt>
mov    %eax,0x28(%rsp)
mov    $0xead0,%edi
call   1060 <htons@plt>
mov    %eax,0x2c(%rsp)
mov    %r15d,%edi
mov    %rbx,%rsi
mov    $0xc,%edx
call   10d0 <bind@plt>
cmp    $0xffffffff,%eax
jne    12c0 <main+0xc0>
lea    0xd6c(%rip),%rdi
call   1030 <puts@plt>
mov    %r15d,%edi
call   1090 <close@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    0x2d09(%rip),%rax
mov    (%rax),%esi
mov    %r15d,%edi
call   10c0 <listen@plt>
lea    0x18(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    %r15d,%edi
call   10f0 <accept@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1110 <fork@plt>
test   %eax,%eax
jne    12fa <main+0xfa>
mov    %r15d,%edi
call   1090 <close@plt>
jmp    133f <main+0x13f>
lea    0x18(%rsp),%r13
lea    0xc(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %ebp,%edi
call   1090 <close@plt>
mov    %r15d,%edi
mov    %r13,%rsi
mov    %rbx,%rdx
call   10f0 <accept@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1110 <fork@plt>
test   %eax,%eax
jne    1310 <main+0x110>
mov    %r15d,%edi
call   1090 <close@plt>
test   %r14d,%r14d
jle    1374 <main+0x174>
mov    %r14d,%r14d
mov    $0x1,%ebx
nopw   0x0(%rax,%rax,1)
mov    -0x8(%r12,%rbx,8),%rdi
call   10b0 <strcmp@plt>
mov    0x18(%rsp),%edi
call   1050 <inet_ntoa@plt>
test   %rax,%rax
jne    1374 <main+0x174>
lea    0x1(%rbx),%rax
cmp    %r14,%rbx
mov    %rax,%rbx
jb     1350 <main+0x150>
mov    0x18(%rsp),%edi
call   1050 <inet_ntoa@plt>
lea    0xc9f(%rip),%rdi
mov    %rax,%rsi
call   1070 <printf@plt>
xor    %ebx,%ebx
lea    0x14(%rsp),%r15
lea    0x10(%rsp),%r14
nopl   0x0(%rax,%rax,1)
mov    %ebp,%edi
mov    %r15,%rsi
mov    $0x4,%edx
call   10a0 <read@plt>
mov    0x14(%rsp),%eax
add    %eax,%ebx
test   %eax,%eax
jne    13a0 <main+0x1a0>
mov    %ebx,0x10(%rsp)
mov    %ebp,%edi
mov    %r14,%rsi
mov    $0x4,%edx
call   1040 <write@plt>
test   %ebx,%ebx
mov    $0x0,%ebx
jne    13a0 <main+0x1a0>
mov    %ebp,%edi
call   1090 <close@plt>
xor    %edi,%edi
call   1100 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [21 x i8] c"falta de argumentos\0A\00"
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@INADDR_ANY = global i32 0
@.str.1 = [14 x i8] c"Porta ocupada\00"
@SOMAXCONN = global i32 0
@.str.2 = [21 x i8] c"cliente recusado:%s\0A\00"
@.str.3 = [19 x i8] c"cliente aceite:%s\0A\00"
define void @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca %struct.sockaddr_in
%6 = alloca %struct.sockaddr_in
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
%13 = load i32, i32* %3
%14 = icmp slt i32 %13, 2
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%17 = call i32 @exit(i32 1)
unreachable
18: ; preds = %2
store i32 12, i32* %9
%19 = load i32, i32* @AF_INET
%20 = load i32, i32* @SOCK_STREAM
%21 = call i32 @socket(i32 %19, i32 %20, i32 0)
store i32 %21, i32* %8
%22 = bitcast %struct.sockaddr_in* %5 to i8*
%23 = load i32, i32* %9
%24 = call i32 @bzero(i8* %22, i32 %23)
%25 = load i32, i32* @AF_INET
%26 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i32 0, i32 2
store i32 %25, i32* %26
%27 = load i32, i32* @INADDR_ANY
%28 = call i32 @htonl(i32 %27)
%29 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i32 0, i32 0
%30 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %29, i32 0, i32 0
store i32 %28, i32* %30
%31 = call i32 @htons(i32 60112)
%32 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i32 0, i32 1
store i32 %31, i32* %32
%33 = load i32, i32* %8
%34 = bitcast %struct.sockaddr_in* %5 to %struct.sockaddr*
%35 = load i32, i32* %9
%36 = call i32 @bind(i32 %33, %struct.sockaddr* %34, i32 %35)
%37 = icmp eq i32 -1, %36
br i1 %37, label %38, label %43
38: ; preds = %18
%39 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%40 = load i32, i32* %8
%41 = call i32 @close(i32 %40)
%42 = call i32 @exit(i32 1)
unreachable
43: ; preds = %18
%44 = load i32, i32* %8
%45 = load i32, i32* @SOMAXCONN
%46 = call i32 @listen(i32 %44, i32 %45)
br label %47
47: ; preds = %119, %43
%48 = load i32, i32* %8
%49 = bitcast %struct.sockaddr_in* %6 to %struct.sockaddr*
%50 = call i32 @accept(i32 %48, %struct.sockaddr* %49, i32* %9)
store i32 %50, i32* %7
%51 = call i32 (...) @fork()
%52 = icmp ne i32 %51, 0
br i1 %52, label %119, label %53
53: ; preds = %47
%54 = load i32, i32* %8
%55 = call i32 @close(i32 %54)
store i32 0, i32* %12
br label %56
56: ; preds = %90, %53
%57 = load i32, i32* %12
%58 = load i32, i32* %3
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %93
60: ; preds = %56
%61 = load i8**, i8*** %4
%62 = load i32, i32* %12
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8*, i8** %61, i64 %63
%65 = load i8*, i8** %64
%66 = call i32 @strcmp(i8* %65)
%67 = icmp ne i32 %66, 0
%68 = xor i1 %67, true
%69 = zext i1 %68 to i32
%70 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
%71 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %70, i32 0, i32 0
%72 = load i32, i32* %71
%73 = call i8* @inet_ntoa(i32 %72)
%74 = icmp ne i8* %73, null
br i1 %74, label %75, label %76
75: ; preds = %60
br label %93
76: ; preds = %60
%77 = load i32, i32* %12
%78 = load i32, i32* %3
%79 = icmp eq i32 %77, %78
br i1 %79, label %80, label %89
80: ; preds = %76
%81 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
%82 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %81, i32 0, i32 0
%83 = load i32, i32* %82
%84 = call i8* @inet_ntoa(i32 %83)
%85 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i8* %84)
%86 = load i32, i32* %7
%87 = call i32 @close(i32 %86)
%88 = call i32 @exit(i32 0)
unreachable
89: ; preds = %76
br label %90
90: ; preds = %89
%91 = load i32, i32* %12
%92 = add nsw i32 %91, 1
store i32 %92, i32* %12
br label %56
93: ; preds = %75, %56
%94 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
%95 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %94, i32 0, i32 0
%96 = load i32, i32* %95
%97 = call i8* @inet_ntoa(i32 %96)
%98 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %97)
br label %99
99: ; preds = %112, %93
store i32 0, i32* %11
br label %100
100: ; preds = %106, %99
%101 = load i32, i32* %7
%102 = call i32 @read(i32 %101, i32* %10, i32 4)
%103 = load i32, i32* %11
%104 = load i32, i32* %10
%105 = add nsw i32 %103, %104
store i32 %105, i32* %11
br label %106
106: ; preds = %100
%107 = load i32, i32* %10
%108 = icmp ne i32 %107, 0
br i1 %108, label %100, label %109
109: ; preds = %106
%110 = load i32, i32* %7
%111 = call i32 @write(i32 %110, i32* %11, i32 4)
br label %112
112: ; preds = %109
%113 = load i32, i32* %11
%114 = icmp ne i32 %113, 0
br i1 %114, label %99, label %115
115: ; preds = %112
%116 = load i32, i32* %7
%117 = call i32 @close(i32 %116)
%118 = call i32 @exit(i32 0)
unreachable
119: ; preds = %47
%120 = load i32, i32* %7
%121 = call i32 @close(i32 %120)
br label %47
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [21 x i8] c"falta de argumentos\0A\00"
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@INADDR_ANY = global i32 0
@.str.1 = [14 x i8] c"Porta ocupada\00"
@SOMAXCONN = global i32 0
@.str.3 = [19 x i8] c"cliente aceite:%s\0A\00"
define void @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca %struct.sockaddr_in
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = bitcast %struct.sockaddr_in* %3 to i8*
%9 = bitcast %struct.sockaddr_in* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = bitcast i32* %6 to i8*
%12 = bitcast i32* %7 to i8*
%13 = icmp slt i32 %0, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%16 = tail call i32 @exit(i32 1)
unreachable
17: ; preds = %2
store i32 12, i32* %5
%18 = load i32, i32* @AF_INET
%19 = load i32, i32* @SOCK_STREAM
%20 = tail call i32 @socket(i32 %18, i32 %19, i32 0)
%21 = call i32 @bzero(i8* %8, i32 12)
%22 = load i32, i32* @AF_INET
%23 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %22, i32* %23
%24 = load i32, i32* @INADDR_ANY
%25 = tail call i32 @htonl(i32 %24)
%26 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0, i32 0
store i32 %25, i32* %26
%27 = tail call i32 @htons(i32 60112)
%28 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1
store i32 %27, i32* %28
%29 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%30 = call i32 @bind(i32 %20, %struct.sockaddr* %29, i32 12)
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %36
32: ; preds = %17
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%34 = call i32 @close(i32 %20)
%35 = call i32 @exit(i32 1)
unreachable
36: ; preds = %17
%37 = load i32, i32* @SOMAXCONN
%38 = call i32 @listen(i32 %20, i32 %37)
%39 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%40 = call i32 @accept(i32 %20, %struct.sockaddr* %39, i32* %5)
%41 = call i32 (...) @fork()
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %83
43: ; preds = %36
%44 = call i32 @close(i32 %20)
br label %48
45: ; preds = %83
%46 = call i32 @close(i32 %20)
%47 = icmp sgt i32 %0, 0
br i1 %47, label %48, label %63
48: ; preds = %43, %45
%49 = phi i32 [ %40, %43 ], [ %86, %45 ]
%50 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0, i32 0
%51 = zext i32 %0 to i64
br label %52
52: ; preds = %52, %48
%53 = phi i64 [ %60, %52 ], [ 0, %48 ]
%54 = getelementptr inbounds i8*, i8** %1, i64 %53
%55 = load i8*, i8** %54
%56 = call i32 @strcmp(i8* %55)
%57 = load i32, i32* %50
%58 = call i8* @inet_ntoa(i32 %57)
%59 = icmp eq i8* %58, null
%60 = add nuw nsw i64 %53, 1
%61 = icmp ult i64 %60, %51
%62 = select i1 %59, i1 %61, i1 false
br i1 %62, label %52, label %63
63: ; preds = %52, %45
%64 = phi i32 [ %86, %45 ], [ %49, %52 ]
%65 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0, i32 0
%66 = load i32, i32* %65
%67 = call i8* @inet_ntoa(i32 %66)
%68 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %67)
br label %69
69: ; preds = %75, %63
%70 = phi i32 [ 0, %63 ], [ %76, %75 ]
%71 = call i32 @read(i32 %64, i32* %6, i32 4)
%72 = load i32, i32* %6
%73 = add nsw i32 %72, %70
%74 = icmp eq i32 %72, 0
br i1 %74, label %77, label %75
75: ; preds = %69, %77
%76 = phi i32 [ %73, %69 ], [ 0, %77 ]
br label %69
77: ; preds = %69
store i32 %73, i32* %7
%78 = call i32 @write(i32 %64, i32* %7, i32 4)
%79 = icmp eq i32 %73, 0
br i1 %79, label %80, label %75
80: ; preds = %77
%81 = call i32 @close(i32 %64)
%82 = call i32 @exit(i32 0)
unreachable
83: ; preds = %36, %83
%84 = phi i32 [ %86, %83 ], [ %40, %36 ]
%85 = call i32 @close(i32 %84)
%86 = call i32 @accept(i32 %20, %struct.sockaddr* %39, i32* %5)
%87 = call i32 (...) @fork()
%88 = icmp eq i32 %87, 0
br i1 %88, label %45, label %83
}