#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*/ val;
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*/ socklen_t;
typedef int /*<<< orphan*/ saddr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int EOF;
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ IPPROTO_IP;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_REUSEADDR;
int accept(int, struct sockaddr *, int /*<<< orphan*/ *);
short atoi(int /*<<< orphan*/);
scalar_t__ bind(int, struct sockaddr *, int);
int /*<<< orphan*/ bzero(struct sockaddr_in *, int);
int /*<<< orphan*/ create_read_and_exec_thread(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int getopt(int, char **, char *);
int /*<<< orphan*/ htons(short);
scalar_t__ listen(int, int);
int /*<<< orphan*/ optarg;
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ read_and_exec(int);
scalar_t__ setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/, int *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ usage(char *);
int main(int argc, char *argv[]) {
  int c, s, val, threaded = 0;
  socklen_t salen;
  struct sockaddr_in saddr, client_saddr;
  short port = 1234;
  while ((c = getopt(argc, argv, "tp:")) != EOF) {
    switch (c) {
    case 'p':
      port = atoi(optarg);
      break;
    case 't':
      threaded = 1;
      break;
    default:
      usage(argv[0]);
      exit(EXIT_FAILURE);
    }
  }
  if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_IP)) < 0) {
    perror("socket");
    exit(EXIT_FAILURE);
  }
  val = 1;
  if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)) < 0) {
    perror("setsockopt");
    exit(EXIT_FAILURE);
  }
  bzero(&saddr, sizeof(saddr));
  saddr.sin_family = AF_INET;
  saddr.sin_port = htons(port);
  saddr.sin_addr.s_addr = INADDR_ANY;
  if (bind(s, (struct sockaddr *)&saddr, sizeof(saddr)) < 0) {
    perror("bind");
    exit(EXIT_FAILURE);
  }
  if (listen(s, 5) < 0) {
    perror("listen");
    exit(EXIT_FAILURE);
  }
  if ((c = accept(s, (struct sockaddr *)&client_saddr, &salen)) < 0) {
    perror("accept");
    exit(EXIT_FAILURE);
  }
  if (threaded)
    exit(create_read_and_exec_thread(c));
  else
    exit(read_and_exec(c));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x20(%rbp)
