#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_storage {
  int dummy;
};
struct sockaddr {
  int dummy;
};
struct addrinfo {
  int /*<<< orphan*/ ai_addrlen;
  int /*<<< orphan*/ ai_addr;
  int /*<<< orphan*/ ai_protocol;
  int /*<<< orphan*/ ai_socktype;
  int /*<<< orphan*/ ai_family;
  int /*<<< orphan*/ ai_flags;
};
typedef int /*<<< orphan*/ socklen_t;
typedef int /*<<< orphan*/ hints;

/* Variables and functions */
int /*<<< orphan*/ AF_UNSPEC;
int /*<<< orphan*/ AI_PASSIVE;
int /*<<< orphan*/ SOCK_STREAM;
int accept(int, struct sockaddr *, int /*<<< orphan*/ *);
int /*<<< orphan*/ bind(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ connect(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ freeaddrinfo(struct addrinfo *);
int /*<<< orphan*/ getaddrinfo(char *, char *, struct addrinfo *,
                               struct addrinfo **);
int getopt(int, char **, char *);
int /*<<< orphan*/ listen(int, int);
char *malloc(int);
int /*<<< orphan*/ memset(struct addrinfo *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ recv(int, char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ send(int, char *, int, int /*<<< orphan*/);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int main(int argc, char *argv[]) {
  struct sockaddr_storage client_addr;
  socklen_t addr_size;
  struct addrinfo hints, *res;
  int sock, listensock, optstatus, quit = 0;
  char *recv_buffer;
  recv_buffer = malloc(256 * sizeof(char));
  char *buffer;
  buffer = malloc(256 * sizeof(char));
  printf("First message:");
  fgets(buffer, 250, stdin);
  memset(&hints, 0, sizeof(hints));
  hints.ai_family = AF_UNSPEC;
  hints.ai_socktype = SOCK_STREAM;
  if ((optstatus = getopt(argc, argv, "c:")) != -1) {
    switch (optstatus) {
    case 'c':
      getaddrinfo(argv[2], "1337", &hints, &res);
      sock = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
      connect(sock, res->ai_addr, res->ai_addrlen);
    default:
      hints.ai_flags = AI_PASSIVE;
      getaddrinfo(NULL, "1337", &hints, &res);
      listensock = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
      bind(listensock, res->ai_addr, res->ai_addrlen);
      listen(listensock, 10);
      sock = accept(listensock, (struct sockaddr *)&client_addr, &addr_size);
    }
  }
  while (quit != 1) {
    send(sock, buffer, 256, 0);
    recv(sock, recv_buffer, 256, 0);
    printf("%sSay:", recv_buffer);
    fgets(buffer, 250, stdin);
  }
  freeaddrinfo(res);
  close(sock);
  free(recv_buffer);
  free(buffer);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x50(%rbp)
mov    $0x100,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x58(%rbp)
mov    $0x100,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x60(%rbp)
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x60(%rbp),%rdi
mov    0x2d86(%rip),%rax
mov    (%rax),%edx
mov    $0xfa,%esi
call   1090 <fgets@plt>
lea    -0x38(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1070 <memset@plt>
mov    0x2d6b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    0x2d47(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xd7b(%rip),%rdx
call   10d0 <getopt@plt>
mov    %eax,-0x4c(%rbp)
cmp    $0xffffffff,%eax
je     137f <main+0x17f>
mov    -0x4c(%rbp),%eax
sub    $0x63,%eax
jne    1304 <main+0x104>
jmp    12b6 <main+0xb6>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd4d(%rip),%rsi
lea    -0x38(%rbp),%rdx
lea    -0x40(%rbp),%rcx
call   1100 <getaddrinfo@plt>
mov    -0x40(%rbp),%rax
mov    0x10(%rax),%edi
mov    -0x40(%rbp),%rax
mov    0xc(%rax),%esi
mov    -0x40(%rbp),%rax
mov    0x8(%rax),%edx
call   1120 <socket@plt>
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x40(%rbp),%rax
mov    0x4(%rax),%esi
mov    -0x40(%rbp),%rax
mov    (%rax),%edx
call   10f0 <connect@plt>
mov    0x2cdd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xcf7(%rip),%rsi
lea    -0x38(%rbp),%rdx
lea    -0x40(%rbp),%rcx
call   1100 <getaddrinfo@plt>
mov    -0x40(%rbp),%rax
mov    0x10(%rax),%edi
mov    -0x40(%rbp),%rax
mov    0xc(%rax),%esi
mov    -0x40(%rbp),%rax
mov    0x8(%rax),%edx
call   1120 <socket@plt>
mov    %eax,-0x48(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x40(%rbp),%rax
mov    0x4(%rax),%esi
mov    -0x40(%rbp),%rax
mov    (%rax),%edx
call   10c0 <bind@plt>
mov    -0x48(%rbp),%edi
mov    $0xa,%esi
call   10b0 <listen@plt>
mov    -0x48(%rbp),%edi
lea    -0x18(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
call   10e0 <accept@plt>
mov    %eax,-0x44(%rbp)
jmp    137f <main+0x17f>
jmp    1384 <main+0x184>
cmpl   $0x1,-0x50(%rbp)
je     13e2 <main+0x1e2>
mov    -0x44(%rbp),%edi
mov    -0x60(%rbp),%rsi
mov    $0x100,%edx
xor    %ecx,%ecx
call   1050 <send@plt>
mov    -0x44(%rbp),%edi
mov    -0x58(%rbp),%rsi
mov    $0x100,%edx
xor    %ecx,%ecx
call   1040 <recv@plt>
mov    -0x58(%rbp),%rsi
lea    0xc58(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x60(%rbp),%rdi
mov    0x2c07(%rip),%rax
mov    (%rax),%edx
mov    $0xfa,%esi
call   1090 <fgets@plt>
jmp    1384 <main+0x184>
mov    -0x40(%rbp),%rdi
call   1110 <freeaddrinfo@plt>
mov    -0x44(%rbp),%edi
call   1080 <close@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x30,%rsp
mov    %rsi,%r15
mov    %edi,%ebp
mov    $0x100,%edi
call   1080 <malloc@plt>
mov    %rax,%r14
mov    $0x100,%edi
call   1080 <malloc@plt>
mov    %rax,%rbx
lea    0xdfe(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2dc8(%rip),%r12
mov    (%r12),%edx
mov    %rbx,%rdi
mov    $0xfa,%esi
call   1070 <fgets@plt>
lea    0x10(%rsp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1060 <memset@plt>
mov    0x2da7(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x20(%rsp)
mov    0x2d82(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x1c(%rsp)
lea    0xdbc(%rip),%rdx
mov    %ebp,%edi
mov    %r15,%rsi
call   10b0 <getopt@plt>
cmp    $0xffffffff,%eax
je     1315 <main+0x145>
cmp    $0x63,%eax
jne    12a9 <main+0xd9>
mov    0x10(%r15),%rdi
lea    0xd9c(%rip),%rsi
lea    0x10(%rsp),%rdx
lea    0x8(%rsp),%rcx
call   10e0 <getaddrinfo@plt>
mov    0x8(%rsp),%rax
mov    0x10(%rax),%edi
mov    0x8(%rax),%edx
mov    0xc(%rax),%esi
call   10f0 <socket@plt>
mov    0x8(%rsp),%rcx
mov    (%rcx),%edx
mov    0x4(%rcx),%esi
mov    %eax,%edi
call   10d0 <connect@plt>
mov    0x2d38(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x24(%rsp)
lea    0xd55(%rip),%rsi
lea    0x10(%rsp),%rdx
lea    0x8(%rsp),%rcx
xor    %edi,%edi
call   10e0 <getaddrinfo@plt>
mov    0x8(%rsp),%rax
mov    0x10(%rax),%edi
mov    0x8(%rax),%edx
mov    0xc(%rax),%esi
call   10f0 <socket@plt>
mov    %eax,%ebp
mov    0x8(%rsp),%rax
mov    (%rax),%edx
mov    0x4(%rax),%esi
mov    %ebp,%edi
call   10a0 <bind@plt>
mov    %ebp,%edi
mov    $0xa,%esi
call   1090 <listen@plt>
lea    0x28(%rsp),%rsi
lea    0x2c(%rsp),%rdx
mov    %ebp,%edi
call   10c0 <accept@plt>
mov    %eax,%ebp
jmp    1315 <main+0x145>
lea    0xcfb(%rip),%r15
nopl   0x0(%rax)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x100,%edx
xor    %ecx,%ecx
call   1040 <send@plt>
mov    %ebp,%edi
mov    %r14,%rsi
mov    $0x100,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r12),%edx
mov    %rbx,%rdi
mov    $0xfa,%esi
call   1070 <fgets@plt>
jmp    1320 <main+0x150>

LLVM IR (-O0):
%struct.sockaddr_storage = type { i32 }
%struct.addrinfo = type { i32, i32, i32, i32, i32, i32 }
%struct.sockaddr = type { i32 }
@.str = [15 x i8] c"First message:\00"
@stdin = global i32 0
@AF_UNSPEC = global i32 0
@SOCK_STREAM = global i32 0
@.str.1 = [3 x i8] c"c:\00"
@.str.2 = [5 x i8] c"1337\00"
@AI_PASSIVE = global i32 0
@.str.3 = [7 x i8] c"%sSay:\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.sockaddr_storage
%7 = alloca i32
%8 = alloca %struct.addrinfo
%9 = alloca %struct.addrinfo*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %13
%16 = call i8* @malloc(i32 256)
store i8* %16, i8** %14
%17 = call i8* @malloc(i32 256)
store i8* %17, i8** %15
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%19 = load i8*, i8** %15
%20 = load i32, i32* @stdin
%21 = call i32 @fgets(i8* %19, i32 250, i32 %20)
%22 = call i32 @memset(%struct.addrinfo* %8, i32 0, i32 24)
%23 = load i32, i32* @AF_UNSPEC
%24 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %8, i32 0, i32 4
store i32 %23, i32* %24
%25 = load i32, i32* @SOCK_STREAM
%26 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %8, i32 0, i32 3
store i32 %25, i32* %26
%27 = load i32, i32* %4
%28 = load i8**, i8*** %5
%29 = call i32 @getopt(i32 %27, i8** %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32 %29, i32* %12
%30 = icmp ne i32 %29, -1
br i1 %30, label %31, label %84
31: ; preds = %2
%32 = load i32, i32* %12
switch i32 %32, label %56 [
i32 99, label %33
]
33: ; preds = %31
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 2
%36 = load i8*, i8** %35
%37 = call i32 @getaddrinfo(i8* %36, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %struct.addrinfo* %8, %struct.addrinfo** %9)
%38 = load %struct.addrinfo*, %struct.addrinfo** %9
%39 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %38, i32 0, i32 4
%40 = load i32, i32* %39
%41 = load %struct.addrinfo*, %struct.addrinfo** %9
%42 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %41, i32 0, i32 3
%43 = load i32, i32* %42
%44 = load %struct.addrinfo*, %struct.addrinfo** %9
%45 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %44, i32 0, i32 2
%46 = load i32, i32* %45
%47 = call i32 @socket(i32 %40, i32 %43, i32 %46)
store i32 %47, i32* %10
%48 = load i32, i32* %10
%49 = load %struct.addrinfo*, %struct.addrinfo** %9
%50 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %49, i32 0, i32 1
%51 = load i32, i32* %50
%52 = load %struct.addrinfo*, %struct.addrinfo** %9
%53 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %52, i32 0, i32 0
%54 = load i32, i32* %53
%55 = call i32 @connect(i32 %48, i32 %51, i32 %54)
br label %56
56: ; preds = %31, %33
%57 = load i32, i32* @AI_PASSIVE
%58 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %8, i32 0, i32 5
store i32 %57, i32* %58
%59 = call i32 @getaddrinfo(i8* null, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %struct.addrinfo* %8, %struct.addrinfo** %9)
%60 = load %struct.addrinfo*, %struct.addrinfo** %9
%61 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %60, i32 0, i32 4
%62 = load i32, i32* %61
%63 = load %struct.addrinfo*, %struct.addrinfo** %9
%64 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %63, i32 0, i32 3
%65 = load i32, i32* %64
%66 = load %struct.addrinfo*, %struct.addrinfo** %9
%67 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %66, i32 0, i32 2
%68 = load i32, i32* %67
%69 = call i32 @socket(i32 %62, i32 %65, i32 %68)
store i32 %69, i32* %11
%70 = load i32, i32* %11
%71 = load %struct.addrinfo*, %struct.addrinfo** %9
%72 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %71, i32 0, i32 1
%73 = load i32, i32* %72
%74 = load %struct.addrinfo*, %struct.addrinfo** %9
%75 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %74, i32 0, i32 0
%76 = load i32, i32* %75
%77 = call i32 @bind(i32 %70, i32 %73, i32 %76)
%78 = load i32, i32* %11
%79 = call i32 @listen(i32 %78, i32 10)
%80 = load i32, i32* %11
%81 = bitcast %struct.sockaddr_storage* %6 to %struct.sockaddr*
%82 = call i32 @accept(i32 %80, %struct.sockaddr* %81, i32* %7)
store i32 %82, i32* %10
br label %83
83: ; preds = %56
br label %84
84: ; preds = %83, %2
br label %85
85: ; preds = %88, %84
%86 = load i32, i32* %13
%87 = icmp ne i32 %86, 1
br i1 %87, label %88, label %100
88: ; preds = %85
%89 = load i32, i32* %10
%90 = load i8*, i8** %15
%91 = call i32 @send(i32 %89, i8* %90, i32 256, i32 0)
%92 = load i32, i32* %10
%93 = load i8*, i8** %14
%94 = call i32 @recv(i32 %92, i8* %93, i32 256, i32 0)
%95 = load i8*, i8** %14
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* %95)
%97 = load i8*, i8** %15
%98 = load i32, i32* @stdin
%99 = call i32 @fgets(i8* %97, i32 250, i32 %98)
br label %85
100: ; preds = %85
%101 = load %struct.addrinfo*, %struct.addrinfo** %9
%102 = call i32 @freeaddrinfo(%struct.addrinfo* %101)
%103 = load i32, i32* %10
%104 = call i32 @close(i32 %103)
%105 = load i8*, i8** %14
%106 = call i32 @free(i8* %105)
%107 = load i8*, i8** %15
%108 = call i32 @free(i8* %107)
ret i32 0
}

LLVM IR (-O2):
%struct.sockaddr_storage = type { i32 }
%struct.addrinfo = type { i32, i32, i32, i32, i32, i32 }
%struct.sockaddr = type { i32 }
@.str = [15 x i8] c"First message:\00"
@stdin = global i32 0
@AF_UNSPEC = global i32 0
@SOCK_STREAM = global i32 0
@.str.1 = [3 x i8] c"c:\00"
@.str.2 = [5 x i8] c"1337\00"
@AI_PASSIVE = global i32 0
@.str.3 = [7 x i8] c"%sSay:\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca %struct.sockaddr_storage
%4 = alloca i32
%5 = alloca %struct.addrinfo
%6 = alloca %struct.addrinfo*
%7 = bitcast %struct.sockaddr_storage* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = bitcast %struct.addrinfo* %5 to i8*
%10 = bitcast %struct.addrinfo** %6 to i8*
%11 = tail call dereferenceable_or_null(256) i8* @malloc(i32 256)
%12 = tail call dereferenceable_or_null(256) i8* @malloc(i32 256)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* @stdin
%15 = tail call i32 @fgets(i8* %12, i32 250, i32 %14)
%16 = call i32 @memset(%struct.addrinfo* %5, i32 0, i32 24)
%17 = load i32, i32* @AF_UNSPEC
%18 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %5, i64 0, i32 4
store i32 %17, i32* %18
%19 = load i32, i32* @SOCK_STREAM
%20 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %5, i64 0, i32 3
store i32 %19, i32* %20
%21 = call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
switch i32 %21, label %40 [
i32 -1, label %61
i32 99, label %22
]
22: ; preds = %2
%23 = getelementptr inbounds i8*, i8** %1, i64 2
%24 = load i8*, i8** %23
%25 = call i32 @getaddrinfo(i8* %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %struct.addrinfo* %5, %struct.addrinfo** %6)
%26 = load %struct.addrinfo*, %struct.addrinfo** %6
%27 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %26, i64 0, i32 4
%28 = load i32, i32* %27
%29 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %26, i64 0, i32 3
%30 = load i32, i32* %29
%31 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %26, i64 0, i32 2
%32 = load i32, i32* %31
%33 = call i32 @socket(i32 %28, i32 %30, i32 %32)
%34 = load %struct.addrinfo*, %struct.addrinfo** %6
%35 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %34, i64 0, i32 1
%36 = load i32, i32* %35
%37 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %34, i64 0, i32 0
%38 = load i32, i32* %37
%39 = call i32 @connect(i32 %33, i32 %36, i32 %38)
br label %40
40: ; preds = %2, %22
%41 = load i32, i32* @AI_PASSIVE
%42 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %5, i64 0, i32 5
store i32 %41, i32* %42
%43 = call i32 @getaddrinfo(i8* null, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %struct.addrinfo* %5, %struct.addrinfo** %6)
%44 = load %struct.addrinfo*, %struct.addrinfo** %6
%45 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %44, i64 0, i32 4
%46 = load i32, i32* %45
%47 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %44, i64 0, i32 3
%48 = load i32, i32* %47
%49 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %44, i64 0, i32 2
%50 = load i32, i32* %49
%51 = call i32 @socket(i32 %46, i32 %48, i32 %50)
%52 = load %struct.addrinfo*, %struct.addrinfo** %6
%53 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %52, i64 0, i32 1
%54 = load i32, i32* %53
%55 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %52, i64 0, i32 0
%56 = load i32, i32* %55
%57 = call i32 @bind(i32 %51, i32 %54, i32 %56)
%58 = call i32 @listen(i32 %51, i32 10)
%59 = bitcast %struct.sockaddr_storage* %3 to %struct.sockaddr*
%60 = call i32 @accept(i32 %51, %struct.sockaddr* %59, i32* %4)
br label %61
61: ; preds = %2, %40
%62 = phi i32 [ %60, %40 ], [ undef, %2 ]
br label %63
63: ; preds = %63, %61
%64 = call i32 @send(i32 %62, i8* %12, i32 256, i32 0)
%65 = call i32 @recv(i32 %62, i8* %11, i32 256, i32 0)
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* %11)
%67 = load i32, i32* @stdin
%68 = call i32 @fgets(i8* %12, i32 250, i32 %67)
br label %63
}