; LLVM IR from russellsayshi/CeeBeeServer :: main (main)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.HTTP_request = type { i32, [255 x i8], i32, ptr, ptr }
%struct.timeval = type { i64, i64 }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%struct.ll_item = type { ptr, ptr }
%struct.header = type { ptr, ptr }

@stderr = external global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [18 x i8], align 1
@__const.main.vars = external hidden unnamed_addr constant [2 x [2 x ptr]], align 16
@.str.75 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [32 x i8], align 1
@__const.main.vars.88 = external hidden unnamed_addr constant [2 x [2 x ptr]], align 16
@.str.89 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [9 x i8], align 1
@__const.main.vars.128 = external hidden unnamed_addr constant [2 x [2 x ptr]], align 16
@.str.129 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @generate_raw_response(i32 noundef, ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

declare void @perror(ptr noundef) #5

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6

; Function Attrs: nounwind uwtable
declare dso_local ptr @generate_text_response(i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @generate_html_response(i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @generate_plaintext_response(i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @read_file_raw(ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @serve_page(i32 noundef, ptr noundef) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @render_page(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1

declare i64 @send(i32 noundef, ptr noundef, i64 noundef, i32 noundef) #5

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

declare i32 @close(i32 noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local ptr @get_method_name(i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @destroy_header(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @parse_request(ptr dead_on_unwind noalias writable sret(%struct.HTTP_request) align 8, ptr noundef) #1

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #3

declare i32 @printf(ptr noundef, ...) #5

; Function Attrs: nounwind uwtable
declare dso_local ptr @read_post_name(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @read_post_val_alloc(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @stringcat(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @mstringcat(i32 noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.timeval, align 8
  %7 = alloca %struct.timeval, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.sockaddr_in, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [4096 x i8], align 16
  %15 = alloca %struct.HTTP_request, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca [3 x [2 x ptr]], align 16
  %28 = alloca [2 x [2 x ptr]], align 16
  %29 = alloca [2 x [2 x ptr]], align 16
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca [5 x [2 x ptr]], align 16
  %39 = alloca [2 x [2 x ptr]], align 16
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca [1 x [2 x ptr]], align 16
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca i64, align 8
  %50 = alloca i64, align 8
  %51 = alloca i64, align 8
  %52 = alloca i64, align 8
  %53 = alloca i64, align 8
  %54 = alloca i64, align 8
  %55 = alloca i64, align 8
  %56 = alloca i64, align 8
  %57 = alloca ptr, align 8
  %58 = alloca ptr, align 8
  %59 = alloca ptr, align 8
  %60 = alloca i64, align 8
  %61 = alloca i32, align 4
  %62 = alloca [2 x [2 x ptr]], align 16
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  store i32 1, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  store i32 16, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4096, ptr %14) #10
  call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 4096, i1 false)
  %63 = call i32 @socket(i32 noundef 2, i32 noundef 1, i32 noundef 0) #10
  store i32 %63, ptr %8, align 4, !tbaa !5
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %2
  call void @perror(ptr noundef @.str.48)
  call void @exit(i32 noundef 1) #11
  unreachable

66:                                               ; preds = %2
  %67 = load i32, ptr %8, align 4, !tbaa !5
  %68 = call i32 @setsockopt(i32 noundef %67, i32 noundef 1, i32 noundef 2, ptr noundef %12, i32 noundef 4) #10
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %66
  call void @perror(ptr noundef @.str.49)
  call void @exit(i32 noundef 1) #11
  unreachable

71:                                               ; preds = %66
  %72 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 0
  store i16 2, ptr %72, align 4, !tbaa !11
  %73 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 2
  %74 = getelementptr inbounds %struct.in_addr, ptr %73, i32 0, i32 0
  store i32 0, ptr %74, align 4, !tbaa !15
  %75 = call zeroext i16 @__bswap_16(i16 noundef zeroext 8080)
  %76 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 1
  store i16 %75, ptr %76, align 2, !tbaa !16
  %77 = load i32, ptr %8, align 4, !tbaa !5
  %78 = call i32 @bind(i32 noundef %77, ptr noundef %11, i32 noundef 16) #10
  %79 = icmp slt i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %71
  call void @perror(ptr noundef @.str.50)
  call void @exit(i32 noundef 1) #11
  unreachable

81:                                               ; preds = %71
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = call i32 @listen(i32 noundef %82, i32 noundef 3) #10
  %84 = icmp slt i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %81
  call void @perror(ptr noundef @.str.51)
  call void @exit(i32 noundef 1) #11
  unreachable

86:                                               ; preds = %81
  br label %87

87:                                               ; preds = %770, %768, %86
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %8, align 4, !tbaa !5
  %90 = call i32 @accept(i32 noundef %89, ptr noundef %11, ptr noundef %13)
  store i32 %90, ptr %9, align 4, !tbaa !5
  %91 = icmp slt i32 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %88
  call void @perror(ptr noundef @.str.52)
  call void @exit(i32 noundef 1) #11
  unreachable

93:                                               ; preds = %88
  %94 = load i32, ptr %9, align 4, !tbaa !5
  %95 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %96 = call i64 @read(i32 noundef %94, ptr noundef %95, i64 noundef 4095)
  %97 = trunc i64 %96 to i32
  store i32 %97, ptr %10, align 4, !tbaa !5
  %98 = load i32, ptr %10, align 4, !tbaa !5
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.53, i32 noundef %98)
  %100 = load i32, ptr %10, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 %101
  store i8 0, ptr %102, align 1, !tbaa !17
  %103 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.54, ptr noundef %103)
  %105 = call i32 @gettimeofday(ptr noundef %6, ptr noundef null) #10
  call void @llvm.lifetime.start.p0(i64 280, ptr %15) #10
  %106 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  call void @parse_request(ptr dead_on_unwind writable sret(%struct.HTTP_request) align 8 %15, ptr noundef %106)
  %107 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 2
  %108 = load i32, ptr %107, align 4, !tbaa !18
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %124

110:                                              ; preds = %93
  %111 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.55, ptr noundef %111)
  %113 = load ptr, ptr @stderr, align 8, !tbaa !9
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.56) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %115 = call ptr @generate_plaintext_response(i32 noundef 400, ptr noundef @.str.57)
  store ptr %115, ptr %16, align 8, !tbaa !9
  %116 = load i32, ptr %9, align 4, !tbaa !5
  %117 = load ptr, ptr %16, align 8, !tbaa !9
  %118 = load ptr, ptr %16, align 8, !tbaa !9
  %119 = call i64 @strlen(ptr noundef %118) #12
  %120 = call i64 @send(i32 noundef %116, ptr noundef %117, i64 noundef %119, i32 noundef 0)
  %121 = load ptr, ptr %16, align 8, !tbaa !9
  call void @free(ptr noundef %121) #10
  %122 = load i32, ptr %9, align 4, !tbaa !5
  %123 = call i32 @close(i32 noundef %122)
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  br label %768

124:                                              ; preds = %93
  %125 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 0
  %126 = load i32, ptr %125, align 8, !tbaa !20
  %127 = call ptr @get_method_name(i32 noundef %126)
  %128 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %129 = getelementptr inbounds [255 x i8], ptr %128, i64 0, i64 0
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.58, ptr noundef %127, ptr noundef %129)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  store ptr null, ptr %18, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %132 = getelementptr inbounds [255 x i8], ptr %131, i64 0, i64 0
  %133 = call i32 @strcmp(ptr noundef %132, ptr noundef @.str.59) #12
  %134 = icmp eq i32 %133, 0
  br i1 %134, label %135, label %218

135:                                              ; preds = %124
  %136 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 0
  %137 = load i32, ptr %136, align 8, !tbaa !20
  %138 = icmp eq i32 %137, 0
  br i1 %138, label %139, label %141

139:                                              ; preds = %135
  %140 = call ptr @serve_page(i32 noundef 200, ptr noundef @.str.60)
  store ptr %140, ptr %18, align 8, !tbaa !9
  br label %217

141:                                              ; preds = %135
  %142 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 0
  %143 = load i32, ptr %142, align 8, !tbaa !20
  %144 = icmp eq i32 %143, 1
  br i1 %144, label %145, label %214

145:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  %146 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 3
  %147 = load ptr, ptr %146, align 8, !tbaa !21
  store ptr %147, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %148 = load ptr, ptr %19, align 8, !tbaa !9
  %149 = call i64 @strlen(ptr noundef %148) #12
  store i64 %149, ptr %20, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  %150 = load i64, ptr %20, align 8, !tbaa !22
  %151 = add i64 %150, 1
  %152 = mul i64 %151, 1
  %153 = call noalias ptr @malloc(i64 noundef %152) #13
  store ptr %153, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %154 = load ptr, ptr %21, align 8, !tbaa !9
  store ptr %154, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  store ptr @.str.61, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #10
  store i32 0, ptr %24, align 4, !tbaa !5
  %155 = load ptr, ptr %21, align 8, !tbaa !9
  %156 = load ptr, ptr %19, align 8, !tbaa !9
  %157 = load i64, ptr %20, align 8, !tbaa !22
  %158 = call ptr @strncpy(ptr noundef %155, ptr noundef %156, i64 noundef %157) #10
  %159 = load ptr, ptr %21, align 8, !tbaa !9
  %160 = load i64, ptr %20, align 8, !tbaa !22
  %161 = getelementptr inbounds i8, ptr %159, i64 %160
  store i8 0, ptr %161, align 1, !tbaa !17
  br label %162

162:                                              ; preds = %194, %145
  br label %163

163:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  %164 = call ptr @read_post_name(ptr noundef %21)
  store ptr %164, ptr %25, align 8, !tbaa !9
  %165 = load ptr, ptr %25, align 8, !tbaa !9
  %166 = icmp eq ptr %165, null
  br i1 %166, label %167, label %168

167:                                              ; preds = %163
  store i32 5, ptr %17, align 4
  br label %192

168:                                              ; preds = %163
  %169 = load ptr, ptr %25, align 8, !tbaa !9
  %170 = call i32 (ptr, ...) @printf(ptr noundef @.str.62, ptr noundef %169)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %171 = call ptr @read_post_val_alloc(ptr noundef %21)
  store ptr %171, ptr %26, align 8, !tbaa !9
  %172 = load ptr, ptr %26, align 8, !tbaa !9
  %173 = icmp eq ptr %172, null
  br i1 %173, label %174, label %175

174:                                              ; preds = %168
  store i32 5, ptr %17, align 4
  br label %191

175:                                              ; preds = %168
  %176 = load ptr, ptr %26, align 8, !tbaa !9
  %177 = call i32 (ptr, ...) @printf(ptr noundef @.str.63, ptr noundef %176)
  %178 = load ptr, ptr %25, align 8, !tbaa !9
  %179 = call i32 @strcmp(ptr noundef %178, ptr noundef @.str.64) #12
  %180 = icmp eq i32 %179, 0
  br i1 %180, label %181, label %188

181:                                              ; preds = %175
  %182 = load i32, ptr %24, align 4, !tbaa !5
  %183 = icmp ne i32 %182, 0
  br i1 %183, label %188, label %184

184:                                              ; preds = %181
  %185 = load ptr, ptr %26, align 8, !tbaa !9
  store ptr %185, ptr %23, align 8, !tbaa !9
  %186 = load ptr, ptr %23, align 8, !tbaa !9
  %187 = call i32 (ptr, ...) @printf(ptr noundef @.str.65, ptr noundef %186)
  store i32 1, ptr %24, align 4, !tbaa !5
  br label %190

188:                                              ; preds = %181, %175
  %189 = load ptr, ptr %26, align 8, !tbaa !9
  call void @free(ptr noundef %189) #10
  br label %190

190:                                              ; preds = %188, %184
  store i32 0, ptr %17, align 4
  br label %191

191:                                              ; preds = %190, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  br label %192

192:                                              ; preds = %191, %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  %193 = load i32, ptr %17, align 4
  switch i32 %193, label %771 [
    i32 0, label %194
    i32 5, label %195
  ]

194:                                              ; preds = %192
  br label %162

195:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 48, ptr %27) #10
  store ptr @.str.66, ptr %27, align 8, !tbaa !9
  %196 = getelementptr inbounds ptr, ptr %27, i64 1
  %197 = load ptr, ptr %19, align 8, !tbaa !9
  store ptr %197, ptr %196, align 8, !tbaa !9
  %198 = getelementptr inbounds [2 x ptr], ptr %27, i64 1
  store ptr @.str.67, ptr %198, align 8, !tbaa !9
  %199 = getelementptr inbounds ptr, ptr %198, i64 1
  %200 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  store ptr %200, ptr %199, align 8, !tbaa !9
  %201 = getelementptr inbounds [2 x ptr], ptr %27, i64 2
  store ptr @.str.68, ptr %201, align 8, !tbaa !9
  %202 = getelementptr inbounds ptr, ptr %201, i64 1
  %203 = load ptr, ptr %23, align 8, !tbaa !9
  store ptr %203, ptr %202, align 8, !tbaa !9
  %204 = load i32, ptr %9, align 4, !tbaa !5
  %205 = getelementptr inbounds [3 x [2 x ptr]], ptr %27, i64 0, i64 0
  call void @render_page(i32 noundef %204, i32 noundef 200, ptr noundef @.str.69, ptr noundef %205, i32 noundef 3)
  %206 = load ptr, ptr %23, align 8, !tbaa !9
  %207 = call i32 (ptr, ...) @printf(ptr noundef @.str.70, ptr noundef %206)
  %208 = load i32, ptr %24, align 4, !tbaa !5
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %212

210:                                              ; preds = %195
  %211 = load ptr, ptr %23, align 8, !tbaa !9
  call void @free(ptr noundef %211) #10
  br label %212

212:                                              ; preds = %210, %195
  %213 = load ptr, ptr %22, align 8, !tbaa !9
  call void @free(ptr noundef %213) #10
  store i32 6, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  br label %728

214:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 @__const.main.vars, i64 32, i1 false)
  %215 = load i32, ptr %9, align 4, !tbaa !5
  %216 = getelementptr inbounds [2 x [2 x ptr]], ptr %28, i64 0, i64 0
  call void @render_page(i32 noundef %215, i32 noundef 405, ptr noundef @.str.75, ptr noundef %216, i32 noundef 2)
  store i32 6, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #10
  br label %728

217:                                              ; preds = %139
  br label %713

218:                                              ; preds = %124
  %219 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 0
  %220 = load i32, ptr %219, align 8, !tbaa !20
  %221 = icmp eq i32 %220, 0
  br i1 %221, label %222, label %241

222:                                              ; preds = %218
  %223 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %224 = getelementptr inbounds [255 x i8], ptr %223, i64 0, i64 0
  %225 = call i32 @strncmp(ptr noundef %224, ptr noundef @.str.76, i64 noundef 6) #12
  %226 = icmp eq i32 %225, 0
  br i1 %226, label %227, label %241

227:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #10
  store ptr @.str.77, ptr %29, align 8, !tbaa !9
  %228 = getelementptr inbounds ptr, ptr %29, i64 1
  %229 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %230 = getelementptr inbounds [255 x i8], ptr %229, i64 0, i64 0
  %231 = getelementptr inbounds i8, ptr %230, i64 6
  store ptr %231, ptr %228, align 8, !tbaa !9
  %232 = getelementptr inbounds [2 x ptr], ptr %29, i64 1
  %233 = getelementptr inbounds [2 x ptr], ptr %29, i64 2
  br label %234

234:                                              ; preds = %234, %227
  %235 = phi ptr [ %232, %227 ], [ %236, %234 ]
  call void @llvm.memset.p0.i64(ptr align 16 %235, i8 0, i64 16, i1 false)
  %236 = getelementptr inbounds [2 x ptr], ptr %235, i64 1
  %237 = icmp eq ptr %236, %233
  br i1 %237, label %238, label %234

238:                                              ; preds = %234
  %239 = load i32, ptr %9, align 4, !tbaa !5
  %240 = getelementptr inbounds [2 x [2 x ptr]], ptr %29, i64 0, i64 0
  call void @render_page(i32 noundef %239, i32 noundef 200, ptr noundef @.str.78, ptr noundef %240, i32 noundef 1)
  store i32 6, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #10
  br label %728

241:                                              ; preds = %222, %218
  %242 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %243 = getelementptr inbounds [255 x i8], ptr %242, i64 0, i64 0
  %244 = call i32 @strcmp(ptr noundef %243, ptr noundef @.str.79) #12
  %245 = icmp eq i32 %244, 0
  br i1 %245, label %246, label %349

246:                                              ; preds = %241
  %247 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 0
  %248 = load i32, ptr %247, align 8, !tbaa !20
  %249 = icmp eq i32 %248, 0
  br i1 %249, label %250, label %252

250:                                              ; preds = %246
  %251 = call ptr @serve_page(i32 noundef 200, ptr noundef @.str.80)
  store ptr %251, ptr %18, align 8, !tbaa !9
  br label %348

252:                                              ; preds = %246
  %253 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 0
  %254 = load i32, ptr %253, align 8, !tbaa !20
  %255 = icmp eq i32 %254, 1
  br i1 %255, label %256, label %344

256:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #10
  %257 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 3
  %258 = load ptr, ptr %257, align 8, !tbaa !21
  %259 = call i64 @strlen(ptr noundef %258) #12
  %260 = add i64 %259, 1
  %261 = call noalias ptr @malloc(i64 noundef %260) #13
  store ptr %261, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #10
  %262 = load ptr, ptr %30, align 8, !tbaa !9
  store ptr %262, ptr %31, align 8, !tbaa !9
  %263 = load ptr, ptr %30, align 8, !tbaa !9
  %264 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 3
  %265 = load ptr, ptr %264, align 8, !tbaa !21
  %266 = call ptr @strcpy(ptr noundef %263, ptr noundef %265) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  store ptr null, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #10
  store ptr null, ptr %33, align 8, !tbaa !9
  br label %267

267:                                              ; preds = %303, %256
  br label %268

268:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #10
  %269 = call ptr @read_post_name(ptr noundef %30)
  store ptr %269, ptr %34, align 8, !tbaa !9
  %270 = load ptr, ptr %34, align 8, !tbaa !9
  %271 = icmp eq ptr %270, null
  br i1 %271, label %272, label %273

272:                                              ; preds = %268
  store i32 8, ptr %17, align 4
  br label %301

273:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #10
  %274 = call ptr @read_post_val_alloc(ptr noundef %30)
  store ptr %274, ptr %35, align 8, !tbaa !9
  %275 = load ptr, ptr %35, align 8, !tbaa !9
  %276 = icmp eq ptr %275, null
  br i1 %276, label %277, label %278

277:                                              ; preds = %273
  store i32 8, ptr %17, align 4
  br label %300

278:                                              ; preds = %273
  %279 = load ptr, ptr %34, align 8, !tbaa !9
  %280 = call i32 @strcmp(ptr noundef %279, ptr noundef @.str.81) #12
  %281 = icmp eq i32 %280, 0
  br i1 %281, label %282, label %287

282:                                              ; preds = %278
  %283 = load ptr, ptr %32, align 8, !tbaa !9
  %284 = icmp eq ptr %283, null
  br i1 %284, label %285, label %287

285:                                              ; preds = %282
  %286 = load ptr, ptr %35, align 8, !tbaa !9
  store ptr %286, ptr %32, align 8, !tbaa !9
  br label %299

287:                                              ; preds = %282, %278
  %288 = load ptr, ptr %34, align 8, !tbaa !9
  %289 = call i32 @strcmp(ptr noundef %288, ptr noundef @.str.82) #12
  %290 = icmp eq i32 %289, 0
  br i1 %290, label %291, label %296

291:                                              ; preds = %287
  %292 = load ptr, ptr %33, align 8, !tbaa !9
  %293 = icmp eq ptr %292, null
  br i1 %293, label %294, label %296

294:                                              ; preds = %291
  %295 = load ptr, ptr %35, align 8, !tbaa !9
  store ptr %295, ptr %33, align 8, !tbaa !9
  br label %298

296:                                              ; preds = %291, %287
  %297 = load ptr, ptr %35, align 8, !tbaa !9
  call void @free(ptr noundef %297) #10
  br label %298

298:                                              ; preds = %296, %294
  br label %299

299:                                              ; preds = %298, %285
  store i32 0, ptr %17, align 4
  br label %300

300:                                              ; preds = %299, %277
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #10
  br label %301

301:                                              ; preds = %300, %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #10
  %302 = load i32, ptr %17, align 4
  switch i32 %302, label %771 [
    i32 0, label %303
    i32 8, label %304
  ]

303:                                              ; preds = %301
  br label %267

304:                                              ; preds = %301
  %305 = load ptr, ptr %32, align 8, !tbaa !9
  %306 = icmp ne ptr %305, null
  br i1 %306, label %307, label %330

307:                                              ; preds = %304
  %308 = load ptr, ptr %33, align 8, !tbaa !9
  %309 = icmp ne ptr %308, null
  br i1 %309, label %310, label %330

310:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #10
  %311 = load ptr, ptr %32, align 8, !tbaa !9
  %312 = call ptr @stringcat(ptr noundef @.str.83, ptr noundef %311)
  store ptr %312, ptr %36, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #10
  %313 = load ptr, ptr %33, align 8, !tbaa !9
  %314 = call ptr @stringcat(ptr noundef @.str.84, ptr noundef %313)
  store ptr %314, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 80, ptr %38) #10
  store ptr @.str.20, ptr %38, align 8, !tbaa !9
  %315 = getelementptr inbounds ptr, ptr %38, i64 1
  store ptr @.str.26, ptr %315, align 8, !tbaa !9
  %316 = getelementptr inbounds [2 x ptr], ptr %38, i64 1
  store ptr @.str.21, ptr %316, align 8, !tbaa !9
  %317 = getelementptr inbounds ptr, ptr %316, i64 1
  store ptr @.str.22, ptr %317, align 8, !tbaa !9
  %318 = getelementptr inbounds [2 x ptr], ptr %38, i64 2
  store ptr @.str.23, ptr %318, align 8, !tbaa !9
  %319 = getelementptr inbounds ptr, ptr %318, i64 1
  store ptr @.str.24, ptr %319, align 8, !tbaa !9
  %320 = getelementptr inbounds [2 x ptr], ptr %38, i64 3
  store ptr @.str.85, ptr %320, align 8, !tbaa !9
  %321 = getelementptr inbounds ptr, ptr %320, i64 1
  %322 = load ptr, ptr %36, align 8, !tbaa !9
  store ptr %322, ptr %321, align 8, !tbaa !9
  %323 = getelementptr inbounds [2 x ptr], ptr %38, i64 4
  store ptr @.str.85, ptr %323, align 8, !tbaa !9
  %324 = getelementptr inbounds ptr, ptr %323, i64 1
  %325 = load ptr, ptr %37, align 8, !tbaa !9
  store ptr %325, ptr %324, align 8, !tbaa !9
  %326 = getelementptr inbounds [5 x [2 x ptr]], ptr %38, i64 0, i64 0
  %327 = call ptr @generate_raw_response(i32 noundef 200, ptr noundef %326, i64 noundef 5, ptr noundef @.str.86)
  store ptr %327, ptr %18, align 8, !tbaa !9
  %328 = load ptr, ptr %36, align 8, !tbaa !9
  call void @free(ptr noundef %328) #10
  %329 = load ptr, ptr %37, align 8, !tbaa !9
  call void @free(ptr noundef %329) #10
  call void @llvm.lifetime.end.p0(i64 80, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  br label %332

330:                                              ; preds = %307, %304
  %331 = call ptr @generate_plaintext_response(i32 noundef 400, ptr noundef @.str.87)
  store ptr %331, ptr %18, align 8, !tbaa !9
  br label %332

332:                                              ; preds = %330, %310
  %333 = load ptr, ptr %32, align 8, !tbaa !9
  %334 = icmp ne ptr %333, null
  br i1 %334, label %335, label %337

335:                                              ; preds = %332
  %336 = load ptr, ptr %32, align 8, !tbaa !9
  call void @free(ptr noundef %336) #10
  br label %337

337:                                              ; preds = %335, %332
  %338 = load ptr, ptr %33, align 8, !tbaa !9
  %339 = icmp ne ptr %338, null
  br i1 %339, label %340, label %342

340:                                              ; preds = %337
  %341 = load ptr, ptr %33, align 8, !tbaa !9
  call void @free(ptr noundef %341) #10
  br label %342

342:                                              ; preds = %340, %337
  %343 = load ptr, ptr %31, align 8, !tbaa !9
  call void @free(ptr noundef %343) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  br label %347

344:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 @__const.main.vars.88, i64 32, i1 false)
  %345 = load i32, ptr %9, align 4, !tbaa !5
  %346 = getelementptr inbounds [2 x [2 x ptr]], ptr %39, i64 0, i64 0
  call void @render_page(i32 noundef %345, i32 noundef 405, ptr noundef @.str.75, ptr noundef %346, i32 noundef 2)
  store i32 6, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #10
  br label %728

347:                                              ; preds = %342
  br label %348

348:                                              ; preds = %347, %250
  br label %711

349:                                              ; preds = %241
  %350 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 0
  %351 = load i32, ptr %350, align 8, !tbaa !20
  %352 = icmp eq i32 %351, 0
  br i1 %352, label %353, label %398

353:                                              ; preds = %349
  %354 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %355 = getelementptr inbounds [255 x i8], ptr %354, i64 0, i64 0
  %356 = call i32 @strcmp(ptr noundef %355, ptr noundef @.str.89) #12
  %357 = icmp eq i32 %356, 0
  br i1 %357, label %358, label %398

358:                                              ; preds = %353
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #10
  %359 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 4
  %360 = load ptr, ptr %359, align 8, !tbaa !24
  store ptr %360, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #10
  store ptr null, ptr %41, align 8, !tbaa !9
  br label %361

361:                                              ; preds = %383, %358
  %362 = load ptr, ptr %40, align 8, !tbaa !9
  %363 = icmp ne ptr %362, null
  br i1 %363, label %364, label %384

364:                                              ; preds = %361
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #10
  %365 = load ptr, ptr %40, align 8, !tbaa !9
  %366 = getelementptr inbounds %struct.ll_item, ptr %365, i32 0, i32 0
  %367 = load ptr, ptr %366, align 8, !tbaa !25
  store ptr %367, ptr %42, align 8, !tbaa !9
  %368 = load ptr, ptr %42, align 8, !tbaa !9
  %369 = getelementptr inbounds %struct.header, ptr %368, i32 0, i32 0
  %370 = load ptr, ptr %369, align 8, !tbaa !27
  %371 = call i32 @strcasecmp(ptr noundef %370, ptr noundef @.str.90) #12
  %372 = icmp eq i32 %371, 0
  br i1 %372, label %373, label %377

373:                                              ; preds = %364
  %374 = load ptr, ptr %42, align 8, !tbaa !9
  %375 = getelementptr inbounds %struct.header, ptr %374, i32 0, i32 1
  %376 = load ptr, ptr %375, align 8, !tbaa !29
  store ptr %376, ptr %41, align 8, !tbaa !9
  store i32 10, ptr %17, align 4
  br label %381

377:                                              ; preds = %364
  %378 = load ptr, ptr %40, align 8, !tbaa !9
  %379 = getelementptr inbounds %struct.ll_item, ptr %378, i32 0, i32 1
  %380 = load ptr, ptr %379, align 8, !tbaa !30
  store ptr %380, ptr %40, align 8, !tbaa !9
  store i32 0, ptr %17, align 4
  br label %381

381:                                              ; preds = %377, %373
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #10
  %382 = load i32, ptr %17, align 4
  switch i32 %382, label %771 [
    i32 0, label %383
    i32 10, label %384
  ]

383:                                              ; preds = %381
  br label %361, !llvm.loop !31

384:                                              ; preds = %381, %361
  %385 = load ptr, ptr %41, align 8, !tbaa !9
  %386 = icmp eq ptr %385, null
  br i1 %386, label %387, label %389

387:                                              ; preds = %384
  %388 = call ptr @generate_plaintext_response(i32 noundef 200, ptr noundef @.str.91)
  store ptr %388, ptr %18, align 8, !tbaa !9
  br label %394

389:                                              ; preds = %384
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #10
  store ptr @.str.68, ptr %43, align 8, !tbaa !9
  %390 = getelementptr inbounds ptr, ptr %43, i64 1
  %391 = load ptr, ptr %41, align 8, !tbaa !9
  store ptr %391, ptr %390, align 8, !tbaa !9
  %392 = load i32, ptr %9, align 4, !tbaa !5
  %393 = getelementptr inbounds [1 x [2 x ptr]], ptr %43, i64 0, i64 0
  call void @render_page(i32 noundef %392, i32 noundef 200, ptr noundef @.str.92, ptr noundef %393, i32 noundef 1)
  store i32 6, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #10
  br label %395

394:                                              ; preds = %387
  store i32 0, ptr %17, align 4
  br label %395

395:                                              ; preds = %394, %389
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  %396 = load i32, ptr %17, align 4
  switch i32 %396, label %771 [
    i32 0, label %397
    i32 6, label %728
  ]

397:                                              ; preds = %395
  br label %710

398:                                              ; preds = %353, %349
  %399 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 0
  %400 = load i32, ptr %399, align 8, !tbaa !20
  %401 = icmp eq i32 %400, 0
  br i1 %401, label %402, label %409

402:                                              ; preds = %398
  %403 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %404 = getelementptr inbounds [255 x i8], ptr %403, i64 0, i64 0
  %405 = call i32 @strcmp(ptr noundef %404, ptr noundef @.str.93) #12
  %406 = icmp eq i32 %405, 0
  br i1 %406, label %407, label %409

407:                                              ; preds = %402
  %408 = call ptr @generate_plaintext_response(i32 noundef 200, ptr noundef @.str.94)
  store ptr %408, ptr %18, align 8, !tbaa !9
  br label %709

409:                                              ; preds = %402, %398
  %410 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 0
  %411 = load i32, ptr %410, align 8, !tbaa !20
  %412 = icmp eq i32 %411, 0
  br i1 %412, label %413, label %492

413:                                              ; preds = %409
  %414 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %415 = getelementptr inbounds [255 x i8], ptr %414, i64 0, i64 0
  %416 = call i32 @strcmp(ptr noundef %415, ptr noundef @.str.95) #12
  %417 = icmp eq i32 %416, 0
  br i1 %417, label %418, label %492

418:                                              ; preds = %413
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #10
  %419 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 4
  %420 = load ptr, ptr %419, align 8, !tbaa !24
  store ptr %420, ptr %44, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #10
  store ptr null, ptr %45, align 8, !tbaa !9
  br label %421

421:                                              ; preds = %443, %418
  %422 = load ptr, ptr %44, align 8, !tbaa !9
  %423 = icmp ne ptr %422, null
  br i1 %423, label %424, label %444

424:                                              ; preds = %421
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #10
  %425 = load ptr, ptr %44, align 8, !tbaa !9
  %426 = getelementptr inbounds %struct.ll_item, ptr %425, i32 0, i32 0
  %427 = load ptr, ptr %426, align 8, !tbaa !25
  store ptr %427, ptr %46, align 8, !tbaa !9
  %428 = load ptr, ptr %46, align 8, !tbaa !9
  %429 = getelementptr inbounds %struct.header, ptr %428, i32 0, i32 0
  %430 = load ptr, ptr %429, align 8, !tbaa !27
  %431 = call i32 @strcasecmp(ptr noundef %430, ptr noundef @.str.96) #12
  %432 = icmp eq i32 %431, 0
  br i1 %432, label %433, label %437

433:                                              ; preds = %424
  %434 = load ptr, ptr %46, align 8, !tbaa !9
  %435 = getelementptr inbounds %struct.header, ptr %434, i32 0, i32 1
  %436 = load ptr, ptr %435, align 8, !tbaa !29
  store ptr %436, ptr %45, align 8, !tbaa !9
  store i32 12, ptr %17, align 4
  br label %441

437:                                              ; preds = %424
  %438 = load ptr, ptr %44, align 8, !tbaa !9
  %439 = getelementptr inbounds %struct.ll_item, ptr %438, i32 0, i32 1
  %440 = load ptr, ptr %439, align 8, !tbaa !30
  store ptr %440, ptr %44, align 8, !tbaa !9
  store i32 0, ptr %17, align 4
  br label %441

441:                                              ; preds = %437, %433
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #10
  %442 = load i32, ptr %17, align 4
  switch i32 %442, label %771 [
    i32 0, label %443
    i32 12, label %444
  ]

443:                                              ; preds = %441
  br label %421, !llvm.loop !33

444:                                              ; preds = %441, %421
  %445 = load ptr, ptr %45, align 8, !tbaa !9
  %446 = icmp eq ptr %445, null
  br i1 %446, label %447, label %449

447:                                              ; preds = %444
  %448 = call ptr @generate_plaintext_response(i32 noundef 200, ptr noundef @.str.97)
  store ptr %448, ptr %18, align 8, !tbaa !9
  br label %491

449:                                              ; preds = %444
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #10
  store ptr @.str.98, ptr %47, align 8, !tbaa !9
  %450 = load ptr, ptr %45, align 8, !tbaa !9
  %451 = call ptr @strstr(ptr noundef %450, ptr noundef @.str.99) #12
  %452 = icmp ne ptr %451, null
  br i1 %452, label %453, label %454

453:                                              ; preds = %449
  store ptr @.str.99, ptr %47, align 8, !tbaa !9
  br label %484

454:                                              ; preds = %449
  %455 = load ptr, ptr %45, align 8, !tbaa !9
  %456 = call ptr @strstr(ptr noundef %455, ptr noundef @.str.100) #12
  %457 = icmp ne ptr %456, null
  br i1 %457, label %458, label %459

458:                                              ; preds = %454
  store ptr @.str.100, ptr %47, align 8, !tbaa !9
  br label %483

459:                                              ; preds = %454
  %460 = load ptr, ptr %45, align 8, !tbaa !9
  %461 = call ptr @strstr(ptr noundef %460, ptr noundef @.str.101) #12
  %462 = icmp ne ptr %461, null
  br i1 %462, label %463, label %464

463:                                              ; preds = %459
  store ptr @.str.101, ptr %47, align 8, !tbaa !9
  br label %482

464:                                              ; preds = %459
  %465 = load ptr, ptr %45, align 8, !tbaa !9
  %466 = call ptr @strstr(ptr noundef %465, ptr noundef @.str.102) #12
  %467 = icmp ne ptr %466, null
  br i1 %467, label %468, label %469

468:                                              ; preds = %464
  store ptr @.str.102, ptr %47, align 8, !tbaa !9
  br label %481

469:                                              ; preds = %464
  %470 = load ptr, ptr %45, align 8, !tbaa !9
  %471 = call ptr @strstr(ptr noundef %470, ptr noundef @.str.103) #12
  %472 = icmp ne ptr %471, null
  br i1 %472, label %473, label %474

473:                                              ; preds = %469
  store ptr @.str.103, ptr %47, align 8, !tbaa !9
  br label %480

474:                                              ; preds = %469
  %475 = load ptr, ptr %45, align 8, !tbaa !9
  %476 = call ptr @strstr(ptr noundef %475, ptr noundef @.str.104) #12
  %477 = icmp ne ptr %476, null
  br i1 %477, label %478, label %479

478:                                              ; preds = %474
  store ptr @.str.105, ptr %47, align 8, !tbaa !9
  br label %479

479:                                              ; preds = %478, %474
  br label %480

480:                                              ; preds = %479, %473
  br label %481

481:                                              ; preds = %480, %468
  br label %482

482:                                              ; preds = %481, %463
  br label %483

483:                                              ; preds = %482, %458
  br label %484

484:                                              ; preds = %483, %453
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #10
  %485 = call ptr @generate_plaintext_response(i32 noundef 200, ptr noundef @.str.106)
  store ptr %485, ptr %48, align 8, !tbaa !9
  %486 = load ptr, ptr %48, align 8, !tbaa !9
  %487 = load ptr, ptr %45, align 8, !tbaa !9
  %488 = load ptr, ptr %47, align 8, !tbaa !9
  %489 = call ptr (i32, ...) @mstringcat(i32 noundef 4, ptr noundef %486, ptr noundef %487, ptr noundef @.str.107, ptr noundef %488)
  store ptr %489, ptr %18, align 8, !tbaa !9
  %490 = load ptr, ptr %48, align 8, !tbaa !9
  call void @free(ptr noundef %490) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  br label %491

491:                                              ; preds = %484, %447
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  br label %708

492:                                              ; preds = %413, %409
  %493 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 0
  %494 = load i32, ptr %493, align 8, !tbaa !20
  %495 = icmp eq i32 %494, 0
  br i1 %495, label %496, label %517

496:                                              ; preds = %492
  %497 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %498 = getelementptr inbounds [255 x i8], ptr %497, i64 0, i64 0
  %499 = call i32 @strcmp(ptr noundef %498, ptr noundef @.str.108) #12
  %500 = icmp eq i32 %499, 0
  br i1 %500, label %501, label %517

501:                                              ; preds = %496
  %502 = call ptr @generate_text_response(i32 noundef 200, ptr noundef @.str.109, ptr noundef @.str.30)
  store ptr %502, ptr %18, align 8, !tbaa !9
  %503 = load i32, ptr %9, align 4, !tbaa !5
  %504 = load ptr, ptr %18, align 8, !tbaa !9
  %505 = load ptr, ptr %18, align 8, !tbaa !9
  %506 = call i64 @strlen(ptr noundef %505) #12
  %507 = call i64 @send(i32 noundef %503, ptr noundef %504, i64 noundef %506, i32 noundef 0)
  %508 = load ptr, ptr %18, align 8, !tbaa !9
  call void @free(ptr noundef %508) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #10
  %509 = call ptr @read_file_raw(ptr noundef @.str.110, i32 noundef 0, ptr noundef %49)
  store ptr %509, ptr %18, align 8, !tbaa !9
  %510 = load i32, ptr %9, align 4, !tbaa !5
  %511 = load ptr, ptr %18, align 8, !tbaa !9
  %512 = load i64, ptr %49, align 8, !tbaa !22
  %513 = call i64 @send(i32 noundef %510, ptr noundef %511, i64 noundef %512, i32 noundef 0)
  %514 = load ptr, ptr %18, align 8, !tbaa !9
  call void @free(ptr noundef %514) #10
  %515 = load i32, ptr %9, align 4, !tbaa !5
  %516 = call i32 @close(i32 noundef %515)
  store i32 6, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #10
  br label %728

517:                                              ; preds = %496, %492
  %518 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 0
  %519 = load i32, ptr %518, align 8, !tbaa !20
  %520 = icmp eq i32 %519, 0
  br i1 %520, label %521, label %542

521:                                              ; preds = %517
  %522 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %523 = getelementptr inbounds [255 x i8], ptr %522, i64 0, i64 0
  %524 = call i32 @strcmp(ptr noundef %523, ptr noundef @.str.111) #12
  %525 = icmp eq i32 %524, 0
  br i1 %525, label %526, label %542

526:                                              ; preds = %521
  %527 = call ptr @generate_text_response(i32 noundef 200, ptr noundef @.str.112, ptr noundef @.str.30)
  store ptr %527, ptr %18, align 8, !tbaa !9
  %528 = load i32, ptr %9, align 4, !tbaa !5
  %529 = load ptr, ptr %18, align 8, !tbaa !9
  %530 = load ptr, ptr %18, align 8, !tbaa !9
  %531 = call i64 @strlen(ptr noundef %530) #12
  %532 = call i64 @send(i32 noundef %528, ptr noundef %529, i64 noundef %531, i32 noundef 0)
  %533 = load ptr, ptr %18, align 8, !tbaa !9
  call void @free(ptr noundef %533) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #10
  %534 = call ptr @read_file_raw(ptr noundef @.str.113, i32 noundef 0, ptr noundef %50)
  store ptr %534, ptr %18, align 8, !tbaa !9
  %535 = load i32, ptr %9, align 4, !tbaa !5
  %536 = load ptr, ptr %18, align 8, !tbaa !9
  %537 = load i64, ptr %50, align 8, !tbaa !22
  %538 = call i64 @send(i32 noundef %535, ptr noundef %536, i64 noundef %537, i32 noundef 0)
  %539 = load ptr, ptr %18, align 8, !tbaa !9
  call void @free(ptr noundef %539) #10
  %540 = load i32, ptr %9, align 4, !tbaa !5
  %541 = call i32 @close(i32 noundef %540)
  store i32 6, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #10
  br label %728

542:                                              ; preds = %521, %517
  %543 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 0
  %544 = load i32, ptr %543, align 8, !tbaa !20
  %545 = icmp eq i32 %544, 0
  br i1 %545, label %546, label %678

546:                                              ; preds = %542
  %547 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %548 = getelementptr inbounds [255 x i8], ptr %547, i64 0, i64 0
  %549 = call i32 @strncmp(ptr noundef %548, ptr noundef @.str.114, i64 noundef 8) #12
  %550 = icmp eq i32 %549, 0
  br i1 %550, label %551, label %678

551:                                              ; preds = %546
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #10
  store i64 255, ptr %51, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #10
  store i64 0, ptr %52, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #10
  store i64 0, ptr %53, align 8, !tbaa !22
  br label %552

552:                                              ; preds = %567, %551
  %553 = load i64, ptr %53, align 8, !tbaa !22
  %554 = load i64, ptr %51, align 8, !tbaa !22
  %555 = icmp ult i64 %553, %554
  br i1 %555, label %557, label %556

556:                                              ; preds = %552
  store i32 13, ptr %17, align 4
  br label %570

557:                                              ; preds = %552
  %558 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %559 = load i64, ptr %53, align 8, !tbaa !22
  %560 = getelementptr inbounds [255 x i8], ptr %558, i64 0, i64 %559
  %561 = load i8, ptr %560, align 1, !tbaa !17
  %562 = sext i8 %561 to i32
  %563 = icmp eq i32 %562, 63
  br i1 %563, label %564, label %566

564:                                              ; preds = %557
  %565 = load i64, ptr %53, align 8, !tbaa !22
  store i64 %565, ptr %52, align 8, !tbaa !22
  store i32 13, ptr %17, align 4
  br label %570

566:                                              ; preds = %557
  br label %567

567:                                              ; preds = %566
  %568 = load i64, ptr %53, align 8, !tbaa !22
  %569 = add i64 %568, 1
  store i64 %569, ptr %53, align 8, !tbaa !22
  br label %552, !llvm.loop !34

570:                                              ; preds = %564, %556
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #10
  br label %571

571:                                              ; preds = %570
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #10
  store i64 -1, ptr %54, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #10
  store i64 0, ptr %55, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #10
  store i64 0, ptr %56, align 8, !tbaa !22
  %572 = load i64, ptr %52, align 8, !tbaa !22
  %573 = icmp ne i64 %572, 0
  br i1 %573, label %574, label %627

574:                                              ; preds = %571
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #10
  %575 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %576 = getelementptr inbounds [255 x i8], ptr %575, i64 0, i64 0
  %577 = load i64, ptr %52, align 8, !tbaa !22
  %578 = getelementptr inbounds i8, ptr %576, i64 %577
  %579 = getelementptr inbounds i8, ptr %578, i64 1
  store ptr %579, ptr %57, align 8, !tbaa !9
  br label %580

580:                                              ; preds = %625, %574
  br label %581

581:                                              ; preds = %580
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #10
  %582 = call ptr @read_post_name(ptr noundef %57)
  store ptr %582, ptr %58, align 8, !tbaa !9
  %583 = load ptr, ptr %58, align 8, !tbaa !9
  %584 = icmp ne ptr %583, null
  br i1 %584, label %585, label %621

585:                                              ; preds = %581
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #10
  %586 = call ptr @read_post_val_alloc(ptr noundef %57)
  store ptr %586, ptr %59, align 8, !tbaa !9
  %587 = load ptr, ptr %59, align 8, !tbaa !9
  %588 = icmp ne ptr %587, null
  br i1 %588, label %589, label %616

589:                                              ; preds = %585
  %590 = load ptr, ptr %58, align 8, !tbaa !9
  %591 = call i32 @strcmp(ptr noundef %590, ptr noundef @.str.115) #12
  %592 = icmp eq i32 %591, 0
  br i1 %592, label %593, label %596

593:                                              ; preds = %589
  %594 = load ptr, ptr %59, align 8, !tbaa !9
  %595 = call i64 @strtol(ptr noundef %594, ptr noundef null, i32 noundef 10) #10
  store i64 %595, ptr %54, align 8, !tbaa !22
  br label %614

596:                                              ; preds = %589
  %597 = load ptr, ptr %58, align 8, !tbaa !9
  %598 = call i32 @strcmp(ptr noundef %597, ptr noundef @.str.116) #12
  %599 = icmp eq i32 %598, 0
  br i1 %599, label %600, label %603

600:                                              ; preds = %596
  %601 = load ptr, ptr %59, align 8, !tbaa !9
  %602 = call i64 @strtol(ptr noundef %601, ptr noundef null, i32 noundef 10) #10
  store i64 %602, ptr %55, align 8, !tbaa !22
  br label %613

603:                                              ; preds = %596
  %604 = load ptr, ptr %58, align 8, !tbaa !9
  %605 = call i32 @strcmp(ptr noundef %604, ptr noundef @.str.117) #12
  %606 = icmp eq i32 %605, 0
  br i1 %606, label %607, label %612

607:                                              ; preds = %603
  %608 = load ptr, ptr %59, align 8, !tbaa !9
  %609 = call i64 @strtol(ptr noundef %608, ptr noundef null, i32 noundef 10) #10
  %610 = trunc i64 %609 to i8
  %611 = sext i8 %610 to i64
  store i64 %611, ptr %56, align 8, !tbaa !22
  br label %612

612:                                              ; preds = %607, %603
  br label %613

613:                                              ; preds = %612, %600
  br label %614

614:                                              ; preds = %613, %593
  %615 = load ptr, ptr %59, align 8, !tbaa !9
  call void @free(ptr noundef %615) #10
  br label %617

616:                                              ; preds = %585
  store i32 17, ptr %17, align 4
  br label %618

617:                                              ; preds = %614
  store i32 0, ptr %17, align 4
  br label %618

618:                                              ; preds = %617, %616
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #10
  %619 = load i32, ptr %17, align 4
  switch i32 %619, label %623 [
    i32 0, label %620
  ]

620:                                              ; preds = %618
  br label %622

621:                                              ; preds = %581
  store i32 17, ptr %17, align 4
  br label %623

622:                                              ; preds = %620
  store i32 0, ptr %17, align 4
  br label %623

623:                                              ; preds = %622, %621, %618
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #10
  %624 = load i32, ptr %17, align 4
  switch i32 %624, label %771 [
    i32 0, label %625
    i32 17, label %626
  ]

625:                                              ; preds = %623
  br label %580

626:                                              ; preds = %623
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #10
  br label %627

627:                                              ; preds = %626, %571
  %628 = load i64, ptr %54, align 8, !tbaa !22
  %629 = call i32 (ptr, ...) @printf(ptr noundef @.str.118, i64 noundef %628)
  %630 = call ptr @generate_text_response(i32 noundef 200, ptr noundef @.str.119, ptr noundef @.str.30)
  store ptr %630, ptr %18, align 8, !tbaa !9
  %631 = load i32, ptr %9, align 4, !tbaa !5
  %632 = load ptr, ptr %18, align 8, !tbaa !9
  %633 = load ptr, ptr %18, align 8, !tbaa !9
  %634 = call i64 @strlen(ptr noundef %633) #12
  %635 = call i64 @send(i32 noundef %631, ptr noundef %632, i64 noundef %634, i32 noundef 0)
  %636 = load ptr, ptr %18, align 8, !tbaa !9
  call void @free(ptr noundef %636) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #10
  %637 = call ptr @read_file_raw(ptr noundef @.str.120, i32 noundef 0, ptr noundef %60)
  store ptr %637, ptr %18, align 8, !tbaa !9
  %638 = load i64, ptr %55, align 8, !tbaa !22
  %639 = icmp slt i64 %638, 0
  br i1 %639, label %640, label %641

640:                                              ; preds = %627
  store i64 0, ptr %55, align 8, !tbaa !22
  br label %641

641:                                              ; preds = %640, %627
  %642 = load i64, ptr %54, align 8, !tbaa !22
  %643 = icmp sgt i64 %642, 0
  br i1 %643, label %644, label %668

644:                                              ; preds = %641
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #10
  %645 = load i64, ptr %55, align 8, !tbaa !22
  %646 = add nsw i64 54, %645
  %647 = trunc i64 %646 to i32
  store i32 %647, ptr %61, align 4, !tbaa !5
  br label %648

648:                                              ; preds = %661, %644
  %649 = load i32, ptr %61, align 4, !tbaa !5
  %650 = sext i32 %649 to i64
  %651 = load i64, ptr %60, align 8, !tbaa !22
  %652 = icmp ult i64 %650, %651
  br i1 %652, label %654, label %653

653:                                              ; preds = %648
  store i32 18, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #10
  br label %667

654:                                              ; preds = %648
  %655 = load i64, ptr %56, align 8, !tbaa !22
  %656 = trunc i64 %655 to i8
  %657 = load ptr, ptr %18, align 8, !tbaa !9
  %658 = load i32, ptr %61, align 4, !tbaa !5
  %659 = sext i32 %658 to i64
  %660 = getelementptr inbounds i8, ptr %657, i64 %659
  store i8 %656, ptr %660, align 1, !tbaa !17
  br label %661

661:                                              ; preds = %654
  %662 = load i64, ptr %54, align 8, !tbaa !22
  %663 = load i32, ptr %61, align 4, !tbaa !5
  %664 = sext i32 %663 to i64
  %665 = add nsw i64 %664, %662
  %666 = trunc i64 %665 to i32
  store i32 %666, ptr %61, align 4, !tbaa !5
  br label %648, !llvm.loop !35

667:                                              ; preds = %653
  br label %668

668:                                              ; preds = %667, %641
  %669 = load i64, ptr %60, align 8, !tbaa !22
  %670 = call i32 (ptr, ...) @printf(ptr noundef @.str.121, i64 noundef %669)
  %671 = load i32, ptr %9, align 4, !tbaa !5
  %672 = load ptr, ptr %18, align 8, !tbaa !9
  %673 = load i64, ptr %60, align 8, !tbaa !22
  %674 = call i64 @send(i32 noundef %671, ptr noundef %672, i64 noundef %673, i32 noundef 0)
  %675 = load ptr, ptr %18, align 8, !tbaa !9
  call void @free(ptr noundef %675) #10
  %676 = load i32, ptr %9, align 4, !tbaa !5
  %677 = call i32 @close(i32 noundef %676)
  store i32 6, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #10
  br label %728

678:                                              ; preds = %546, %542
  %679 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 0
  %680 = load i32, ptr %679, align 8, !tbaa !20
  %681 = icmp eq i32 %680, 0
  br i1 %681, label %682, label %689

682:                                              ; preds = %678
  %683 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %684 = getelementptr inbounds [255 x i8], ptr %683, i64 0, i64 0
  %685 = call i32 @strcmp(ptr noundef %684, ptr noundef @.str.122) #12
  %686 = icmp eq i32 %685, 0
  br i1 %686, label %687, label %689

687:                                              ; preds = %682
  %688 = call ptr @generate_html_response(i32 noundef 200, ptr noundef @.str.123)
  store ptr %688, ptr %18, align 8, !tbaa !9
  br label %704

689:                                              ; preds = %682, %678
  %690 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 0
  %691 = load i32, ptr %690, align 8, !tbaa !20
  %692 = icmp eq i32 %691, 0
  br i1 %692, label %693, label %700

693:                                              ; preds = %689
  %694 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 1
  %695 = getelementptr inbounds [255 x i8], ptr %694, i64 0, i64 0
  %696 = call i32 @strcmp(ptr noundef %695, ptr noundef @.str.124) #12
  %697 = icmp eq i32 %696, 0
  br i1 %697, label %698, label %700

698:                                              ; preds = %693
  %699 = call ptr @serve_page(i32 noundef 200, ptr noundef @.str.125)
  store ptr %699, ptr %18, align 8, !tbaa !9
  br label %703

700:                                              ; preds = %693, %689
  call void @llvm.lifetime.start.p0(i64 32, ptr %62) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %62, ptr align 16 @__const.main.vars.128, i64 32, i1 false)
  %701 = load i32, ptr %9, align 4, !tbaa !5
  %702 = getelementptr inbounds [2 x [2 x ptr]], ptr %62, i64 0, i64 0
  call void @render_page(i32 noundef %701, i32 noundef 404, ptr noundef @.str.75, ptr noundef %702, i32 noundef 2)
  store i32 6, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %62) #10
  br label %728

703:                                              ; preds = %698
  br label %704

704:                                              ; preds = %703, %687
  br label %705

705:                                              ; preds = %704
  br label %706

706:                                              ; preds = %705
  br label %707

707:                                              ; preds = %706
  br label %708

708:                                              ; preds = %707, %491
  br label %709

709:                                              ; preds = %708, %407
  br label %710

710:                                              ; preds = %709, %397
  br label %711

711:                                              ; preds = %710, %348
  br label %712

712:                                              ; preds = %711
  br label %713

713:                                              ; preds = %712, %217
  %714 = load ptr, ptr %18, align 8, !tbaa !9
  %715 = icmp ne ptr %714, null
  br i1 %715, label %719, label %716

716:                                              ; preds = %713
  %717 = load ptr, ptr @stderr, align 8, !tbaa !9
  %718 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %717, ptr noundef @.str.129) #10
  call void @exit(i32 noundef 1) #11
  unreachable

