; LLVM IR from tsotchke/quantum_geometric_tensor :: src/quantum_geometric/core (memory_pool)

; 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.Block = type { i64, i32, i8, i16, ptr, ptr, [40 x i8], ptr, [48 x i8] }
%struct.MemoryPool = type { ptr, i64, ptr, i64, ptr, i64, i64, i64, %union.pthread_mutex_t, %struct.PoolConfig }
%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 }
%struct.PoolConfig = type { i64, i64, i64, float, i64, i8, i8, i64, i64, i8 }
%struct.SizeClass = type { i64, ptr, %union.pthread_mutex_t, i64, i64, i64, i64 }

@.str.7 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1

declare void @geometric_log_error(ptr noundef, ...) #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @pool_free(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = icmp ne ptr %10, null
  br i1 %11, label %12, label %15

12:                                               ; preds = %2
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %16, label %15

15:                                               ; preds = %12, %2
  br label %133

16:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = call ptr @get_block(ptr noundef %17)
  store ptr %18, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %22, label %21

21:                                               ; preds = %16
  call void (ptr, ...) @geometric_log_error(ptr noundef @.str.7)
  store i32 1, ptr %6, align 4
  br label %131

22:                                               ; preds = %16
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.Block, ptr %23, i32 0, i32 2
  %25 = load i8, ptr %24, align 4, !tbaa !9, !range !15, !noundef !16
  %26 = trunc i8 %25 to i1
  br i1 %26, label %27, label %28

27:                                               ; preds = %22
  call void (ptr, ...) @geometric_log_error(ptr noundef @.str.8)
  store i32 1, ptr %6, align 4
  br label %131

28:                                               ; preds = %22
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.MemoryPool, ptr %29, i32 0, i32 9
  %31 = getelementptr inbounds %struct.PoolConfig, ptr %30, i32 0, i32 9
  %32 = load i8, ptr %31, align 8, !tbaa !17, !range !15, !noundef !16
  %33 = trunc i8 %32 to i1
  br i1 %33, label %34, label %43

34:                                               ; preds = %28
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.MemoryPool, ptr %35, i32 0, i32 5
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.Block, ptr %37, i32 0, i32 0
  %39 = load i64, ptr %38, align 64, !tbaa !21
  store i64 %39, ptr %7, align 8, !tbaa !22
  %40 = load i64, ptr %7, align 8
  %41 = atomicrmw sub ptr %36, i64 %40 monotonic, align 8
  store i64 %41, ptr %8, align 8
  %42 = load i64, ptr %8, align 8, !tbaa !22
  br label %43

43:                                               ; preds = %34, %28
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.Block, ptr %44, i32 0, i32 3
  %46 = load i16, ptr %45, align 2, !tbaa !23
  %47 = zext i16 %46 to i32
  %48 = icmp eq i32 %47, 64
  br i1 %48, label %49, label %89

49:                                               ; preds = %43
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.MemoryPool, ptr %50, i32 0, i32 8
  %52 = call i32 @pthread_mutex_lock(ptr noundef %51) #4
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.Block, ptr %53, i32 0, i32 5
  %55 = load ptr, ptr %54, align 8, !tbaa !24
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %65

57:                                               ; preds = %49
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.Block, ptr %58, i32 0, i32 4
  %60 = load ptr, ptr %59, align 16, !tbaa !25
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.Block, ptr %61, i32 0, i32 5
  %63 = load ptr, ptr %62, align 8, !tbaa !24
  %64 = getelementptr inbounds %struct.Block, ptr %63, i32 0, i32 4
  store ptr %60, ptr %64, align 16, !tbaa !25
  br label %71

65:                                               ; preds = %49
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.Block, ptr %66, i32 0, i32 4
  %68 = load ptr, ptr %67, align 16, !tbaa !25
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.MemoryPool, ptr %69, i32 0, i32 4
  store ptr %68, ptr %70, align 8, !tbaa !26
  br label %71

71:                                               ; preds = %65, %57
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.Block, ptr %72, i32 0, i32 4
  %74 = load ptr, ptr %73, align 16, !tbaa !25
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %84

76:                                               ; preds = %71
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.Block, ptr %77, i32 0, i32 5
  %79 = load ptr, ptr %78, align 8, !tbaa !24
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.Block, ptr %80, i32 0, i32 4
  %82 = load ptr, ptr %81, align 16, !tbaa !25
  %83 = getelementptr inbounds %struct.Block, ptr %82, i32 0, i32 5
  store ptr %79, ptr %83, align 8, !tbaa !24
  br label %84

84:                                               ; preds = %76, %71
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.MemoryPool, ptr %85, i32 0, i32 8
  %87 = call i32 @pthread_mutex_unlock(ptr noundef %86) #4
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %88) #4
  store i32 1, ptr %6, align 4
  br label %131

