; LLVM IR from ohler55/agoo :: ext/agoo (page)

; 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._cache = type { [1024 x ptr], [1024 x ptr], [64 x ptr], ptr, ptr, ptr }
%struct._agooPage = type { ptr, ptr, i64, double, i8 }
%struct._headRule = type { ptr, ptr, ptr, ptr, ptr, i32 }
%struct._agooText = type { ptr, i64, i64, %struct._agooAtom, i8, [8 x i8] }
%struct._agooAtom = type { ptr, %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [62 x i8], align 1
@cache = external hidden global %struct._cache, align 8
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@page_min_fmt = external hidden constant [39 x i8], align 16
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@page_fmt = external hidden constant [59 x i8], align 16

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

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

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

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

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

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #2

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

declare i32 @agoo_err_memory(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #4

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

; Function Attrs: nounwind uwtable
define dso_local ptr @agoo_page_immutable(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #5 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i8, align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %21 = call noalias ptr @malloc(i64 noundef 40) #8
  store ptr %21, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = call ptr @path_mime(ptr noundef %22)
  store ptr %23, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store i64 0, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  %25 = icmp eq ptr null, %24
  br i1 %25, label %26, label %29

26:                                               ; preds = %4
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call i32 @agoo_err_memory(ptr noundef %27, ptr noundef @.str.6, ptr noundef @.str.3, i32 noundef 530)
  store ptr null, ptr %5, align 8
  store i32 1, ptr %18, align 4
  br label %260

29:                                               ; preds = %4
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = icmp eq ptr null, %30
  br i1 %31, label %32, label %35

32:                                               ; preds = %29
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct._agooPage, ptr %33, i32 0, i32 1
  store ptr null, ptr %34, align 8, !tbaa !13
  br label %82

35:                                               ; preds = %29
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = call noalias ptr @strdup(ptr noundef %36) #7
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct._agooPage, ptr %38, i32 0, i32 1
  store ptr %37, ptr %39, align 8, !tbaa !13
  %40 = icmp eq ptr null, %37
  br i1 %40, label %41, label %43

41:                                               ; preds = %35
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %42) #7
  store ptr null, ptr %5, align 8
  store i32 1, ptr %18, align 4
  br label %260

43:                                               ; preds = %35
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = call i64 @strlen(ptr noundef %44) #9
  %46 = trunc i64 %45 to i32
  store i32 %46, ptr %15, align 4, !tbaa !9
  %47 = load ptr, ptr getelementptr inbounds (%struct._cache, ptr @cache, i32 0, i32 3), align 8, !tbaa !17
  %48 = icmp ne ptr null, %47
  br i1 %48, label %49, label %81

49:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %50 = load ptr, ptr getelementptr inbounds (%struct._cache, ptr @cache, i32 0, i32 3), align 8, !tbaa !17
  %51 = call i64 @strlen(ptr noundef %50) #9
  %52 = trunc i64 %51 to i32
  store i32 %52, ptr %19, align 4, !tbaa !9
  %53 = load ptr, ptr getelementptr inbounds (%struct._cache, ptr @cache, i32 0, i32 3), align 8, !tbaa !17
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct._agooPage, ptr %54, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !13
  %57 = load i32, ptr %19, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = call i32 @strncmp(ptr noundef %53, ptr noundef %56, i64 noundef %58) #9
  %60 = icmp eq i32 0, %59
  br i1 %60, label %61, label %79

61:                                               ; preds = %49
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct._agooPage, ptr %62, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !13
  %65 = load i32, ptr %19, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds i8, ptr %64, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !19
  %69 = sext i8 %68 to i32
  %70 = icmp eq i32 47, %69
  br i1 %70, label %71, label %79

71:                                               ; preds = %61
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct._agooPage, ptr %72, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  %75 = load i32, ptr %19, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i8, ptr %74, i64 %76
  %78 = getelementptr inbounds i8, ptr %77, i64 1
  store ptr %78, ptr %12, align 8, !tbaa !5
  br label %80

79:                                               ; preds = %61, %49
  store ptr null, ptr %12, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %79, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %81

81:                                               ; preds = %80, %43
  br label %82

82:                                               ; preds = %81, %32
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct._agooPage, ptr %83, i32 0, i32 2
  store i64 0, ptr %84, align 8, !tbaa !20
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._agooPage, ptr %85, i32 0, i32 3
  store double 0.000000e+00, ptr %86, align 8, !tbaa !21
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct._agooPage, ptr %87, i32 0, i32 4
  store i8 1, ptr %88, align 8, !tbaa !22
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = icmp eq ptr null, %89
  br i1 %90, label %91, label %92

91:                                               ; preds = %82
  store ptr @.str.7, ptr %11, align 8, !tbaa !5
  br label %92

92:                                               ; preds = %91, %82
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = icmp eq i32 0, %93
  br i1 %94, label %95, label %99

95:                                               ; preds = %92
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = call i64 @strlen(ptr noundef %96) #9
  %98 = trunc i64 %97 to i32
  store i32 %98, ptr %9, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %95, %92
  %100 = load ptr, ptr getelementptr inbounds (%struct._cache, ptr @cache, i32 0, i32 5), align 8, !tbaa !23
  store ptr %100, ptr %17, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %117, %99
  %102 = load ptr, ptr %17, align 8, !tbaa !5
  %103 = icmp ne ptr null, %102
  br i1 %103, label %104, label %121

104:                                              ; preds = %101
  %105 = load ptr, ptr %17, align 8, !tbaa !5
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = call zeroext i1 @head_rule_match(ptr noundef %105, ptr noundef %106, ptr noundef %107)
  br i1 %108, label %109, label %116

109:                                              ; preds = %104
  %110 = load ptr, ptr %17, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct._headRule, ptr %110, i32 0, i32 5
  %112 = load i32, ptr %111, align 8, !tbaa !24
  %113 = sext i32 %112 to i64
  %114 = load i64, ptr %16, align 8, !tbaa !11
  %115 = add nsw i64 %114, %113
  store i64 %115, ptr %16, align 8, !tbaa !11
  br label %116

116:                                              ; preds = %109, %104
  br label %117

117:                                              ; preds = %116
  %118 = load ptr, ptr %17, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct._headRule, ptr %118, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !26
  store ptr %120, ptr %17, align 8, !tbaa !5
  br label %101, !llvm.loop !27

121:                                              ; preds = %101
  %122 = load i32, ptr %9, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = add i64 119, %123
  store i64 %124, ptr %13, align 8, !tbaa !11
  %125 = load i64, ptr %13, align 8, !tbaa !11
  %126 = trunc i64 %125 to i32
  %127 = call ptr @agoo_text_allocate(i32 noundef %126)
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct._agooPage, ptr %128, i32 0, i32 0
  store ptr %127, ptr %129, align 8, !tbaa !29
  %130 = icmp eq ptr null, %127
  br i1 %130, label %131, label %135

131:                                              ; preds = %121
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = call i32 @agoo_err_memory(ptr noundef %132, ptr noundef @.str.8, ptr noundef @.str.3, i32 noundef 570)
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %134) #7
  store ptr null, ptr %5, align 8
  store i32 1, ptr %18, align 4
  br label %260

135:                                              ; preds = %121
  %136 = load i64, ptr %16, align 8, !tbaa !11
  %137 = icmp slt i64 0, %136
  br i1 %137, label %138, label %215

138:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct._agooPage, ptr %139, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8, !tbaa !29
  %142 = getelementptr inbounds %struct._agooText, ptr %141, i32 0, i32 5
  %143 = getelementptr inbounds [8 x i8], ptr %142, i64 0, i64 0
  %144 = load i32, ptr %9, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %143, ptr noundef @page_min_fmt, i64 noundef %145) #7
  store i32 %146, ptr %14, align 4, !tbaa !9
  %147 = load ptr, ptr getelementptr inbounds (%struct._cache, ptr @cache, i32 0, i32 5), align 8, !tbaa !23
  store ptr %147, ptr %17, align 8, !tbaa !5
  br label %148

