#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*/ version;
typedef int /*<<< orphan*/ req_url;
typedef int /*<<< orphan*/ method;
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ NotSupportMethod();
int get_line(int, char *, int);
scalar_t__ isspace(char);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ response_GET(int, char *);
int /*<<< orphan*/ strcasecmp(char *, char *);
int handle_request(int clientfd) {
  char buf[1024];
  char method[32];
  char req_url[1024];
  char version[32];
  int i, j;
  int numchars;
  printf("Handle_request\n");
  numchars = get_line(clientfd, buf, sizeof(buf));
  printf("get line: %s\n", buf);
  i = 0;
  j = 0;
  while (!isspace(buf[j]) && i < (sizeof(method) - 1)) {
    method[i] = buf[j];
    ++i;
    ++j;
  }
  method[i] = '\0';
  i = 0;
  while (isspace(buf[j]))
    ++j;
  while (!isspace(buf[j]) && i < (sizeof(req_url) - 1)) {
    req_url[i] = buf[j];
    ++i;
    ++j;
  }
  req_url[i] = '\0';
  printf("Get URL:%s\n", req_url);
  i = 0;
  while (isspace(buf[j]))
    ++j;
  while (buf[j] != '\0' && i < (sizeof(version) - 1)) {
    version[i] = buf[j];
    ++i;
    ++j;
  }
  version[i] = '\0';
  if (!strcasecmp(method, "GET")) {
    printf("%s\n", req_url);
    response_GET(clientfd, req_url);
    printf("GET finished%s\n", req_url);
  } else if (!strcasecmp(method, "POST")) {
    printf("hello");
  } else {
    NotSupportMethod();
  }
  return 0;
}