719:                                              ; preds = %713
  %720 = load i32, ptr %9, align 4, !tbaa !5
  %721 = load ptr, ptr %18, align 8, !tbaa !9
  %722 = load ptr, ptr %18, align 8, !tbaa !9
  %723 = call i64 @strlen(ptr noundef %722) #12
  %724 = call i64 @send(i32 noundef %720, ptr noundef %721, i64 noundef %723, i32 noundef 0)
  %725 = load ptr, ptr %18, align 8, !tbaa !9
  call void @free(ptr noundef %725) #10
  %726 = load i32, ptr %9, align 4, !tbaa !5
  %727 = call i32 @close(i32 noundef %726)
  br label %728

728:                                              ; preds = %719, %700, %668, %526, %501, %395, %344, %238, %214, %212
  %729 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 2
  %730 = load i32, ptr %729, align 4, !tbaa !18
  %731 = icmp ne i32 %730, 0
  br i1 %731, label %747, label %732

732:                                              ; preds = %728
  %733 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 3
  %734 = load ptr, ptr %733, align 8, !tbaa !21
  %735 = icmp ne ptr %734, null
  br i1 %735, label %736, label %739

736:                                              ; preds = %732
  %737 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 3
  %738 = load ptr, ptr %737, align 8, !tbaa !21
  call void @free(ptr noundef %738) #10
  br label %739