89:                                               ; preds = %43
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.MemoryPool, ptr %90, i32 0, i32 9
  %92 = getelementptr inbounds %struct.PoolConfig, ptr %91, i32 0, i32 8
  %93 = load i64, ptr %92, align 8, !tbaa !27
  %94 = icmp ugt i64 %93, 0
  br i1 %94, label %95, label %102

95:                                               ; preds = %89
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.Block, ptr %96, i32 0, i32 3
  %98 = load i16, ptr %97, align 2, !tbaa !23
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = call zeroext i1 @add_to_cache(i16 noundef zeroext %98, ptr noundef %99)
  br i1 %100, label %101, label %102

101:                                              ; preds = %95
  store i32 1, ptr %6, align 4
  br label %131

102:                                              ; preds = %95, %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.MemoryPool, ptr %103, i32 0, i32 2
  %105 = load ptr, ptr %104, align 8, !tbaa !28
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.Block, ptr %106, i32 0, i32 3
  %108 = load i16, ptr %107, align 2, !tbaa !23
  %109 = zext i16 %108 to i64
  %110 = getelementptr inbounds %struct.SizeClass, ptr %105, i64 %109
  store ptr %110, ptr %9, align 8, !tbaa !5
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.SizeClass, ptr %111, i32 0, i32 2
  %113 = call i32 @pthread_mutex_lock(ptr noundef %112) #4
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.Block, ptr %114, i32 0, i32 2
  store i8 1, ptr %115, align 4, !tbaa !9
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.SizeClass, ptr %116, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !29
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.Block, ptr %119, i32 0, i32 4
  store ptr %118, ptr %120, align 16, !tbaa !25
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.SizeClass, ptr %122, i32 0, i32 1
  store ptr %121, ptr %123, align 8, !tbaa !29
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.SizeClass, ptr %124, i32 0, i32 3
  %126 = load i64, ptr %125, align 8, !tbaa !31
  %127 = add i64 %126, 1
  store i64 %127, ptr %125, align 8, !tbaa !31
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.SizeClass, ptr %128, i32 0, i32 2
  %130 = call i32 @pthread_mutex_unlock(ptr noundef %129) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  store i32 0, ptr %6, align 4
  br label %131

131:                                              ; preds = %102, %101, %84, %27, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  %132 = load i32, ptr %6, align 4
  switch i32 %132, label %134 [
    i32 0, label %133
    i32 1, label %133
  ]

133:                                              ; preds = %131, %131, %15
  ret void

134:                                              ; preds = %131
  unreachable
}

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

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @add_to_cache(i16 noundef zeroext, ptr noundef) #3

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

!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, !13, i64 12}
!10 = !{!"Block", !11, i64 0, !12, i64 8, !13, i64 12, !14, i64 14, !6, i64 16, !6, i64 24, !7, i64 32, !6, i64 72}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !13, i64 168}
!18 = !{!"MemoryPool", !6, i64 0, !11, i64 8, !6, i64 16, !11, i64 24, !6, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !19, i64 104}
!19 = !{!"PoolConfig", !11, i64 0, !11, i64 8, !11, i64 16, !20, i64 24, !11, i64 32, !13, i64 40, !13, i64 41, !11, i64 48, !11, i64 56, !13, i64 64}
!20 = !{!"float", !7, i64 0}
!21 = !{!10, !11, i64 0}
!22 = !{!11, !11, i64 0}
!23 = !{!10, !14, i64 14}
!24 = !{!10, !6, i64 24}
!25 = !{!10, !6, i64 16}
!26 = !{!18, !6, i64 32}
!27 = !{!18, !11, i64 160}
!28 = !{!18, !6, i64 16}
!29 = !{!30, !6, i64 8}
!30 = !{!"SizeClass", !11, i64 0, !6, i64 8, !7, i64 16, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80}
!31 = !{!30, !11, i64 56}


; 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.SizeClass = type { i64, ptr, %union.pthread_mutex_t, i64, i64, i64, i64 }
%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.7 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1

declare void @geometric_log_error(ptr 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: nounwind uwtable
define dso_local void @pool_free(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = icmp ne ptr %0, null
  %4 = icmp ne ptr %1, null
  %or.cond = and i1 %3, %4
  br i1 %or.cond, label %5, label %61

5:                                                ; preds = %2
  %6 = tail call ptr @get_block(ptr noundef nonnull %1)
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %7, label %8

7:                                                ; preds = %5
  tail call void (ptr, ...) @geometric_log_error(ptr noundef nonnull @.str.7) #4
  br label %61

8:                                                ; preds = %5
  %9 = getelementptr inbounds i8, ptr %6, i64 12
  %10 = load i8, ptr %9, align 4, !tbaa !5, !range !14, !noundef !15
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %12, label %13

12:                                               ; preds = %8
  tail call void (ptr, ...) @geometric_log_error(ptr noundef nonnull @.str.8) #4
  br label %61

13:                                               ; preds = %8
  %14 = getelementptr inbounds i8, ptr %0, i64 168
  %15 = load i8, ptr %14, align 8, !tbaa !16, !range !14, !noundef !15
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %21

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  %19 = load i64, ptr %6, align 64, !tbaa !20
  %20 = atomicrmw sub ptr %18, i64 %19 monotonic, align 8
  br label %21

21:                                               ; preds = %17, %13
  %22 = getelementptr inbounds i8, ptr %6, i64 14
  %23 = load i16, ptr %22, align 2, !tbaa !21
  %24 = icmp eq i16 %23, 64
  br i1 %24, label %25, label %41

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %0, i64 64
  %27 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %26) #4
  %28 = getelementptr inbounds i8, ptr %6, i64 24
  %29 = load ptr, ptr %28, align 8, !tbaa !22
  %.not40 = icmp eq ptr %29, null
  %30 = getelementptr inbounds i8, ptr %6, i64 16
  %31 = load ptr, ptr %30, align 16, !tbaa !23
  br i1 %.not40, label %34, label %32

32:                                               ; preds = %25
  %33 = getelementptr inbounds i8, ptr %29, i64 16
  store ptr %31, ptr %33, align 16, !tbaa !23
  br label %36

34:                                               ; preds = %25
  %35 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %31, ptr %35, align 8, !tbaa !24
  br label %36

36:                                               ; preds = %34, %32
  %.not41 = icmp eq ptr %31, null
  br i1 %.not41, label %39, label %37

37:                                               ; preds = %36
  %38 = getelementptr inbounds i8, ptr %31, i64 24
  store ptr %29, ptr %38, align 8, !tbaa !22
  br label %39

39:                                               ; preds = %37, %36
  %40 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull %26) #4
  tail call void @free(ptr noundef nonnull %6) #4
  br label %61

41:                                               ; preds = %21
  %42 = getelementptr inbounds i8, ptr %0, i64 160
  %43 = load i64, ptr %42, align 8, !tbaa !25
  %.not39 = icmp eq i64 %43, 0
  br i1 %.not39, label %46, label %44

44:                                               ; preds = %41
  %45 = tail call zeroext i1 @add_to_cache(i16 noundef zeroext %23, ptr noundef nonnull %1)
  br i1 %45, label %61, label %._crit_edge

._crit_edge:                                      ; preds = %44
  %.pre = load i16, ptr %22, align 2, !tbaa !21
  br label %46

46:                                               ; preds = %._crit_edge, %41
  %47 = phi i16 [ %.pre, %._crit_edge ], [ %23, %41 ]
  %48 = getelementptr inbounds i8, ptr %0, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !26
  %50 = zext i16 %47 to i64
  %51 = getelementptr inbounds %struct.SizeClass, ptr %49, i64 %50
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %53 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %52) #4
  store i8 1, ptr %9, align 4, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %51, i64 8
  %55 = load ptr, ptr %54, align 8, !tbaa !27
  %56 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %55, ptr %56, align 16, !tbaa !23
  store ptr %6, ptr %54, align 8, !tbaa !27
  %57 = getelementptr inbounds i8, ptr %51, i64 56
  %58 = load i64, ptr %57, align 8, !tbaa !29
  %59 = add i64 %58, 1
  store i64 %59, ptr %57, align 8, !tbaa !29
  %60 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull %52) #4
  br label %61

61:                                               ; preds = %7, %12, %39, %46, %44, %2
  ret void
}

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

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @add_to_cache(i16 noundef zeroext, ptr noundef) local_unnamed_addr #2

attributes #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 #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 = { 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 = { 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 #4 = { 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, !11, i64 12}
!6 = !{!"Block", !7, i64 0, !10, i64 8, !11, i64 12, !12, i64 14, !13, i64 16, !13, i64 24, !8, i64 32, !13, i64 72}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !11, i64 168}
!17 = !{!"MemoryPool", !13, i64 0, !7, i64 8, !13, i64 16, !7, i64 24, !13, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !18, i64 104}
!18 = !{!"PoolConfig", !7, i64 0, !7, i64 8, !7, i64 16, !19, i64 24, !7, i64 32, !11, i64 40, !11, i64 41, !7, i64 48, !7, i64 56, !11, i64 64}
!19 = !{!"float", !8, i64 0}
!20 = !{!6, !7, i64 0}
!21 = !{!6, !12, i64 14}
!22 = !{!6, !13, i64 24}
!23 = !{!6, !13, i64 16}
!24 = !{!17, !13, i64 32}
!25 = !{!17, !7, i64 160}
!26 = !{!17, !13, i64 16}
!27 = !{!28, !13, i64 8}
!28 = !{!"SizeClass", !7, i64 0, !13, i64 8, !8, i64 16, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80}
!29 = !{!28, !7, i64 56}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass