; LLVM IR from indygreg/python-zstandard :: zstd (zstd)

; 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.ZSTD_customMem = type { ptr, ptr, ptr }
%struct.POOL_ctx_s = type { %struct.ZSTD_customMem, ptr, i64, i64, ptr, i64, i64, i64, i64, i32, %union.pthread_mutex_t, %union.pthread_cond_t, %union.pthread_cond_t, i32 }
%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 }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local ptr @POOL_create_advanced(i64 noundef %0, i64 noundef %1, ptr noundef byval(%struct.ZSTD_customMem) align 8 %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  store i64 %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %11 = load i64, ptr %5, align 8, !tbaa !5
  %12 = icmp ne i64 %11, 0
  br i1 %12, label %14, label %13

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

14:                                               ; preds = %3
  %15 = call ptr @ZSTD_customCalloc(i64 noundef 240, ptr noundef byval(%struct.ZSTD_customMem) align 8 %2)
  store ptr %15, ptr %7, align 8, !tbaa !9
  %16 = load ptr, ptr %7, align 8, !tbaa !9
  %17 = icmp ne ptr %16, null
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  store ptr null, ptr %4, align 8
  store i32 1, ptr %8, align 4
  br label %118

19:                                               ; preds = %14
  %20 = load i64, ptr %6, align 8, !tbaa !5
  %21 = add i64 %20, 1
  %22 = load ptr, ptr %7, align 8, !tbaa !9
  %23 = getelementptr inbounds %struct.POOL_ctx_s, ptr %22, i32 0, i32 7
  store i64 %21, ptr %23, align 8, !tbaa !11
  %24 = load ptr, ptr %7, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct.POOL_ctx_s, ptr %24, i32 0, i32 7
  %26 = load i64, ptr %25, align 8, !tbaa !11
  %27 = mul i64 %26, 16
  %28 = call ptr @ZSTD_customCalloc(i64 noundef %27, ptr noundef byval(%struct.ZSTD_customMem) align 8 %2)
  %29 = load ptr, ptr %7, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct.POOL_ctx_s, ptr %29, i32 0, i32 4
  store ptr %28, ptr %30, align 8, !tbaa !15
  %31 = load ptr, ptr %7, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.POOL_ctx_s, ptr %31, i32 0, i32 5
  store i64 0, ptr %32, align 8, !tbaa !16
  %33 = load ptr, ptr %7, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct.POOL_ctx_s, ptr %33, i32 0, i32 6
  store i64 0, ptr %34, align 8, !tbaa !17
  %35 = load ptr, ptr %7, align 8, !tbaa !9
  %36 = getelementptr inbounds %struct.POOL_ctx_s, ptr %35, i32 0, i32 8
  store i64 0, ptr %36, align 8, !tbaa !18
  %37 = load ptr, ptr %7, align 8, !tbaa !9
  %38 = getelementptr inbounds %struct.POOL_ctx_s, ptr %37, i32 0, i32 9
  store i32 1, ptr %38, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !20
  %39 = load ptr, ptr %7, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.POOL_ctx_s, ptr %39, i32 0, i32 10
  %41 = call i32 @pthread_mutex_init(ptr noundef %40, ptr noundef null) #5
  %42 = load i32, ptr %9, align 4, !tbaa !20
  %43 = or i32 %42, %41
  store i32 %43, ptr %9, align 4, !tbaa !20
  %44 = load ptr, ptr %7, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.POOL_ctx_s, ptr %44, i32 0, i32 11
  %46 = call i32 @pthread_cond_init(ptr noundef %45, ptr noundef null) #5
  %47 = load i32, ptr %9, align 4, !tbaa !20
  %48 = or i32 %47, %46
  store i32 %48, ptr %9, align 4, !tbaa !20
  %49 = load ptr, ptr %7, align 8, !tbaa !9
  %50 = getelementptr inbounds %struct.POOL_ctx_s, ptr %49, i32 0, i32 12
  %51 = call i32 @pthread_cond_init(ptr noundef %50, ptr noundef null) #5
  %52 = load i32, ptr %9, align 4, !tbaa !20
  %53 = or i32 %52, %51
  store i32 %53, ptr %9, align 4, !tbaa !20
  %54 = load i32, ptr %9, align 4, !tbaa !20
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %58

56:                                               ; preds = %19
  %57 = load ptr, ptr %7, align 8, !tbaa !9
  call void @POOL_free(ptr noundef %57)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %8, align 4
  br label %59

58:                                               ; preds = %19
  store i32 0, ptr %8, align 4
  br label %59

59:                                               ; preds = %58, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %60 = load i32, ptr %8, align 4
  switch i32 %60, label %118 [
    i32 0, label %61
  ]

61:                                               ; preds = %59
  %62 = load ptr, ptr %7, align 8, !tbaa !9
  %63 = getelementptr inbounds %struct.POOL_ctx_s, ptr %62, i32 0, i32 13
  store i32 0, ptr %63, align 8, !tbaa !21
  %64 = load i64, ptr %5, align 8, !tbaa !5
  %65 = mul i64 %64, 8
  %66 = call ptr @ZSTD_customCalloc(i64 noundef %65, ptr noundef byval(%struct.ZSTD_customMem) align 8 %2)
  %67 = load ptr, ptr %7, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.POOL_ctx_s, ptr %67, i32 0, i32 1
  store ptr %66, ptr %68, align 8, !tbaa !22
  %69 = load ptr, ptr %7, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.POOL_ctx_s, ptr %69, i32 0, i32 2
  store i64 0, ptr %70, align 8, !tbaa !23
  %71 = load ptr, ptr %7, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.POOL_ctx_s, ptr %71, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %72, ptr align 8 %2, i64 24, i1 false), !tbaa.struct !24
  %73 = load ptr, ptr %7, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.POOL_ctx_s, ptr %73, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8, !tbaa !22
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %82

