#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_family;
};
struct sockaddr {
  int dummy;
};
typedef int socklen_t;
typedef scalar_t__ pid_t;
typedef int /*<<< orphan*/ data;
typedef int /*<<< orphan*/ buf;
typedef int /*<<< orphan*/ addr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_LOOPBACK;
int /*<<< orphan*/ MSG_DONTROUTE;
int /*<<< orphan*/ MSG_WAITALL;
int /*<<< orphan*/ PF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int accept(int /*<<< orphan*/, struct sockaddr *, int *);
int /*<<< orphan*/ assert(int);
scalar_t__ bind(int /*<<< orphan*/, struct sockaddr *, int);
scalar_t__ close(int);
scalar_t__ connect(int /*<<< orphan*/, struct sockaddr *, int);
scalar_t__ fork();
scalar_t__ getsockname(int /*<<< orphan*/, struct sockaddr *, int *);
int /*<<< orphan*/ htonl(int /*<<< orphan*/);
scalar_t__ listen(int /*<<< orphan*/, int);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int recv(int, char *, int, int /*<<< orphan*/);
int send(int /*<<< orphan*/, char const *, size_t const, int /*<<< orphan*/);
scalar_t__ socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ waitpid(scalar_t__, int *, int /*<<< orphan*/);
int main(void) {
  static const char data[] = "data";
  const size_t size = sizeof(data) - 1;
  struct sockaddr_in addr;
  socklen_t len = sizeof(addr);
  pid_t pid;
  memset(&addr, 0, sizeof(addr));
  addr.sin_family = AF_INET;
  addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
  close(0);
  close(1);
  if (socket(PF_INET, SOCK_STREAM, 0)) {
    perror("socket");
    return 77;
  }
  if (bind(0, (struct sockaddr *)&addr, len)) {
    perror("bind");
    return 77;
  }
  assert(listen(0, 5) == 0);
  memset(&addr, 0, sizeof(addr));
  assert(getsockname(0, (struct sockaddr *)&addr, &len) == 0);
  assert((pid = fork()) >= 0);
  if (pid) {
    char buf[sizeof(data)];
    int status;
    assert(accept(0, (struct sockaddr *)&addr, &len) == 1);
    assert(close(0) == 0);
    assert(recv(1, buf, sizeof(buf), MSG_WAITALL) == (int)size);
    assert(waitpid(pid, &status, 0) == pid);
    assert(status == 0);
    assert(close(1) == 0);
  } else {
    assert(close(0) == 0);
    assert(socket(PF_INET, SOCK_STREAM, 0) == 0);
    assert(connect(0, (struct sockaddr *)&addr, len) == 0);
    assert(send(0, data, size, MSG_DONTROUTE) == (int)size);
    assert(close(0) == 0);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x4,-0x10(%rbp)
movl   $0x8,-0x1c(%rbp)
lea    -0x18(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1060 <memset@plt>
mov    0x2dc3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    0x2da7(%rip),%rax
mov    (%rax),%edi
call   1050 <htonl@plt>
mov    %eax,-0x18(%rbp)
xor    %edi,%edi
call   1070 <close@plt>
mov    $0x1,%edi
call   1070 <close@plt>
mov    0x2d6d(%rip),%rax
mov    (%rax),%edi
mov    0x2d6c(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1110 <socket@plt>
cmp    $0x0,%rax
je     1287 <main+0x97>
lea    0xd8f(%rip),%rdi
call   10c0 <perror@plt>
movl   $0x4d,-0x4(%rbp)
jmp    148b <main+0x29b>
lea    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
xor    %edi,%edi
call   10a0 <bind@plt>
cmp    $0x0,%rax
je     12b7 <main+0xc7>
lea    0xd66(%rip),%rdi
call   10c0 <perror@plt>
movl   $0x4d,-0x4(%rbp)
jmp    148b <main+0x29b>
xor    %edi,%edi
mov    $0x5,%esi
call   1090 <listen@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x18(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1060 <memset@plt>
lea    -0x18(%rbp),%rsi
xor    %edi,%edi
lea    -0x1c(%rbp),%rdx
call   10e0 <getsockname@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    $0x0,%al
call   1100 <fork@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
cmpq   $0x0,-0x28(%rbp)
je     13df <main+0x1ef>
lea    -0x18(%rbp),%rsi
xor    %edi,%edi
lea    -0x1c(%rbp),%rdx
call   10d0 <accept@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
xor    %edi,%edi
call   1070 <close@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x2d(%rbp),%rsi
mov    0x2c43(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%edi
mov    $0x5,%edx
call   1030 <recv@plt>
cmp    $0x4,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x28(%rbp),%rdi
lea    -0x34(%rbp),%rsi
xor    %edx,%edx
call   10b0 <waitpid@plt>
cmp    -0x28(%rbp),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
cmpl   $0x0,-0x34(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    $0x1,%edi
call   1070 <close@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
jmp    1484 <main+0x294>
xor    %edi,%edi
call   1070 <close@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    0x2bc2(%rip),%rax
mov    (%rax),%edi
mov    0x2bc1(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1110 <socket@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
xor    %edi,%edi
call   10f0 <connect@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    0x2b99(%rip),%rax
mov    (%rax),%ecx
xor    %edi,%edi
lea    0xbae(%rip),%rsi
mov    $0x4,%edx
call   1040 <send@plt>
cmp    $0x4,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
xor    %edi,%edi
call   1070 <close@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x28,%rsp
movl   $0x8,0xc(%rsp)
lea    0x10(%rsp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1060 <memset@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x14(%rsp)
mov    0x2db1(%rip),%rax
mov    (%rax),%edi
call   1050 <htonl@plt>
mov    %eax,0x10(%rsp)
xor    %edi,%edi
call   1070 <close@plt>
mov    $0x1,%edi
call   1070 <close@plt>
mov    0x2d76(%rip),%r15
mov    (%r15),%edi
mov    0x2d74(%rip),%rbp
mov    0x0(%rbp),%esi
xor    %edx,%edx
call   1110 <socket@plt>
test   %rax,%rax
jne    1422 <main+0x232>
lea    0x10(%rsp),%rsi
xor    %edi,%edi
mov    $0x8,%edx
call   10a0 <bind@plt>
test   %rax,%rax
jne    142b <main+0x23b>
xor    %r14d,%r14d
xor    %edi,%edi
mov    $0x5,%esi
call   1090 <listen@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1060 <memset@plt>
lea    0xc(%rsp),%rdx
xor    %edi,%edi
mov    %rbx,%rsi
call   10e0 <getsockname@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
xor    %eax,%eax
call   1100 <fork@plt>
mov    %rax,%rbx
mov    %rax,%rdi
shr    $0x3f,%rdi
xor    $0x1,%edi
call   1080 <assert@plt>
test   %rbx,%rbx
je     1384 <main+0x194>
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
xor    %edi,%edi
call   10d0 <accept@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
xor    %edi,%edi
call   1070 <close@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
mov    0x2c84(%rip),%rax
mov    (%rax),%ecx
lea    0x23(%rsp),%rsi
mov    $0x1,%edi
mov    $0x5,%edx
call   1030 <recv@plt>
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1080 <assert@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   10b0 <waitpid@plt>
xor    %edi,%edi
cmp    %rbx,%rax
sete   %dil
call   1080 <assert@plt>
xor    %edi,%edi
cmpl   $0x0,0x1c(%rsp)
sete   %dil
call   1080 <assert@plt>
mov    $0x1,%edi
jmp    1401 <main+0x211>
xor    %r14d,%r14d
xor    %edi,%edi
call   1070 <close@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
mov    (%r15),%edi
mov    0x0(%rbp),%esi
xor    %edx,%edx
call   1110 <socket@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edx
lea    0x10(%rsp),%rsi
xor    %edi,%edi
call   10f0 <connect@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
mov    0x2c04(%rip),%rax
mov    (%rax),%ecx
lea    0xc1b(%rip),%rsi
mov    $0x4,%edx
xor    %edi,%edi
call   1040 <send@plt>
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1080 <assert@plt>
xor    %edi,%edi
call   1070 <close@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
mov    %r14d,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xbdc(%rip),%rdi
jmp    1432 <main+0x242>
lea    0xbda(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x4d,%r14d
jmp    1414 <main+0x224>

LLVM IR (-O0):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@main.data = internal constant [5 x i8] c"data\00"
@AF_INET = global i32 0
@INADDR_LOOPBACK = global i32 0
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [7 x i8] c"socket\00"
@.str.1 = [5 x i8] c"bind\00"
@MSG_WAITALL = global i32 0
@MSG_DONTROUTE = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca %struct.sockaddr_in
%4 = alloca i32
%5 = alloca i64
%6 = alloca [5 x i8]
%7 = alloca i32
store i32 0, i32* %1
store i64 4, i64* %2
store i32 8, i32* %4
%8 = call i32 @memset(%struct.sockaddr_in* %3, i32 0, i32 8)
%9 = load i32, i32* @AF_INET
%10 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i32 0, i32 1
store i32 %9, i32* %10
%11 = load i32, i32* @INADDR_LOOPBACK
%12 = call i32 @htonl(i32 %11)
%13 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i32 0, i32 0
%14 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %13, i32 0, i32 0
store i32 %12, i32* %14
%15 = call i64 @close(i32 0)
%16 = call i64 @close(i32 1)
%17 = load i32, i32* @PF_INET
%18 = load i32, i32* @SOCK_STREAM
%19 = call i64 @socket(i32 %17, i32 %18, i32 0)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %0
%22 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
store i32 77, i32* %1
br label %104
23: ; preds = %0
%24 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%25 = load i32, i32* %4
%26 = call i64 @bind(i32 0, %struct.sockaddr* %24, i32 %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %23
%29 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
store i32 77, i32* %1
br label %104
30: ; preds = %23
%31 = call i64 @listen(i32 0, i32 5)
%32 = icmp eq i64 %31, 0
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
%35 = call i32 @memset(%struct.sockaddr_in* %3, i32 0, i32 8)
%36 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%37 = call i64 @getsockname(i32 0, %struct.sockaddr* %36, i32* %4)
%38 = icmp eq i64 %37, 0
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 %39)
%41 = call i64 (...) @fork()
store i64 %41, i64* %5
%42 = icmp sge i64 %41, 0
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 %43)
%45 = load i64, i64* %5
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %77
47: ; preds = %30
%48 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%49 = call i32 @accept(i32 0, %struct.sockaddr* %48, i32* %4)
%50 = icmp eq i32 %49, 1
%51 = zext i1 %50 to i32
%52 = call i32 @assert(i32 %51)
%53 = call i64 @close(i32 0)
%54 = icmp eq i64 %53, 0
%55 = zext i1 %54 to i32
%56 = call i32 @assert(i32 %55)
%57 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%58 = load i32, i32* @MSG_WAITALL
%59 = call i32 @recv(i32 1, i8* %57, i32 5, i32 %58)
%60 = icmp eq i32 %59, 4
%61 = zext i1 %60 to i32
%62 = call i32 @assert(i32 %61)
%63 = load i64, i64* %5
%64 = call i64 @waitpid(i64 %63, i32* %7, i32 0)
%65 = load i64, i64* %5
%66 = icmp eq i64 %64, %65
%67 = zext i1 %66 to i32
%68 = call i32 @assert(i32 %67)
%69 = load i32, i32* %7
%70 = icmp eq i32 %69, 0
%71 = zext i1 %70 to i32
%72 = call i32 @assert(i32 %71)
%73 = call i64 @close(i32 1)
%74 = icmp eq i64 %73, 0
%75 = zext i1 %74 to i32
%76 = call i32 @assert(i32 %75)
br label %103
77: ; preds = %30
%78 = call i64 @close(i32 0)
%79 = icmp eq i64 %78, 0
%80 = zext i1 %79 to i32
%81 = call i32 @assert(i32 %80)
%82 = load i32, i32* @PF_INET
%83 = load i32, i32* @SOCK_STREAM
%84 = call i64 @socket(i32 %82, i32 %83, i32 0)
%85 = icmp eq i64 %84, 0
%86 = zext i1 %85 to i32
%87 = call i32 @assert(i32 %86)
%88 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%89 = load i32, i32* %4
%90 = call i64 @connect(i32 0, %struct.sockaddr* %88, i32 %89)
%91 = icmp eq i64 %90, 0
%92 = zext i1 %91 to i32
%93 = call i32 @assert(i32 %92)
%94 = load i32, i32* @MSG_DONTROUTE
%95 = call i32 @send(i32 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @main.data, i64 0, i64 0), i64 4, i32 %94)
%96 = icmp eq i32 %95, 4
%97 = zext i1 %96 to i32
%98 = call i32 @assert(i32 %97)
%99 = call i64 @close(i32 0)
%100 = icmp eq i64 %99, 0
%101 = zext i1 %100 to i32
%102 = call i32 @assert(i32 %101)
br label %103
103: ; preds = %77, %47
store i32 0, i32* %1
br label %104
104: ; preds = %103, %28, %21
%105 = load i32, i32* %1
ret i32 %105
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@main.data = internal constant [5 x i8] c"data\00"
@AF_INET = global i32 0
@INADDR_LOOPBACK = global i32 0
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [7 x i8] c"socket\00"
@.str.1 = [5 x i8] c"bind\00"
@MSG_WAITALL = global i32 0
@MSG_DONTROUTE = global i32 0
define i32 @main() {
%1 = alloca %struct.sockaddr_in
%2 = alloca i32
%3 = alloca [5 x i8]
%4 = alloca i32
%5 = bitcast %struct.sockaddr_in* %1 to i8*
%6 = bitcast i32* %2 to i8*
store i32 8, i32* %2
%7 = call i32 @memset(%struct.sockaddr_in* %1, i32 0, i32 8)
%8 = load i32, i32* @AF_INET
%9 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 1
store i32 %8, i32* %9
%10 = load i32, i32* @INADDR_LOOPBACK
%11 = call i32 @htonl(i32 %10)
%12 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 0, i32 0
store i32 %11, i32* %12
%13 = call i64 @close(i32 0)
%14 = call i64 @close(i32 1)
%15 = load i32, i32* @PF_INET
%16 = load i32, i32* @SOCK_STREAM
%17 = call i64 @socket(i32 %15, i32 %16, i32 0)
%18 = icmp eq i64 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %0
%20 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %96
21: ; preds = %0
%22 = bitcast %struct.sockaddr_in* %1 to %struct.sockaddr*
%23 = call i64 @bind(i32 0, %struct.sockaddr* %22, i32 8)
%24 = icmp eq i64 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %21
%26 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %96
27: ; preds = %21
%28 = call i64 @listen(i32 0, i32 5)
%29 = icmp eq i64 %28, 0
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30)
%32 = call i32 @memset(%struct.sockaddr_in* %1, i32 0, i32 8)
%33 = call i64 @getsockname(i32 0, %struct.sockaddr* %22, i32* %2)
%34 = icmp eq i64 %33, 0
%35 = zext i1 %34 to i32
%36 = call i32 @assert(i32 %35)
%37 = call i64 (...) @fork()
%38 = lshr i64 %37, 63
%39 = trunc i64 %38 to i32
%40 = xor i32 %39, 1
%41 = call i32 @assert(i32 %40)
%42 = icmp eq i64 %37, 0
br i1 %42, label %71, label %43
43: ; preds = %27
%44 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%45 = bitcast i32* %4 to i8*
%46 = call i32 @accept(i32 0, %struct.sockaddr* %22, i32* %2)
%47 = icmp eq i32 %46, 1
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 %48)
%50 = call i64 @close(i32 0)
%51 = icmp eq i64 %50, 0
%52 = zext i1 %51 to i32
%53 = call i32 @assert(i32 %52)
%54 = load i32, i32* @MSG_WAITALL
%55 = call i32 @recv(i32 1, i8* %44, i32 5, i32 %54)
%56 = icmp eq i32 %55, 4
%57 = zext i1 %56 to i32
%58 = call i32 @assert(i32 %57)
%59 = call i64 @waitpid(i64 %37, i32* %4, i32 0)
%60 = icmp eq i64 %59, %37
%61 = zext i1 %60 to i32
%62 = call i32 @assert(i32 %61)
%63 = load i32, i32* %4
%64 = icmp eq i32 %63, 0
%65 = zext i1 %64 to i32
%66 = call i32 @assert(i32 %65)
%67 = call i64 @close(i32 1)
%68 = icmp eq i64 %67, 0
%69 = zext i1 %68 to i32
%70 = call i32 @assert(i32 %69)
br label %96
71: ; preds = %27
%72 = call i64 @close(i32 0)
%73 = icmp eq i64 %72, 0
%74 = zext i1 %73 to i32
%75 = call i32 @assert(i32 %74)
%76 = load i32, i32* @PF_INET
%77 = load i32, i32* @SOCK_STREAM
%78 = call i64 @socket(i32 %76, i32 %77, i32 0)
%79 = icmp eq i64 %78, 0
%80 = zext i1 %79 to i32
%81 = call i32 @assert(i32 %80)
%82 = load i32, i32* %2
%83 = call i64 @connect(i32 0, %struct.sockaddr* %22, i32 %82)
%84 = icmp eq i64 %83, 0
%85 = zext i1 %84 to i32
%86 = call i32 @assert(i32 %85)
%87 = load i32, i32* @MSG_DONTROUTE
%88 = call i32 @send(i32 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @main.data, i64 0, i64 0), i64 4, i32 %87)
%89 = icmp eq i32 %88, 4
%90 = zext i1 %89 to i32
%91 = call i32 @assert(i32 %90)
%92 = call i64 @close(i32 0)
%93 = icmp eq i64 %92, 0
%94 = zext i1 %93 to i32
%95 = call i32 @assert(i32 %94)
br label %96
96: ; preds = %43, %71, %25, %19
%97 = phi i32 [ 77, %19 ], [ 77, %25 ], [ 0, %71 ], [ 0, %43 ]
ret i32 %97
}