148:                                              ; preds = %182, %138
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = icmp ne ptr null, %149
  br i1 %150, label %151, label %186

151:                                              ; preds = %148
  %152 = load ptr, ptr %17, align 8, !tbaa !5
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = load ptr, ptr %11, align 8, !tbaa !5
  %155 = call zeroext i1 @head_rule_match(ptr noundef %152, ptr noundef %153, ptr noundef %154)
  br i1 %155, label %156, label %181

156:                                              ; preds = %151
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct._agooPage, ptr %157, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8, !tbaa !29
  %160 = getelementptr inbounds %struct._agooText, ptr %159, i32 0, i32 5
  %161 = getelementptr inbounds [8 x i8], ptr %160, i64 0, i64 0
  %162 = load i32, ptr %14, align 4, !tbaa !9
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i8, ptr %161, i64 %163
  %165 = load ptr, ptr %17, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct._headRule, ptr %165, i32 0, i32 3
  %167 = load ptr, ptr %166, align 8, !tbaa !30
  %168 = load ptr, ptr %17, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct._headRule, ptr %168, i32 0, i32 4
  %170 = load ptr, ptr %169, align 8, !tbaa !31
  %171 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %164, ptr noundef @.str.9, ptr noundef %167, ptr noundef %170) #7
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = add nsw i32 %172, %171
  store i32 %173, ptr %14, align 4, !tbaa !9
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct._headRule, ptr %174, i32 0, i32 3
  %176 = load ptr, ptr %175, align 8, !tbaa !30
  %177 = call i32 @strcasecmp(ptr noundef @.str.10, ptr noundef %176) #9
  %178 = icmp eq i32 0, %177
  br i1 %178, label %179, label %180