77:                                               ; preds = %61
  %78 = load ptr, ptr %7, align 8, !tbaa !9
  %79 = getelementptr inbounds %struct.POOL_ctx_s, ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !15
  %81 = icmp ne ptr %80, null
  br i1 %81, label %84, label %82

82:                                               ; preds = %77, %61
  %83 = load ptr, ptr %7, align 8, !tbaa !9
  call void @POOL_free(ptr noundef %83)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %8, align 4
  br label %118

84:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !5
  br label %85

85:                                               ; preds = %104, %84
  %86 = load i64, ptr %10, align 8, !tbaa !5
  %87 = load i64, ptr %5, align 8, !tbaa !5
  %88 = icmp ult i64 %86, %87
  br i1 %88, label %89, label %107

89:                                               ; preds = %85
  %90 = load ptr, ptr %7, align 8, !tbaa !9
  %91 = getelementptr inbounds %struct.POOL_ctx_s, ptr %90, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !22
  %93 = load i64, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds i64, ptr %92, i64 %93
  %95 = load ptr, ptr %7, align 8, !tbaa !9
  %96 = call i32 @pthread_create(ptr noundef %94, ptr noundef null, ptr noundef @POOL_thread, ptr noundef %95) #5
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %103

98:                                               ; preds = %89
  %99 = load i64, ptr %10, align 8, !tbaa !5
  %100 = load ptr, ptr %7, align 8, !tbaa !9
  %101 = getelementptr inbounds %struct.POOL_ctx_s, ptr %100, i32 0, i32 2
  store i64 %99, ptr %101, align 8, !tbaa !23
  %102 = load ptr, ptr %7, align 8, !tbaa !9
  call void @POOL_free(ptr noundef %102)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %8, align 4
  br label %114

103:                                              ; preds = %89
  br label %104

104:                                              ; preds = %103
  %105 = load i64, ptr %10, align 8, !tbaa !5
  %106 = add i64 %105, 1
  store i64 %106, ptr %10, align 8, !tbaa !5
  br label %85, !llvm.loop !25

