#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 {
  int /*<<< orphan*/ sin_port;
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ srv_addr;
typedef int /*<<< orphan*/ reuse;
typedef int /*<<< orphan*/ cli_addr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_REUSEADDR;
int accept(int, struct sockaddr *, int *);
int atoi(char *);
scalar_t__ bind(int, struct sockaddr *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ err_abort(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int fork();
int /*<<< orphan*/ htonl(int /*<<< orphan*/);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ listen(int, int);
int /*<<< orphan*/ memset(void *, char, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scan_request(int, char *);
scalar_t__ setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/, int *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  if (argc < 3) {
    err_abort("Missing Arguments! Syntax: httpserv [rootDir] [port]");
  }
  char *rootDir = argv[1];
  int port = atoi(argv[2]);
  if (port <= 1024) {
    err_abort("Port reserved!");
  }
  printf("starting server on port: %d, rootDir: %s\n", port, rootDir);
  int sockfd, newsockfd, alen, pid;
  int reuse = 1;
  struct sockaddr_in cli_addr, srv_addr;
  if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
    err_abort("Kann Stream-Socket nicht oeffnen!");
  }
  void send_file(int sockfd, const char *path, const char *version);
  if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse)) < 0) {
    err_abort("Kann Socketoption nicht setzen!");
  }
  memset((void *)&srv_addr, '\0', sizeof(srv_addr));
  srv_addr.sin_family = AF_INET;
  srv_addr.sin_addr.s_addr = htonl(INADDR_ANY);
  srv_addr.sin_port = htons(port);
  if (bind(sockfd, (struct sockaddr *)&srv_addr, sizeof(srv_addr)) < 0) {
    err_abort("Kann lokale Adresse nicht binden, laeuft fremder Server?");
  }
  listen(sockfd, 5);
  printf("Web Server: bereit ...\n");
  for (;;) {
    alen = sizeof(cli_addr);
    newsockfd = accept(sockfd, (struct sockaddr *)&cli_addr, &alen);
    if (newsockfd < 0) {
      err_abort("Fehler beim Verbindungsaufbau!");
    }
    if ((pid = fork()) < 0) {
      err_abort("Fehler beim Erzeugen eines Kindprozesses!");
    } else if (pid == 0) {
      close(sockfd);
      scan_request(newsockfd, rootDir);
      exit(0);
    }
    close(newsockfd);
  }
}


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)
cmpl   $0x3,-0x8(%rbp)
jge    121c <main+0x2c>
lea    0xde9(%rip),%rdi
call   10a0 <err_abort@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10e0 <atoi@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x400,-0x1c(%rbp)
jg     1251 <main+0x61>
lea    0xde9(%rip),%rdi
call   10a0 <err_abort@plt>
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%rdx
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x30(%rbp)
mov    0x2d6c(%rip),%rax
mov    (%rax),%edi
mov    0x2d4b(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1110 <socket@plt>
mov    %eax,-0x20(%rbp)
cmp    $0x0,%eax
jge    129e <main+0xae>
lea    0xdd5(%rip),%rdi
call   10a0 <err_abort@plt>
mov    -0x20(%rbp),%edi
mov    0x2d40(%rip),%rax
mov    (%rax),%esi
mov    0x2d0f(%rip),%rax
mov    (%rax),%edx
lea    -0x30(%rbp),%rcx
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
cmp    $0x0,%rax
jge    12d8 <main+0xe8>
lea    0xdbd(%rip),%rdi
call   10a0 <err_abort@plt>
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
mov    0x2cf1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
mov    0x2cdd(%rip),%rax
mov    (%rax),%edi
call   1060 <htonl@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x1c(%rbp),%edi
call   1040 <htons@plt>
mov    %eax,-0x50(%rbp)
mov    -0x20(%rbp),%edi
lea    -0x50(%rbp),%rsi
mov    $0xc,%edx
call   10c0 <bind@plt>
cmp    $0x0,%rax
jge    1337 <main+0x147>
lea    0xd7e(%rip),%rdi
call   10a0 <err_abort@plt>
mov    -0x20(%rbp),%edi
mov    $0x5,%esi
call   1090 <listen@plt>
lea    0xd9e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0xc,-0x28(%rbp)
mov    -0x20(%rbp),%edi
lea    -0x40(%rbp),%rsi
lea    -0x28(%rbp),%rdx
call   10d0 <accept@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    1382 <main+0x192>
lea    0xd84(%rip),%rdi
call   10a0 <err_abort@plt>
mov    $0x0,%al
call   1100 <fork@plt>
mov    %eax,-0x2c(%rbp)
cmp    $0x0,%eax
jge    13a6 <main+0x1b6>
lea    0xd84(%rip),%rdi
call   10a0 <err_abort@plt>
jmp    13d0 <main+0x1e0>
cmpl   $0x0,-0x2c(%rbp)
jne    13cb <main+0x1db>
mov    -0x20(%rbp),%edi
call   1080 <close@plt>
mov    -0x24(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   10b0 <scan_request@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
jmp    13d0 <main+0x1e0>
mov    -0x24(%rbp),%edi
call   1080 <close@plt>
jmp    1352 <main+0x162>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%rbx
cmp    $0x2,%edi
jg     1222 <main+0x22>
lea    0xde3(%rip),%rdi
call   10b0 <err_abort@plt>
mov    0x8(%rbx),%rbp
mov    0x10(%rbx),%rdi
call   10f0 <atoi@plt>
mov    %eax,%ebx
cmp    $0x400,%eax
jg     1244 <main+0x44>
lea    0xdf6(%rip),%rdi
call   10b0 <err_abort@plt>
lea    0xdf9(%rip),%rdi
mov    %ebx,%esi
mov    %rbp,0x20(%rsp)
mov    %rbp,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
movl   $0x1,0x8(%rsp)
mov    0x2d75(%rip),%r14
mov    (%r14),%edi
mov    0x2d53(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1120 <socket@plt>
mov    %eax,%r15d
test   %eax,%eax
jns    1291 <main+0x91>
lea    0xde2(%rip),%rdi
call   10b0 <err_abort@plt>
mov    0x2d50(%rip),%rax
mov    (%rax),%esi
mov    0x2d1f(%rip),%rax
mov    (%rax),%edx
lea    0x8(%rsp),%rcx
mov    %r15d,%edi
mov    $0x4,%r8d
call   1040 <setsockopt@plt>
test   %rax,%rax
jns    12c7 <main+0xc7>
lea    0xdce(%rip),%rdi
call   10b0 <err_abort@plt>
lea    0x10(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    (%r14),%eax
mov    %eax,0x18(%rsp)
mov    0x2cef(%rip),%rax
mov    (%rax),%edi
call   1070 <htonl@plt>
mov    %eax,0x14(%rsp)
mov    %ebx,%edi
call   1050 <htons@plt>
mov    %eax,0x10(%rsp)
mov    %r15d,%edi
mov    %rbp,%rsi
mov    $0xc,%edx
call   10d0 <bind@plt>
test   %rax,%rax
jns    1320 <main+0x120>
lea    0xd95(%rip),%rdi
call   10b0 <err_abort@plt>
mov    %r15d,%edi
mov    $0x5,%esi
call   10a0 <listen@plt>
lea    0xdfe(%rip),%rdi
call   1030 <puts@plt>
lea    0x28(%rsp),%rbx
lea    0xc(%rsp),%rbp
lea    0xd9f(%rip),%r12
lea    0xdb7(%rip),%r13
jmp    1370 <main+0x170>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r13,%rdi
call   10b0 <err_abort@plt>
mov    %r14d,%edi
call   1090 <close@plt>
movl   $0xc,0xc(%rsp)
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %rbp,%rdx
call   10e0 <accept@plt>
mov    %eax,%r14d
test   %eax,%eax
jns    1395 <main+0x195>
mov    %r12,%rdi
call   10b0 <err_abort@plt>
xor    %eax,%eax
call   1110 <fork@plt>
test   %eax,%eax
js     1360 <main+0x160>
jne    1368 <main+0x168>
mov    %r15d,%edi
call   1090 <close@plt>
mov    %r14d,%edi
mov    0x20(%rsp),%rsi
call   10c0 <scan_request@plt>
xor    %edi,%edi
call   1100 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [53 x i8] c"Missing Arguments! Syntax: httpserv [rootDir] [port]\00"
@.str.1 = [15 x i8] c"Port reserved!\00"
@.str.2 = [42 x i8] c"starting server on port: %d, rootDir: %s\0A\00"
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.3 = [34 x i8] c"Kann Stream-Socket nicht oeffnen!\00"
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str.4 = [32 x i8] c"Kann Socketoption nicht setzen!\00"
@INADDR_ANY = global i32 0
@.str.5 = [57 x i8] c"Kann lokale Adresse nicht binden, laeuft fremder Server?\00"
@.str.6 = [24 x i8] c"Web Server: bereit ...\0A\00"
@.str.7 = [31 x i8] c"Fehler beim Verbindungsaufbau!\00"
@.str.8 = [42 x i8] c"Fehler beim Erzeugen eines Kindprozesses!\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca %struct.sockaddr_in
%14 = alloca %struct.sockaddr_in
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 3
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 @err_abort(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
br label %19
19: ; preds = %17, %2
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
store i8* %22, i8** %6
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 2
%25 = load i8*, i8** %24
%26 = call i32 @atoi(i8* %25)
store i32 %26, i32* %7
%27 = load i32, i32* %7
%28 = icmp sle i32 %27, 1024
br i1 %28, label %29, label %31
29: ; preds = %19
%30 = call i32 @err_abort(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %31
31: ; preds = %29, %19
%32 = load i32, i32* %7
%33 = load i8*, i8** %6
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i32 %32, i8* %33)
store i32 1, i32* %12
%35 = load i32, i32* @AF_INET
%36 = load i32, i32* @SOCK_STREAM
%37 = call i32 @socket(i32 %35, i32 %36, i32 0)
store i32 %37, i32* %8
%38 = icmp slt i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %31
%40 = call i32 @err_abort(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
br label %41
41: ; preds = %39, %31
%42 = load i32, i32* %8
%43 = load i32, i32* @SOL_SOCKET
%44 = load i32, i32* @SO_REUSEADDR
%45 = call i64 @setsockopt(i32 %42, i32 %43, i32 %44, i32* %12, i32 4)
%46 = icmp slt i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %41
%48 = call i32 @err_abort(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
br label %49
49: ; preds = %47, %41
%50 = bitcast %struct.sockaddr_in* %14 to i8*
%51 = call i32 @memset(i8* %50, i8 signext 0, i32 12)
%52 = load i32, i32* @AF_INET
%53 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %14, i32 0, i32 2
store i32 %52, i32* %53
%54 = load i32, i32* @INADDR_ANY
%55 = call i32 @htonl(i32 %54)
%56 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %14, i32 0, i32 1
%57 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %56, i32 0, i32 0
store i32 %55, i32* %57
%58 = load i32, i32* %7
%59 = call i32 @htons(i32 %58)
%60 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %14, i32 0, i32 0
store i32 %59, i32* %60
%61 = load i32, i32* %8
%62 = bitcast %struct.sockaddr_in* %14 to %struct.sockaddr*
%63 = call i64 @bind(i32 %61, %struct.sockaddr* %62, i32 12)
%64 = icmp slt i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %49
%66 = call i32 @err_abort(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0))
br label %67
67: ; preds = %65, %49
%68 = load i32, i32* %8
%69 = call i32 @listen(i32 %68, i32 5)
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
br label %71
71: ; preds = %95, %67
store i32 12, i32* %10
%72 = load i32, i32* %8
%73 = bitcast %struct.sockaddr_in* %13 to %struct.sockaddr*
%74 = call i32 @accept(i32 %72, %struct.sockaddr* %73, i32* %10)
store i32 %74, i32* %9
%75 = load i32, i32* %9
%76 = icmp slt i32 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %71
%78 = call i32 @err_abort(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
br label %79
79: ; preds = %77, %71
%80 = call i32 (...) @fork()
store i32 %80, i32* %11
%81 = icmp slt i32 %80, 0
br i1 %81, label %82, label %84
82: ; preds = %79
%83 = call i32 @err_abort(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
br label %95
84: ; preds = %79
%85 = load i32, i32* %11
%86 = icmp eq i32 %85, 0
br i1 %86, label %87, label %94
87: ; preds = %84
%88 = load i32, i32* %8
%89 = call i32 @close(i32 %88)
%90 = load i32, i32* %9
%91 = load i8*, i8** %6
%92 = call i32 @scan_request(i32 %90, i8* %91)
%93 = call i32 @exit(i32 0)
unreachable
94: ; preds = %84
br label %95
95: ; preds = %94, %82
%96 = load i32, i32* %9
%97 = call i32 @close(i32 %96)
br label %71
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [53 x i8] c"Missing Arguments! Syntax: httpserv [rootDir] [port]\00"
@.str.1 = [15 x i8] c"Port reserved!\00"
@.str.2 = [42 x i8] c"starting server on port: %d, rootDir: %s\0A\00"
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.3 = [34 x i8] c"Kann Stream-Socket nicht oeffnen!\00"
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str.4 = [32 x i8] c"Kann Socketoption nicht setzen!\00"
@INADDR_ANY = global i32 0
@.str.5 = [57 x i8] c"Kann lokale Adresse nicht binden, laeuft fremder Server?\00"
@.str.7 = [31 x i8] c"Fehler beim Verbindungsaufbau!\00"
@.str.8 = [42 x i8] c"Fehler beim Erzeugen eines Kindprozesses!\00"
@str = [23 x i8] c"Web Server: bereit ...\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca %struct.sockaddr_in
%6 = alloca %struct.sockaddr_in
%7 = icmp slt i32 %0, 3
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call i32 @err_abort(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8, %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = getelementptr inbounds i8*, i8** %1, i64 2
%14 = load i8*, i8** %13
%15 = tail call i32 @atoi(i8* %14)
%16 = icmp slt i32 %15, 1025
br i1 %16, label %17, label %19
17: ; preds = %10
%18 = tail call i32 @err_abort(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %17, %10
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i32 %15, i8* %12)
%21 = bitcast i32* %3 to i8*
%22 = bitcast i32* %4 to i8*
store i32 1, i32* %4
%23 = bitcast %struct.sockaddr_in* %5 to i8*
%24 = bitcast %struct.sockaddr_in* %6 to i8*
%25 = load i32, i32* @AF_INET
%26 = load i32, i32* @SOCK_STREAM
%27 = tail call i32 @socket(i32 %25, i32 %26, i32 0)
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %19
%30 = tail call i32 @err_abort(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
br label %31
31: ; preds = %29, %19
%32 = load i32, i32* @SOL_SOCKET
%33 = load i32, i32* @SO_REUSEADDR
%34 = call i64 @setsockopt(i32 %27, i32 %32, i32 %33, i32* %4, i32 4)
%35 = icmp slt i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %31
%37 = call i32 @err_abort(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
br label %38
38: ; preds = %36, %31
%39 = call i32 @memset(i8* %24, i8 signext 0, i32 12)
%40 = load i32, i32* @AF_INET
%41 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i64 0, i32 2
store i32 %40, i32* %41
%42 = load i32, i32* @INADDR_ANY
%43 = call i32 @htonl(i32 %42)
%44 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i64 0, i32 1, i32 0
store i32 %43, i32* %44
%45 = call i32 @htons(i32 %15)
%46 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i64 0, i32 0
store i32 %45, i32* %46
%47 = bitcast %struct.sockaddr_in* %6 to %struct.sockaddr*
%48 = call i64 @bind(i32 %27, %struct.sockaddr* %47, i32 12)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %38
%51 = call i32 @err_abort(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0))
br label %52
52: ; preds = %50, %38
%53 = call i32 @listen(i32 %27, i32 5)
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%55 = bitcast %struct.sockaddr_in* %5 to %struct.sockaddr*
br label %56
56: ; preds = %72, %52
store i32 12, i32* %3
%57 = call i32 @accept(i32 %27, %struct.sockaddr* %55, i32* %3)
%58 = icmp slt i32 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = call i32 @err_abort(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
br label %61
61: ; preds = %59, %56
%62 = call i32 (...) @fork()
%63 = icmp slt i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = call i32 @err_abort(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
br label %72
66: ; preds = %61
%67 = icmp eq i32 %62, 0
br i1 %67, label %68, label %72
68: ; preds = %66
%69 = call i32 @close(i32 %27)
%70 = call i32 @scan_request(i32 %57, i8* %12)
%71 = call i32 @exit(i32 0)
unreachable
72: ; preds = %66, %64
%73 = call i32 @close(i32 %57)
br label %56
}