179:                                              ; preds = %156
  store i8 1, ptr %20, align 1, !tbaa !32
  br label %180

180:                                              ; preds = %179, %156
  br label %181

181:                                              ; preds = %180, %151
  br label %182

182:                                              ; preds = %181
  %183 = load ptr, ptr %17, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct._headRule, ptr %183, i32 0, i32 0
  %185 = load ptr, ptr %184, align 8, !tbaa !26
  store ptr %185, ptr %17, align 8, !tbaa !5
  br label %148, !llvm.loop !33

186:                                              ; preds = %148
  %187 = load i8, ptr %20, align 1, !tbaa !32, !range !34, !noundef !35
  %188 = trunc i8 %187 to i1
  br i1 %188, label %202, label %189

189:                                              ; preds = %186
  %190 = load ptr, ptr %10, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct._agooPage, ptr %190, i32 0, i32 0
  %192 = load ptr, ptr %191, align 8, !tbaa !29
  %193 = getelementptr inbounds %struct._agooText, ptr %192, i32 0, i32 5
  %194 = getelementptr inbounds [8 x i8], ptr %193, i64 0, i64 0
  %195 = load i32, ptr %14, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds i8, ptr %194, i64 %196
  %198 = load ptr, ptr %11, align 8, !tbaa !5
  %199 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %197, ptr noundef @.str.11, ptr noundef %198) #7
  %200 = load i32, ptr %14, align 4, !tbaa !9
  %201 = add nsw i32 %200, %199
  store i32 %201, ptr %14, align 4, !tbaa !9
  br label %214