107:                                              ; preds = %85
  %108 = load i64, ptr %5, align 8, !tbaa !5
  %109 = load ptr, ptr %7, align 8, !tbaa !9
  %110 = getelementptr inbounds %struct.POOL_ctx_s, ptr %109, i32 0, i32 2
  store i64 %108, ptr %110, align 8, !tbaa !23
  %111 = load i64, ptr %5, align 8, !tbaa !5
  %112 = load ptr, ptr %7, align 8, !tbaa !9
  %113 = getelementptr inbounds %struct.POOL_ctx_s, ptr %112, i32 0, i32 3
  store i64 %111, ptr %113, align 8, !tbaa !27
  store i32 0, ptr %8, align 4
  br label %114

114:                                              ; preds = %107, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %115 = load i32, ptr %8, align 4
  switch i32 %115, label %118 [
    i32 0, label %116
  ]

116:                                              ; preds = %114
  %117 = load ptr, ptr %7, align 8, !tbaa !9
  store ptr %117, ptr %4, align 8
  store i32 1, ptr %8, align 4
  br label %118

118:                                              ; preds = %116, %114, %82, %59, %18, %13
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %119 = load ptr, ptr %4, align 8
  ret ptr %119
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @ZSTD_customCalloc(i64 noundef, ptr noundef byval(%struct.ZSTD_customMem) align 8) #2

; Function Attrs: nounwind
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_cond_init(ptr noundef, ptr noundef) #3

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

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

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden ptr @POOL_thread(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 72}
!12 = !{!"POOL_ctx_s", !13, i64 0, !10, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !14, i64 88, !7, i64 96, !7, i64 136, !7, i64 184, !14, i64 232}
!13 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16}
!14 = !{!"int", !7, i64 0}
!15 = !{!12, !10, i64 48}
!16 = !{!12, !6, i64 56}
!17 = !{!12, !6, i64 64}
!18 = !{!12, !6, i64 80}
!19 = !{!12, !14, i64 88}
!20 = !{!14, !14, i64 0}
!21 = !{!12, !14, i64 232}
!22 = !{!12, !10, i64 24}
!23 = !{!12, !6, i64 32}
!24 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 8, !9}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!12, !6, i64 40}


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

; Function Attrs: nounwind uwtable
define dso_local ptr @POOL_create_advanced(i64 noundef %0, i64 noundef %1, ptr noundef byval(%struct.ZSTD_customMem) align 8 %2) local_unnamed_addr #0 {
  %.not = icmp eq i64 %0, 0
  br i1 %.not, label %40, label %4

4:                                                ; preds = %3
  %5 = tail call ptr @ZSTD_customCalloc(i64 noundef 240, ptr noundef nonnull byval(%struct.ZSTD_customMem) align 8 %2)
  %.not48 = icmp eq ptr %5, null
  br i1 %.not48, label %40, label %6

6:                                                ; preds = %4
  %7 = add i64 %1, 1
  %8 = getelementptr inbounds i8, ptr %5, i64 72
  store i64 %7, ptr %8, align 8, !tbaa !5
  %9 = shl i64 %7, 4
  %10 = tail call ptr @ZSTD_customCalloc(i64 noundef %9, ptr noundef nonnull byval(%struct.ZSTD_customMem) align 8 %2)
  %11 = getelementptr inbounds i8, ptr %5, i64 48
  store ptr %10, ptr %11, align 8, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %5, i64 56
  %13 = getelementptr inbounds i8, ptr %5, i64 80
  store i64 0, ptr %13, align 8, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %5, i64 88
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %12, i8 0, i64 16, i1 false)
  store i32 1, ptr %14, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %5, i64 96
  %16 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %15, ptr noundef null) #5
  %17 = getelementptr inbounds i8, ptr %5, i64 136
  %18 = tail call i32 @pthread_cond_init(ptr noundef nonnull %17, ptr noundef null) #5
  %19 = or i32 %18, %16
  %20 = getelementptr inbounds i8, ptr %5, i64 184
  %21 = tail call i32 @pthread_cond_init(ptr noundef nonnull %20, ptr noundef null) #5
  %22 = or i32 %19, %21
  %.not49 = icmp eq i32 %22, 0
  br i1 %.not49, label %.critedge, label %23

23:                                               ; preds = %6
  tail call void @POOL_free(ptr noundef nonnull %5)
  br label %40

.critedge:                                        ; preds = %6
  %24 = getelementptr inbounds i8, ptr %5, i64 232
  store i32 0, ptr %24, align 8, !tbaa !16
  %25 = shl i64 %0, 3
  %26 = tail call ptr @ZSTD_customCalloc(i64 noundef %25, ptr noundef nonnull byval(%struct.ZSTD_customMem) align 8 %2)
  %27 = getelementptr inbounds i8, ptr %5, i64 24
  store ptr %26, ptr %27, align 8, !tbaa !17
  %28 = getelementptr inbounds i8, ptr %5, i64 32
  store i64 0, ptr %28, align 8, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %2, i64 24, i1 false), !tbaa.struct !19
  %.not50 = icmp eq ptr %26, null
  br i1 %.not50, label %31, label %29

29:                                               ; preds = %.critedge
  %30 = load ptr, ptr %11, align 8, !tbaa !13
  %.not51 = icmp eq ptr %30, null
  br i1 %.not51, label %31, label %.preheader

31:                                               ; preds = %29, %.critedge
  tail call void @POOL_free(ptr noundef nonnull %5)
  br label %40

.preheader:                                       ; preds = %29, %36
  %.055 = phi i64 [ %37, %36 ], [ 0, %29 ]
  %32 = load ptr, ptr %27, align 8, !tbaa !17
  %33 = getelementptr inbounds i64, ptr %32, i64 %.055
  %34 = tail call i32 @pthread_create(ptr noundef %33, ptr noundef null, ptr noundef nonnull @POOL_thread, ptr noundef nonnull %5) #5
  %.not52 = icmp eq i32 %34, 0
  br i1 %.not52, label %36, label %35

35:                                               ; preds = %.preheader
  store i64 %.055, ptr %28, align 8, !tbaa !18
  tail call void @POOL_free(ptr noundef nonnull %5)
  br label %40

36:                                               ; preds = %.preheader
  %37 = add nuw i64 %.055, 1
  %exitcond.not = icmp eq i64 %37, %0
  br i1 %exitcond.not, label %38, label %.preheader, !llvm.loop !21

38:                                               ; preds = %36
  store i64 %0, ptr %28, align 8, !tbaa !18
  %39 = getelementptr inbounds i8, ptr %5, i64 40
  store i64 %0, ptr %39, align 8, !tbaa !23
  br label %40

40:                                               ; preds = %35, %38, %23, %4, %3, %31
  %.2 = phi ptr [ null, %31 ], [ null, %23 ], [ null, %3 ], [ null, %4 ], [ %5, %38 ], [ null, %35 ]
  ret ptr %.2
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @ZSTD_customCalloc(i64 noundef, ptr noundef byval(%struct.ZSTD_customMem) align 8) local_unnamed_addr #1

; Function Attrs: nounwind
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @pthread_cond_init(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @POOL_free(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden ptr @POOL_thread(ptr noundef) #0

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

attributes #0 = { 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 #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 72}
!6 = !{!"POOL_ctx_s", !7, i64 0, !8, i64 24, !11, i64 32, !11, i64 40, !8, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !12, i64 88, !9, i64 96, !9, i64 136, !9, i64 184, !12, i64 232}
!7 = !{!"", !8, i64 0, !8, i64 8, !8, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!6, !8, i64 48}
!14 = !{!6, !11, i64 80}
!15 = !{!6, !12, i64 88}
!16 = !{!6, !12, i64 232}
!17 = !{!6, !8, i64 24}
!18 = !{!6, !11, i64 32}
!19 = !{i64 0, i64 8, !20, i64 8, i64 8, !20, i64 16, i64 8, !20}
!20 = !{!8, !8, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!6, !11, i64 40}


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