; LLVM IR from brewlin/garbage-collect :: gc-python (gc)

; 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.list = type { ptr }
%struct.pool_header = type { %union.anon, ptr, ptr, ptr, i32, i32, i32, i32 }
%union.anon = type { ptr }
%struct.arena_object = type { i64, ptr, ptr, i32, i32, ptr, ptr, ptr }

@usedpools = external dso_local global [64 x ptr], align 16
@arenas = external dso_local global ptr, align 8
@maxarenas = external dso_local global i32, align 4
@usable_arenas = external dso_local global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@Hugmem = external dso_local global %struct.list, align 8
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__.Free = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [81 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr 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 uwtable
define dso_local void @Free(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %14

13:                                               ; preds = %1
  store i32 1, ptr %8, align 4
  br label %349

14:                                               ; preds = %1
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = ptrtoint ptr %15 to i64
  %17 = and i64 %16, -4096
  %18 = inttoptr i64 %17 to ptr
  store ptr %18, ptr %3, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.pool_header, ptr %19, i32 0, i32 4
  %21 = load i32, ptr %20, align 8, !tbaa !9
  %22 = load i32, ptr @maxarenas, align 4, !tbaa !12
  %23 = icmp ult i32 %21, %22
  br i1 %23, label %24, label %345

24:                                               ; preds = %14
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = ptrtoint ptr %25 to i64
  %27 = load ptr, ptr @arenas, align 8, !tbaa !5
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.pool_header, ptr %28, i32 0, i32 4
  %30 = load i32, ptr %29, align 8, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds %struct.arena_object, ptr %27, i64 %31
  %33 = getelementptr inbounds %struct.arena_object, ptr %32, i32 0, i32 0
  %34 = load i64, ptr %33, align 8, !tbaa !13
  %35 = sub i64 %26, %34
  %36 = icmp ult i64 %35, 262144
  br i1 %36, label %37, label %345

37:                                               ; preds = %24
  %38 = load ptr, ptr @arenas, align 8, !tbaa !5
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.pool_header, ptr %39, i32 0, i32 4
  %41 = load i32, ptr %40, align 8, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = getelementptr inbounds %struct.arena_object, ptr %38, i64 %42
  %44 = getelementptr inbounds %struct.arena_object, ptr %43, i32 0, i32 0
  %45 = load i64, ptr %44, align 8, !tbaa !13
  %46 = icmp ne i64 %45, 0
  br i1 %46, label %47, label %345

47:                                               ; preds = %37
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.pool_header, ptr %48, i32 0, i32 0
  %50 = load i32, ptr %49, align 8, !tbaa !16
  %51 = icmp ule i32 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %47
  store i32 1, ptr %8, align 4
  br label %349

53:                                               ; preds = %47
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.pool_header, ptr %54, i32 0, i32 0
  %56 = load i32, ptr %55, align 8, !tbaa !16
  %57 = icmp ugt i32 %56, 0
  br i1 %57, label %58, label %59

58:                                               ; preds = %53
  br label %60

59:                                               ; preds = %53
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 321, ptr noundef @__PRETTY_FUNCTION__.Free) #7
  unreachable

60:                                               ; preds = %58
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.pool_header, ptr %62, i32 0, i32 5
  %64 = load i32, ptr %63, align 4, !tbaa !17
  %65 = add i32 %64, 1
  %66 = shl i32 %65, 3
  %67 = zext i32 %66 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %61, i8 0, i64 %67, i1 false)
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.pool_header, ptr %68, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !18
  store ptr %70, ptr %4, align 8, !tbaa !5
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 8
  store ptr %70, ptr %72, align 8, !tbaa !5
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.pool_header, ptr %74, i32 0, i32 1
  store ptr %73, ptr %75, align 8, !tbaa !18
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %309

78:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.pool_header, ptr %79, i32 0, i32 0
  %81 = load i32, ptr %80, align 8, !tbaa !16
  %82 = add i32 %81, -1
  store i32 %82, ptr %80, align 8, !tbaa !16
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %78
  store i32 1, ptr %8, align 4
  br label %308

85:                                               ; preds = %78
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.pool_header, ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !19
  store ptr %88, ptr %5, align 8, !tbaa !5
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.pool_header, ptr %89, i32 0, i32 3
  %91 = load ptr, ptr %90, align 8, !tbaa !20
  store ptr %91, ptr %6, align 8, !tbaa !5
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.pool_header, ptr %93, i32 0, i32 3
  store ptr %92, ptr %94, align 8, !tbaa !20
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.pool_header, ptr %96, i32 0, i32 2
  store ptr %95, ptr %97, align 8, !tbaa !19
  %98 = load ptr, ptr @arenas, align 8, !tbaa !5
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.pool_header, ptr %99, i32 0, i32 4
  %101 = load i32, ptr %100, align 8, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds %struct.arena_object, ptr %98, i64 %102
  store ptr %103, ptr %9, align 8, !tbaa !5
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.arena_object, ptr %104, i32 0, i32 5
  %106 = load ptr, ptr %105, align 8, !tbaa !21
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.pool_header, ptr %107, i32 0, i32 2
  store ptr %106, ptr %108, align 8, !tbaa !19
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.arena_object, ptr %110, i32 0, i32 5
  store ptr %109, ptr %111, align 8, !tbaa !21
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.arena_object, ptr %112, i32 0, i32 3
  %114 = load i32, ptr %113, align 8, !tbaa !22
  %115 = add i32 %114, 1
  store i32 %115, ptr %113, align 8, !tbaa !22
  store i32 %115, ptr %10, align 4, !tbaa !12
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.arena_object, ptr %116, i32 0, i32 6
  %118 = load ptr, ptr %117, align 8, !tbaa !23
  %119 = icmp eq ptr %118, null
  br i1 %119, label %128, label %120

120:                                              ; preds = %85
  %121 = load i32, ptr %10, align 4, !tbaa !12
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.arena_object, ptr %122, i32 0, i32 6
  %124 = load ptr, ptr %123, align 8, !tbaa !23
  %125 = getelementptr inbounds %struct.arena_object, ptr %124, i32 0, i32 3
  %126 = load i32, ptr %125, align 8, !tbaa !22
  %127 = icmp ule i32 %121, %126
  br i1 %127, label %128, label %129

128:                                              ; preds = %120, %85
  store i32 1, ptr %8, align 4
  br label %308

129:                                              ; preds = %120
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.arena_object, ptr %130, i32 0, i32 7
  %132 = load ptr, ptr %131, align 8, !tbaa !24
  %133 = icmp ne ptr %132, null
  br i1 %133, label %134, label %152

134:                                              ; preds = %129
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.arena_object, ptr %135, i32 0, i32 7
  %137 = load ptr, ptr %136, align 8, !tbaa !24
  %138 = getelementptr inbounds %struct.arena_object, ptr %137, i32 0, i32 6
  %139 = load ptr, ptr %138, align 8, !tbaa !23
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = icmp eq ptr %139, %140
  br i1 %141, label %142, label %143

142:                                              ; preds = %134
  br label %144

143:                                              ; preds = %134
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 356, ptr noundef @__PRETTY_FUNCTION__.Free) #7
  unreachable

144:                                              ; preds = %142
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.arena_object, ptr %145, i32 0, i32 6
  %147 = load ptr, ptr %146, align 8, !tbaa !23
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.arena_object, ptr %148, i32 0, i32 7
  %150 = load ptr, ptr %149, align 8, !tbaa !24
  %151 = getelementptr inbounds %struct.arena_object, ptr %150, i32 0, i32 6
  store ptr %147, ptr %151, align 8, !tbaa !23
  br label %162

152:                                              ; preds = %129
  %153 = load ptr, ptr @usable_arenas, align 8, !tbaa !5
  %154 = load ptr, ptr %9, align 8, !tbaa !5
  %155 = icmp eq ptr %153, %154
  br i1 %155, label %156, label %157

156:                                              ; preds = %152
  br label %158

157:                                              ; preds = %152
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.1, i32 noundef 361, ptr noundef @__PRETTY_FUNCTION__.Free) #7
  unreachable

158:                                              ; preds = %156
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.arena_object, ptr %159, i32 0, i32 6
  %161 = load ptr, ptr %160, align 8, !tbaa !23
  store ptr %161, ptr @usable_arenas, align 8, !tbaa !5
  br label %162

162:                                              ; preds = %158, %144
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.arena_object, ptr %163, i32 0, i32 7
  %165 = load ptr, ptr %164, align 8, !tbaa !24
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.arena_object, ptr %166, i32 0, i32 6
  %168 = load ptr, ptr %167, align 8, !tbaa !23
  %169 = getelementptr inbounds %struct.arena_object, ptr %168, i32 0, i32 7
  store ptr %165, ptr %169, align 8, !tbaa !24
  br label %170