x86 assembly (clang, -O0):
<handle_request>:
push   %rbp
mov    %rsp,%rbp
sub    $0x860,%rsp
mov    %edi,-0x4(%rbp)
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x4(%rbp),%edi
lea    -0x410(%rbp),%rsi
mov    $0x400,%edx
call   1050 <get_line@plt>
mov    %eax,-0x85c(%rbp)
lea    -0x410(%rbp),%rsi
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x854(%rbp)
movl   $0x0,-0x858(%rbp)
movslq -0x858(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%edi
ff
call   1070 <isspace@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x85d(%rbp)
jne    11fc <handle_request+0x9c>
movslq -0x854(%rbp),%rax
cmp    $0x1f,%rax
setb   %al
mov    %al,-0x85d(%rbp)
mov    -0x85d(%rbp),%al
test   $0x1,%al
jne    120f <handle_request+0xaf>
jmp    124e <handle_request+0xee>
movslq -0x858(%rbp),%rax
mov    -0x410(%rbp,%rax,1),%cl
movslq -0x854(%rbp),%rax
mov    %cl,-0x430(%rbp,%rax,1)
mov    -0x854(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x854(%rbp)
mov    -0x858(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x858(%rbp)
jmp    11bf <handle_request+0x5f>
movslq -0x854(%rbp),%rax
movb   $0x0,-0x430(%rbp,%rax,1)
movl   $0x0,-0x854(%rbp)
movslq -0x858(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%edi
ff
call   1070 <isspace@plt>
cmp    $0x0,%rax
je     1299 <handle_request+0x139>
mov    -0x858(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x858(%rbp)
jmp    1267 <handle_request+0x107>
jmp    129e <handle_request+0x13e>
movslq -0x858(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%edi
ff
call   1070 <isspace@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x85e(%rbp)
jne    12dd <handle_request+0x17d>
movslq -0x854(%rbp),%rax
cmp    $0x3ff,%rax
setb   %al
mov    %al,-0x85e(%rbp)
mov    -0x85e(%rbp),%al
test   $0x1,%al
jne    12f0 <handle_request+0x190>
jmp    132f <handle_request+0x1cf>
movslq -0x858(%rbp),%rax
mov    -0x410(%rbp,%rax,1),%cl
movslq -0x854(%rbp),%rax
mov    %cl,-0x830(%rbp,%rax,1)
mov    -0x854(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x854(%rbp)
mov    -0x858(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x858(%rbp)
jmp    129e <handle_request+0x13e>
movslq -0x854(%rbp),%rax
movb   $0x0,-0x830(%rbp,%rax,1)
lea    -0x830(%rbp),%rsi
lea    0xcd2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x854(%rbp)
movslq -0x858(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%edi
ff
call   1070 <isspace@plt>
cmp    $0x0,%rax
je     138f <handle_request+0x22f>
mov    -0x858(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x858(%rbp)
jmp    135d <handle_request+0x1fd>
jmp    1394 <handle_request+0x234>
movslq -0x858(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%ecx
ff
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x85f(%rbp)
je     13c8 <handle_request+0x268>
movslq -0x854(%rbp),%rax
cmp    $0x1f,%rax
setb   %al
mov    %al,-0x85f(%rbp)
mov    -0x85f(%rbp),%al
test   $0x1,%al
jne    13db <handle_request+0x27b>
jmp    141a <handle_request+0x2ba>
movslq -0x858(%rbp),%rax
mov    -0x410(%rbp,%rax,1),%cl
movslq -0x854(%rbp),%rax
mov    %cl,-0x850(%rbp,%rax,1)
mov    -0x854(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x854(%rbp)
mov    -0x858(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x858(%rbp)
jmp    1394 <handle_request+0x234>
movslq -0x854(%rbp),%rax
movb   $0x0,-0x850(%rbp,%rax,1)
lea    -0x430(%rbp),%rdi
lea    0xbf3(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    1483 <handle_request+0x323>
lea    -0x830(%rbp),%rsi
lea    0xbc7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x4(%rbp),%edi
lea    -0x830(%rbp),%rsi
call   1080 <response_GET@plt>
lea    -0x830(%rbp),%rsi
lea    0xbb7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    14be <handle_request+0x35e>
lea    -0x430(%rbp),%rdi
lea    0xbad(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    14b2 <handle_request+0x352>
lea    0xb9d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    14b9 <handle_request+0x359>
mov    $0x0,%al
call   1040 <NotSupportMethod@plt>
jmp    14be <handle_request+0x35e>
xor    %eax,%eax
add    $0x860,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<handle_request>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x828,%rsp
mov    %edi,%r14d
lea    0xeb2(%rip),%rdi
call   1040 <puts@plt>
lea    0x20(%rsp),%rbx
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x400,%edx
call   1060 <get_line@plt>
lea    0xe58(%rip),%rdi
xor    %ebp,%ebp
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x20(%rsp),%edi
call   1080 <isspace@plt>
test   %rax,%rax
jne    11f4 <handle_request+0x84>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
movzbl 0x20(%rsp,%rbx,1),%eax
mov    %al,(%rsp,%rbx,1)
lea    0x1(%rbx),%rbp
movsbl 0x21(%rsp,%rbx,1),%edi
call   1080 <isspace@plt>
test   %rax,%rax
jne    11f4 <handle_request+0x84>
cmp    $0x1e,%rbx
mov    %rbp,%rbx
jb     11d0 <handle_request+0x60>
movb   $0x0,(%rsp,%rbp,1)
add    $0xffffffffffffffff,%rbp
nopl   0x0(%rax)
movsbl 0x21(%rsp,%rbp,1),%edi
call   1080 <isspace@plt>
add    $0x1,%rbp
test   %rax,%rax
jne    1200 <handle_request+0x90>
mov    %ebp,%ebx
movsbl 0x20(%rsp,%rbx,1),%edi
call   1080 <isspace@plt>
test   %rax,%rax
je     1229 <handle_request+0xb9>
xor    %r15d,%r15d
jmp    1261 <handle_request+0xf1>
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
movzbl 0x20(%rsp,%rbx,1),%eax
mov    %al,0x420(%rsp,%rbp,1)
lea    0x1(%rbp),%r15
movsbl 0x21(%rsp,%rbx,1),%edi
add    $0x1,%rbx
call   1080 <isspace@plt>
test   %rax,%rax
jne    125f <handle_request+0xef>
cmp    $0x3fe,%rbp
mov    %r15,%rbp
jb     1230 <handle_request+0xc0>
mov    %ebx,%ebx
movb   $0x0,0x420(%rsp,%r15,1)
lea    0xd9d(%rip),%rdi
lea    0x420(%rsp),%rsi
xor    %eax,%eax
call   1070 <printf@plt>
add    %rsp,%rbx
add    $0x20,%rbx
nopw   0x0(%rax,%rax,1)
movsbl (%rbx),%edi
call   1080 <isspace@plt>
add    $0x1,%rbx
test   %rax,%rax
jne    1290 <handle_request+0x120>
lea    0xd72(%rip),%rsi
mov    %rsp,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     12d0 <handle_request+0x160>
lea    0xd73(%rip),%rsi
mov    %rsp,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     12fe <handle_request+0x18e>
xor    %eax,%eax
call   1050 <NotSupportMethod@plt>
jmp    130c <handle_request+0x19c>
lea    0x420(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1090 <response_GET@plt>
lea    0xd2c(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    130c <handle_request+0x19c>
lea    0xd2e(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
add    $0x828,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [16 x i8] c"Handle_request\0A\00"
@.str.1 = [14 x i8] c"get line: %s\0A\00"
@.str.2 = [12 x i8] c"Get URL:%s\0A\00"
@.str.3 = [4 x i8] c"GET\00"
@.str.4 = [4 x i8] c"%s\0A\00"
@.str.5 = [16 x i8] c"GET finished%s\0A\00"
@.str.6 = [5 x i8] c"POST\00"
@.str.7 = [6 x i8] c"hello\00"
define i32 @handle_request(i32 %0) {
%2 = alloca i32
%3 = alloca [1024 x i8]
%4 = alloca [32 x i8]
%5 = alloca [1024 x i8]
%6 = alloca [32 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %2
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* %2
%12 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%13 = call i32 @get_line(i32 %11, i8* %12, i32 1024)
store i32 %13, i32* %9
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %14)
store i32 0, i32* %7
store i32 0, i32* %8
br label %16
16: ; preds = %29, %1
%17 = load i32, i32* %8
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %18
%20 = load i8, i8* %19
%21 = call i64 @isspace(i8 signext %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %27, label %23
23: ; preds = %16
%24 = load i32, i32* %7
%25 = sext i32 %24 to i64
%26 = icmp ult i64 %25, 31
br label %27
27: ; preds = %23, %16
%28 = phi i1 [ false, %16 ], [ %26, %23 ]
br i1 %28, label %29, label %41
29: ; preds = %27
%30 = load i32, i32* %8
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %31
%33 = load i8, i8* %32
%34 = load i32, i32* %7
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 %35
store i8 %33, i8* %36
%37 = load i32, i32* %7
%38 = add nsw i32 %37, 1
store i32 %38, i32* %7
%39 = load i32, i32* %8
%40 = add nsw i32 %39, 1
store i32 %40, i32* %8
br label %16
41: ; preds = %27
%42 = load i32, i32* %7
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 %43
store i8 0, i8* %44
store i32 0, i32* %7
br label %45
45: ; preds = %52, %41
%46 = load i32, i32* %8
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %47
%49 = load i8, i8* %48
%50 = call i64 @isspace(i8 signext %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %45
%53 = load i32, i32* %8
%54 = add nsw i32 %53, 1
store i32 %54, i32* %8
br label %45
55: ; preds = %45
br label %56
56: ; preds = %69, %55
%57 = load i32, i32* %8
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %58
%60 = load i8, i8* %59
%61 = call i64 @isspace(i8 signext %60)
%62 = icmp ne i64 %61, 0
br i1 %62, label %67, label %63
63: ; preds = %56
%64 = load i32, i32* %7
%65 = sext i32 %64 to i64
%66 = icmp ult i64 %65, 1023
br label %67
67: ; preds = %63, %56
%68 = phi i1 [ false, %56 ], [ %66, %63 ]
br i1 %68, label %69, label %81
69: ; preds = %67
%70 = load i32, i32* %8
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %71
%73 = load i8, i8* %72
%74 = load i32, i32* %7
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 %75
store i8 %73, i8* %76
%77 = load i32, i32* %7
%78 = add nsw i32 %77, 1
store i32 %78, i32* %7
%79 = load i32, i32* %8
%80 = add nsw i32 %79, 1
store i32 %80, i32* %8
br label %56
81: ; preds = %67
%82 = load i32, i32* %7
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 %83
store i8 0, i8* %84
%85 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %85)
store i32 0, i32* %7
br label %87
87: ; preds = %94, %81
%88 = load i32, i32* %8
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %89
%91 = load i8, i8* %90
%92 = call i64 @isspace(i8 signext %91)
%93 = icmp ne i64 %92, 0
br i1 %93, label %94, label %97
94: ; preds = %87
%95 = load i32, i32* %8
%96 = add nsw i32 %95, 1
store i32 %96, i32* %8
br label %87
97: ; preds = %87
br label %98
98: ; preds = %111, %97
%99 = load i32, i32* %8
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %100
%102 = load i8, i8* %101
%103 = sext i8 %102 to i32
%104 = icmp ne i32 %103, 0
br i1 %104, label %105, label %109
105: ; preds = %98
%106 = load i32, i32* %7
%107 = sext i32 %106 to i64
%108 = icmp ult i64 %107, 31
br label %109
109: ; preds = %105, %98
%110 = phi i1 [ false, %98 ], [ %108, %105 ]
br i1 %110, label %111, label %123
111: ; preds = %109
%112 = load i32, i32* %8
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %113
%115 = load i8, i8* %114
%116 = load i32, i32* %7
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 %117
store i8 %115, i8* %118
%119 = load i32, i32* %7
%120 = add nsw i32 %119, 1
store i32 %120, i32* %7
%121 = load i32, i32* %8
%122 = add nsw i32 %121, 1
store i32 %122, i32* %8
br label %98
123: ; preds = %109
%124 = load i32, i32* %7
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 %125
store i8 0, i8* %126
%127 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%128 = call i32 @strcasecmp(i8* %127, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%129 = icmp ne i32 %128, 0
br i1 %129, label %138, label %130
130: ; preds = %123
%131 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %131)
%133 = load i32, i32* %2
%134 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%135 = call i32 @response_GET(i32 %133, i8* %134)
%136 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* %136)
br label %147
138: ; preds = %123
%139 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%140 = call i32 @strcasecmp(i8* %139, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%141 = icmp ne i32 %140, 0
br i1 %141, label %144, label %142
142: ; preds = %138
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %146
144: ; preds = %138
%145 = call i32 (...) @NotSupportMethod()
br label %146
146: ; preds = %144, %142
br label %147
147: ; preds = %146, %130
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [14 x i8] c"get line: %s\0A\00"
@.str.2 = [12 x i8] c"Get URL:%s\0A\00"
@.str.3 = [4 x i8] c"GET\00"
@.str.5 = [16 x i8] c"GET finished%s\0A\00"
@.str.6 = [5 x i8] c"POST\00"
@.str.7 = [6 x i8] c"hello\00"
@str = [15 x i8] c"Handle_request\00"
define i32 @handle_request(i32 %0) {
%2 = alloca [1024 x i8]
%3 = alloca [32 x i8]
%4 = alloca [1024 x i8]
%5 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%9 = call i32 @get_line(i32 %0, i8* %5, i32 1024)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%11 = load i8, i8* %5
%12 = call i64 @isspace(i8 signext %11)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %26
14: ; preds = %1, %14
%15 = phi i64 [ %19, %14 ], [ 0, %1 ]
%16 = phi i8* [ %20, %14 ], [ %5, %1 ]
%17 = load i8, i8* %16
%18 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 %15
store i8 %17, i8* %18
%19 = add nuw nsw i64 %15, 1
%20 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %19
%21 = load i8, i8* %20
%22 = call i64 @isspace(i8 signext %21)
%23 = icmp eq i64 %22, 0
%24 = icmp ult i64 %15, 30
%25 = select i1 %23, i1 %24, i1 false
br i1 %25, label %14, label %26
26: ; preds = %14, %1
%27 = phi i64 [ 0, %1 ], [ %19, %14 ]
%28 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 %27
store i8 0, i8* %28
br label %29
29: ; preds = %29, %26
%30 = phi i64 [ %35, %29 ], [ %27, %26 ]
%31 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %30
%32 = load i8, i8* %31
%33 = call i64 @isspace(i8 signext %32)
%34 = icmp eq i64 %33, 0
%35 = add nuw i64 %30, 1
br i1 %34, label %36, label %29
36: ; preds = %29
%37 = and i64 %30, 4294967295
%38 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %37
%39 = load i8, i8* %38
%40 = call i64 @isspace(i8 signext %39)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %58
42: ; preds = %36, %42
%43 = phi i64 [ %49, %42 ], [ %37, %36 ]
%44 = phi i64 [ %48, %42 ], [ 0, %36 ]
%45 = phi i8* [ %50, %42 ], [ %38, %36 ]
%46 = load i8, i8* %45
%47 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 %44
store i8 %46, i8* %47
%48 = add nuw nsw i64 %44, 1
%49 = add nuw nsw i64 %43, 1
%50 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %49
%51 = load i8, i8* %50
%52 = call i64 @isspace(i8 signext %51)
%53 = icmp eq i64 %52, 0
%54 = icmp ult i64 %44, 1022
%55 = select i1 %53, i1 %54, i1 false
br i1 %55, label %42, label %56
56: ; preds = %42
%57 = and i64 %49, 4294967295
br label %58
58: ; preds = %56, %36
%59 = phi i64 [ %57, %56 ], [ %37, %36 ]
%60 = phi i64 [ %48, %56 ], [ 0, %36 ]
%61 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 %60
store i8 0, i8* %61
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %7)
br label %63
63: ; preds = %63, %58
%64 = phi i64 [ %69, %63 ], [ %59, %58 ]
%65 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %64
%66 = load i8, i8* %65
%67 = call i64 @isspace(i8 signext %66)
%68 = icmp eq i64 %67, 0
%69 = add nuw i64 %64, 1
br i1 %68, label %70, label %63
70: ; preds = %63
%71 = call i32 @strcasecmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %77
73: ; preds = %70
%74 = call i32 @puts(i8* %7)
%75 = call i32 @response_GET(i32 %0, i8* %7)
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* %7)
br label %84
77: ; preds = %70
%78 = call i32 @strcasecmp(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%79 = icmp eq i32 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %84
82: ; preds = %77
%83 = call i32 (...) @NotSupportMethod()
br label %84
84: ; preds = %80, %82, %73
ret i32 0
}