202:                                              ; preds = %186
  %203 = load ptr, ptr %10, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct._agooPage, ptr %203, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !29
  %206 = getelementptr inbounds %struct._agooText, ptr %205, i32 0, i32 5
  %207 = getelementptr inbounds [8 x i8], ptr %206, i64 0, i64 0
  %208 = load i32, ptr %14, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds i8, ptr %207, i64 %209
  %211 = call ptr @strcpy(ptr noundef %210, ptr noundef @.str.12) #7
  %212 = load i32, ptr %14, align 4, !tbaa !9
  %213 = add nsw i32 %212, 2
  store i32 %213, ptr %14, align 4, !tbaa !9
  br label %214

214:                                              ; preds = %202, %189
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  br label %225

215:                                              ; preds = %135
  %216 = load ptr, ptr %10, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct._agooPage, ptr %216, i32 0, i32 0
  %218 = load ptr, ptr %217, align 8, !tbaa !29
  %219 = getelementptr inbounds %struct._agooText, ptr %218, i32 0, i32 5
  %220 = getelementptr inbounds [8 x i8], ptr %219, i64 0, i64 0
  %221 = load ptr, ptr %11, align 8, !tbaa !5
  %222 = load i32, ptr %9, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %220, ptr noundef @page_fmt, ptr noundef %221, i64 noundef %223) #7
  store i32 %224, ptr %14, align 4, !tbaa !9
  br label %225

225:                                              ; preds = %215, %214
  %226 = load i32, ptr %14, align 4, !tbaa !9
  %227 = load i32, ptr %9, align 4, !tbaa !9
  %228 = add nsw i32 %226, %227
  %229 = sext i32 %228 to i64
  store i64 %229, ptr %13, align 8, !tbaa !11
  %230 = load ptr, ptr %10, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct._agooPage, ptr %230, i32 0, i32 0
  %232 = load ptr, ptr %231, align 8, !tbaa !29
  %233 = getelementptr inbounds %struct._agooText, ptr %232, i32 0, i32 5
  %234 = getelementptr inbounds [8 x i8], ptr %233, i64 0, i64 0
  %235 = load i32, ptr %14, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds i8, ptr %234, i64 %236
  %238 = load ptr, ptr %8, align 8, !tbaa !5
  %239 = load i32, ptr %9, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %237, ptr align 1 %238, i64 %240, i1 false)
  %241 = load ptr, ptr %10, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct._agooPage, ptr %241, i32 0, i32 0
  %243 = load ptr, ptr %242, align 8, !tbaa !29
  %244 = getelementptr inbounds %struct._agooText, ptr %243, i32 0, i32 5
  %245 = load i64, ptr %13, align 8, !tbaa !11
  %246 = getelementptr inbounds [8 x i8], ptr %244, i64 0, i64 %245
  store i8 0, ptr %246, align 1, !tbaa !19
  %247 = load i64, ptr %13, align 8, !tbaa !11
  %248 = load ptr, ptr %10, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct._agooPage, ptr %248, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8, !tbaa !29
  %251 = getelementptr inbounds %struct._agooText, ptr %250, i32 0, i32 1
  store i64 %247, ptr %251, align 8, !tbaa !36
  %252 = load ptr, ptr %10, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct._agooPage, ptr %252, i32 0, i32 0
  %254 = load ptr, ptr %253, align 8, !tbaa !29
  call void @agoo_text_ref(ptr noundef %254)
  %255 = load ptr, ptr %7, align 8, !tbaa !5
  %256 = load i32, ptr %15, align 4, !tbaa !9
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  %258 = call ptr @cache_set(ptr noundef %255, i32 noundef %256, ptr noundef %257)
  %259 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %259, ptr %5, align 8
  store i32 1, ptr %18, align 4
  br label %260

260:                                              ; preds = %225, %131, %41, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  %261 = load ptr, ptr %5, align 8
  ret ptr %261
}

; Function Attrs: nounwind uwtable
declare hidden ptr @path_mime(ptr noundef) #5

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @head_rule_match(ptr noundef, ptr noundef, ptr noundef) #5

declare ptr @agoo_text_allocate(i32 noundef) #4

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2

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

; 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) #6