170:                                              ; preds = %185, %162
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.arena_object, ptr %171, i32 0, i32 6
  %173 = load ptr, ptr %172, align 8, !tbaa !23
  %174 = icmp ne ptr %173, null
  br i1 %174, label %175, label %183

175:                                              ; preds = %170
  %176 = load i32, ptr %10, align 4, !tbaa !12
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.arena_object, ptr %177, i32 0, i32 6
  %179 = load ptr, ptr %178, align 8, !tbaa !23
  %180 = getelementptr inbounds %struct.arena_object, ptr %179, i32 0, i32 3
  %181 = load i32, ptr %180, align 8, !tbaa !22
  %182 = icmp ugt i32 %176, %181
  br label %183

183:                                              ; preds = %175, %170
  %184 = phi i1 [ false, %170 ], [ %182, %175 ]
  br i1 %184, label %185, label %198

185:                                              ; preds = %183
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.arena_object, ptr %186, i32 0, i32 6
  %188 = load ptr, ptr %187, align 8, !tbaa !23
  %189 = load ptr, ptr %9, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.arena_object, ptr %189, i32 0, i32 7
  store ptr %188, ptr %190, align 8, !tbaa !24
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.arena_object, ptr %191, i32 0, i32 6
  %193 = load ptr, ptr %192, align 8, !tbaa !23
  %194 = getelementptr inbounds %struct.arena_object, ptr %193, i32 0, i32 6
  %195 = load ptr, ptr %194, align 8, !tbaa !23
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.arena_object, ptr %196, i32 0, i32 6
  store ptr %195, ptr %197, align 8, !tbaa !23
  br label %170, !llvm.loop !25

198:                                              ; preds = %183
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.arena_object, ptr %199, i32 0, i32 6
  %201 = load ptr, ptr %200, align 8, !tbaa !23
  %202 = icmp eq ptr %201, null
  br i1 %202, label %213, label %203

203:                                              ; preds = %198
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.arena_object, ptr %204, i32 0, i32 7
  %206 = load ptr, ptr %205, align 8, !tbaa !24
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.arena_object, ptr %207, i32 0, i32 6
  %209 = load ptr, ptr %208, align 8, !tbaa !23
  %210 = getelementptr inbounds %struct.arena_object, ptr %209, i32 0, i32 7
  %211 = load ptr, ptr %210, align 8, !tbaa !24
  %212 = icmp eq ptr %206, %211
  br i1 %212, label %213, label %214

213:                                              ; preds = %203, %198
  br label %215

214:                                              ; preds = %203
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.1, i32 noundef 377, ptr noundef @__PRETTY_FUNCTION__.Free) #7
  unreachable

215:                                              ; preds = %213
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.arena_object, ptr %216, i32 0, i32 7
  %218 = load ptr, ptr %217, align 8, !tbaa !24
  %219 = getelementptr inbounds %struct.arena_object, ptr %218, i32 0, i32 6
  %220 = load ptr, ptr %219, align 8, !tbaa !23
  %221 = load ptr, ptr %9, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.arena_object, ptr %221, i32 0, i32 6
  %223 = load ptr, ptr %222, align 8, !tbaa !23
  %224 = icmp eq ptr %220, %223
  br i1 %224, label %225, label %226

225:                                              ; preds = %215
  br label %227

226:                                              ; preds = %215
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.1, i32 noundef 378, ptr noundef @__PRETTY_FUNCTION__.Free) #7
  unreachable

227:                                              ; preds = %225
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = load ptr, ptr %9, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.arena_object, ptr %229, i32 0, i32 7
  %231 = load ptr, ptr %230, align 8, !tbaa !24
  %232 = getelementptr inbounds %struct.arena_object, ptr %231, i32 0, i32 6
  store ptr %228, ptr %232, align 8, !tbaa !23
  %233 = load ptr, ptr %9, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.arena_object, ptr %233, i32 0, i32 6
  %235 = load ptr, ptr %234, align 8, !tbaa !23
  %236 = icmp ne ptr %235, null
  br i1 %236, label %237, label %243

237:                                              ; preds = %227
  %238 = load ptr, ptr %9, align 8, !tbaa !5
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.arena_object, ptr %239, i32 0, i32 6
  %241 = load ptr, ptr %240, align 8, !tbaa !23
  %242 = getelementptr inbounds %struct.arena_object, ptr %241, i32 0, i32 7
  store ptr %238, ptr %242, align 8, !tbaa !24
  br label %243

243:                                              ; preds = %237, %227
  %244 = load ptr, ptr %9, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.arena_object, ptr %244, i32 0, i32 6
  %246 = load ptr, ptr %245, align 8, !tbaa !23
  %247 = icmp eq ptr %246, null
  br i1 %247, label %256, label %248

248:                                              ; preds = %243
  %249 = load i32, ptr %10, align 4, !tbaa !12
  %250 = load ptr, ptr %9, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.arena_object, ptr %250, i32 0, i32 6
  %252 = load ptr, ptr %251, align 8, !tbaa !23
  %253 = getelementptr inbounds %struct.arena_object, ptr %252, i32 0, i32 3
  %254 = load i32, ptr %253, align 8, !tbaa !22
  %255 = icmp ule i32 %249, %254
  br i1 %255, label %256, label %257

256:                                              ; preds = %248, %243
  br label %258

257:                                              ; preds = %248
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.1, i32 noundef 386, ptr noundef @__PRETTY_FUNCTION__.Free) #7
  unreachable

258:                                              ; preds = %256
  %259 = load ptr, ptr %9, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.arena_object, ptr %259, i32 0, i32 7
  %261 = load ptr, ptr %260, align 8, !tbaa !24
  %262 = icmp eq ptr %261, null
  br i1 %262, label %271, label %263

263:                                              ; preds = %258
  %264 = load i32, ptr %10, align 4, !tbaa !12
  %265 = load ptr, ptr %9, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.arena_object, ptr %265, i32 0, i32 7
  %267 = load ptr, ptr %266, align 8, !tbaa !24
  %268 = getelementptr inbounds %struct.arena_object, ptr %267, i32 0, i32 3
  %269 = load i32, ptr %268, align 8, !tbaa !22
  %270 = icmp ugt i32 %264, %269
  br i1 %270, label %271, label %272

271:                                              ; preds = %263, %258
  br label %273

272:                                              ; preds = %263
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.1, i32 noundef 388, ptr noundef @__PRETTY_FUNCTION__.Free) #7
  unreachable

273:                                              ; preds = %271
  %274 = load ptr, ptr %9, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.arena_object, ptr %274, i32 0, i32 6
  %276 = load ptr, ptr %275, align 8, !tbaa !23
  %277 = icmp eq ptr %276, null
  br i1 %277, label %286, label %278

278:                                              ; preds = %273
  %279 = load ptr, ptr %9, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.arena_object, ptr %279, i32 0, i32 6
  %281 = load ptr, ptr %280, align 8, !tbaa !23
  %282 = getelementptr inbounds %struct.arena_object, ptr %281, i32 0, i32 7
  %283 = load ptr, ptr %282, align 8, !tbaa !24
  %284 = load ptr, ptr %9, align 8, !tbaa !5
  %285 = icmp eq ptr %283, %284
  br i1 %285, label %286, label %287

286:                                              ; preds = %278, %273
  br label %288

287:                                              ; preds = %278
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.1, i32 noundef 390, ptr noundef @__PRETTY_FUNCTION__.Free) #7
  unreachable

288:                                              ; preds = %286
  %289 = load ptr, ptr @usable_arenas, align 8, !tbaa !5
  %290 = load ptr, ptr %9, align 8, !tbaa !5
  %291 = icmp eq ptr %289, %290
  br i1 %291, label %292, label %297

292:                                              ; preds = %288
  %293 = load ptr, ptr %9, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.arena_object, ptr %293, i32 0, i32 7
  %295 = load ptr, ptr %294, align 8, !tbaa !24
  %296 = icmp eq ptr %295, null
  br i1 %296, label %305, label %297

297:                                              ; preds = %292, %288
  %298 = load ptr, ptr %9, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.arena_object, ptr %298, i32 0, i32 7
  %300 = load ptr, ptr %299, align 8, !tbaa !24
  %301 = getelementptr inbounds %struct.arena_object, ptr %300, i32 0, i32 6
  %302 = load ptr, ptr %301, align 8, !tbaa !23
  %303 = load ptr, ptr %9, align 8, !tbaa !5
  %304 = icmp eq ptr %302, %303
  br i1 %304, label %305, label %306

305:                                              ; preds = %297, %292
  br label %307

306:                                              ; preds = %297
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.1, i32 noundef 393, ptr noundef @__PRETTY_FUNCTION__.Free) #7
  unreachable

307:                                              ; preds = %305
  store i32 1, ptr %8, align 4
  br label %308

308:                                              ; preds = %307, %128, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %349

309:                                              ; preds = %60
  %310 = load ptr, ptr %3, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.pool_header, ptr %310, i32 0, i32 0
  %312 = load i32, ptr %311, align 8, !tbaa !16
  %313 = add i32 %312, -1
  store i32 %313, ptr %311, align 8, !tbaa !16
  %314 = load ptr, ptr %3, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.pool_header, ptr %314, i32 0, i32 0
  %316 = load i32, ptr %315, align 8, !tbaa !16
  %317 = icmp ugt i32 %316, 0
  br i1 %317, label %318, label %319

318:                                              ; preds = %309
  br label %320

319:                                              ; preds = %309
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 400, ptr noundef @__PRETTY_FUNCTION__.Free) #7
  unreachable

320:                                              ; preds = %318
  %321 = load ptr, ptr %3, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.pool_header, ptr %321, i32 0, i32 5
  %323 = load i32, ptr %322, align 4, !tbaa !17
  store i32 %323, ptr %7, align 4, !tbaa !12
  %324 = load i32, ptr %7, align 4, !tbaa !12
  %325 = load i32, ptr %7, align 4, !tbaa !12
  %326 = add i32 %324, %325
  %327 = zext i32 %326 to i64
  %328 = getelementptr inbounds [64 x ptr], ptr @usedpools, i64 0, i64 %327
  %329 = load ptr, ptr %328, align 8, !tbaa !5
  store ptr %329, ptr %5, align 8, !tbaa !5
  %330 = load ptr, ptr %5, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.pool_header, ptr %330, i32 0, i32 3
  %332 = load ptr, ptr %331, align 8, !tbaa !20
  store ptr %332, ptr %6, align 8, !tbaa !5
  %333 = load ptr, ptr %5, align 8, !tbaa !5
  %334 = load ptr, ptr %3, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.pool_header, ptr %334, i32 0, i32 2
  store ptr %333, ptr %335, align 8, !tbaa !19
  %336 = load ptr, ptr %6, align 8, !tbaa !5
  %337 = load ptr, ptr %3, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.pool_header, ptr %337, i32 0, i32 3
  store ptr %336, ptr %338, align 8, !tbaa !20
  %339 = load ptr, ptr %3, align 8, !tbaa !5
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.pool_header, ptr %340, i32 0, i32 3
  store ptr %339, ptr %341, align 8, !tbaa !20
  %342 = load ptr, ptr %3, align 8, !tbaa !5
  %343 = load ptr, ptr %6, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.pool_header, ptr %343, i32 0, i32 2
  store ptr %342, ptr %344, align 8, !tbaa !19
  store i32 1, ptr %8, align 4
  br label %349

345:                                              ; preds = %37, %24, %14
  %346 = load ptr, ptr %2, align 8, !tbaa !5
  %347 = getelementptr inbounds i8, ptr %346, i64 8
  call void @del(ptr noundef @Hugmem, ptr noundef %347)
  %348 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %348) #6
  store i32 0, ptr %8, align 4
  br label %349

349:                                              ; preds = %345, %320, %308, %52, %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  %350 = load i32, ptr %8, align 4
  switch i32 %350, label %352 [
    i32 0, label %351
    i32 1, label %351
  ]

351:                                              ; preds = %349, %349
  ret void

352:                                              ; preds = %349
  unreachable
}

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

declare void @del(ptr noundef, ptr noundef) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 "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 }
attributes #7 = { noreturn nounwind }

!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, !11, i64 32}
!10 = !{!"pool_header", !7, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"arena_object", !15, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !6, i64 32, !6, i64 40, !6, i64 48}
!15 = !{!"long", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!10, !11, i64 36}
!18 = !{!10, !6, i64 8}
!19 = !{!10, !6, i64 16}
!20 = !{!10, !6, i64 24}
!21 = !{!14, !6, i64 32}
!22 = !{!14, !11, i64 24}
!23 = !{!14, !6, i64 40}
!24 = !{!14, !6, i64 48}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; 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.list = type { ptr }
%struct.arena_object = type { i64, ptr, ptr, i32, i32, ptr, ptr, ptr }

@usedpools = external dso_local local_unnamed_addr global [64 x ptr], align 16
@arenas = external dso_local local_unnamed_addr global ptr, align 8
@maxarenas = external dso_local local_unnamed_addr global i32, align 4
@usable_arenas = external dso_local local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@Hugmem = external dso_local global %struct.list, align 8
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__.Free = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [81 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @Free(ptr noundef %0) local_unnamed_addr #1 {
  %2 = icmp eq ptr %0, null
  br i1 %2, label %135, label %3

3:                                                ; preds = %1
  %4 = ptrtoint ptr %0 to i64
  %5 = and i64 %4, -4096
  %6 = inttoptr i64 %5 to ptr
  %7 = getelementptr inbounds i8, ptr %6, i64 32
  %8 = load i32, ptr %7, align 32, !tbaa !5
  %9 = load i32, ptr @maxarenas, align 4, !tbaa !11
  %10 = icmp ult i32 %8, %9
  br i1 %10, label %11, label %133

11:                                               ; preds = %3
  %12 = load ptr, ptr @arenas, align 8, !tbaa !12
  %13 = zext i32 %8 to i64
  %14 = getelementptr inbounds %struct.arena_object, ptr %12, i64 %13
  %15 = load i64, ptr %14, align 8, !tbaa !13
  %16 = sub i64 %4, %15
  %17 = icmp ugt i64 %16, 262143
  %.not = icmp eq i64 %15, 0
  %or.cond = or i1 %.not, %17
  br i1 %or.cond, label %133, label %18

18:                                               ; preds = %11
  %19 = load i32, ptr %6, align 4096, !tbaa !16
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %135, label %21

21:                                               ; preds = %18
  %22 = getelementptr inbounds i8, ptr %6, i64 36
  %23 = load i32, ptr %22, align 4, !tbaa !17
  %24 = shl i32 %23, 3
  %25 = add i32 %24, 8
  %26 = zext i32 %25 to i64
  tail call void @llvm.memset.p0.i64(ptr nonnull align 1 %0, i8 0, i64 %26, i1 false)
  %27 = getelementptr inbounds i8, ptr %6, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !18
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %28, ptr %29, align 8, !tbaa !12
  store ptr %0, ptr %27, align 8, !tbaa !18
  %.not95 = icmp eq ptr %28, null
  %30 = load i32, ptr %6, align 4096, !tbaa !16
  %31 = add i32 %30, -1
  store i32 %31, ptr %6, align 4096, !tbaa !16
  %.not96 = icmp eq i32 %31, 0
  br i1 %.not95, label %120, label %32

32:                                               ; preds = %21
  br i1 %.not96, label %33, label %135

33:                                               ; preds = %32
  %34 = getelementptr inbounds i8, ptr %6, i64 16
  %35 = load ptr, ptr %34, align 16, !tbaa !19
  %36 = getelementptr inbounds i8, ptr %6, i64 24
  %37 = load ptr, ptr %36, align 8, !tbaa !20
  %38 = getelementptr inbounds i8, ptr %35, i64 24
  store ptr %37, ptr %38, align 8, !tbaa !20
  %39 = getelementptr inbounds i8, ptr %37, i64 16
  store ptr %35, ptr %39, align 8, !tbaa !19
  %40 = load ptr, ptr @arenas, align 8, !tbaa !12
  %41 = load i32, ptr %7, align 32, !tbaa !5
  %42 = zext i32 %41 to i64
  %43 = getelementptr inbounds %struct.arena_object, ptr %40, i64 %42
  %44 = getelementptr inbounds i8, ptr %43, i64 32
  %45 = load ptr, ptr %44, align 8, !tbaa !21
  store ptr %45, ptr %34, align 16, !tbaa !19
  store ptr %6, ptr %44, align 8, !tbaa !21
  %46 = getelementptr inbounds i8, ptr %43, i64 24
  %47 = load i32, ptr %46, align 8, !tbaa !22
  %48 = add i32 %47, 1
  store i32 %48, ptr %46, align 8, !tbaa !22
  %49 = getelementptr inbounds i8, ptr %43, i64 40
  %50 = load ptr, ptr %49, align 8, !tbaa !23
  %51 = icmp eq ptr %50, null
  br i1 %51, label %135, label %52

52:                                               ; preds = %33
  %53 = getelementptr inbounds i8, ptr %50, i64 24
  %54 = load i32, ptr %53, align 8, !tbaa !22
  %.not98 = icmp ugt i32 %48, %54
  br i1 %.not98, label %55, label %135

55:                                               ; preds = %52
  %56 = getelementptr inbounds i8, ptr %43, i64 48
  %57 = load ptr, ptr %56, align 8, !tbaa !24
  %.not99 = icmp eq ptr %57, null
  br i1 %.not99, label %64, label %58

58:                                               ; preds = %55
  %59 = getelementptr inbounds i8, ptr %57, i64 40
  %60 = load ptr, ptr %59, align 8, !tbaa !23
  %61 = icmp eq ptr %60, %43
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  tail call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.1, i32 noundef 356, ptr noundef nonnull @__PRETTY_FUNCTION__.Free) #5
  unreachable

63:                                               ; preds = %58
  store ptr %50, ptr %59, align 8, !tbaa !23
  br label %.lr.ph.preheader

64:                                               ; preds = %55
  %65 = load ptr, ptr @usable_arenas, align 8, !tbaa !12
  %66 = icmp eq ptr %65, %43
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  tail call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, i32 noundef 361, ptr noundef nonnull @__PRETTY_FUNCTION__.Free) #5
  unreachable

68:                                               ; preds = %64
  store ptr %50, ptr @usable_arenas, align 8, !tbaa !12
  %.pre = load ptr, ptr %56, align 8, !tbaa !24
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %63, %68
  %69 = phi ptr [ %.pre, %68 ], [ %57, %63 ]
  %70 = load ptr, ptr %49, align 8, !tbaa !23
  %71 = getelementptr inbounds i8, ptr %70, i64 48
  store ptr %69, ptr %71, align 8, !tbaa !24
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %76
  %72 = phi ptr [ %78, %76 ], [ %70, %.lr.ph.preheader ]
  %73 = getelementptr inbounds i8, ptr %72, i64 24
  %74 = load i32, ptr %73, align 8, !tbaa !22
  %75 = icmp ugt i32 %48, %74
  br i1 %75, label %76, label %.critedge

76:                                               ; preds = %.lr.ph
  store ptr %72, ptr %56, align 8, !tbaa !24
  %77 = getelementptr inbounds i8, ptr %72, i64 40
  %78 = load ptr, ptr %77, align 8, !tbaa !23
  store ptr %78, ptr %49, align 8, !tbaa !23
  %.not100 = icmp eq ptr %78, null
  br i1 %.not100, label %.critedge.thread, label %.lr.ph, !llvm.loop !25

.critedge:                                        ; preds = %.lr.ph
  %79 = load ptr, ptr %56, align 8, !tbaa !24
  %80 = getelementptr inbounds i8, ptr %72, i64 48
  %81 = load ptr, ptr %80, align 8, !tbaa !24
  %82 = icmp eq ptr %79, %81
  br i1 %82, label %.critedge.thread, label %83

83:                                               ; preds = %.critedge
  tail call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.1, i32 noundef 377, ptr noundef nonnull @__PRETTY_FUNCTION__.Free) #5
  unreachable

.critedge.thread:                                 ; preds = %76, %.critedge
  %84 = phi ptr [ %79, %.critedge ], [ %72, %76 ]
  %85 = phi ptr [ %72, %.critedge ], [ null, %76 ]
  %86 = getelementptr inbounds i8, ptr %84, i64 40
  %87 = load ptr, ptr %86, align 8, !tbaa !23
  %88 = icmp eq ptr %87, %85
  br i1 %88, label %90, label %89

89:                                               ; preds = %.critedge.thread
  tail call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.1, i32 noundef 378, ptr noundef nonnull @__PRETTY_FUNCTION__.Free) #5
  unreachable

90:                                               ; preds = %.critedge.thread
  store ptr %43, ptr %86, align 8, !tbaa !23
  %91 = load ptr, ptr %49, align 8, !tbaa !23
  %.not101 = icmp eq ptr %91, null
  br i1 %.not101, label %98, label %92

92:                                               ; preds = %90
  %93 = getelementptr inbounds i8, ptr %91, i64 48
  store ptr %43, ptr %93, align 8, !tbaa !24
  %94 = getelementptr inbounds i8, ptr %91, i64 24
  %95 = load i32, ptr %94, align 8, !tbaa !22
  %.not102 = icmp ugt i32 %48, %95
  br i1 %.not102, label %96, label %.thread

96:                                               ; preds = %92
  tail call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.1, i32 noundef 386, ptr noundef nonnull @__PRETTY_FUNCTION__.Free) #5
  unreachable

.thread:                                          ; preds = %92
  %.pre110 = load ptr, ptr %56, align 8, !tbaa !24
  %97 = icmp ne ptr %.pre110, null
  br i1 %97, label %.thread112, label %.thread111

98:                                               ; preds = %90
  %99 = getelementptr inbounds i8, ptr %84, i64 24
  %100 = load i32, ptr %99, align 8, !tbaa !22
  %101 = icmp ugt i32 %48, %100
  br i1 %101, label %110, label %105

.thread112:                                       ; preds = %.thread
  %102 = getelementptr inbounds i8, ptr %.pre110, i64 24
  %103 = load i32, ptr %102, align 8, !tbaa !22
  %104 = icmp ugt i32 %48, %103
  br i1 %104, label %.thread111, label %105

105:                                              ; preds = %.thread112, %98
  tail call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.1, i32 noundef 388, ptr noundef nonnull @__PRETTY_FUNCTION__.Free) #5
  unreachable

.thread111:                                       ; preds = %.thread112, %.thread
  %106 = getelementptr inbounds i8, ptr %91, i64 48
  %107 = load ptr, ptr %106, align 8, !tbaa !24
  %108 = icmp eq ptr %107, %43
  br i1 %108, label %110, label %109

109:                                              ; preds = %.thread111
  tail call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.1, i32 noundef 390, ptr noundef nonnull @__PRETTY_FUNCTION__.Free) #5
  unreachable

110:                                              ; preds = %98, %.thread111
  %111 = phi ptr [ %.pre110, %.thread111 ], [ %84, %98 ]
  %112 = phi i1 [ %97, %.thread111 ], [ true, %98 ]
  %113 = load ptr, ptr @usable_arenas, align 8, !tbaa !12
  %114 = icmp ne ptr %113, %43
  %brmerge = or i1 %112, %114
  br i1 %brmerge, label %115, label %135

115:                                              ; preds = %110
  %116 = getelementptr inbounds i8, ptr %111, i64 40
  %117 = load ptr, ptr %116, align 8, !tbaa !23
  %118 = icmp eq ptr %117, %43
  br i1 %118, label %135, label %119

119:                                              ; preds = %115
  tail call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.1, i32 noundef 393, ptr noundef nonnull @__PRETTY_FUNCTION__.Free) #5
  unreachable

120:                                              ; preds = %21
  br i1 %.not96, label %121, label %122

121:                                              ; preds = %120
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 400, ptr noundef nonnull @__PRETTY_FUNCTION__.Free) #5
  unreachable

122:                                              ; preds = %120
  %123 = load i32, ptr %22, align 4, !tbaa !17
  %124 = shl i32 %123, 1
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds [64 x ptr], ptr @usedpools, i64 0, i64 %125
  %127 = load ptr, ptr %126, align 16, !tbaa !12
  %128 = getelementptr inbounds i8, ptr %127, i64 24
  %129 = load ptr, ptr %128, align 8, !tbaa !20
  %130 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %127, ptr %130, align 16, !tbaa !19
  %131 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr %129, ptr %131, align 8, !tbaa !20
  store ptr %6, ptr %128, align 8, !tbaa !20
  %132 = getelementptr inbounds i8, ptr %129, i64 16
  store ptr %6, ptr %132, align 8, !tbaa !19
  br label %135

133:                                              ; preds = %11, %3
  %134 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @del(ptr noundef nonnull @Hugmem, ptr noundef nonnull %134) #6
  tail call void @free(ptr noundef nonnull %0) #6
  br label %135

135:                                              ; preds = %110, %32, %52, %33, %115, %18, %1, %133, %122
  ret void
}

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

declare void @del(ptr noundef, ptr noundef) local_unnamed_addr #3

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

attributes #0 = { 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 #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 nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 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 #5 = { noreturn nounwind }
attributes #6 = { nounwind }

!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, !10, i64 32}
!6 = !{!"pool_header", !7, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!9, !9, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"arena_object", !15, i64 0, !9, i64 8, !9, i64 16, !10, i64 24, !10, i64 28, !9, i64 32, !9, i64 40, !9, i64 48}
!15 = !{!"long", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!6, !10, i64 36}
!18 = !{!6, !9, i64 8}
!19 = !{!6, !9, i64 16}
!20 = !{!6, !9, i64 24}
!21 = !{!14, !9, i64 32}
!22 = !{!14, !10, i64 24}
!23 = !{!14, !9, i64 40}
!24 = !{!14, !9, i64 48}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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