#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ *fdopen(int, char *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
int file_exists(char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
char *get_content_type(char *);
int get_file_size(char *);
int /*<<< orphan*/ read(int, char *, int);
int /*<<< orphan*/ send_file(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ send_headers(int /*<<< orphan*/ *, int, char *, char *, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
char *strtok(char *, char *);
void proccess_request(int fd) {
  FILE *client;
  char filename[256];
  char buffer[256];
  char *line;
  char *method;
  char *path;
  char *version;
  read(fd, buffer, 255);
  line = strtok(buffer, "\n");
  method = strtok(line, " ");
  path = strtok(NULL, " ");
  version = strtok(NULL, " ");
  client = fdopen(fd, "r+");
  if ((strcmp(method, "GET") == 0) || (strcmp(method, "HEAD") == 0)) {
    strcpy(filename, "public");
    fprintf(stderr, "Requested: %s\n", path);
    if (strcmp(path, "/") == 0) {
      strcpy(filename, "public/index.html");
    } else {
      strcat(filename, path);
    }
    if (file_exists(filename) == 1) {
      send_headers(client, 200, "OK", get_content_type(filename),
                   get_file_size(filename));
      if (strcmp(method, "GET") == 0) {
        send_file(client, filename);
        fprintf(stderr, "File sent [%s]\n", filename);
      }
    } else {
      send_headers(client, 404, "Not Found", "text/plain", 10);
      fprintf(client, "Not found!");
      fprintf(stderr, "Requested file not found [%s]\n", filename);
    }
  } else {
    send_headers(client, 500, "Unknown Request Method", "text/plain", 24);
    fprintf(client, "Unknown Request Method!");
  }
  fflush(client);
}


x86 assembly (clang, -O0):
<proccess_request>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x210(%rbp),%rsi
mov    $0xff,%edx
call   1050 <read@plt>
lea    -0x210(%rbp),%rdi
lea    0xe88(%rip),%rsi
call   10c0 <strtok@plt>
mov    %rax,-0x218(%rbp)
mov    -0x218(%rbp),%rdi
lea    0xde6(%rip),%rsi
call   10c0 <strtok@plt>
mov    %rax,-0x220(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xdcf(%rip),%rsi
call   10c0 <strtok@plt>
mov    %rax,-0x228(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xdb8(%rip),%rsi
call   10c0 <strtok@plt>
mov    %rax,-0x230(%rbp)
mov    -0x4(%rbp),%edi
lea    0xda4(%rip),%rsi
call   10a0 <fdopen@plt>
mov    %rax,-0x10(%rbp)
mov    -0x220(%rbp),%rdi
lea    0xd90(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     12a1 <proccess_request+0xd1>
mov    -0x220(%rbp),%rdi
lea    0xd77(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1425 <proccess_request+0x255>
lea    -0x110(%rbp),%rdi
lea    0xd5f(%rip),%rsi
call   1030 <strcpy@plt>
mov    0x2d25(%rip),%rax
movslq (%rax),%rdi
mov    -0x228(%rbp),%rdx
lea    0xd49(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x228(%rbp),%rdi
lea    0xd43(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1308 <proccess_request+0x138>
lea    -0x110(%rbp),%rdi
lea    0xd28(%rip),%rsi
call   1030 <strcpy@plt>
jmp    131b <proccess_request+0x14b>
lea    -0x110(%rbp),%rdi
mov    -0x228(%rbp),%rsi
call   10d0 <strcat@plt>
lea    -0x110(%rbp),%rdi
call   1040 <file_exists@plt>
cmp    $0x1,%eax
jne    13cd <proccess_request+0x1fd>
mov    -0x10(%rbp),%rax
mov    %rax,-0x240(%rbp)
lea    -0x110(%rbp),%rdi
call   10f0 <get_content_type@plt>
mov    %rax,-0x238(%rbp)
lea    -0x110(%rbp),%rdi
call   10b0 <get_file_size@plt>
mov    -0x240(%rbp),%rdi
mov    -0x238(%rbp),%rcx
mov    %eax,%r8d
mov    $0xc8,%esi
lea    0xcc1(%rip),%rdx
call   1060 <send_headers@plt>
mov    -0x220(%rbp),%rdi
lea    0xc7b(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    13c8 <proccess_request+0x1f8>
mov    -0x10(%rbp),%rdi
lea    -0x110(%rbp),%rsi
call   10e0 <send_file@plt>
mov    0x2c30(%rip),%rax
movslq (%rax),%rdi
lea    -0x110(%rbp),%rdx
lea    0xc7a(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    1420 <proccess_request+0x250>
mov    -0x10(%rbp),%rdi
mov    $0x194,%esi
lea    0xc6e(%rip),%rdx
lea    0xc71(%rip),%rcx
mov    $0xa,%r8d
call   1060 <send_headers@plt>
mov    -0x10(%rbp),%rdi
lea    0xc66(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2bd8(%rip),%rax
movslq (%rax),%rdi
lea    -0x110(%rbp),%rdx
lea    0xc52(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    1459 <proccess_request+0x289>
mov    -0x10(%rbp),%rdi
mov    $0x1f4,%esi
lea    0xc55(%rip),%rdx
lea    0xc19(%rip),%rcx
mov    $0x18,%r8d
call   1060 <send_headers@plt>
mov    -0x10(%rbp),%rdi
lea    0xc4f(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fflush@plt>
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<proccess_request>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x208,%rsp
mov    %edi,%ebp
lea    0x100(%rsp),%rbx
mov    %rbx,%rsi
mov    $0xff,%edx
call   1050 <read@plt>
lea    0xe79(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strtok@plt>
lea    0xde2(%rip),%rbx
mov    %rax,%rdi
mov    %rbx,%rsi
call   10c0 <strtok@plt>
mov    %rax,%r15
xor    %edi,%edi
mov    %rbx,%rsi
call   10c0 <strtok@plt>
mov    %rax,%r12
xor    %edi,%edi
mov    %rbx,%rsi
call   10c0 <strtok@plt>
lea    0xdb8(%rip),%rsi
mov    %ebp,%edi
call   10a0 <fdopen@plt>
mov    %rax,%r14
lea    0xdaa(%rip),%rsi
mov    %r15,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12bb <proccess_request+0xdb>
lea    0xd9a(%rip),%rsi
mov    %r15,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12bb <proccess_request+0xdb>
lea    0xe07(%rip),%rdx
lea    0xdcb(%rip),%rcx
mov    %r14,%rdi
mov    $0x1f4,%esi
mov    $0x18,%r8d
call   1060 <send_headers@plt>
lea    0xdfd(%rip),%rdi
mov    $0x17,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10f0 <fwrite@plt>
jmp    13d4 <proccess_request+0x1f4>
lea    0xd4c(%rip),%rsi
mov    %rsp,%rdi
call   1030 <strcpy@plt>
mov    0x2d0f(%rip),%r13
movslq 0x0(%r13),%rdi
lea    0xd39(%rip),%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xd37(%rip),%rsi
mov    %r12,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1307 <proccess_request+0x127>
mov    %rsp,%rdi
mov    %r12,%rsi
call   10d0 <strcat@plt>
jmp    1316 <proccess_request+0x136>
lea    0xd18(%rip),%rsi
mov    %rsp,%rdi
call   1030 <strcpy@plt>
mov    %rsp,%rdi
call   1040 <file_exists@plt>
cmp    $0x1,%eax
jne    1385 <proccess_request+0x1a5>
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1100 <get_content_type@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
call   10b0 <get_file_size@plt>
lea    0xcf8(%rip),%rdx
mov    %r14,%rdi
mov    $0xc8,%esi
mov    %rbp,%rcx
mov    %eax,%r8d
call   1060 <send_headers@plt>
lea    0xcab(%rip),%rsi
mov    %r15,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    13d4 <proccess_request+0x1f4>
mov    %rsp,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   10e0 <send_file@plt>
movslq 0x0(%r13),%rdi
lea    0xcbb(%rip),%rsi
mov    %rbx,%rdx
jmp    13cd <proccess_request+0x1ed>
lea    0xcbf(%rip),%rdx
lea    0xcc2(%rip),%rcx
mov    %r14,%rdi
mov    $0x194,%esi
mov    $0xa,%r8d
call   1060 <send_headers@plt>
lea    0xcb3(%rip),%rdi
mov    $0xa,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10f0 <fwrite@plt>
movslq 0x0(%r13),%rdi
lea    0xca1(%rip),%rsi
mov    %rsp,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %r14,%rdi
call   1090 <fflush@plt>
add    $0x208,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [2 x i8] c" \00"
@.str.2 = [3 x i8] c"r+\00"
@.str.3 = [4 x i8] c"GET\00"
@.str.4 = [5 x i8] c"HEAD\00"
@.str.5 = [7 x i8] c"public\00"
@stderr = global i32 0
@.str.6 = [15 x i8] c"Requested: %s\0A\00"
@.str.7 = [2 x i8] c"/\00"
@.str.8 = [18 x i8] c"public/index.html\00"
@.str.9 = [3 x i8] c"OK\00"
@.str.10 = [16 x i8] c"File sent [%s]\0A\00"
@.str.11 = [10 x i8] c"Not Found\00"
@.str.12 = [11 x i8] c"text/plain\00"
@.str.13 = [11 x i8] c"Not found!\00"
@.str.14 = [31 x i8] c"Requested file not found [%s]\0A\00"
@.str.15 = [23 x i8] c"Unknown Request Method\00"
@.str.16 = [24 x i8] c"Unknown Request Method!\00"
define void @proccess_request(i32 %0) {
%2 = alloca i32
%3 = alloca i32*
%4 = alloca [256 x i8]
%5 = alloca [256 x i8]
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
store i32 %0, i32* %2
%10 = load i32, i32* %2
%11 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%12 = call i32 @read(i32 %10, i8* %11, i32 255)
%13 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%14 = call i8* @strtok(i8* %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %14, i8** %6
%15 = load i8*, i8** %6
%16 = call i8* @strtok(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %16, i8** %7
%17 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %17, i8** %8
%18 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %18, i8** %9
%19 = load i32, i32* %2
%20 = call i32* @fdopen(i32 %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32* %20, i32** %3
%21 = load i8*, i8** %7
%22 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %28, label %24
24: ; preds = %1
%25 = load i8*, i8** %7
%26 = call i64 @strcmp(i8* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %81
28: ; preds = %24, %1
%29 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%30 = call i32 @strcpy(i8* %29, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = sext i32 %31 to i64
%33 = inttoptr i64 %32 to i32*
%34 = load i8*, i8** %8
%35 = call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %34)
%36 = load i8*, i8** %8
%37 = call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %28
%40 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%41 = call i32 @strcpy(i8* %40, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
br label %46
42: ; preds = %28
%43 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%44 = load i8*, i8** %8
%45 = call i32 @strcat(i8* %43, i8* %44)
br label %46
46: ; preds = %42, %39
%47 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%48 = call i32 @file_exists(i8* %47)
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %70
50: ; preds = %46
%51 = load i32*, i32** %3
%52 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%53 = call i8* @get_content_type(i8* %52)
%54 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%55 = call i32 @get_file_size(i8* %54)
%56 = call i32 @send_headers(i32* %51, i32 200, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %53, i32 %55)
%57 = load i8*, i8** %7
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %69
60: ; preds = %50
%61 = load i32*, i32** %3
%62 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%63 = call i32 @send_file(i32* %61, i8* %62)
%64 = load i32, i32* @stderr
%65 = sext i32 %64 to i64
%66 = inttoptr i64 %65 to i32*
%67 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%68 = call i32 (i32*, i8*, ...) @fprintf(i32* %66, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i8* %67)
br label %69
69: ; preds = %60, %50
br label %80
70: ; preds = %46
%71 = load i32*, i32** %3
%72 = call i32 @send_headers(i32* %71, i32 404, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 10)
%73 = load i32*, i32** %3
%74 = call i32 (i32*, i8*, ...) @fprintf(i32* %73, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0))
%75 = load i32, i32* @stderr
%76 = sext i32 %75 to i64
%77 = inttoptr i64 %76 to i32*
%78 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%79 = call i32 (i32*, i8*, ...) @fprintf(i32* %77, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.14, i64 0, i64 0), i8* %78)
br label %80
80: ; preds = %70, %69
br label %86
81: ; preds = %24
%82 = load i32*, i32** %3
%83 = call i32 @send_headers(i32* %82, i32 500, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 24)
%84 = load i32*, i32** %3
%85 = call i32 (i32*, i8*, ...) @fprintf(i32* %84, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0))
br label %86
86: ; preds = %81, %80
%87 = load i32*, i32** %3
%88 = call i32 @fflush(i32* %87)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [2 x i8] c" \00"
@.str.2 = [3 x i8] c"r+\00"
@.str.3 = [4 x i8] c"GET\00"
@.str.4 = [5 x i8] c"HEAD\00"
@.str.5 = [7 x i8] c"public\00"
@stderr = global i32 0
@.str.6 = [15 x i8] c"Requested: %s\0A\00"
@.str.7 = [2 x i8] c"/\00"
@.str.8 = [18 x i8] c"public/index.html\00"
@.str.9 = [3 x i8] c"OK\00"
@.str.10 = [16 x i8] c"File sent [%s]\0A\00"
@.str.11 = [10 x i8] c"Not Found\00"
@.str.12 = [11 x i8] c"text/plain\00"
@.str.13 = [11 x i8] c"Not found!\00"
@.str.14 = [31 x i8] c"Requested file not found [%s]\0A\00"
@.str.15 = [23 x i8] c"Unknown Request Method\00"
@.str.16 = [24 x i8] c"Unknown Request Method!\00"
define void @proccess_request(i32 %0) {
%2 = alloca [256 x i8]
%3 = alloca [256 x i8]
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%5 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%6 = call i32 @read(i32 %0, i8* %5, i32 255)
%7 = call i8* @strtok(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = call i8* @strtok(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32* @fdopen(i32 %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%12 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %1
%15 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %51
17: ; preds = %14, %1
%18 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i32*
%22 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %9)
%23 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %17
%26 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
br label %29
27: ; preds = %17
%28 = call i32 @strcat(i8* %4, i8* %9)
br label %29
29: ; preds = %27, %25
%30 = call i32 @file_exists(i8* %4)
%31 = icmp eq i32 %30, 1
br i1 %31, label %32, label %44
32: ; preds = %29
%33 = call i8* @get_content_type(i8* %4)
%34 = call i32 @get_file_size(i8* %4)
%35 = call i32 @send_headers(i32* %11, i32 200, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %33, i32 %34)
%36 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %54
38: ; preds = %32
%39 = call i32 @send_file(i32* %11, i8* %4)
%40 = load i32, i32* @stderr
%41 = sext i32 %40 to i64
%42 = inttoptr i64 %41 to i32*
%43 = call i32 (i32*, i8*, ...) @fprintf(i32* %42, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i8* %4)
br label %54
44: ; preds = %29
%45 = call i32 @send_headers(i32* %11, i32 404, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 10)
%46 = call i64 @fwrite(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i64 10, i64 1, i32* %11)
%47 = load i32, i32* @stderr
%48 = sext i32 %47 to i64
%49 = inttoptr i64 %48 to i32*
%50 = call i32 (i32*, i8*, ...) @fprintf(i32* %49, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.14, i64 0, i64 0), i8* %4)
br label %54
51: ; preds = %14
%52 = call i32 @send_headers(i32* %11, i32 500, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 24)
%53 = call i64 @fwrite(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0), i64 23, i64 1, i32* %11)
br label %54
54: ; preds = %44, %38, %32, %51
%55 = call i32 @fflush(i32* %11)
ret void
}