739:                                              ; preds = %736, %732
  %740 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 4
  %741 = load ptr, ptr %740, align 8, !tbaa !24
  %742 = icmp ne ptr %741, null
  br i1 %742, label %743, label %746

743:                                              ; preds = %739
  %744 = getelementptr inbounds %struct.HTTP_request, ptr %15, i32 0, i32 4
  %745 = load ptr, ptr %744, align 8, !tbaa !24
  call void @free_list(ptr noundef %745, ptr noundef @destroy_header)
  br label %746

746:                                              ; preds = %743, %739
  br label %747

747:                                              ; preds = %746, %728
  %748 = call i32 @gettimeofday(ptr noundef %7, ptr noundef null) #10
  %749 = getelementptr inbounds %struct.timeval, ptr %7, i32 0, i32 0
  %750 = load i64, ptr %749, align 8, !tbaa !36
  %751 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
  %752 = load i64, ptr %751, align 8, !tbaa !36
  %753 = icmp ne i64 %750, %752
  br i1 %753, label %754, label %761

754:                                              ; preds = %747
  %755 = getelementptr inbounds %struct.timeval, ptr %7, i32 0, i32 0
  %756 = load i64, ptr %755, align 8, !tbaa !36
  %757 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
  %758 = load i64, ptr %757, align 8, !tbaa !36
  %759 = sub nsw i64 %756, %758
  %760 = call i32 (ptr, ...) @printf(ptr noundef @.str.130, i64 noundef %759)
  br label %761