declare void @agoo_text_ref(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden ptr @cache_set(ptr noundef, i32 noundef, ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { "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 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { nounwind willreturn memory(read) }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_agooPage", !6, i64 0, !6, i64 8, !12, i64 16, !15, i64 24, !16, i64 32}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!18, !6, i64 16896}
!18 = !{!"_cache", !7, i64 0, !7, i64 8192, !7, i64 16384, !6, i64 16896, !6, i64 16904, !6, i64 16912}
!19 = !{!7, !7, i64 0}
!20 = !{!14, !12, i64 16}
!21 = !{!14, !15, i64 24}
!22 = !{!14, !16, i64 32}
!23 = !{!18, !6, i64 16912}
!24 = !{!25, !10, i64 40}
!25 = !{!"_headRule", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40}
!26 = !{!25, !6, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!14, !6, i64 0}
!30 = !{!25, !6, i64 24}
!31 = !{!25, !6, i64 32}
!32 = !{!16, !16, i64 0}
!33 = distinct !{!33, !28}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = !{!37, !12, i64 8}
!37 = !{!"_agooText", !6, i64 0, !12, i64 8, !12, i64 16, !38, i64 24, !16, i64 72, !7, i64 73}
!38 = !{!"_agooAtom", !6, i64 0, !7, 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._cache = type { [1024 x ptr], [1024 x ptr], [64 x ptr], ptr, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [62 x i8], align 1
@cache = external hidden local_unnamed_addr global %struct._cache, align 8
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@page_min_fmt = external hidden constant [39 x i8], align 16
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@page_fmt = external hidden constant [59 x i8], align 16

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #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 #3

declare i32 @agoo_err_memory(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; 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 #5

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @agoo_page_immutable(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3) local_unnamed_addr #6 {
  %5 = tail call noalias dereferenceable_or_null(40) ptr @malloc(i64 noundef 40) #10
  %6 = tail call ptr @path_mime(ptr noundef %1)
  %7 = icmp eq ptr %5, null
  br i1 %7, label %8, label %10

8:                                                ; preds = %4
  %9 = tail call i32 @agoo_err_memory(ptr noundef %0, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.3, i32 noundef 530) #11
  br label %86

10:                                               ; preds = %4
  %11 = icmp eq ptr %1, null
  br i1 %11, label %12, label %14

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr null, ptr %13, align 8, !tbaa !5
  br label %33

14:                                               ; preds = %10
  %15 = tail call noalias ptr @strdup(ptr noundef nonnull %1) #11
  %16 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %15, ptr %16, align 8, !tbaa !5
  %17 = icmp eq ptr %15, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %14
  tail call void @free(ptr noundef nonnull %5) #11
  br label %86

19:                                               ; preds = %14
  %20 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #12
  %21 = trunc i64 %20 to i32
  %22 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 16896), align 8, !tbaa !13
  %.not = icmp eq ptr %22, null
  br i1 %.not, label %33, label %23

23:                                               ; preds = %19
  %24 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %22) #12
  %sext = shl i64 %24, 32
  %25 = ashr exact i64 %sext, 32
  %26 = tail call i32 @strncmp(ptr noundef nonnull %22, ptr noundef nonnull %15, i64 noundef %25) #12
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %33

28:                                               ; preds = %23
  %29 = getelementptr inbounds i8, ptr %15, i64 %25
  %30 = load i8, ptr %29, align 1, !tbaa !15
  %31 = icmp eq i8 %30, 47
  %32 = getelementptr inbounds i8, ptr %29, i64 1
  %spec.select = select i1 %31, ptr %32, ptr null
  br label %33

33:                                               ; preds = %28, %23, %19, %12
  %.181 = phi ptr [ null, %12 ], [ null, %19 ], [ null, %23 ], [ %spec.select, %28 ]
  %.077 = phi i32 [ 0, %12 ], [ %21, %19 ], [ %21, %23 ], [ %21, %28 ]
  %34 = getelementptr inbounds i8, ptr %5, i64 16
  %35 = getelementptr inbounds i8, ptr %5, i64 32
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %34, i8 0, i64 16, i1 false)
  store i8 1, ptr %35, align 8, !tbaa !16
  %36 = icmp eq ptr %6, null
  %spec.store.select = select i1 %36, ptr @.str.7, ptr %6
  %37 = icmp eq i32 %3, 0
  br i1 %37, label %38, label %41

38:                                               ; preds = %33
  %39 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #12
  %40 = trunc i64 %39 to i32
  br label %41

41:                                               ; preds = %38, %33
  %.073 = phi i32 [ %40, %38 ], [ %3, %33 ]
  %.07490 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 16912), align 8, !tbaa !17
  %.not8891 = icmp eq ptr %.07490, null
  br i1 %.not8891, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %41, %48
  %.07493 = phi ptr [ %.074, %48 ], [ %.07490, %41 ]
  %.07592 = phi i64 [ %.176, %48 ], [ 0, %41 ]
  %42 = tail call zeroext i1 @head_rule_match(ptr noundef nonnull %.07493, ptr noundef %.181, ptr noundef nonnull %spec.store.select)
  br i1 %42, label %43, label %48