movw   $0x4d2,-0x42(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xdef(%rip),%rdx
call   10c0 <getopt@plt>
mov    %eax,-0x14(%rbp)
mov    0x2da0(%rip),%rcx
cmp    (%rcx),%eax
je     128f <main+0xaf>
mov    -0x14(%rbp),%eax
mov    %eax,-0x48(%rbp)
sub    $0x70,%eax
je     124d <main+0x6d>
jmp    123c <main+0x5c>
mov    -0x48(%rbp),%eax
sub    $0x74,%eax
je     1264 <main+0x84>
jmp    1270 <main+0x90>
mov    0x2da4(%rip),%rax
mov    (%rax),%edi
call   10e0 <atoi@plt>
mov    %ax,-0x42(%rbp)
jmp    128a <main+0xaa>
movl   $0x1,-0x20(%rbp)
jmp    128a <main+0xaa>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1080 <usage@plt>
mov    0x2d25(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
jmp    1203 <main+0x23>
mov    0x2d42(%rip),%rax
mov    (%rax),%edi
mov    0x2d11(%rip),%rax
mov    (%rax),%esi
mov    0x2d28(%rip),%rax
mov    (%rax),%edx
call   1100 <socket@plt>
mov    %eax,-0x18(%rbp)
cmp    $0x0,%eax
jge    12d5 <main+0xf5>
lea    0xd42(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2cda(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
movl   $0x1,-0x1c(%rbp)
mov    -0x18(%rbp),%edi
mov    0x2cfa(%rip),%rax
mov    (%rax),%esi
mov    0x2cb1(%rip),%rax
mov    (%rax),%edx
lea    -0x1c(%rbp),%rcx
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
cmp    $0x0,%rax
jge    1324 <main+0x144>
lea    0xcfa(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2c8b(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
lea    -0x30(%rbp),%rdi
mov    $0xc,%esi
call   10b0 <bzero@plt>
mov    0x2c9f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
movswl -0x42(%rbp),%edi
call   1060 <htons@plt>
mov    %eax,-0x2c(%rbp)
mov    0x2c77(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%edi
lea    -0x30(%rbp),%rsi
mov    $0xc,%edx
call   1090 <bind@plt>
cmp    $0x0,%rax
jge    138b <main+0x1ab>
lea    0xc9e(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2c24(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
mov    -0x18(%rbp),%edi
mov    $0x5,%esi
call   1070 <listen@plt>
cmp    $0x0,%rax
jge    13bc <main+0x1dc>
lea    0xc72(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2bf3(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
mov    -0x18(%rbp),%edi
lea    -0x40(%rbp),%rsi
lea    -0x24(%rbp),%rdx
call   10d0 <accept@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jge    13f2 <main+0x212>
lea    0xc43(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2bbd(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
cmpl   $0x0,-0x20(%rbp)
je     140b <main+0x22b>
mov    -0x14(%rbp),%edi
call   1050 <create_read_and_exec_thread@plt>
mov    %eax,%edi
call   10f0 <exit@plt>
mov    -0x14(%rbp),%edi
call   1040 <read_and_exec@plt>
mov    %eax,%edi
call   10f0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%r12
mov    %edi,%ebx
lea    0xe06(%rip),%rdx
call   10c0 <getopt@plt>
mov    0x2dba(%rip),%r13
cmp    0x0(%r13),%eax
jne    1248 <main+0x68>
movw   $0x4d2,0x2(%rsp)
xor    %r14d,%r14d
mov    0x2dbb(%rip),%r12
mov    (%r12),%edi
mov    0x2d88(%rip),%rax
mov    (%rax),%esi
mov    0x2d9f(%rip),%rax
mov    (%rax),%edx
call   1100 <socket@plt>
test   %eax,%eax
jns    12a2 <main+0xc2>
lea    0xdc1(%rip),%rdi
jmp    1374 <main+0x194>
xor    %ebp,%ebp
movw   $0x4d2,0x2(%rsp)
lea    0xda8(%rip),%r15
jmp    1276 <main+0x96>
nopw   0x0(%rax,%rax,1)
mov    %ebx,%edi
mov    %r12,%rsi
mov    %r15,%rdx
call   10c0 <getopt@plt>
mov    %r14d,%ebp
cmp    0x0(%r13),%eax
je     1216 <main+0x36>
mov    $0x1,%r14d
cmp    $0x74,%eax
je     1260 <main+0x80>
cmp    $0x70,%eax
jne    1333 <main+0x153>
mov    0x2d67(%rip),%rax
mov    (%rax),%edi
call   10e0 <atoi@plt>
mov    %ax,0x2(%rsp)
mov    %ebp,%r14d
jmp    1260 <main+0x80>
mov    %eax,%ebx
movl   $0x1,0x4(%rsp)
mov    0x2d2d(%rip),%rax
mov    (%rax),%esi
mov    0x2ce4(%rip),%rax
mov    (%rax),%edx
lea    0x4(%rsp),%rcx
mov    %ebx,%edi
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
test   %rax,%rax
jns    12e1 <main+0x101>
lea    0xd2f(%rip),%rdi
jmp    1374 <main+0x194>
lea    0x8(%rsp),%r15
mov    %r15,%rdi
mov    $0xc,%esi
call   10b0 <bzero@plt>
mov    (%r12),%eax
mov    %eax,0x10(%rsp)
movswl 0x2(%rsp),%edi
call   1060 <htons@plt>
mov    %eax,0xc(%rsp)
mov    0x2cb8(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x8(%rsp)
mov    %ebx,%edi
mov    %r15,%rsi
mov    $0xc,%edx
call   1090 <bind@plt>
test   %rax,%rax
jns    133e <main+0x15e>
lea    0xce5(%rip),%rdi
jmp    1374 <main+0x194>
mov    (%r12),%rdi
call   1080 <usage@plt>
jmp    1379 <main+0x199>
mov    %ebx,%edi
mov    $0x5,%esi
call   1070 <listen@plt>
test   %rax,%rax
jns    1358 <main+0x178>
lea    0xcc5(%rip),%rdi
jmp    1374 <main+0x194>
lea    0x18(%rsp),%rsi
lea    0x14(%rsp),%rdx
mov    %ebx,%edi
call   10d0 <accept@plt>
test   %eax,%eax
jns    1387 <main+0x1a7>
lea    0xcae(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2c28(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
mov    %eax,%edi
test   %r14d,%r14d
jne    139a <main+0x1ba>
call   1040 <read_and_exec@plt>
mov    %eax,%edi
call   10f0 <exit@plt>
call   1050 <create_read_and_exec_thread@plt>
mov    %eax,%edi
call   10f0 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [4 x i8] c"tp:\00"
@EOF = global i32 0
@optarg = global i32 0
@EXIT_FAILURE = global i32 0
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@IPPROTO_IP = global i32 0
@.str.1 = [7 x i8] c"socket\00"
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str.2 = [11 x i8] c"setsockopt\00"
@INADDR_ANY = global i32 0
@.str.3 = [5 x i8] c"bind\00"
@.str.4 = [7 x i8] c"listen\00"
@.str.5 = [7 x i8] c"accept\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 i16
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %9
store i16 1234, i16* %13
br label %14
14: ; preds = %33, %2
%15 = load i32, i32* %4
%16 = load i8**, i8*** %5
%17 = call i32 @getopt(i32 %15, i8** %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store i32 %17, i32* %6
%18 = load i32, i32* @EOF
%19 = icmp ne i32 %17, %18
br i1 %19, label %20, label %34
20: ; preds = %14
%21 = load i32, i32* %6
switch i32 %21, label %26 [
i32 112, label %22
i32 116, label %25
]
22: ; preds = %20
%23 = load i32, i32* @optarg
%24 = call signext i16 @atoi(i32 %23)
store i16 %24, i16* %13
br label %33
25: ; preds = %20
store i32 1, i32* %9
br label %33
26: ; preds = %20
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 0
%29 = load i8*, i8** %28
%30 = call i32 @usage(i8* %29)
%31 = load i32, i32* @EXIT_FAILURE
%32 = call i32 @exit(i32 %31)
unreachable
33: ; preds = %25, %22
br label %14
34: ; preds = %14
%35 = load i32, i32* @AF_INET
%36 = load i32, i32* @SOCK_STREAM
%37 = load i32, i32* @IPPROTO_IP
%38 = call i32 @socket(i32 %35, i32 %36, i32 %37)
store i32 %38, i32* %7
%39 = icmp slt i32 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %34
%41 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%42 = load i32, i32* @EXIT_FAILURE
%43 = call i32 @exit(i32 %42)
unreachable
44: ; preds = %34
store i32 1, i32* %8
%45 = load i32, i32* %7
%46 = load i32, i32* @SOL_SOCKET
%47 = load i32, i32* @SO_REUSEADDR
%48 = call i64 @setsockopt(i32 %45, i32 %46, i32 %47, i32* %8, i32 4)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %54
50: ; preds = %44
%51 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%52 = load i32, i32* @EXIT_FAILURE
%53 = call i32 @exit(i32 %52)
unreachable
54: ; preds = %44
%55 = call i32 @bzero(%struct.sockaddr_in* %11, i32 12)
%56 = load i32, i32* @AF_INET
%57 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 2
store i32 %56, i32* %57
%58 = load i16, i16* %13
%59 = call i32 @htons(i16 signext %58)
%60 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 1
store i32 %59, i32* %60
%61 = load i32, i32* @INADDR_ANY
%62 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 0
%63 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %62, i32 0, i32 0
store i32 %61, i32* %63
%64 = load i32, i32* %7
%65 = bitcast %struct.sockaddr_in* %11 to %struct.sockaddr*
%66 = call i64 @bind(i32 %64, %struct.sockaddr* %65, i32 12)
%67 = icmp slt i64 %66, 0
br i1 %67, label %68, label %72
68: ; preds = %54
%69 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%70 = load i32, i32* @EXIT_FAILURE
%71 = call i32 @exit(i32 %70)
unreachable
72: ; preds = %54
%73 = load i32, i32* %7
%74 = call i64 @listen(i32 %73, i32 5)
%75 = icmp slt i64 %74, 0
br i1 %75, label %76, label %80
76: ; preds = %72
%77 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%78 = load i32, i32* @EXIT_FAILURE
%79 = call i32 @exit(i32 %78)
unreachable
80: ; preds = %72
%81 = load i32, i32* %7
%82 = bitcast %struct.sockaddr_in* %12 to %struct.sockaddr*
%83 = call i32 @accept(i32 %81, %struct.sockaddr* %82, i32* %10)
store i32 %83, i32* %6
%84 = icmp slt i32 %83, 0
br i1 %84, label %85, label %89
85: ; preds = %80
%86 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%87 = load i32, i32* @EXIT_FAILURE
%88 = call i32 @exit(i32 %87)
unreachable
89: ; preds = %80
%90 = load i32, i32* %9
%91 = icmp ne i32 %90, 0
br i1 %91, label %92, label %96
92: ; preds = %89
%93 = load i32, i32* %6
%94 = call i32 @create_read_and_exec_thread(i32 %93)
%95 = call i32 @exit(i32 %94)
unreachable
96: ; preds = %89
%97 = load i32, i32* %6
%98 = call i32 @read_and_exec(i32 %97)
%99 = call i32 @exit(i32 %98)
unreachable
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [4 x i8] c"tp:\00"
@EOF = global i32 0
@optarg = global i32 0
@EXIT_FAILURE = global i32 0
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@IPPROTO_IP = global i32 0
@.str.1 = [7 x i8] c"socket\00"
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str.2 = [11 x i8] c"setsockopt\00"
@INADDR_ANY = global i32 0
@.str.3 = [5 x i8] c"bind\00"
@.str.4 = [7 x i8] c"listen\00"
@.str.5 = [7 x i8] c"accept\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca %struct.sockaddr_in
%6 = alloca %struct.sockaddr_in
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = bitcast %struct.sockaddr_in* %5 to i8*
%10 = bitcast %struct.sockaddr_in* %6 to i8*
%11 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* @EOF
%13 = icmp eq i32 %11, %12
br i1 %13, label %32, label %14
14: ; preds = %2, %26
%15 = phi i32 [ %29, %26 ], [ %11, %2 ]
%16 = phi i16 [ %28, %26 ], [ 1234, %2 ]
%17 = phi i32 [ %27, %26 ], [ 0, %2 ]
switch i32 %15, label %21 [
i32 112, label %18
i32 116, label %26
]
18: ; preds = %14
%19 = load i32, i32* @optarg
%20 = tail call signext i16 @atoi(i32 %19)
br label %26
21: ; preds = %14
%22 = load i8*, i8** %1
%23 = tail call i32 @usage(i8* %22)
%24 = load i32, i32* @EXIT_FAILURE
%25 = tail call i32 @exit(i32 %24)
unreachable
26: ; preds = %14, %18
%27 = phi i32 [ %17, %18 ], [ 1, %14 ]
%28 = phi i16 [ %20, %18 ], [ %16, %14 ]
%29 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%30 = load i32, i32* @EOF
%31 = icmp eq i32 %29, %30
br i1 %31, label %32, label %14
32: ; preds = %26, %2
%33 = phi i32 [ 0, %2 ], [ %27, %26 ]
%34 = phi i16 [ 1234, %2 ], [ %28, %26 ]
%35 = load i32, i32* @AF_INET
%36 = load i32, i32* @SOCK_STREAM
%37 = load i32, i32* @IPPROTO_IP
%38 = tail call i32 @socket(i32 %35, i32 %36, i32 %37)
%39 = icmp slt i32 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %32
%41 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%42 = load i32, i32* @EXIT_FAILURE
%43 = tail call i32 @exit(i32 %42)
unreachable
44: ; preds = %32
store i32 1, i32* %3
%45 = load i32, i32* @SOL_SOCKET
%46 = load i32, i32* @SO_REUSEADDR
%47 = call i64 @setsockopt(i32 %38, i32 %45, i32 %46, i32* %3, i32 4)
%48 = icmp slt i64 %47, 0
br i1 %48, label %49, label %53
49: ; preds = %44
%50 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%51 = load i32, i32* @EXIT_FAILURE
%52 = call i32 @exit(i32 %51)
unreachable
53: ; preds = %44
%54 = call i32 @bzero(%struct.sockaddr_in* %5, i32 12)
%55 = load i32, i32* @AF_INET
%56 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 2
store i32 %55, i32* %56
%57 = call i32 @htons(i16 signext %34)
%58 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 1
store i32 %57, i32* %58
%59 = load i32, i32* @INADDR_ANY
%60 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 0, i32 0
store i32 %59, i32* %60
%61 = bitcast %struct.sockaddr_in* %5 to %struct.sockaddr*
%62 = call i64 @bind(i32 %38, %struct.sockaddr* %61, i32 12)
%63 = icmp slt i64 %62, 0
br i1 %63, label %64, label %68
64: ; preds = %53
%65 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%66 = load i32, i32* @EXIT_FAILURE
%67 = call i32 @exit(i32 %66)
unreachable
68: ; preds = %53
%69 = call i64 @listen(i32 %38, i32 5)
%70 = icmp slt i64 %69, 0
br i1 %70, label %71, label %75
71: ; preds = %68
%72 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%73 = load i32, i32* @EXIT_FAILURE
%74 = call i32 @exit(i32 %73)
unreachable
75: ; preds = %68
%76 = bitcast %struct.sockaddr_in* %6 to %struct.sockaddr*
%77 = call i32 @accept(i32 %38, %struct.sockaddr* %76, i32* %4)
%78 = icmp slt i32 %77, 0
br i1 %78, label %79, label %83
79: ; preds = %75
%80 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%81 = load i32, i32* @EXIT_FAILURE
%82 = call i32 @exit(i32 %81)
unreachable
83: ; preds = %75
%84 = icmp eq i32 %33, 0
br i1 %84, label %88, label %85
85: ; preds = %83
%86 = call i32 @create_read_and_exec_thread(i32 %77)
%87 = call i32 @exit(i32 %86)
unreachable
88: ; preds = %83
%89 = call i32 @read_and_exec(i32 %77)
%90 = call i32 @exit(i32 %89)
unreachable
}