761:                                              ; preds = %754, %747
  %762 = getelementptr inbounds %struct.timeval, ptr %7, i32 0, i32 1
  %763 = load i64, ptr %762, align 8, !tbaa !38
  %764 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 1
  %765 = load i64, ptr %764, align 8, !tbaa !38
  %766 = sub nsw i64 %763, %765
  %767 = call i32 (ptr, ...) @printf(ptr noundef @.str.131, i64 noundef %766)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  store i32 0, ptr %17, align 4
  br label %768

768:                                              ; preds = %761, %110
  call void @llvm.lifetime.end.p0(i64 280, ptr %15) #10
  %769 = load i32, ptr %17, align 4
  switch i32 %769, label %771 [
    i32 0, label %770
    i32 2, label %87
  ]

770:                                              ; preds = %768
  br label %87

771:                                              ; preds = %768, %623, %441, %395, %381, %301, %192
  unreachable
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

; Function Attrs: nounwind
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @__bswap_16(i16 noundef zeroext) #8

; Function Attrs: nounwind
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind
declare i32 @listen(i32 noundef, i32 noundef) #0

declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #5

declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #5

; Function Attrs: nounwind
declare i32 @gettimeofday(ptr noundef, ptr noundef) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #9

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcasecmp(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strstr(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #0

declare void @free_list(ptr noundef, ptr noundef) #5

attributes #0 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #10 = { nounwind }
attributes #11 = { noreturn nounwind }
attributes #12 = { nounwind willreturn memory(read) }
attributes #13 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"sockaddr_in", !13, i64 0, !13, i64 2, !14, i64 4, !7, i64 8}
!13 = !{!"short", !7, i64 0}
!14 = !{!"in_addr", !6, i64 0}
!15 = !{!12, !6, i64 4}
!16 = !{!12, !13, i64 2}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !6, i64 260}
!19 = !{!"HTTP_request", !6, i64 0, !7, i64 4, !6, i64 260, !10, i64 264, !10, i64 272}
!20 = !{!19, !6, i64 0}
!21 = !{!19, !10, i64 264}
!22 = !{!23, !23, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!19, !10, i64 272}
!25 = !{!26, !10, i64 0}
!26 = !{!"ll_item", !10, i64 0, !10, i64 8}
!27 = !{!28, !10, i64 0}
!28 = !{!"header", !10, i64 0, !10, i64 8}
!29 = !{!28, !10, i64 8}
!30 = !{!26, !10, i64 8}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = distinct !{!34, !32}
!35 = distinct !{!35, !32}
!36 = !{!37, !23, i64 0}
!37 = !{!"timeval", !23, i64 0, !23, i64 8}
!38 = !{!37, !23, i64 8}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.HTTP_request = type { i32, [255 x i8], i32, ptr, ptr }
%struct.timeval = type { i64, i64 }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [18 x i8], align 1
@__const.main.vars = external hidden unnamed_addr constant [2 x [2 x ptr]], align 16
@.str.75 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [32 x i8], align 1
@__const.main.vars.88 = external hidden unnamed_addr constant [2 x [2 x ptr]], align 16
@.str.89 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [9 x i8], align 1
@__const.main.vars.128 = external hidden unnamed_addr constant [2 x [2 x ptr]], align 16
@.str.129 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @generate_raw_response(i32 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare dso_local ptr @generate_text_response(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @generate_html_response(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @generate_plaintext_response(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @read_file_raw(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @serve_page(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: nounwind uwtable
declare dso_local void @render_page(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare i64 @send(i32 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

declare i32 @close(i32 noundef) local_unnamed_addr #7

; Function Attrs: nounwind uwtable
declare dso_local ptr @get_method_name(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @destroy_header(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @parse_request(ptr dead_on_unwind noalias writable sret(%struct.HTTP_request) align 8, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @read_post_name(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @read_post_val_alloc(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @stringcat(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #8

; Function Attrs: nounwind uwtable
declare dso_local ptr @mstringcat(i32 noundef, ...) local_unnamed_addr #1

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #9 {
  %3 = alloca %struct.timeval, align 8
  %4 = alloca %struct.timeval, align 8
  %5 = alloca %struct.sockaddr_in, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [4096 x i8], align 16
  %9 = alloca %struct.HTTP_request, align 8
  %10 = alloca ptr, align 8
  %11 = alloca [3 x [2 x ptr]], align 16
  %12 = alloca [2 x [2 x ptr]], align 16
  %13 = alloca [2 x [2 x ptr]], align 16
  %14 = alloca ptr, align 8
  %15 = alloca [5 x [2 x ptr]], align 16
  %16 = alloca [2 x [2 x ptr]], align 16
  %17 = alloca [1 x [2 x ptr]], align 16
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca [2 x [2 x ptr]], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #18
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #18
  store i32 1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #18
  store i32 16, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %8) #18
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4096) %8, i8 0, i64 4096, i1 false)
  %23 = tail call i32 @socket(i32 noundef 2, i32 noundef 1, i32 noundef 0) #18
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %2
  tail call void @perror(ptr noundef nonnull @.str.48) #19
  tail call void @exit(i32 noundef 1) #20
  unreachable

26:                                               ; preds = %2
  %27 = call i32 @setsockopt(i32 noundef %23, i32 noundef 1, i32 noundef 2, ptr noundef nonnull %6, i32 noundef 4) #18
  %.not = icmp eq i32 %27, 0
  br i1 %.not, label %29, label %28

28:                                               ; preds = %26
  call void @perror(ptr noundef nonnull @.str.49) #19
  call void @exit(i32 noundef 1) #20
  unreachable

29:                                               ; preds = %26
  store i16 2, ptr %5, align 4, !tbaa !9
  %30 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 0, ptr %30, align 4, !tbaa !13
  %31 = call zeroext i16 @__bswap_16(i16 noundef zeroext 8080)
  %32 = getelementptr inbounds i8, ptr %5, i64 2
  store i16 %31, ptr %32, align 2, !tbaa !14
  %33 = call i32 @bind(i32 noundef %23, ptr noundef nonnull %5, i32 noundef 16) #18
  %34 = icmp slt i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %29
  call void @perror(ptr noundef nonnull @.str.50) #19
  call void @exit(i32 noundef 1) #20
  unreachable

36:                                               ; preds = %29
  %37 = call i32 @listen(i32 noundef %23, i32 noundef 3) #18
  %38 = icmp slt i32 %37, 0
  br i1 %38, label %64, label %.preheader310

.preheader310:                                    ; preds = %36
  %39 = call i32 @accept(i32 noundef %23, ptr noundef nonnull %5, ptr noundef nonnull %7) #18
  %40 = icmp slt i32 %39, 0
  br i1 %40, label %._crit_edge356, label %.lr.ph355

.lr.ph355:                                        ; preds = %.preheader310
  %41 = getelementptr inbounds i8, ptr %9, i64 260
  %42 = getelementptr inbounds i8, ptr %9, i64 4
  %invariant.gep = getelementptr inbounds i8, ptr %9, i64 5
  %43 = getelementptr inbounds i8, ptr %9, i64 272
  %44 = getelementptr inbounds i8, ptr %17, i64 8
  %45 = getelementptr inbounds i8, ptr %9, i64 264
  %46 = getelementptr inbounds i8, ptr %15, i64 8
  %47 = getelementptr inbounds i8, ptr %15, i64 16
  %48 = getelementptr inbounds i8, ptr %15, i64 24
  %49 = getelementptr inbounds i8, ptr %15, i64 32
  %50 = getelementptr inbounds i8, ptr %15, i64 40
  %51 = getelementptr inbounds i8, ptr %15, i64 48
  %52 = getelementptr inbounds i8, ptr %15, i64 56
  %53 = getelementptr inbounds i8, ptr %15, i64 64
  %54 = getelementptr inbounds i8, ptr %15, i64 72
  %55 = getelementptr inbounds i8, ptr %13, i64 8
  %56 = getelementptr inbounds i8, ptr %9, i64 10
  %57 = getelementptr inbounds i8, ptr %11, i64 8
  %58 = getelementptr inbounds i8, ptr %11, i64 16
  %59 = getelementptr inbounds i8, ptr %11, i64 24
  %60 = getelementptr inbounds i8, ptr %11, i64 32
  %61 = getelementptr inbounds i8, ptr %11, i64 40
  %62 = getelementptr inbounds i8, ptr %4, i64 8
  %63 = getelementptr inbounds i8, ptr %3, i64 8
  %.ptr = getelementptr inbounds i8, ptr %13, i64 16
  br label %65

64:                                               ; preds = %36
  call void @perror(ptr noundef nonnull @.str.51) #19
  call void @exit(i32 noundef 1) #20
  unreachable

._crit_edge356:                                   ; preds = %355, %.preheader310
  call void @perror(ptr noundef nonnull @.str.52) #19
  call void @exit(i32 noundef 1) #20
  unreachable

65:                                               ; preds = %.lr.ph355, %355
  %66 = phi i32 [ %39, %.lr.ph355 ], [ %356, %355 ]
  %67 = call i64 @read(i32 noundef %66, ptr noundef nonnull %8, i64 noundef 4095) #18
  %68 = trunc i64 %67 to i32
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef %68)
  %sext = shl i64 %67, 32
  %70 = ashr exact i64 %sext, 32
  %71 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 %70
  store i8 0, ptr %71, align 1, !tbaa !15
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, ptr noundef nonnull %8)
  %73 = call i32 @gettimeofday(ptr noundef nonnull %3, ptr noundef null) #18
  call void @llvm.lifetime.start.p0(i64 280, ptr nonnull %9) #18
  call void @parse_request(ptr dead_on_unwind nonnull writable sret(%struct.HTTP_request) align 8 %9, ptr noundef nonnull %8)
  %74 = load i32, ptr %41, align 4, !tbaa !16
  %.not217 = icmp eq i32 %74, 0
  br i1 %.not217, label %83, label %75

75:                                               ; preds = %65
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.55, ptr noundef nonnull %8)
  %77 = load ptr, ptr @stderr, align 8, !tbaa !19
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef nonnull @.str.56) #21
  %79 = call ptr @generate_plaintext_response(i32 noundef 400, ptr noundef nonnull @.str.57)
  %80 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %79) #22
  %81 = call i64 @send(i32 noundef %66, ptr noundef %79, i64 noundef %80, i32 noundef 0) #18
  call void @free(ptr noundef %79) #18
  %82 = call i32 @close(i32 noundef %66) #18
  br label %355

83:                                               ; preds = %65
  %84 = load i32, ptr %9, align 8, !tbaa !20
  %85 = call ptr @get_method_name(i32 noundef %84)
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.58, ptr noundef %85, ptr noundef nonnull %42)
  %87 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.59) #22
  %88 = icmp eq i32 %87, 0
  %89 = load i32, ptr %9, align 8, !tbaa !20
  br i1 %88, label %90, label %121

90:                                               ; preds = %83
  switch i32 %89, label %120 [
    i32 0, label %91
    i32 1, label %93
  ]

91:                                               ; preds = %90
  %92 = call ptr @serve_page(i32 noundef 200, ptr noundef nonnull @.str.60)
  br label %327

93:                                               ; preds = %90
  %94 = load ptr, ptr %45, align 8, !tbaa !21
  %95 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %94) #22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #18
  %96 = add i64 %95, 1
  %97 = call noalias ptr @malloc(i64 noundef %96) #23
  store ptr %97, ptr %10, align 8, !tbaa !19
  %98 = call ptr @strncpy(ptr noundef %97, ptr noundef %94, i64 noundef %95) #18
  %99 = getelementptr inbounds i8, ptr %97, i64 %95
  store i8 0, ptr %99, align 1, !tbaa !15
  %100 = call ptr @read_post_name(ptr noundef nonnull %10)
  %101 = icmp eq ptr %100, null
  br i1 %101, label %._crit_edge349, label %.lr.ph348

.lr.ph348:                                        ; preds = %93, %114
  %102 = phi ptr [ %115, %114 ], [ %100, %93 ]
  %.0175346 = phi ptr [ %.3178, %114 ], [ @.str.61, %93 ]
  %.0179345 = phi i32 [ %.3182, %114 ], [ 0, %93 ]
  %103 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.62, ptr noundef nonnull %102)
  %104 = call ptr @read_post_val_alloc(ptr noundef nonnull %10)
  %105 = icmp eq ptr %104, null
  br i1 %105, label %._crit_edge349, label %106

106:                                              ; preds = %.lr.ph348
  %107 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.63, ptr noundef nonnull %104)
  %108 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %102, ptr noundef nonnull dereferenceable(1) @.str.64) #22
  %109 = icmp ne i32 %108, 0
  %110 = icmp ne i32 %.0179345, 0
  %or.cond = select i1 %109, i1 true, i1 %110
  br i1 %or.cond, label %113, label %111

111:                                              ; preds = %106
  %112 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.65, ptr noundef nonnull %104)
  br label %114

113:                                              ; preds = %106
  call void @free(ptr noundef nonnull %104) #18
  br label %114

114:                                              ; preds = %113, %111
  %.3182 = phi i32 [ %.0179345, %113 ], [ 1, %111 ]
  %.3178 = phi ptr [ %.0175346, %113 ], [ %104, %111 ]
  %115 = call ptr @read_post_name(ptr noundef nonnull %10)
  %116 = icmp eq ptr %115, null
  br i1 %116, label %._crit_edge349, label %.lr.ph348

._crit_edge349:                                   ; preds = %.lr.ph348, %114, %93
  %.0179.lcssa = phi i32 [ 0, %93 ], [ %.3182, %114 ], [ %.0179345, %.lr.ph348 ]
  %.0175.lcssa = phi ptr [ @.str.61, %93 ], [ %.3178, %114 ], [ %.0175346, %.lr.ph348 ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #18
  store ptr @.str.66, ptr %11, align 16, !tbaa !19
  store ptr %94, ptr %57, align 8, !tbaa !19
  store ptr @.str.67, ptr %58, align 16, !tbaa !19
  store ptr %8, ptr %59, align 8, !tbaa !19
  store ptr @.str.68, ptr %60, align 16, !tbaa !19
  store ptr %.0175.lcssa, ptr %61, align 8, !tbaa !19
  call void @render_page(i32 noundef %66, i32 noundef 200, ptr noundef nonnull @.str.69, ptr noundef nonnull %11, i32 noundef 3)
  %117 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.70, ptr noundef %.0175.lcssa)
  %.not233 = icmp eq i32 %.0179.lcssa, 0
  br i1 %.not233, label %119, label %118

