#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 */

/* Variables and functions */
scalar_t__ isspace(int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ send(int const, char *, int /*<<< orphan*/,
                        int /*<<< orphan*/);
int /*<<< orphan*/ sprintf(char *, char *, ...);
scalar_t__ strcasecmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ strlen(char *);
void default_http_response(const int client_sockfd, const char *msg) {
  static char outbuf[10240] = {0};
  static char method[16] = {0};
  static char url[255] = {0};
  static char protocol[16] = {0};
  memset(outbuf, 0, 10240);
  memset(method, 0, 16);
  memset(url, 0, 255);
  memset(protocol, 0, 16);
  size_t i = 0;
  size_t j = 0;
  while (!isspace((int)(msg[i])) && (i < 16)) {
    method[i] = msg[i];
    i++;
  }
  if (strcasecmp(method, "GET") && strcasecmp(method, "POST")) {
    memset(method, 0, 16);
    strcpy(method, "Unknown");
  } else {
    j = i;
    while (isspace((int)(msg[j])) && j < 10240) {
      j++;
    }
    i = 0;
    while (!isspace((int)(msg[j])) && (j < 10240) && (i < 255)) {
      url[i] = msg[j];
      i++;
      j++;
    }
    while (isspace((int)(msg[j])) && j < 10240) {
      j++;
    }
    i = 0;
    while (!isspace((int)(msg[j])) && (j < 10240) && (i < 16)) {
      protocol[i] = msg[j];
      i++;
      j++;
    }
  }
  sprintf(outbuf, "HTTP/1.0 200 OK\r\n");
  send(client_sockfd, outbuf, strlen(outbuf), 0);
  sprintf(outbuf, "Server: Tiny HTTP Application Server/0.2.1\r\n");
  send(client_sockfd, outbuf, strlen(outbuf), 0);
  sprintf(outbuf, "Content-Type: text/html\r\n");
  send(client_sockfd, outbuf, strlen(outbuf), 0);
  sprintf(outbuf, "\r\n");
  send(client_sockfd, outbuf, strlen(outbuf), 0);
  sprintf(outbuf,
          "<HTML><HEAD><TITLE>HTTP Response | client_sockfd = 0x%08X "
          "</TITLE></HEAD>\r\n",
          client_sockfd);
  send(client_sockfd, outbuf, strlen(outbuf), 0);
  sprintf(outbuf,
          "<BODY><h1>Your request:</h1><hr /><p> Method: %s <br /> URL: %s <br "
          "/> protocol: %s </p><pre>%s</pre><hr />\r\n",
          method, url, protocol, msg);
  send(client_sockfd, outbuf, strlen(outbuf), 0);
  sprintf(outbuf, "</BODY></HTML>\r\n");
  send(client_sockfd, outbuf, strlen(outbuf), 0);
}


x86 assembly (clang, -O0):
<default_http_response>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0x2eea(%rip),%rdi
xor    %esi,%esi
mov    $0x2800,%edx
call   1070 <memset@plt>
lea    0x56d7(%rip),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1070 <memset@plt>
lea    0x56d4(%rip),%rdi
xor    %esi,%esi
mov    $0xff,%edx
call   1070 <memset@plt>
lea    0x57c1(%rip),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1070 <memset@plt>
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1080 <isspace@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x21(%rbp)
jne    1209 <default_http_response+0x99>
cmpq   $0x10,-0x18(%rbp)
setb   %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
test   $0x1,%al
jne    1219 <default_http_response+0xa9>
jmp    1243 <default_http_response+0xd3>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x18(%rbp),%rcx
lea    0x5641(%rip),%rax
mov    %dl,(%rax,%rcx,1)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    11db <default_http_response+0x6b>
lea    0x5626(%rip),%rdi
lea    0xdaf(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     12a8 <default_http_response+0x138>
lea    0x5609(%rip),%rdi
lea    0xd96(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     12a8 <default_http_response+0x138>
lea    0x55ec(%rip),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1070 <memset@plt>
lea    0x55d9(%rip),%rdi
lea    0xd6b(%rip),%rsi
call   1040 <strcpy@plt>
jmp    147f <default_http_response+0x30f>
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1080 <isspace@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x22(%rbp)
je     12e1 <default_http_response+0x171>
cmpq   $0x2800,-0x20(%rbp)
setb   %al
mov    %al,-0x22(%rbp)
mov    -0x22(%rbp),%al
test   $0x1,%al
jne    12f1 <default_http_response+0x181>
jmp    1302 <default_http_response+0x192>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    12b0 <default_http_response+0x140>
movq   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1080 <isspace@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x23(%rbp)
jne    134e <default_http_response+0x1de>
xor    %eax,%eax
cmpq   $0x2800,-0x20(%rbp)
mov    %al,-0x23(%rbp)
jae    134e <default_http_response+0x1de>
cmpq   $0xff,-0x18(%rbp)
setb   %al
mov    %al,-0x23(%rbp)
mov    -0x23(%rbp),%al
test   $0x1,%al
jne    135e <default_http_response+0x1ee>
jmp    1394 <default_http_response+0x224>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x18(%rbp),%rcx
lea    0x550c(%rip),%rax
mov    %dl,(%rax,%rcx,1)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    130a <default_http_response+0x19a>
jmp    1399 <default_http_response+0x229>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1080 <isspace@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x24(%rbp)
je     13ca <default_http_response+0x25a>
cmpq   $0x2800,-0x20(%rbp)
setb   %al
mov    %al,-0x24(%rbp)
mov    -0x24(%rbp),%al
test   $0x1,%al
jne    13da <default_http_response+0x26a>
jmp    13eb <default_http_response+0x27b>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1399 <default_http_response+0x229>
movq   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1080 <isspace@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x25(%rbp)
jne    1434 <default_http_response+0x2c4>
xor    %eax,%eax
cmpq   $0x2800,-0x20(%rbp)
mov    %al,-0x25(%rbp)
jae    1434 <default_http_response+0x2c4>
cmpq   $0x10,-0x18(%rbp)
setb   %al
mov    %al,-0x25(%rbp)
mov    -0x25(%rbp),%al
test   $0x1,%al
jne    1444 <default_http_response+0x2d4>
jmp    147a <default_http_response+0x30a>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x18(%rbp),%rcx
lea    0x5526(%rip),%rax
mov    %dl,(%rax,%rcx,1)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    13f3 <default_http_response+0x283>
jmp    147f <default_http_response+0x30f>
lea    0x2bea(%rip),%rdi
lea    0xb84(%rip),%rsi
mov    $0x0,%al
call   1090 <sprintf@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x44(%rbp)
lea    0x2bcf(%rip),%rdi
call   1050 <strlen@plt>
mov    -0x44(%rbp),%edi
mov    %eax,%edx
lea    0x2bbe(%rip),%rsi
xor    %ecx,%ecx
call   1060 <send@plt>
lea    0x2bb0(%rip),%rdi
lea    0xb5c(%rip),%rsi
mov    $0x0,%al
call   1090 <sprintf@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x40(%rbp)
lea    0x2b95(%rip),%rdi
call   1050 <strlen@plt>
mov    -0x40(%rbp),%edi
mov    %eax,%edx
lea    0x2b84(%rip),%rsi
xor    %ecx,%ecx
call   1060 <send@plt>
lea    0x2b76(%rip),%rdi
lea    0xb4f(%rip),%rsi
mov    $0x0,%al
call   1090 <sprintf@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x3c(%rbp)
lea    0x2b5b(%rip),%rdi
call   1050 <strlen@plt>
mov    -0x3c(%rbp),%edi
mov    %eax,%edx
lea    0x2b4a(%rip),%rsi
xor    %ecx,%ecx
call   1060 <send@plt>
lea    0x2b3c(%rip),%rdi
lea    0xb12(%rip),%rsi
mov    $0x0,%al
call   1090 <sprintf@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x38(%rbp)
lea    0x2b21(%rip),%rdi
call   1050 <strlen@plt>
mov    -0x38(%rbp),%edi
mov    %eax,%edx
lea    0x2b10(%rip),%rsi
xor    %ecx,%ecx
call   1060 <send@plt>
mov    -0x4(%rbp),%edx
lea    0x2aff(%rip),%rdi
lea    0xaf2(%rip),%rsi
mov    $0x0,%al
call   1090 <sprintf@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x34(%rbp)
lea    0x2ae4(%rip),%rdi
call   1050 <strlen@plt>
mov    -0x34(%rbp),%edi
mov    %eax,%edx
lea    0x2ad3(%rip),%rsi
xor    %ecx,%ecx
call   1060 <send@plt>
mov    -0x10(%rbp),%r9
lea    0x2ac1(%rip),%rdi
lea    0xb00(%rip),%rsi
lea    0x52b3(%rip),%rdx
lea    0x52bc(%rip),%rcx
lea    0x53b5(%rip),%r8
mov    $0x0,%al
call   1090 <sprintf@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x30(%rbp)
lea    0x2a91(%rip),%rdi
call   1050 <strlen@plt>
mov    -0x30(%rbp),%edi
mov    %eax,%edx
lea    0x2a80(%rip),%rsi
xor    %ecx,%ecx
call   1060 <send@plt>
lea    0x2a72(%rip),%rdi
lea    0xb1f(%rip),%rsi
mov    $0x0,%al
call   1090 <sprintf@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x2c(%rbp)
lea    0x2a57(%rip),%rdi
call   1050 <strlen@plt>
mov    -0x2c(%rbp),%edi
mov    %eax,%edx
lea    0x2a46(%rip),%rsi
xor    %ecx,%ecx
call   1060 <send@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<default_http_response>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r15
mov    %edi,%ebx
lea    0x2ee9(%rip),%rdi
xor    %r14d,%r14d
xor    %esi,%esi
mov    $0x2800,%edx
call   1070 <memset@plt>
lea    0x56d3(%rip),%r13
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1070 <memset@plt>
lea    0x56cd(%rip),%r12
mov    %r12,%rdi
xor    %esi,%esi
mov    $0xff,%edx
call   1070 <memset@plt>
lea    0x57b7(%rip),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1070 <memset@plt>
movsbl (%r15),%edi
call   1080 <isspace@plt>
test   %rax,%rax
mov    %ebx,0x4(%rsp)
jne    1216 <default_http_response+0xa6>
xor    %ebx,%ebx
nopl   0x0(%rax)
movzbl (%r15,%rbx,1),%eax
mov    %al,(%rbx,%r13,1)
lea    0x1(%rbx),%r14
movsbl 0x1(%r15,%rbx,1),%edi
call   1080 <isspace@plt>
test   %rax,%rax
jne    1216 <default_http_response+0xa6>
cmp    $0xf,%rbx
mov    %r14,%rbx
jb     11f0 <default_http_response+0x80>
lea    0x5653(%rip),%rdi
lea    0xddc(%rip),%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1279 <default_http_response+0x109>
lea    0x563b(%rip),%rdi
lea    0xdc8(%rip),%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1279 <default_http_response+0x109>
lea    0x5623(%rip),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1070 <memset@plt>
lea    0xda6(%rip),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
jmp    1383 <default_http_response+0x213>
cmp    $0x2800,%rbx
jae    128f <default_http_response+0x11f>
mov    %r14,%rbx
movsbl (%r15,%r14,1),%edi
call   1080 <isspace@plt>
add    $0x1,%r14
test   %rax,%rax
jne    1270 <default_http_response+0x100>
movsbl (%r15,%rbx,1),%edi
call   1080 <isspace@plt>
add    $0xffffffffffffffff,%r14
test   %rax,%rax
jne    12eb <default_http_response+0x17b>
cmp    $0x27ff,%rbx
ja     12f0 <default_http_response+0x180>
xor    %ebx,%ebx
nopl   (%rax)
movzbl (%r15,%r14,1),%eax
mov    %al,(%rbx,%r12,1)
lea    0x1(%r14),%rbp
movsbl 0x1(%r15,%r14,1),%edi
call   1080 <isspace@plt>
test   %rax,%rax
jne    1300 <default_http_response+0x190>
cmp    $0x27fe,%r14
ja     1300 <default_http_response+0x190>
lea    0x1(%rbx),%rax
mov    %rbp,%r14
cmp    $0xfe,%rbx
mov    %rax,%rbx
jb     12b0 <default_http_response+0x140>
jmp    1300 <default_http_response+0x190>
mov    %r14,%rbp
jmp    1300 <default_http_response+0x190>
mov    %r14,%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbp,%rbx
movsbl (%r15,%rbp,1),%edi
call   1080 <isspace@plt>
add    $0x1,%rbp
test   %rax,%rax
je     131f <default_http_response+0x1af>
cmp    $0x2800,%rbx
jb     1300 <default_http_response+0x190>
movsbl (%r15,%rbx,1),%edi
call   1080 <isspace@plt>
test   %rax,%rax
lea    0x564d(%rip),%r14
jne    1383 <default_http_response+0x213>
cmp    $0x27ff,%rbx
ja     1383 <default_http_response+0x213>
add    $0xffffffffffffffff,%rbp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl (%r15,%rbp,1),%eax
mov    %al,(%rbx,%r14,1)
movsbl 0x1(%r15,%rbp,1),%edi
call   1080 <isspace@plt>
test   %rax,%rax
jne    1383 <default_http_response+0x213>
cmp    $0x27fe,%rbp
ja     1383 <default_http_response+0x213>
lea    0x1(%rbx),%rax
add    $0x1,%rbp
cmp    $0xf,%rbx
mov    %rax,%rbx
jb     1350 <default_http_response+0x1e0>
movups 0xc87(%rip),%xmm0
movaps %xmm0,0x2cdf(%rip)
movw   $0xa,0x2ce6(%rip)
lea    0x2ccf(%rip),%rbp
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    0x4(%rsp),%ebx
mov    %ebx,%edi
mov    %rbp,%rsi
mov    %eax,%edx
xor    %ecx,%ecx
call   1060 <send@plt>
movups 0xc61(%rip),%xmm0
movaps %xmm0,0x2ca7(%rip)
movups 0xc63(%rip),%xmm0
movaps %xmm0,0x2ca9(%rip)
movups 0xc62(%rip),%xmm0
movups %xmm0,0x2ca8(%rip)
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
mov    %eax,%edx
xor    %ecx,%ecx
call   1060 <send@plt>
movups 0xc4e(%rip),%xmm0
movaps %xmm0,0x2c67(%rip)
movups 0xc4a(%rip),%xmm0
movups %xmm0,0x2c63(%rip)
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
mov    %eax,%edx
xor    %ecx,%ecx
call   1060 <send@plt>
movw   $0xa0d,0x2c3a(%rip)
0d 0a
movb   $0x0,0x2c35(%rip)
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
mov    %eax,%edx
xor    %ecx,%ecx
call   1060 <send@plt>
lea    0xc10(%rip),%rsi
mov    %rbp,%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1090 <sprintf@plt>
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
mov    %eax,%edx
xor    %ecx,%ecx
call   1060 <send@plt>
lea    0xc33(%rip),%rsi
lea    0x53e6(%rip),%rdx
lea    0x53ef(%rip),%rcx
lea    0x54e8(%rip),%r8
mov    %rbp,%rdi
mov    %r15,%r9
xor    %eax,%eax
call   1090 <sprintf@plt>
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
mov    %eax,%edx
xor    %ecx,%ecx
call   1060 <send@plt>
movups 0xc62(%rip),%xmm0
movaps %xmm0,0x2ba7(%rip)
movb   $0x0,0x2bb0(%rip)
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
mov    %eax,%edx
xor    %ecx,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <send@plt>

LLVM IR (-O0):
@default_http_response.outbuf = internal global [10240 x i8] zeroinitializer
@default_http_response.method = internal global [16 x i8] zeroinitializer
@default_http_response.url = internal global [255 x i8] zeroinitializer
@default_http_response.protocol = internal global [16 x i8] zeroinitializer
@.str = [4 x i8] c"GET\00"
@.str.1 = [5 x i8] c"POST\00"
@.str.2 = [8 x i8] c"Unknown\00"
@.str.3 = [18 x i8] c"HTTP/1.0 200 OK\0D\0A\00"
@.str.4 = [45 x i8] c"Server: Tiny HTTP Application Server/0.2.1\0D\0A\00"
@.str.5 = [26 x i8] c"Content-Type: text/html\0D\0A\00"
@.str.6 = [3 x i8] c"\0D\0A\00"
@.str.7 = [76 x i8] c"<HTML><HEAD><TITLE>HTTP Response | client_sockfd = 0x%08X </TITLE></HEAD>\0D\0A\00"
@.str.8 = [110 x i8] c"<BODY><h1>Your request:</h1><hr /><p> Method: %s <br /> URL: %s <br /> protocol: %s </p><pre>%s</pre><hr />\0D\0A\00"
@.str.9 = [17 x i8] c"</BODY></HTML>\0D\0A\00"
define void @default_http_response(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i64
store i32 %0, i32* %3
store i8* %1, i8** %4
%7 = call i32 @memset(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 0, i32 10240)
%8 = call i32 @memset(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.method, i64 0, i64 0), i32 0, i32 16)
%9 = call i32 @memset(i8* getelementptr inbounds ([255 x i8], [255 x i8]* @default_http_response.url, i64 0, i64 0), i32 0, i32 255)
%10 = call i32 @memset(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.protocol, i64 0, i64 0), i32 0, i32 16)
store i64 0, i64* %5
store i64 0, i64* %6
br label %11
11: ; preds = %24, %2
%12 = load i8*, i8** %4
%13 = load i64, i64* %5
%14 = getelementptr inbounds i8, i8* %12, i64 %13
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = call i64 @isspace(i32 %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %11
%20 = load i64, i64* %5
%21 = icmp ult i64 %20, 16
br label %22
22: ; preds = %19, %11
%23 = phi i1 [ false, %11 ], [ %21, %19 ]
br i1 %23, label %24, label %33
24: ; preds = %22
%25 = load i8*, i8** %4
%26 = load i64, i64* %5
%27 = getelementptr inbounds i8, i8* %25, i64 %26
%28 = load i8, i8* %27
%29 = load i64, i64* %5
%30 = getelementptr inbounds [16 x i8], [16 x i8]* @default_http_response.method, i64 0, i64 %29
store i8 %28, i8* %30
%31 = load i64, i64* %5
%32 = add i64 %31, 1
store i64 %32, i64* %5
br label %11
33: ; preds = %22
%34 = call i64 @strcasecmp(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.method, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %42
36: ; preds = %33
%37 = call i64 @strcasecmp(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.method, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = call i32 @memset(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.method, i64 0, i64 0), i32 0, i32 16)
%41 = call i32 @strcpy(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.method, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %134
42: ; preds = %36, %33
%43 = load i64, i64* %5
store i64 %43, i64* %6
br label %44
44: ; preds = %57, %42
%45 = load i8*, i8** %4
%46 = load i64, i64* %6
%47 = getelementptr inbounds i8, i8* %45, i64 %46
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = call i64 @isspace(i32 %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %44
%53 = load i64, i64* %6
%54 = icmp ult i64 %53, 10240
br label %55
55: ; preds = %52, %44
%56 = phi i1 [ false, %44 ], [ %54, %52 ]
br i1 %56, label %57, label %60
57: ; preds = %55
%58 = load i64, i64* %6
%59 = add i64 %58, 1
store i64 %59, i64* %6
br label %44
60: ; preds = %55
store i64 0, i64* %5
br label %61
61: ; preds = %77, %60
%62 = load i8*, i8** %4
%63 = load i64, i64* %6
%64 = getelementptr inbounds i8, i8* %62, i64 %63
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = call i64 @isspace(i32 %66)
%68 = icmp ne i64 %67, 0
br i1 %68, label %75, label %69
69: ; preds = %61
%70 = load i64, i64* %6
%71 = icmp ult i64 %70, 10240
br i1 %71, label %72, label %75
72: ; preds = %69
%73 = load i64, i64* %5
%74 = icmp ult i64 %73, 255
br label %75
75: ; preds = %72, %69, %61
%76 = phi i1 [ false, %69 ], [ false, %61 ], [ %74, %72 ]
br i1 %76, label %77, label %88
77: ; preds = %75
%78 = load i8*, i8** %4
%79 = load i64, i64* %6
%80 = getelementptr inbounds i8, i8* %78, i64 %79
%81 = load i8, i8* %80
%82 = load i64, i64* %5
%83 = getelementptr inbounds [255 x i8], [255 x i8]* @default_http_response.url, i64 0, i64 %82
store i8 %81, i8* %83
%84 = load i64, i64* %5
%85 = add i64 %84, 1
store i64 %85, i64* %5
%86 = load i64, i64* %6
%87 = add i64 %86, 1
store i64 %87, i64* %6
br label %61
88: ; preds = %75
br label %89
89: ; preds = %102, %88
%90 = load i8*, i8** %4
%91 = load i64, i64* %6
%92 = getelementptr inbounds i8, i8* %90, i64 %91
%93 = load i8, i8* %92
%94 = sext i8 %93 to i32
%95 = call i64 @isspace(i32 %94)
%96 = icmp ne i64 %95, 0
br i1 %96, label %97, label %100
97: ; preds = %89
%98 = load i64, i64* %6
%99 = icmp ult i64 %98, 10240
br label %100
100: ; preds = %97, %89
%101 = phi i1 [ false, %89 ], [ %99, %97 ]
br i1 %101, label %102, label %105
102: ; preds = %100
%103 = load i64, i64* %6
%104 = add i64 %103, 1
store i64 %104, i64* %6
br label %89
105: ; preds = %100
store i64 0, i64* %5
br label %106
106: ; preds = %122, %105
%107 = load i8*, i8** %4
%108 = load i64, i64* %6
%109 = getelementptr inbounds i8, i8* %107, i64 %108
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = call i64 @isspace(i32 %111)
%113 = icmp ne i64 %112, 0
br i1 %113, label %120, label %114
114: ; preds = %106
%115 = load i64, i64* %6
%116 = icmp ult i64 %115, 10240
br i1 %116, label %117, label %120
117: ; preds = %114
%118 = load i64, i64* %5
%119 = icmp ult i64 %118, 16
br label %120
120: ; preds = %117, %114, %106
%121 = phi i1 [ false, %114 ], [ false, %106 ], [ %119, %117 ]
br i1 %121, label %122, label %133
122: ; preds = %120
%123 = load i8*, i8** %4
%124 = load i64, i64* %6
%125 = getelementptr inbounds i8, i8* %123, i64 %124
%126 = load i8, i8* %125
%127 = load i64, i64* %5
%128 = getelementptr inbounds [16 x i8], [16 x i8]* @default_http_response.protocol, i64 0, i64 %127
store i8 %126, i8* %128
%129 = load i64, i64* %5
%130 = add i64 %129, 1
store i64 %130, i64* %5
%131 = load i64, i64* %6
%132 = add i64 %131, 1
store i64 %132, i64* %6
br label %106
133: ; preds = %120
br label %134
134: ; preds = %133, %39
%135 = call i32 (i8*, i8*, ...) @sprintf(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%136 = load i32, i32* %3
%137 = call i32 @strlen(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0))
%138 = call i32 @send(i32 %136, i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 %137, i32 0)
%139 = call i32 (i8*, i8*, ...) @sprintf(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%140 = load i32, i32* %3
%141 = call i32 @strlen(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0))
%142 = call i32 @send(i32 %140, i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 %141, i32 0)
%143 = call i32 (i8*, i8*, ...) @sprintf(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%144 = load i32, i32* %3
%145 = call i32 @strlen(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0))
%146 = call i32 @send(i32 %144, i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 %145, i32 0)
%147 = call i32 (i8*, i8*, ...) @sprintf(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%148 = load i32, i32* %3
%149 = call i32 @strlen(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0))
%150 = call i32 @send(i32 %148, i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 %149, i32 0)
%151 = load i32, i32* %3
%152 = call i32 (i8*, i8*, ...) @sprintf(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.7, i64 0, i64 0), i32 %151)
%153 = load i32, i32* %3
%154 = call i32 @strlen(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0))
%155 = call i32 @send(i32 %153, i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 %154, i32 0)
%156 = load i8*, i8** %4
%157 = call i32 (i8*, i8*, ...) @sprintf(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.method, i64 0, i64 0), i8* getelementptr inbounds ([255 x i8], [255 x i8]* @default_http_response.url, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.protocol, i64 0, i64 0), i8* %156)
%158 = load i32, i32* %3
%159 = call i32 @strlen(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0))
%160 = call i32 @send(i32 %158, i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 %159, i32 0)
%161 = call i32 (i8*, i8*, ...) @sprintf(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%162 = load i32, i32* %3
%163 = call i32 @strlen(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0))
%164 = call i32 @send(i32 %162, i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 %163, i32 0)
ret void
}

LLVM IR (-O2):
@default_http_response.outbuf = internal global [10240 x i8] zeroinitializer
@default_http_response.method = internal global [16 x i8] zeroinitializer
@default_http_response.url = internal global [255 x i8] zeroinitializer
@default_http_response.protocol = internal global [16 x i8] zeroinitializer
@.str = [4 x i8] c"GET\00"
@.str.1 = [5 x i8] c"POST\00"
@.str.2 = [8 x i8] c"Unknown\00"
@.str.3 = [18 x i8] c"HTTP/1.0 200 OK\0D\0A\00"
@.str.4 = [45 x i8] c"Server: Tiny HTTP Application Server/0.2.1\0D\0A\00"
@.str.5 = [26 x i8] c"Content-Type: text/html\0D\0A\00"
@.str.6 = [3 x i8] c"\0D\0A\00"
@.str.7 = [76 x i8] c"<HTML><HEAD><TITLE>HTTP Response | client_sockfd = 0x%08X </TITLE></HEAD>\0D\0A\00"
@.str.8 = [110 x i8] c"<BODY><h1>Your request:</h1><hr /><p> Method: %s <br /> URL: %s <br /> protocol: %s </p><pre>%s</pre><hr />\0D\0A\00"
@.str.9 = [17 x i8] c"</BODY></HTML>\0D\0A\00"
define void @default_http_response(i32 %0, i8* %1) {
%3 = tail call i32 @memset(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 0, i32 10240)
%4 = tail call i32 @memset(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.method, i64 0, i64 0), i32 0, i32 16)
%5 = tail call i32 @memset(i8* getelementptr inbounds ([255 x i8], [255 x i8]* @default_http_response.url, i64 0, i64 0), i32 0, i32 255)
%6 = tail call i32 @memset(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.protocol, i64 0, i64 0), i32 0, i32 16)
%7 = load i8, i8* %1
%8 = sext i8 %7 to i32
%9 = tail call i64 @isspace(i32 %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %24
11: ; preds = %2, %11
%12 = phi i8* [ %17, %11 ], [ %1, %2 ]
%13 = phi i64 [ %16, %11 ], [ 0, %2 ]
%14 = load i8, i8* %12
%15 = getelementptr inbounds [16 x i8], [16 x i8]* @default_http_response.method, i64 0, i64 %13
store i8 %14, i8* %15
%16 = add nuw nsw i64 %13, 1
%17 = getelementptr inbounds i8, i8* %1, i64 %16
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = tail call i64 @isspace(i32 %19)
%21 = icmp eq i64 %20, 0
%22 = icmp ult i64 %13, 15
%23 = select i1 %21, i1 %22, i1 false
br i1 %23, label %11, label %24
24: ; preds = %11, %2
%25 = phi i64 [ 0, %2 ], [ %16, %11 ]
%26 = tail call i64 @strcasecmp(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.method, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %29, %24
br label %35
29: ; preds = %24
%30 = tail call i64 @strcasecmp(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.method, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %28, label %32
32: ; preds = %29
%33 = tail call i32 @memset(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.method, i64 0, i64 0), i32 0, i32 16)
%34 = tail call i32 @strcpy(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.method, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %105
35: ; preds = %28, %35
%36 = phi i64 [ %44, %35 ], [ %25, %28 ]
%37 = getelementptr inbounds i8, i8* %1, i64 %36
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = tail call i64 @isspace(i32 %39)
%41 = icmp ne i64 %40, 0
%42 = icmp ult i64 %36, 10240
%43 = select i1 %41, i1 %42, i1 false
%44 = add nuw nsw i64 %36, 1
br i1 %43, label %35, label %45
45: ; preds = %35
%46 = getelementptr inbounds i8, i8* %1, i64 %36
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = tail call i64 @isspace(i32 %48)
%50 = icmp eq i64 %49, 0
%51 = select i1 %50, i1 %42, i1 false
br i1 %51, label %52, label %69
52: ; preds = %45, %52
%53 = phi i8* [ %60, %52 ], [ %46, %45 ]
%54 = phi i64 [ %59, %52 ], [ %36, %45 ]
%55 = phi i64 [ %58, %52 ], [ 0, %45 ]
%56 = load i8, i8* %53
%57 = getelementptr inbounds [255 x i8], [255 x i8]* @default_http_response.url, i64 0, i64 %55
store i8 %56, i8* %57
%58 = add nuw nsw i64 %55, 1
%59 = add nuw nsw i64 %54, 1
%60 = getelementptr inbounds i8, i8* %1, i64 %59
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = tail call i64 @isspace(i32 %62)
%64 = icmp eq i64 %63, 0
%65 = icmp ult i64 %54, 10239
%66 = select i1 %64, i1 %65, i1 false
%67 = icmp ult i64 %55, 254
%68 = select i1 %66, i1 %67, i1 false
br i1 %68, label %52, label %69
69: ; preds = %52, %45
%70 = phi i64 [ %36, %45 ], [ %59, %52 ]
br label %71
71: ; preds = %69, %71
%72 = phi i64 [ %80, %71 ], [ %70, %69 ]
%73 = getelementptr inbounds i8, i8* %1, i64 %72
%74 = load i8, i8* %73
%75 = sext i8 %74 to i32
%76 = tail call i64 @isspace(i32 %75)
%77 = icmp ne i64 %76, 0
%78 = icmp ult i64 %72, 10240
%79 = select i1 %77, i1 %78, i1 false
%80 = add nuw nsw i64 %72, 1
br i1 %79, label %71, label %81
81: ; preds = %71
%82 = getelementptr inbounds i8, i8* %1, i64 %72
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = tail call i64 @isspace(i32 %84)
%86 = icmp eq i64 %85, 0
%87 = select i1 %86, i1 %78, i1 false
br i1 %87, label %88, label %105
88: ; preds = %81, %88
%89 = phi i8* [ %96, %88 ], [ %82, %81 ]
%90 = phi i64 [ %95, %88 ], [ %72, %81 ]
%91 = phi i64 [ %94, %88 ], [ 0, %81 ]
%92 = load i8, i8* %89
%93 = getelementptr inbounds [16 x i8], [16 x i8]* @default_http_response.protocol, i64 0, i64 %91
store i8 %92, i8* %93
%94 = add nuw nsw i64 %91, 1
%95 = add nuw nsw i64 %90, 1
%96 = getelementptr inbounds i8, i8* %1, i64 %95
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = tail call i64 @isspace(i32 %98)
%100 = icmp eq i64 %99, 0
%101 = icmp ult i64 %90, 10239
%102 = select i1 %100, i1 %101, i1 false
%103 = icmp ult i64 %91, 15
%104 = select i1 %102, i1 %103, i1 false
br i1 %104, label %88, label %105
105: ; preds = %88, %81, %32
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 16 dereferenceable(18) getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i8* align 1 dereferenceable(18) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i64 18, i1 false)
%106 = tail call i32 @strlen(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0))
%107 = tail call i32 @send(i32 %0, i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 %106, i32 0)
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 16 dereferenceable(45) getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i8* align 1 dereferenceable(45) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0), i64 45, i1 false)
%108 = tail call i32 @strlen(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0))
%109 = tail call i32 @send(i32 %0, i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 %108, i32 0)
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 16 dereferenceable(26) getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i8* align 1 dereferenceable(26) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i64 26, i1 false)
%110 = tail call i32 @strlen(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0))
%111 = tail call i32 @send(i32 %0, i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 %110, i32 0)
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 16 dereferenceable(3) getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i8* align 1 dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i64 3, i1 false)
%112 = tail call i32 @strlen(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0))
%113 = tail call i32 @send(i32 %0, i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 %112, i32 0)
%114 = tail call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.7, i64 0, i64 0), i32 %0)
%115 = tail call i32 @strlen(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0))
%116 = tail call i32 @send(i32 %0, i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 %115, i32 0)
%117 = tail call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([110 x i8], [110 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.method, i64 0, i64 0), i8* getelementptr inbounds ([255 x i8], [255 x i8]* @default_http_response.url, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @default_http_response.protocol, i64 0, i64 0), i8* %1)
%118 = tail call i32 @strlen(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0))
%119 = tail call i32 @send(i32 %0, i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 %118, i32 0)
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 16 dereferenceable(17) getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i8* align 1 dereferenceable(17) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i64 17, i1 false)
%120 = tail call i32 @strlen(i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0))
%121 = tail call i32 @send(i32 %0, i8* getelementptr inbounds ([10240 x i8], [10240 x i8]* @default_http_response.outbuf, i64 0, i64 0), i32 %120, i32 0)
ret void
}