43:                                               ; preds = %.lr.ph
  %44 = getelementptr inbounds i8, ptr %.07493, i64 40
  %45 = load i32, ptr %44, align 8, !tbaa !18
  %46 = sext i32 %45 to i64
  %47 = add nsw i64 %.07592, %46
  br label %48

48:                                               ; preds = %.lr.ph, %43
  %.176 = phi i64 [ %47, %43 ], [ %.07592, %.lr.ph ]
  %.074 = load ptr, ptr %.07493, align 8, !tbaa !17
  %.not88 = icmp eq ptr %.074, null
  br i1 %.not88, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !21

._crit_edge.loopexit:                             ; preds = %48
  %49 = icmp sgt i64 %.176, 0
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %41
  %.075.lcssa = phi i1 [ false, %41 ], [ %49, %._crit_edge.loopexit ]
  %50 = sext i32 %.073 to i64
  %51 = add i32 %.073, 119
  %52 = tail call ptr @agoo_text_allocate(i32 noundef %51) #11
  store ptr %52, ptr %5, align 8, !tbaa !23
  %53 = icmp eq ptr %52, null
  br i1 %53, label %54, label %56

54:                                               ; preds = %._crit_edge
  %55 = tail call i32 @agoo_err_memory(ptr noundef %0, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.3, i32 noundef 570) #11
  tail call void @free(ptr noundef nonnull %5) #11
  br label %86

56:                                               ; preds = %._crit_edge
  %57 = getelementptr inbounds i8, ptr %52, i64 73
  br i1 %.075.lcssa, label %58, label %75

58:                                               ; preds = %56
  %59 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %57, ptr noundef nonnull dereferenceable(1) @page_min_fmt, i64 noundef %50) #11
  %.194 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 16912), align 8, !tbaa !17
  %.not8995 = icmp eq ptr %.194, null
  br i1 %.not8995, label %._crit_edge100, label %.lr.ph99

.lr.ph99:                                         ; preds = %58, %70
  %.197 = phi ptr [ %.1, %70 ], [ %.194, %58 ]
  %.07896 = phi i32 [ %.179, %70 ], [ %59, %58 ]
  %60 = tail call zeroext i1 @head_rule_match(ptr noundef nonnull %.197, ptr noundef %.181, ptr noundef nonnull %spec.store.select)
  br i1 %60, label %61, label %70

61:                                               ; preds = %.lr.ph99
  %62 = sext i32 %.07896 to i64
  %63 = getelementptr inbounds i8, ptr %57, i64 %62
  %64 = getelementptr inbounds i8, ptr %.197, i64 24
  %65 = load ptr, ptr %64, align 8, !tbaa !24
  %66 = getelementptr inbounds i8, ptr %.197, i64 32
  %67 = load ptr, ptr %66, align 8, !tbaa !25
  %68 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %63, ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef %65, ptr noundef %67) #11
  %69 = add nsw i32 %68, %.07896
  br label %70