118:                                              ; preds = %._crit_edge349
  call void @free(ptr noundef %.0175.lcssa) #18
  br label %119

119:                                              ; preds = %118, %._crit_edge349
  call void @free(ptr noundef %97) #18
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #18
  br label %335

120:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #18
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %12, ptr noundef nonnull align 16 dereferenceable(32) @__const.main.vars, i64 32, i1 false)
  call void @render_page(i32 noundef %66, i32 noundef 405, ptr noundef nonnull @.str.75, ptr noundef nonnull %12, i32 noundef 2)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #18
  br label %335

121:                                              ; preds = %83
  %122 = icmp eq i32 %89, 0
  br i1 %122, label %123, label %.thread267

123:                                              ; preds = %121
  %124 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.76, i64 noundef 6) #22
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %127

126:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #18
  store ptr @.str.77, ptr %13, align 16, !tbaa !19
  store ptr %56, ptr %55, align 8, !tbaa !19
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %.ptr, i8 0, i64 16, i1 false)
  call void @render_page(i32 noundef %66, i32 noundef 200, ptr noundef nonnull @.str.78, ptr noundef nonnull %13, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #18
  br label %335

127:                                              ; preds = %123
  %128 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.79) #22
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %.thread, label %170

.thread267:                                       ; preds = %121
  %130 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.79) #22
  %131 = icmp eq i32 %130, 0
  br i1 %131, label %132, label %.thread280

132:                                              ; preds = %.thread267
  %cond = icmp eq i32 %89, 1
  br i1 %cond, label %134, label %169

.thread:                                          ; preds = %127
  %133 = call ptr @serve_page(i32 noundef 200, ptr noundef nonnull @.str.80)
  br label %327

134:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #18
  %135 = load ptr, ptr %45, align 8, !tbaa !21
  %136 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %135) #22
  %137 = add i64 %136, 1
  %138 = call noalias ptr @malloc(i64 noundef %137) #23
  store ptr %138, ptr %14, align 8, !tbaa !19
  %139 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %138, ptr noundef nonnull dereferenceable(1) %135) #18
  %140 = call ptr @read_post_name(ptr noundef nonnull %14)
  %141 = icmp eq ptr %140, null
  br i1 %141, label %.thread372, label %.lr.ph338

.thread372:                                       ; preds = %134
  %142 = call ptr @generate_plaintext_response(i32 noundef 400, ptr noundef nonnull @.str.87)
  br label %168

.lr.ph338:                                        ; preds = %134, %155
  %143 = phi ptr [ %156, %155 ], [ %140, %134 ]
  %.0184336 = phi ptr [ %.3187, %155 ], [ null, %134 ]
  %.0193335 = phi ptr [ %.3196, %155 ], [ null, %134 ]
  %144 = call ptr @read_post_val_alloc(ptr noundef nonnull %14)
  %145 = icmp eq ptr %144, null
  br i1 %145, label %._crit_edge339, label %146

146:                                              ; preds = %.lr.ph338
  %147 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %143, ptr noundef nonnull dereferenceable(1) @.str.81) #22
  %148 = icmp eq i32 %147, 0
  %149 = icmp eq ptr %.0184336, null
  %or.cond3 = select i1 %148, i1 %149, i1 false
  br i1 %or.cond3, label %155, label %150

150:                                              ; preds = %146
  %151 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %143, ptr noundef nonnull dereferenceable(1) @.str.82) #22
  %152 = icmp eq i32 %151, 0
  %153 = icmp eq ptr %.0193335, null
  %or.cond5 = select i1 %152, i1 %153, i1 false
  br i1 %or.cond5, label %155, label %154

154:                                              ; preds = %150
  call void @free(ptr noundef nonnull %144) #18
  br label %155

155:                                              ; preds = %150, %146, %154
  %.3196 = phi ptr [ %.0193335, %154 ], [ %.0193335, %146 ], [ %144, %150 ]
  %.3187 = phi ptr [ %.0184336, %154 ], [ %144, %146 ], [ %.0184336, %150 ]
  %156 = call ptr @read_post_name(ptr noundef nonnull %14)
  %157 = icmp eq ptr %156, null
  br i1 %157, label %._crit_edge339, label %.lr.ph338

._crit_edge339:                                   ; preds = %.lr.ph338, %155
  %.0193.lcssa = phi ptr [ %.0193335, %.lr.ph338 ], [ %.3196, %155 ]
  %.0184.lcssa = phi ptr [ %.0184336, %.lr.ph338 ], [ %.3187, %155 ]
  %158 = icmp ne ptr %.0184.lcssa, null
  %159 = icmp ne ptr %.0193.lcssa, null
  %or.cond7 = select i1 %158, i1 %159, i1 false
  br i1 %or.cond7, label %.thread263, label %163

.thread263:                                       ; preds = %._crit_edge339
  %160 = call ptr @stringcat(ptr noundef nonnull @.str.83, ptr noundef nonnull %.0184.lcssa)
  %161 = call ptr @stringcat(ptr noundef nonnull @.str.84, ptr noundef nonnull %.0193.lcssa)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %15) #18
  store ptr @.str.20, ptr %15, align 16, !tbaa !19
  store ptr @.str.26, ptr %46, align 8, !tbaa !19
  store ptr @.str.21, ptr %47, align 16, !tbaa !19
  store ptr @.str.22, ptr %48, align 8, !tbaa !19
  store ptr @.str.23, ptr %49, align 16, !tbaa !19
  store ptr @.str.24, ptr %50, align 8, !tbaa !19
  store ptr @.str.85, ptr %51, align 16, !tbaa !19
  store ptr %160, ptr %52, align 8, !tbaa !19
  store ptr @.str.85, ptr %53, align 16, !tbaa !19
  store ptr %161, ptr %54, align 8, !tbaa !19
  %162 = call ptr @generate_raw_response(i32 noundef 200, ptr noundef nonnull %15, i64 noundef 5, ptr noundef nonnull @.str.86)
  call void @free(ptr noundef %160) #18
  call void @free(ptr noundef %161) #18
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #18
  call void @free(ptr noundef nonnull %.0184.lcssa) #18
  br label %167

163:                                              ; preds = %._crit_edge339
  %164 = call ptr @generate_plaintext_response(i32 noundef 400, ptr noundef nonnull @.str.87)
  br i1 %158, label %165, label %166

165:                                              ; preds = %163
  call void @free(ptr noundef nonnull %.0184.lcssa) #18
  br i1 %159, label %167, label %168

166:                                              ; preds = %163
  br i1 %159, label %167, label %168

167:                                              ; preds = %.thread263, %165, %166
  %.0154265377 = phi ptr [ %164, %165 ], [ %164, %166 ], [ %162, %.thread263 ]
  call void @free(ptr noundef nonnull %.0193.lcssa) #18
  br label %168

168:                                              ; preds = %165, %.thread372, %167, %166
  %.0154265375 = phi ptr [ %142, %.thread372 ], [ %.0154265377, %167 ], [ %164, %166 ], [ %164, %165 ]
  call void @free(ptr noundef %138) #18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #18
  br label %327

169:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #18
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %16, ptr noundef nonnull align 16 dereferenceable(32) @__const.main.vars.88, i64 32, i1 false)
  call void @render_page(i32 noundef %66, i32 noundef 405, ptr noundef nonnull @.str.75, ptr noundef nonnull %16, i32 noundef 2)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #18
  br label %335

170:                                              ; preds = %127
  %171 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.89) #22
  %172 = icmp eq i32 %171, 0
  br i1 %172, label %173, label %188

173:                                              ; preds = %170
  %174 = load ptr, ptr %43, align 8, !tbaa !22
  %.not230331 = icmp eq ptr %174, null
  br i1 %.not230331, label %.thread276, label %.lr.ph334

.lr.ph334:                                        ; preds = %173, %179
  %.0200332 = phi ptr [ %181, %179 ], [ %174, %173 ]
  %175 = load ptr, ptr %.0200332, align 8, !tbaa !23
  %176 = load ptr, ptr %175, align 8, !tbaa !25
  %177 = call i32 @strcasecmp(ptr noundef %176, ptr noundef nonnull @.str.90) #22
  %178 = icmp eq i32 %177, 0
  br i1 %178, label %182, label %179

179:                                              ; preds = %.lr.ph334
  %180 = getelementptr inbounds i8, ptr %.0200332, i64 8
  %181 = load ptr, ptr %180, align 8, !tbaa !27
  %.not230 = icmp eq ptr %181, null
  br i1 %.not230, label %.thread276, label %.lr.ph334

182:                                              ; preds = %.lr.ph334
  %183 = getelementptr inbounds i8, ptr %175, i64 8
  %184 = load ptr, ptr %183, align 8, !tbaa !28
  %185 = icmp eq ptr %184, null
  br i1 %185, label %.thread276, label %187

.thread276:                                       ; preds = %179, %173, %182
  %186 = call ptr @generate_plaintext_response(i32 noundef 200, ptr noundef nonnull @.str.91)
  br label %327

187:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #18
  store ptr @.str.68, ptr %17, align 16, !tbaa !19
  store ptr %184, ptr %44, align 8, !tbaa !19
  call void @render_page(i32 noundef %66, i32 noundef 200, ptr noundef nonnull @.str.92, ptr noundef nonnull %17, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #18
  br label %335

188:                                              ; preds = %170
  %189 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.93) #22
  %190 = icmp eq i32 %189, 0
  br i1 %190, label %191, label %193

191:                                              ; preds = %188
  %192 = call ptr @generate_plaintext_response(i32 noundef 200, ptr noundef nonnull @.str.94)
  br label %327

193:                                              ; preds = %188
  %194 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.95) #22
  %195 = icmp eq i32 %194, 0
  br i1 %195, label %196, label %225

196:                                              ; preds = %193
  %197 = load ptr, ptr %43, align 8, !tbaa !22
  %.not223327 = icmp eq ptr %197, null
  br i1 %.not223327, label %.thread288, label %.lr.ph330

.lr.ph330:                                        ; preds = %196, %202
  %.0191328 = phi ptr [ %204, %202 ], [ %197, %196 ]
  %198 = load ptr, ptr %.0191328, align 8, !tbaa !23
  %199 = load ptr, ptr %198, align 8, !tbaa !25
  %200 = call i32 @strcasecmp(ptr noundef %199, ptr noundef nonnull @.str.96) #22
  %201 = icmp eq i32 %200, 0
  br i1 %201, label %205, label %202

202:                                              ; preds = %.lr.ph330
  %203 = getelementptr inbounds i8, ptr %.0191328, i64 8
  %204 = load ptr, ptr %203, align 8, !tbaa !27
  %.not223 = icmp eq ptr %204, null
  br i1 %.not223, label %.thread288, label %.lr.ph330

205:                                              ; preds = %.lr.ph330
  %206 = getelementptr inbounds i8, ptr %198, i64 8
  %207 = load ptr, ptr %206, align 8, !tbaa !28
  %208 = icmp eq ptr %207, null
  br i1 %208, label %.thread288, label %210

.thread288:                                       ; preds = %202, %196, %205
  %209 = call ptr @generate_plaintext_response(i32 noundef 200, ptr noundef nonnull @.str.97)
  br label %327

210:                                              ; preds = %205
  %211 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %207, ptr noundef nonnull dereferenceable(1) @.str.99) #22
  %.not224 = icmp eq ptr %211, null
  br i1 %.not224, label %212, label %222

212:                                              ; preds = %210
  %213 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %207, ptr noundef nonnull dereferenceable(1) @.str.100) #22
  %.not225 = icmp eq ptr %213, null
  br i1 %.not225, label %214, label %222

214:                                              ; preds = %212
  %215 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %207, ptr noundef nonnull dereferenceable(1) @.str.101) #22
  %.not226 = icmp eq ptr %215, null
  br i1 %.not226, label %216, label %222

216:                                              ; preds = %214
  %217 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %207, ptr noundef nonnull dereferenceable(1) @.str.102) #22
  %.not227 = icmp eq ptr %217, null
  br i1 %.not227, label %218, label %222

218:                                              ; preds = %216
  %219 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %207, ptr noundef nonnull dereferenceable(1) @.str.103) #22
  %.not228 = icmp eq ptr %219, null
  br i1 %.not228, label %220, label %222

220:                                              ; preds = %218
  %221 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %207, ptr noundef nonnull dereferenceable(1) @.str.104) #22
  %.not229 = icmp eq ptr %221, null
  %spec.select = select i1 %.not229, ptr @.str.98, ptr @.str.105
  br label %222

222:                                              ; preds = %220, %218, %216, %214, %212, %210
  %.0183 = phi ptr [ @.str.99, %210 ], [ @.str.100, %212 ], [ @.str.101, %214 ], [ @.str.102, %216 ], [ @.str.103, %218 ], [ %spec.select, %220 ]
  %223 = call ptr @generate_plaintext_response(i32 noundef 200, ptr noundef nonnull @.str.106)
  %224 = call ptr (i32, ...) @mstringcat(i32 noundef 4, ptr noundef %223, ptr noundef nonnull %207, ptr noundef nonnull @.str.107, ptr noundef nonnull %.0183)
  call void @free(ptr noundef %223) #18
  br label %327

225:                                              ; preds = %193
  %226 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.108) #22
  %227 = icmp eq i32 %226, 0
  br i1 %227, label %228, label %236

228:                                              ; preds = %225
  %229 = call ptr @generate_text_response(i32 noundef 200, ptr noundef nonnull @.str.109, ptr noundef nonnull @.str.30)
  %230 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %229) #22
  %231 = call i64 @send(i32 noundef %66, ptr noundef %229, i64 noundef %230, i32 noundef 0) #18
  call void @free(ptr noundef %229) #18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #18
  %232 = call ptr @read_file_raw(ptr noundef nonnull @.str.110, i32 noundef 0, ptr noundef nonnull %18)
  %233 = load i64, ptr %18, align 8, !tbaa !29
  %234 = call i64 @send(i32 noundef %66, ptr noundef %232, i64 noundef %233, i32 noundef 0) #18
  call void @free(ptr noundef %232) #18
  %235 = call i32 @close(i32 noundef %66) #18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #18
  br label %335

236:                                              ; preds = %225
  %237 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.111) #22
  %238 = icmp eq i32 %237, 0
  br i1 %238, label %239, label %247

239:                                              ; preds = %236
  %240 = call ptr @generate_text_response(i32 noundef 200, ptr noundef nonnull @.str.112, ptr noundef nonnull @.str.30)
  %241 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %240) #22
  %242 = call i64 @send(i32 noundef %66, ptr noundef %240, i64 noundef %241, i32 noundef 0) #18
  call void @free(ptr noundef %240) #18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #18
  %243 = call ptr @read_file_raw(ptr noundef nonnull @.str.113, i32 noundef 0, ptr noundef nonnull %19)
  %244 = load i64, ptr %19, align 8, !tbaa !29
  %245 = call i64 @send(i32 noundef %66, ptr noundef %243, i64 noundef %244, i32 noundef 0) #18
  call void @free(ptr noundef %243) #18
  %246 = call i32 @close(i32 noundef %66) #18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #18
  br label %335

247:                                              ; preds = %236
  %248 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.114, i64 noundef 8) #22
  %249 = icmp eq i32 %248, 0
  br i1 %249, label %.preheader, label %317

.preheader:                                       ; preds = %247, %269
  %.0173313 = phi i64 [ %270, %269 ], [ 0, %247 ]
  %250 = getelementptr inbounds [255 x i8], ptr %42, i64 0, i64 %.0173313
  %251 = load i8, ptr %250, align 1, !tbaa !15
  %252 = icmp eq i8 %251, 63
  br i1 %252, label %271, label %.preheader.1

.preheader.1:                                     ; preds = %.preheader
  %253 = add nuw nsw i64 %.0173313, 1
  %254 = getelementptr inbounds [255 x i8], ptr %42, i64 0, i64 %253
  %255 = load i8, ptr %254, align 1, !tbaa !15
  %256 = icmp eq i8 %255, 63
  br i1 %256, label %271, label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.1
  %257 = add nuw nsw i64 %.0173313, 2
  %258 = getelementptr inbounds [255 x i8], ptr %42, i64 0, i64 %257
  %259 = load i8, ptr %258, align 1, !tbaa !15
  %260 = icmp eq i8 %259, 63
  br i1 %260, label %271, label %.preheader.3

.preheader.3:                                     ; preds = %.preheader.2
  %261 = add nuw nsw i64 %.0173313, 3
  %262 = getelementptr inbounds [255 x i8], ptr %42, i64 0, i64 %261
  %263 = load i8, ptr %262, align 1, !tbaa !15
  %264 = icmp eq i8 %263, 63
  br i1 %264, label %271, label %.preheader.4

.preheader.4:                                     ; preds = %.preheader.3
  %265 = add nuw nsw i64 %.0173313, 4
  %266 = getelementptr inbounds [255 x i8], ptr %42, i64 0, i64 %265
  %267 = load i8, ptr %266, align 1, !tbaa !15
  %268 = icmp eq i8 %267, 63
  br i1 %268, label %271, label %269

269:                                              ; preds = %.preheader.4
  %270 = add nuw nsw i64 %.0173313, 5
  %exitcond.not.4 = icmp eq i64 %270, 255
  br i1 %exitcond.not.4, label %.thread294, label %.preheader, !llvm.loop !31

271:                                              ; preds = %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader
  %.0173313.lcssa = phi i64 [ %.0173313, %.preheader ], [ %253, %.preheader.1 ], [ %257, %.preheader.2 ], [ %261, %.preheader.3 ], [ %265, %.preheader.4 ]
  %.not218 = icmp eq i64 %.0173313.lcssa, 0
  br i1 %.not218, label %.thread294, label %272

272:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #18
  %gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %.0173313.lcssa
  store ptr %gep, ptr %20, align 8, !tbaa !19
  %273 = call ptr @read_post_name(ptr noundef nonnull %20)
  %.not219314 = icmp eq ptr %273, null
  br i1 %.not219314, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %272, %292
  %274 = phi ptr [ %293, %292 ], [ %273, %272 ]
  %.0158317 = phi i64 [ %.1159, %292 ], [ 0, %272 ]
  %.0163316 = phi i64 [ %.1164, %292 ], [ 0, %272 ]
  %.0168315 = phi i64 [ %.1169, %292 ], [ -1, %272 ]
  %275 = call ptr @read_post_val_alloc(ptr noundef nonnull %20)
  %.not220 = icmp eq ptr %275, null
  br i1 %.not220, label %._crit_edge, label %276

276:                                              ; preds = %.lr.ph
  %277 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %274, ptr noundef nonnull dereferenceable(1) @.str.115) #22
  %278 = icmp eq i32 %277, 0
  br i1 %278, label %279, label %281

279:                                              ; preds = %276
  %280 = call i64 @strtol(ptr nocapture noundef nonnull %275, ptr noundef null, i32 noundef 10) #18
  br label %292

281:                                              ; preds = %276
  %282 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %274, ptr noundef nonnull dereferenceable(1) @.str.116) #22
  %283 = icmp eq i32 %282, 0
  br i1 %283, label %284, label %286

284:                                              ; preds = %281
  %285 = call i64 @strtol(ptr nocapture noundef nonnull %275, ptr noundef null, i32 noundef 10) #18
  br label %292

286:                                              ; preds = %281
  %287 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %274, ptr noundef nonnull dereferenceable(1) @.str.117) #22
  %288 = icmp eq i32 %287, 0
  br i1 %288, label %289, label %292

289:                                              ; preds = %286
  %290 = call i64 @strtol(ptr nocapture noundef nonnull %275, ptr noundef null, i32 noundef 10) #18
  %sext221 = shl i64 %290, 56
  %291 = ashr exact i64 %sext221, 56
  br label %292

292:                                              ; preds = %279, %286, %289, %284
  %.1169 = phi i64 [ %280, %279 ], [ %.0168315, %284 ], [ %.0168315, %289 ], [ %.0168315, %286 ]
  %.1164 = phi i64 [ %.0163316, %279 ], [ %285, %284 ], [ %.0163316, %289 ], [ %.0163316, %286 ]
  %.1159 = phi i64 [ %.0158317, %279 ], [ %.0158317, %284 ], [ %291, %289 ], [ %.0158317, %286 ]
  call void @free(ptr noundef nonnull %275) #18
  %293 = call ptr @read_post_name(ptr noundef nonnull %20)
  %.not219 = icmp eq ptr %293, null
  br i1 %.not219, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %292, %.lr.ph, %272
  %.0168.lcssa = phi i64 [ -1, %272 ], [ %.0168315, %.lr.ph ], [ %.1169, %292 ]
  %.0163.lcssa = phi i64 [ 0, %272 ], [ %.0163316, %.lr.ph ], [ %.1164, %292 ]
  %.0158.lcssa = phi i64 [ 0, %272 ], [ %.0158317, %.lr.ph ], [ %.1159, %292 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #18
  br label %.thread294

.thread294:                                       ; preds = %269, %._crit_edge, %271
  %.4172 = phi i64 [ %.0168.lcssa, %._crit_edge ], [ -1, %271 ], [ -1, %269 ]
  %.4167 = phi i64 [ %.0163.lcssa, %._crit_edge ], [ 0, %271 ], [ 0, %269 ]
  %.4162 = phi i64 [ %.0158.lcssa, %._crit_edge ], [ 0, %271 ], [ 0, %269 ]
  %294 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.118, i64 noundef %.4172)
  %295 = call ptr @generate_text_response(i32 noundef 200, ptr noundef nonnull @.str.119, ptr noundef nonnull @.str.30)
  %296 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %295) #22
  %297 = call i64 @send(i32 noundef %66, ptr noundef %295, i64 noundef %296, i32 noundef 0) #18
  call void @free(ptr noundef %295) #18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #18
  %298 = call ptr @read_file_raw(ptr noundef nonnull @.str.120, i32 noundef 0, ptr noundef nonnull %21)
  %299 = icmp sgt i64 %.4172, 0
  %.pre = load i64, ptr %21, align 8, !tbaa !29
  br i1 %299, label %300, label %.loopexit

300:                                              ; preds = %.thread294
  %spec.store.select = call i64 @llvm.smax.i64(i64 %.4167, i64 0)
  %301 = shl i64 %spec.store.select, 32
  %sext222324 = add i64 %301, 231928233984
  %302 = ashr exact i64 %sext222324, 32
  %303 = icmp ult i64 %302, %.pre
  br i1 %303, label %.lr.ph326, label %.loopexit

.lr.ph326:                                        ; preds = %300
  %304 = trunc nsw i64 %.4162 to i8
  br label %305

305:                                              ; preds = %.lr.ph326, %305
  %306 = phi i64 [ %302, %.lr.ph326 ], [ %309, %305 ]
  %307 = getelementptr inbounds i8, ptr %298, i64 %306
  store i8 %304, ptr %307, align 1, !tbaa !15
  %308 = add nsw i64 %306, %.4172
  %sext222 = shl i64 %308, 32
  %309 = ashr exact i64 %sext222, 32
  %310 = load i64, ptr %21, align 8, !tbaa !29
  %311 = icmp ult i64 %309, %310
  br i1 %311, label %305, label %.loopexit, !llvm.loop !33

.loopexit:                                        ; preds = %305, %300, %.thread294
  %312 = phi i64 [ %.pre, %300 ], [ %.pre, %.thread294 ], [ %310, %305 ]
  %313 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.121, i64 noundef %312)
  %314 = load i64, ptr %21, align 8, !tbaa !29
  %315 = call i64 @send(i32 noundef %66, ptr noundef %298, i64 noundef %314, i32 noundef 0) #18
  call void @free(ptr noundef %298) #18
  %316 = call i32 @close(i32 noundef %66) #18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #18
  br label %335

317:                                              ; preds = %247
  %318 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.122) #22
  %319 = icmp eq i32 %318, 0
  br i1 %319, label %320, label %322

320:                                              ; preds = %317
  %321 = call ptr @generate_html_response(i32 noundef 200, ptr noundef nonnull @.str.123)
  br label %327

322:                                              ; preds = %317
  %323 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.124) #22
  %324 = icmp eq i32 %323, 0
  br i1 %324, label %325, label %.thread280

325:                                              ; preds = %322
  %326 = call ptr @serve_page(i32 noundef 200, ptr noundef nonnull @.str.125)
  br label %327

.thread280:                                       ; preds = %.thread267, %322
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #18
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %22, ptr noundef nonnull align 16 dereferenceable(32) @__const.main.vars.128, i64 32, i1 false)
  call void @render_page(i32 noundef %66, i32 noundef 404, ptr noundef nonnull @.str.75, ptr noundef nonnull %22, i32 noundef 2)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #18
  br label %335

327:                                              ; preds = %.thread276, %.thread288, %222, %320, %325, %191, %.thread, %168, %91
  %.3157 = phi ptr [ %92, %91 ], [ %133, %.thread ], [ %.0154265375, %168 ], [ %192, %191 ], [ %321, %320 ], [ %326, %325 ], [ %209, %.thread288 ], [ %224, %222 ], [ %186, %.thread276 ]
  %.not234 = icmp eq ptr %.3157, null
  br i1 %.not234, label %328, label %331

328:                                              ; preds = %327
  %329 = load ptr, ptr @stderr, align 8, !tbaa !19
  %330 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %329, ptr noundef nonnull @.str.129) #21
  call void @exit(i32 noundef 1) #20
  unreachable

331:                                              ; preds = %327
  %332 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.3157) #22
  %333 = call i64 @send(i32 noundef %66, ptr noundef nonnull %.3157, i64 noundef %332, i32 noundef 0) #18
  call void @free(ptr noundef nonnull %.3157) #18
  %334 = call i32 @close(i32 noundef %66) #18
  br label %335

335:                                              ; preds = %187, %331, %.thread280, %.loopexit, %239, %228, %169, %126, %120, %119
  %336 = load i32, ptr %41, align 4, !tbaa !16
  %.not235 = icmp eq i32 %336, 0
  br i1 %.not235, label %337, label %343

337:                                              ; preds = %335
  %338 = load ptr, ptr %45, align 8, !tbaa !21
  %.not236 = icmp eq ptr %338, null
  br i1 %.not236, label %340, label %339

339:                                              ; preds = %337
  call void @free(ptr noundef nonnull %338) #18
  br label %340

340:                                              ; preds = %339, %337
  %341 = load ptr, ptr %43, align 8, !tbaa !22
  %.not237 = icmp eq ptr %341, null
  br i1 %.not237, label %343, label %342

342:                                              ; preds = %340
  call void @free_list(ptr noundef nonnull %341, ptr noundef nonnull @destroy_header) #18
  br label %343

343:                                              ; preds = %340, %342, %335
  %344 = call i32 @gettimeofday(ptr noundef nonnull %4, ptr noundef null) #18
  %345 = load i64, ptr %4, align 8, !tbaa !34
  %346 = load i64, ptr %3, align 8, !tbaa !34
  %.not238 = icmp eq i64 %345, %346
  br i1 %.not238, label %350, label %347

347:                                              ; preds = %343
  %348 = sub nsw i64 %345, %346
  %349 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.130, i64 noundef %348)
  br label %350

350:                                              ; preds = %347, %343
  %351 = load i64, ptr %62, align 8, !tbaa !36
  %352 = load i64, ptr %63, align 8, !tbaa !36
  %353 = sub nsw i64 %351, %352
  %354 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.131, i64 noundef %353)
  br label %355

355:                                              ; preds = %350, %75
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %9) #18
  %356 = call i32 @accept(i32 noundef %23, ptr noundef nonnull %5, ptr noundef nonnull %7) #18
  %357 = icmp slt i32 %356, 0
  br i1 %357, label %._crit_edge356, label %65
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #10

; Function Attrs: nounwind
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #11

; Function Attrs: nounwind
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #11

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @__bswap_16(i16 noundef zeroext) local_unnamed_addr #12

; Function Attrs: nounwind
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #11

; Function Attrs: nounwind
declare i32 @listen(i32 noundef, i32 noundef) local_unnamed_addr #11

declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: nofree
declare noundef i64 @read(i32 noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #13

; Function Attrs: nofree nounwind
declare noundef i32 @gettimeofday(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #14

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #8

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare i32 @strcasecmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #15

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strstr(ptr noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtol(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #16

declare void @free_list(ptr noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #17

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #11 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #12 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #13 = { nofree "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #14 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #15 = { mustprogress nofree nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #16 = { mustprogress nofree nounwind willreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #17 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #18 = { nounwind }
attributes #19 = { cold }
attributes #20 = { noreturn nounwind }
attributes #21 = { cold nounwind }
attributes #22 = { nounwind willreturn memory(read) }
attributes #23 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"sockaddr_in", !11, i64 0, !11, i64 2, !12, i64 4, !7, i64 8}
!11 = !{!"short", !7, i64 0}
!12 = !{!"in_addr", !6, i64 0}
!13 = !{!10, !6, i64 4}
!14 = !{!10, !11, i64 2}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !6, i64 260}
!17 = !{!"HTTP_request", !6, i64 0, !7, i64 4, !6, i64 260, !18, i64 264, !18, i64 272}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!18, !18, i64 0}
!20 = !{!17, !6, i64 0}
!21 = !{!17, !18, i64 264}
!22 = !{!17, !18, i64 272}
!23 = !{!24, !18, i64 0}
!24 = !{!"ll_item", !18, i64 0, !18, i64 8}
!25 = !{!26, !18, i64 0}
!26 = !{!"header", !18, i64 0, !18, i64 8}
!27 = !{!24, !18, i64 8}
!28 = !{!26, !18, i64 8}
!29 = !{!30, !30, i64 0}
!30 = !{!"long", !7, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = !{!35, !30, i64 0}
!35 = !{!"timeval", !30, i64 0, !30, i64 8}
!36 = !{!35, !30, i64 8}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass