; LLVM IR from DanEngelbrecht/longtail :: lib/memtracer (longtail_memtracer)

; 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.MemTracer_Header = type { i64, i32 }
%struct.MemTracer_Context = type { ptr, [128 x %struct.MemTracer_ContextStats], ptr, i64, i64, i64, i64, i64, i64, i32 }
%struct.MemTracer_ContextStats = type { i64, i64, i64, i64, i64, i64, i64, i64, ptr }

@gMemTracer_Context = external hidden global ptr, align 8

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

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

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

declare void @Longtail_LockSpinLock(ptr noundef) #2

declare void @Longtail_UnlockSpinLock(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @MemTracer_ContextIdHash(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local ptr @Longtail_MemTracer_ReAlloc(ptr noundef %0, ptr noundef %1, i64 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !11
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %32

21:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %22, ptr %11, align 8, !tbaa !5
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.MemTracer_Header, ptr %23, i32 -1
  store ptr %24, ptr %11, align 8, !tbaa !5
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.MemTracer_Header, ptr %25, i32 0, i32 1
  %27 = load i32, ptr %26, align 8, !tbaa !13
  store i32 %27, ptr %10, align 4, !tbaa !11
  %28 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %28, ptr %8, align 8, !tbaa !5
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.MemTracer_Header, ptr %29, i32 0, i32 0
  %31 = load i64, ptr %30, align 8, !tbaa !15
  store i64 %31, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %41

32:                                               ; preds = %3
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %38

35:                                               ; preds = %32
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = call i32 @MemTracer_ContextIdHash(ptr noundef %36)
  br label %39

38:                                               ; preds = %32
  br label %39

39:                                               ; preds = %38, %35
  %40 = phi i32 [ %37, %35 ], [ 0, %38 ]
  store i32 %40, ptr %10, align 4, !tbaa !11
  br label %41

41:                                               ; preds = %39, %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store ptr null, ptr %12, align 8, !tbaa !5
  %42 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.MemTracer_Context, ptr %42, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  call void @Longtail_LockSpinLock(ptr noundef %44)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %45 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.MemTracer_Context, ptr %45, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !18
  %48 = load i32, ptr %10, align 4, !tbaa !11
  %49 = zext i32 %48 to i64
  %50 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.MemTracer_Context, ptr %50, i32 0, i32 9
  %52 = load i32, ptr %51, align 8, !tbaa !19
  %53 = call ptr @LongtailPrivate_LookupTable_PutUnique(ptr noundef %47, i64 noundef %49, i32 noundef %52)
  store ptr %53, ptr %13, align 8, !tbaa !5
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = icmp eq ptr %54, null
  br i1 %55, label %56, label %72

56:                                               ; preds = %41
  %57 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.MemTracer_Context, ptr %57, i32 0, i32 1
  %59 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.MemTracer_Context, ptr %59, i32 0, i32 9
  %61 = load i32, ptr %60, align 8, !tbaa !19
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %58, i64 0, i64 %62
  store ptr %63, ptr %12, align 8, !tbaa !5
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %64, i8 0, i64 72, i1 false)
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %66, i32 0, i32 8
  store ptr %65, ptr %67, align 8, !tbaa !20
  %68 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.MemTracer_Context, ptr %68, i32 0, i32 9
  %70 = load i32, ptr %69, align 8, !tbaa !19
  %71 = add i32 %70, 1
  store i32 %71, ptr %69, align 8, !tbaa !19
  br label %79

72:                                               ; preds = %41
  %73 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.MemTracer_Context, ptr %73, i32 0, i32 1
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = load i32, ptr %75, align 4, !tbaa !11
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %74, i64 0, i64 %77
  store ptr %78, ptr %12, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %72, %56
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %101

82:                                               ; preds = %79
  %83 = load i64, ptr %9, align 8, !tbaa !9
  %84 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.MemTracer_Context, ptr %84, i32 0, i32 7
  %86 = load i64, ptr %85, align 8, !tbaa !22
  %87 = sub i64 %86, %83
  store i64 %87, ptr %85, align 8, !tbaa !22
  %88 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.MemTracer_Context, ptr %88, i32 0, i32 4
  %90 = load i64, ptr %89, align 8, !tbaa !23
  %91 = add i64 %90, -1
  store i64 %91, ptr %89, align 8, !tbaa !23
  %92 = load i64, ptr %9, align 8, !tbaa !9
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %93, i32 0, i32 1
  %95 = load i64, ptr %94, align 8, !tbaa !24
  %96 = sub i64 %95, %92
  store i64 %96, ptr %94, align 8, !tbaa !24
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %97, i32 0, i32 4
  %99 = load i64, ptr %98, align 8, !tbaa !25
  %100 = add i64 %99, -1
  store i64 %100, ptr %98, align 8, !tbaa !25
  br label %101

101:                                              ; preds = %82, %79
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %102, i32 0, i32 3
  %104 = load i64, ptr %103, align 8, !tbaa !26
  %105 = add i64 %104, 1
  store i64 %105, ptr %103, align 8, !tbaa !26
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %106, i32 0, i32 4
  %108 = load i64, ptr %107, align 8, !tbaa !25
  %109 = add i64 %108, 1
  store i64 %109, ptr %107, align 8, !tbaa !25
  %110 = load i64, ptr %6, align 8, !tbaa !9
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %111, i32 0, i32 0
  %113 = load i64, ptr %112, align 8, !tbaa !27
  %114 = add i64 %113, %110
  store i64 %114, ptr %112, align 8, !tbaa !27
  %115 = load i64, ptr %6, align 8, !tbaa !9
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %116, i32 0, i32 1
  %118 = load i64, ptr %117, align 8, !tbaa !24
  %119 = add i64 %118, %115
  store i64 %119, ptr %117, align 8, !tbaa !24
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %120, i32 0, i32 1
  %122 = load i64, ptr %121, align 8, !tbaa !24
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %123, i32 0, i32 2
  %125 = load i64, ptr %124, align 8, !tbaa !28
  %126 = icmp ugt i64 %122, %125
  br i1 %126, label %127, label %133

127:                                              ; preds = %101
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %128, i32 0, i32 1
  %130 = load i64, ptr %129, align 8, !tbaa !24
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %131, i32 0, i32 2
  store i64 %130, ptr %132, align 8, !tbaa !28
  br label %133

133:                                              ; preds = %127, %101
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %134, i32 0, i32 4
  %136 = load i64, ptr %135, align 8, !tbaa !25
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %137, i32 0, i32 5
  %139 = load i64, ptr %138, align 8, !tbaa !29
  %140 = icmp ugt i64 %136, %139
  br i1 %140, label %141, label %147

141:                                              ; preds = %133
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %142, i32 0, i32 4
  %144 = load i64, ptr %143, align 8, !tbaa !25
  %145 = load ptr, ptr %12, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %145, i32 0, i32 5
  store i64 %144, ptr %146, align 8, !tbaa !29
  br label %147

147:                                              ; preds = %141, %133
  %148 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.MemTracer_Context, ptr %148, i32 0, i32 3
  %150 = load i64, ptr %149, align 8, !tbaa !30
  %151 = add i64 %150, 1
  store i64 %151, ptr %149, align 8, !tbaa !30
  %152 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.MemTracer_Context, ptr %152, i32 0, i32 4
  %154 = load i64, ptr %153, align 8, !tbaa !23
  %155 = add i64 %154, 1
  store i64 %155, ptr %153, align 8, !tbaa !23
  %156 = load i64, ptr %6, align 8, !tbaa !9
  %157 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.MemTracer_Context, ptr %157, i32 0, i32 6
  %159 = load i64, ptr %158, align 8, !tbaa !31
  %160 = add i64 %159, %156
  store i64 %160, ptr %158, align 8, !tbaa !31
  %161 = load i64, ptr %6, align 8, !tbaa !9
  %162 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.MemTracer_Context, ptr %162, i32 0, i32 7
  %164 = load i64, ptr %163, align 8, !tbaa !22
  %165 = add i64 %164, %161
  store i64 %165, ptr %163, align 8, !tbaa !22
  %166 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.MemTracer_Context, ptr %166, i32 0, i32 7
  %168 = load i64, ptr %167, align 8, !tbaa !22
  %169 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.MemTracer_Context, ptr %169, i32 0, i32 8
  %171 = load i64, ptr %170, align 8, !tbaa !32
  %172 = icmp ugt i64 %168, %171
  br i1 %172, label %173, label %201

173:                                              ; preds = %147
  %174 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.MemTracer_Context, ptr %174, i32 0, i32 7
  %176 = load i64, ptr %175, align 8, !tbaa !22
  %177 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.MemTracer_Context, ptr %177, i32 0, i32 8
  store i64 %176, ptr %178, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %179

179:                                              ; preds = %197, %173
  %180 = load i64, ptr %14, align 8, !tbaa !9
  %181 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.MemTracer_Context, ptr %181, i32 0, i32 9
  %183 = load i32, ptr %182, align 8, !tbaa !19
  %184 = zext i32 %183 to i64
  %185 = icmp ult i64 %180, %184
  br i1 %185, label %187, label %186

186:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %200

187:                                              ; preds = %179
  %188 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.MemTracer_Context, ptr %188, i32 0, i32 1
  %190 = load i64, ptr %14, align 8, !tbaa !9
  %191 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %189, i64 0, i64 %190
  store ptr %191, ptr %12, align 8, !tbaa !5
  %192 = load ptr, ptr %12, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %192, i32 0, i32 1
  %194 = load i64, ptr %193, align 8, !tbaa !24
  %195 = load ptr, ptr %12, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %195, i32 0, i32 7
  store i64 %194, ptr %196, align 8, !tbaa !33
  br label %197

197:                                              ; preds = %187
  %198 = load i64, ptr %14, align 8, !tbaa !9
  %199 = add i64 %198, 1
  store i64 %199, ptr %14, align 8, !tbaa !9
  br label %179, !llvm.loop !34

200:                                              ; preds = %186
  br label %201

201:                                              ; preds = %200, %147
  %202 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.MemTracer_Context, ptr %202, i32 0, i32 4
  %204 = load i64, ptr %203, align 8, !tbaa !23
  %205 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.MemTracer_Context, ptr %205, i32 0, i32 5
  %207 = load i64, ptr %206, align 8, !tbaa !36
  %208 = icmp ugt i64 %204, %207
  br i1 %208, label %209, label %237

209:                                              ; preds = %201
  %210 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.MemTracer_Context, ptr %210, i32 0, i32 4
  %212 = load i64, ptr %211, align 8, !tbaa !23
  %213 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.MemTracer_Context, ptr %213, i32 0, i32 5
  store i64 %212, ptr %214, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %215

215:                                              ; preds = %233, %209
  %216 = load i64, ptr %15, align 8, !tbaa !9
  %217 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.MemTracer_Context, ptr %217, i32 0, i32 9
  %219 = load i32, ptr %218, align 8, !tbaa !19
  %220 = zext i32 %219 to i64
  %221 = icmp ult i64 %216, %220
  br i1 %221, label %223, label %222

222:                                              ; preds = %215
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %236

223:                                              ; preds = %215
  %224 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.MemTracer_Context, ptr %224, i32 0, i32 1
  %226 = load i64, ptr %15, align 8, !tbaa !9
  %227 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %225, i64 0, i64 %226
  store ptr %227, ptr %12, align 8, !tbaa !5
  %228 = load ptr, ptr %12, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %228, i32 0, i32 4
  %230 = load i64, ptr %229, align 8, !tbaa !25
  %231 = load ptr, ptr %12, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.MemTracer_ContextStats, ptr %231, i32 0, i32 6
  store i64 %230, ptr %232, align 8, !tbaa !37
  br label %233

233:                                              ; preds = %223
  %234 = load i64, ptr %15, align 8, !tbaa !9
  %235 = add i64 %234, 1
  store i64 %235, ptr %15, align 8, !tbaa !9
  br label %215, !llvm.loop !38

236:                                              ; preds = %222
  br label %237

237:                                              ; preds = %236, %201
  %238 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.MemTracer_Context, ptr %238, i32 0, i32 2
  %240 = load ptr, ptr %239, align 8, !tbaa !16
  call void @Longtail_UnlockSpinLock(ptr noundef %240)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %241 = load i64, ptr %6, align 8, !tbaa !9
  %242 = add i64 16, %241
  store i64 %242, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %243 = load ptr, ptr %8, align 8, !tbaa !5
  %244 = load i64, ptr %16, align 8, !tbaa !9
  %245 = call ptr @realloc(ptr noundef %243, i64 noundef %244) #6
  store ptr %245, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %246 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %246, ptr %18, align 8, !tbaa !5
  %247 = load i32, ptr %10, align 4, !tbaa !11
  %248 = load ptr, ptr %18, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.MemTracer_Header, ptr %248, i32 0, i32 1
  store i32 %247, ptr %249, align 8, !tbaa !13
  %250 = load i64, ptr %6, align 8, !tbaa !9
  %251 = load ptr, ptr %18, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.MemTracer_Header, ptr %251, i32 0, i32 0
  store i64 %250, ptr %252, align 8, !tbaa !15
  %253 = load ptr, ptr %18, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.MemTracer_Header, ptr %253, i64 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret ptr %254
}

declare ptr @LongtailPrivate_LookupTable_PutUnique(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #4

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"MemTracer_Header", !10, i64 0, !12, i64 8}
!15 = !{!14, !10, i64 0}
!16 = !{!17, !6, i64 9224}
!17 = !{!"MemTracer_Context", !6, i64 0, !7, i64 8, !6, i64 9224, !10, i64 9232, !10, i64 9240, !10, i64 9248, !10, i64 9256, !10, i64 9264, !10, i64 9272, !12, i64 9280}
!18 = !{!17, !6, i64 0}
!19 = !{!17, !12, i64 9280}
!20 = !{!21, !6, i64 64}
!21 = !{!"MemTracer_ContextStats", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !6, i64 64}
!22 = !{!17, !10, i64 9264}
!23 = !{!17, !10, i64 9240}
!24 = !{!21, !10, i64 8}
!25 = !{!21, !10, i64 32}
!26 = !{!21, !10, i64 24}
!27 = !{!21, !10, i64 0}
!28 = !{!21, !10, i64 16}
!29 = !{!21, !10, i64 40}
!30 = !{!17, !10, i64 9232}
!31 = !{!17, !10, i64 9256}
!32 = !{!17, !10, i64 9272}
!33 = !{!21, !10, i64 56}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!17, !10, i64 9248}
!37 = !{!21, !10, i64 48}
!38 = distinct !{!38, !35}


; 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.MemTracer_ContextStats = type { i64, i64, i64, i64, i64, i64, i64, i64, ptr }

@gMemTracer_Context = external hidden local_unnamed_addr global ptr, align 8

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

declare void @Longtail_LockSpinLock(ptr noundef) local_unnamed_addr #1

declare void @Longtail_UnlockSpinLock(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @MemTracer_ContextIdHash(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noalias nonnull ptr @Longtail_MemTracer_ReAlloc(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #2 {
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %9, label %4

4:                                                ; preds = %3
  %5 = getelementptr inbounds i8, ptr %1, i64 -16
  %6 = getelementptr inbounds i8, ptr %1, i64 -8
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = load i64, ptr %5, align 8, !tbaa !11
  br label %12

9:                                                ; preds = %3
  %.not65 = icmp eq ptr %0, null
  br i1 %.not65, label %12, label %10

10:                                               ; preds = %9
  %11 = tail call i32 @MemTracer_ContextIdHash(ptr noundef nonnull %0)
  br label %12

12:                                               ; preds = %10, %9, %4
  %.054 = phi i32 [ %7, %4 ], [ %11, %10 ], [ 0, %9 ]
  %.053 = phi i64 [ %8, %4 ], [ 0, %10 ], [ 0, %9 ]
  %.0 = phi ptr [ %5, %4 ], [ null, %10 ], [ null, %9 ]
  %13 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %13, i64 9224
  %15 = load ptr, ptr %14, align 8, !tbaa !14
  tail call void @Longtail_LockSpinLock(ptr noundef %15) #4
  %16 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !12
  %17 = load ptr, ptr %16, align 8, !tbaa !16
  %18 = zext i32 %.054 to i64
  %19 = getelementptr inbounds i8, ptr %16, i64 9280
  %20 = load i32, ptr %19, align 8, !tbaa !17
  %21 = tail call ptr @LongtailPrivate_LookupTable_PutUnique(ptr noundef %17, i64 noundef %18, i32 noundef %20) #4
  %22 = icmp eq ptr %21, null
  %23 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !12
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  br i1 %22, label %25, label %35

25:                                               ; preds = %12
  %26 = getelementptr inbounds i8, ptr %23, i64 9280
  %27 = load i32, ptr %26, align 8, !tbaa !17
  %28 = zext i32 %27 to i64
  %29 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %24, i64 0, i64 %28
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %29, i8 0, i64 64, i1 false)
  %30 = getelementptr inbounds i8, ptr %29, i64 64
  store ptr %0, ptr %30, align 8, !tbaa !18
  %31 = load ptr, ptr @gMemTracer_Context, align 8, !tbaa !12
  %32 = getelementptr inbounds i8, ptr %31, i64 9280
  %33 = load i32, ptr %32, align 8, !tbaa !17
  %34 = add i32 %33, 1
  store i32 %34, ptr %32, align 8, !tbaa !17
  br label %39

35:                                               ; preds = %12
  %36 = load i32, ptr %21, align 4, !tbaa !20
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %24, i64 0, i64 %37
  br label %39

39:                                               ; preds = %35, %25
  %40 = phi ptr [ %31, %25 ], [ %23, %35 ]
  %.057 = phi ptr [ %29, %25 ], [ %38, %35 ]
  br i1 %.not, label %._crit_edge, label %42

._crit_edge:                                      ; preds = %39
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.057, i64 32
  %.pre = load i64, ptr %.phi.trans.insert, align 8, !tbaa !21
  %.phi.trans.insert73 = getelementptr inbounds i8, ptr %.057, i64 8
  %.pre74 = load i64, ptr %.phi.trans.insert73, align 8, !tbaa !22
  %41 = add i64 %.pre, 1
  br label %54

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %40, i64 9264
  %44 = load i64, ptr %43, align 8, !tbaa !23
  %45 = sub i64 %44, %.053
  store i64 %45, ptr %43, align 8, !tbaa !23
  %46 = getelementptr inbounds i8, ptr %40, i64 9240
  %47 = load i64, ptr %46, align 8, !tbaa !24
  %48 = add i64 %47, -1
  store i64 %48, ptr %46, align 8, !tbaa !24
  %49 = getelementptr inbounds i8, ptr %.057, i64 8
  %50 = load i64, ptr %49, align 8, !tbaa !22
  %51 = sub i64 %50, %.053
  %52 = getelementptr inbounds i8, ptr %.057, i64 32
  %53 = load i64, ptr %52, align 8, !tbaa !21
  br label %54

54:                                               ; preds = %._crit_edge, %42
  %55 = phi i64 [ %.pre74, %._crit_edge ], [ %51, %42 ]
  %56 = phi i64 [ %41, %._crit_edge ], [ %53, %42 ]
  %57 = getelementptr inbounds i8, ptr %.057, i64 24
  %58 = load i64, ptr %57, align 8, !tbaa !25
  %59 = add i64 %58, 1
  store i64 %59, ptr %57, align 8, !tbaa !25
  %60 = getelementptr inbounds i8, ptr %.057, i64 32
  store i64 %56, ptr %60, align 8, !tbaa !21
  %61 = load i64, ptr %.057, align 8, !tbaa !26
  %62 = add i64 %61, %2
  store i64 %62, ptr %.057, align 8, !tbaa !26
  %63 = getelementptr inbounds i8, ptr %.057, i64 8
  %64 = add i64 %55, %2
  store i64 %64, ptr %63, align 8, !tbaa !22
  %65 = getelementptr inbounds i8, ptr %.057, i64 16
  %66 = load i64, ptr %65, align 8, !tbaa !27
  %67 = icmp ugt i64 %64, %66
  br i1 %67, label %68, label %69

68:                                               ; preds = %54
  store i64 %64, ptr %65, align 8, !tbaa !27
  br label %69

69:                                               ; preds = %68, %54
  %70 = getelementptr inbounds i8, ptr %.057, i64 40
  %71 = load i64, ptr %70, align 8, !tbaa !28
  %72 = icmp ugt i64 %56, %71
  br i1 %72, label %73, label %74

73:                                               ; preds = %69
  store i64 %56, ptr %70, align 8, !tbaa !28
  br label %74

74:                                               ; preds = %73, %69
  %75 = getelementptr inbounds i8, ptr %40, i64 9232
  %76 = load <2 x i64>, ptr %75, align 8, !tbaa !29
  %77 = add <2 x i64> %76, <i64 1, i64 1>
  store <2 x i64> %77, ptr %75, align 8, !tbaa !29
  %78 = getelementptr inbounds i8, ptr %40, i64 9256
  %79 = load i64, ptr %78, align 8, !tbaa !30
  %80 = add i64 %79, %2
  store i64 %80, ptr %78, align 8, !tbaa !30
  %81 = getelementptr inbounds i8, ptr %40, i64 9264
  %82 = load i64, ptr %81, align 8, !tbaa !23
  %83 = add i64 %82, %2
  store i64 %83, ptr %81, align 8, !tbaa !23
  %84 = getelementptr inbounds i8, ptr %40, i64 9272
  %85 = load i64, ptr %84, align 8, !tbaa !31
  %86 = icmp ugt i64 %83, %85
  br i1 %86, label %87, label %.loopexit66

87:                                               ; preds = %74
  store i64 %83, ptr %84, align 8, !tbaa !31
  %88 = getelementptr inbounds i8, ptr %40, i64 9280
  %89 = load i32, ptr %88, align 8, !tbaa !17
  %90 = zext i32 %89 to i64
  %.not70 = icmp eq i32 %89, 0
  br i1 %.not70, label %.loopexit66, label %.lr.ph

.lr.ph:                                           ; preds = %87
  %91 = getelementptr inbounds i8, ptr %40, i64 8
  %xtraiter = and i64 %90, 3
  %92 = icmp ult i32 %89, 4
  br i1 %92, label %.loopexit66.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %90, 4294967292
  br label %93

93:                                               ; preds = %93, %.lr.ph.new
  %.05667 = phi i64 [ 0, %.lr.ph.new ], [ %113, %93 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %93 ]
  %94 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %91, i64 0, i64 %.05667
  %95 = getelementptr inbounds i8, ptr %94, i64 8
  %96 = load i64, ptr %95, align 8, !tbaa !22
  %97 = getelementptr inbounds i8, ptr %94, i64 56
  store i64 %96, ptr %97, align 8, !tbaa !32
  %98 = or disjoint i64 %.05667, 1
  %99 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %91, i64 0, i64 %98
  %100 = getelementptr inbounds i8, ptr %99, i64 8
  %101 = load i64, ptr %100, align 8, !tbaa !22
  %102 = getelementptr inbounds i8, ptr %99, i64 56
  store i64 %101, ptr %102, align 8, !tbaa !32
  %103 = or disjoint i64 %.05667, 2
  %104 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %91, i64 0, i64 %103
  %105 = getelementptr inbounds i8, ptr %104, i64 8
  %106 = load i64, ptr %105, align 8, !tbaa !22
  %107 = getelementptr inbounds i8, ptr %104, i64 56
  store i64 %106, ptr %107, align 8, !tbaa !32
  %108 = or disjoint i64 %.05667, 3
  %109 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %91, i64 0, i64 %108
  %110 = getelementptr inbounds i8, ptr %109, i64 8
  %111 = load i64, ptr %110, align 8, !tbaa !22
  %112 = getelementptr inbounds i8, ptr %109, i64 56
  store i64 %111, ptr %112, align 8, !tbaa !32
  %113 = add nuw nsw i64 %.05667, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.loopexit66.loopexit.unr-lcssa, label %93, !llvm.loop !33

.loopexit66.loopexit.unr-lcssa:                   ; preds = %93, %.lr.ph
  %.05667.unr = phi i64 [ 0, %.lr.ph ], [ %113, %93 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit66, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit66.loopexit.unr-lcssa, %.epil.preheader
  %.05667.epil = phi i64 [ %118, %.epil.preheader ], [ %.05667.unr, %.loopexit66.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit66.loopexit.unr-lcssa ]
  %114 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %91, i64 0, i64 %.05667.epil
  %115 = getelementptr inbounds i8, ptr %114, i64 8
  %116 = load i64, ptr %115, align 8, !tbaa !22
  %117 = getelementptr inbounds i8, ptr %114, i64 56
  store i64 %116, ptr %117, align 8, !tbaa !32
  %118 = add nuw nsw i64 %.05667.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit66, label %.epil.preheader, !llvm.loop !35

.loopexit66:                                      ; preds = %.loopexit66.loopexit.unr-lcssa, %.epil.preheader, %87, %74
  %119 = getelementptr inbounds i8, ptr %40, i64 9248
  %120 = load i64, ptr %119, align 8, !tbaa !37
  %121 = extractelement <2 x i64> %77, i64 1
  %122 = icmp ugt i64 %121, %120
  br i1 %122, label %123, label %.loopexit

123:                                              ; preds = %.loopexit66
  store i64 %121, ptr %119, align 8, !tbaa !37
  %124 = getelementptr inbounds i8, ptr %40, i64 9280
  %125 = load i32, ptr %124, align 8, !tbaa !17
  %126 = zext i32 %125 to i64
  %.not71 = icmp eq i32 %125, 0
  br i1 %.not71, label %.loopexit, label %.lr.ph69

.lr.ph69:                                         ; preds = %123
  %127 = getelementptr inbounds i8, ptr %40, i64 8
  %xtraiter76 = and i64 %126, 3
  %128 = icmp ult i32 %125, 4
  br i1 %128, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph69.new

.lr.ph69.new:                                     ; preds = %.lr.ph69
  %unroll_iter79 = and i64 %126, 4294967292
  br label %129

129:                                              ; preds = %129, %.lr.ph69.new
  %.05568 = phi i64 [ 0, %.lr.ph69.new ], [ %149, %129 ]
  %niter80 = phi i64 [ 0, %.lr.ph69.new ], [ %niter80.next.3, %129 ]
  %130 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %127, i64 0, i64 %.05568
  %131 = getelementptr inbounds i8, ptr %130, i64 32
  %132 = load i64, ptr %131, align 8, !tbaa !21
  %133 = getelementptr inbounds i8, ptr %130, i64 48
  store i64 %132, ptr %133, align 8, !tbaa !38
  %134 = or disjoint i64 %.05568, 1
  %135 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %127, i64 0, i64 %134
  %136 = getelementptr inbounds i8, ptr %135, i64 32
  %137 = load i64, ptr %136, align 8, !tbaa !21
  %138 = getelementptr inbounds i8, ptr %135, i64 48
  store i64 %137, ptr %138, align 8, !tbaa !38
  %139 = or disjoint i64 %.05568, 2
  %140 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %127, i64 0, i64 %139
  %141 = getelementptr inbounds i8, ptr %140, i64 32
  %142 = load i64, ptr %141, align 8, !tbaa !21
  %143 = getelementptr inbounds i8, ptr %140, i64 48
  store i64 %142, ptr %143, align 8, !tbaa !38
  %144 = or disjoint i64 %.05568, 3
  %145 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %127, i64 0, i64 %144
  %146 = getelementptr inbounds i8, ptr %145, i64 32
  %147 = load i64, ptr %146, align 8, !tbaa !21
  %148 = getelementptr inbounds i8, ptr %145, i64 48
  store i64 %147, ptr %148, align 8, !tbaa !38
  %149 = add nuw nsw i64 %.05568, 4
  %niter80.next.3 = add i64 %niter80, 4
  %niter80.ncmp.3 = icmp eq i64 %niter80.next.3, %unroll_iter79
  br i1 %niter80.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %129, !llvm.loop !39

.loopexit.loopexit.unr-lcssa:                     ; preds = %129, %.lr.ph69
  %.05568.unr = phi i64 [ 0, %.lr.ph69 ], [ %149, %129 ]
  %lcmp.mod78.not = icmp eq i64 %xtraiter76, 0
  br i1 %lcmp.mod78.not, label %.loopexit, label %.epil.preheader75

.epil.preheader75:                                ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader75
  %.05568.epil = phi i64 [ %154, %.epil.preheader75 ], [ %.05568.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter77 = phi i64 [ %epil.iter77.next, %.epil.preheader75 ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %150 = getelementptr inbounds [128 x %struct.MemTracer_ContextStats], ptr %127, i64 0, i64 %.05568.epil
  %151 = getelementptr inbounds i8, ptr %150, i64 32
  %152 = load i64, ptr %151, align 8, !tbaa !21
  %153 = getelementptr inbounds i8, ptr %150, i64 48
  store i64 %152, ptr %153, align 8, !tbaa !38
  %154 = add nuw nsw i64 %.05568.epil, 1
  %epil.iter77.next = add i64 %epil.iter77, 1
  %epil.iter77.cmp.not = icmp eq i64 %epil.iter77.next, %xtraiter76
  br i1 %epil.iter77.cmp.not, label %.loopexit, label %.epil.preheader75, !llvm.loop !40

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader75, %123, %.loopexit66
  %155 = getelementptr inbounds i8, ptr %40, i64 9224
  %156 = load ptr, ptr %155, align 8, !tbaa !14
  tail call void @Longtail_UnlockSpinLock(ptr noundef %156) #4
  %157 = add i64 %2, 16
  %158 = tail call ptr @realloc(ptr noundef %.0, i64 noundef %157) #5
  %159 = getelementptr inbounds i8, ptr %158, i64 8
  store i32 %.054, ptr %159, align 8, !tbaa !5
  store i64 %2, ptr %158, align 8, !tbaa !11
  %160 = getelementptr inbounds i8, ptr %158, i64 16
  ret ptr %160
}

declare ptr @LongtailPrivate_LookupTable_PutUnique(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { "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 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #4 = { nounwind }
attributes #5 = { nounwind allocsize(1) }

!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 8}
!6 = !{!"MemTracer_Header", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !13, i64 9224}
!15 = !{!"MemTracer_Context", !13, i64 0, !8, i64 8, !13, i64 9224, !7, i64 9232, !7, i64 9240, !7, i64 9248, !7, i64 9256, !7, i64 9264, !7, i64 9272, !10, i64 9280}
!16 = !{!15, !13, i64 0}
!17 = !{!15, !10, i64 9280}
!18 = !{!19, !13, i64 64}
!19 = !{!"MemTracer_ContextStats", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !13, i64 64}
!20 = !{!10, !10, i64 0}
!21 = !{!19, !7, i64 32}
!22 = !{!19, !7, i64 8}
!23 = !{!15, !7, i64 9264}
!24 = !{!15, !7, i64 9240}
!25 = !{!19, !7, i64 24}
!26 = !{!19, !7, i64 0}
!27 = !{!19, !7, i64 16}
!28 = !{!19, !7, i64 40}
!29 = !{!7, !7, i64 0}
!30 = !{!15, !7, i64 9256}
!31 = !{!15, !7, i64 9272}
!32 = !{!19, !7, i64 56}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.unroll.disable"}
!37 = !{!15, !7, i64 9248}
!38 = !{!19, !7, i64 48}
!39 = distinct !{!39, !34}
!40 = distinct !{!40, !36}


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