70:                                               ; preds = %61, %.lr.ph99
  %.179 = phi i32 [ %.07896, %.lr.ph99 ], [ %69, %61 ]
  %.1 = load ptr, ptr %.197, align 8, !tbaa !17
  %.not89 = icmp eq ptr %.1, null
  br i1 %.not89, label %._crit_edge100, label %.lr.ph99, !llvm.loop !26

._crit_edge100:                                   ; preds = %70, %58
  %.078.lcssa = phi i32 [ %59, %58 ], [ %.179, %70 ]
  %71 = sext i32 %.078.lcssa to i64
  %72 = getelementptr inbounds i8, ptr %57, i64 %71
  %73 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %72, ptr noundef nonnull dereferenceable(1) @.str.12) #11
  %74 = add nsw i32 %.078.lcssa, 2
  br label %77

75:                                               ; preds = %56
  %76 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %57, ptr noundef nonnull dereferenceable(1) @page_fmt, ptr noundef nonnull %spec.store.select, i64 noundef %50) #11
  br label %77

77:                                               ; preds = %75, %._crit_edge100
  %.3 = phi i32 [ %74, %._crit_edge100 ], [ %76, %75 ]
  %78 = add nsw i32 %.3, %.073
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i8, ptr %52, i64 73
  %81 = sext i32 %.3 to i64
  %82 = getelementptr inbounds i8, ptr %80, i64 %81
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %82, ptr align 1 %2, i64 %50, i1 false)
  %83 = getelementptr inbounds [8 x i8], ptr %80, i64 0, i64 %79
  store i8 0, ptr %83, align 1, !tbaa !15
  %84 = getelementptr inbounds i8, ptr %52, i64 8
  store i64 %79, ptr %84, align 8, !tbaa !27
  tail call void @agoo_text_ref(ptr noundef nonnull %52) #11
  %85 = tail call ptr @cache_set(ptr noundef %1, i32 noundef %.077, ptr noundef nonnull %5)
  br label %86

86:                                               ; preds = %77, %54, %18, %8
  %.0 = phi ptr [ null, %8 ], [ null, %54 ], [ %5, %77 ], [ null, %18 ]
  ret ptr %.0
}

; Function Attrs: nounwind uwtable
declare hidden ptr @path_mime(ptr noundef) local_unnamed_addr #6

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @head_rule_match(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

declare ptr @agoo_text_allocate(i32 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #7

; 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) #8

declare void @agoo_text_ref(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden ptr @cache_set(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nofree nounwind willreturn 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 #3 = { 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 #4 = { "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 = { 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 #6 = { 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 #7 = { 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 #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { nounwind }
attributes #12 = { nounwind willreturn memory(read) }

!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, !7, i64 8}
!6 = !{!"_agooPage", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !12, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"_Bool", !8, i64 0}
!13 = !{!14, !7, i64 16896}
!14 = !{!"_cache", !8, i64 0, !8, i64 8192, !8, i64 16384, !7, i64 16896, !7, i64 16904, !7, i64 16912}
!15 = !{!8, !8, i64 0}
!16 = !{!6, !12, i64 32}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !20, i64 40}
!19 = !{!"_headRule", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !20, i64 40}
!20 = !{!"int", !8, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!6, !7, i64 0}
!24 = !{!19, !7, i64 24}
!25 = !{!19, !7, i64 32}
!26 = distinct !{!26, !22}
!27 = !{!28, !10, i64 8}
!28 = !{!"_agooText", !7, i64 0, !10, i64 8, !10, i64 16, !29, i64 24, !12, i64 72, !8, i64 73}
!29 = !{!"_agooAtom", !7, i64 0, !8, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass