; LLVM IR from LamberttLiu/CS-Basic-SelfLearning :: 【DSA】数据结构与算法（C语言版本）/src/search/uthash (example)

; 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.my_struct = type { i32, [21 x i8], %struct.UT_hash_handle }
%struct.UT_hash_handle = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.UT_hash_table = type { ptr, i32, i32, i32, ptr, i64, i32, i32, i32, i32, i32 }
%struct.UT_hash_bucket = type { ptr, i32, i32 }

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

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

; Function Attrs: nounwind uwtable
define dso_local void @delete_user(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  br label %6

6:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.my_struct, ptr %7, i32 0, i32 2
  store ptr %8, ptr %3, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.UT_hash_handle, ptr %9, i32 0, i32 1
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %29

13:                                               ; preds = %6
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.UT_hash_handle, ptr %14, i32 0, i32 2
  %16 = load ptr, ptr %15, align 8, !tbaa !12
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %29

18:                                               ; preds = %13
  %19 = load ptr, ptr @users, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.my_struct, ptr %19, i32 0, i32 2
  %21 = getelementptr inbounds %struct.UT_hash_handle, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = getelementptr inbounds %struct.UT_hash_table, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !15
  call void @free(ptr noundef %24) #3
  %25 = load ptr, ptr @users, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.my_struct, ptr %25, i32 0, i32 2
  %27 = getelementptr inbounds %struct.UT_hash_handle, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  call void @free(ptr noundef %28) #3
  store ptr null, ptr @users, align 8, !tbaa !5
  br label %177

29:                                               ; preds = %13, %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = load ptr, ptr @users, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.my_struct, ptr %31, i32 0, i32 2
  %33 = getelementptr inbounds %struct.UT_hash_handle, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = getelementptr inbounds %struct.UT_hash_table, ptr %34, i32 0, i32 4
  %36 = load ptr, ptr %35, align 8, !tbaa !18
  %37 = icmp eq ptr %30, %36
  br i1 %37, label %38, label %54

38:                                               ; preds = %29
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.UT_hash_handle, ptr %39, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = load ptr, ptr @users, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.my_struct, ptr %42, i32 0, i32 2
  %44 = getelementptr inbounds %struct.UT_hash_handle, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !13
  %46 = getelementptr inbounds %struct.UT_hash_table, ptr %45, i32 0, i32 5
  %47 = load i64, ptr %46, align 8, !tbaa !19
  %48 = getelementptr inbounds i8, ptr %41, i64 %47
  %49 = load ptr, ptr @users, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.my_struct, ptr %49, i32 0, i32 2
  %51 = getelementptr inbounds %struct.UT_hash_handle, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !13
  %53 = getelementptr inbounds %struct.UT_hash_table, ptr %52, i32 0, i32 4
  store ptr %48, ptr %53, align 8, !tbaa !18
  br label %54

54:                                               ; preds = %38, %29
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.UT_hash_handle, ptr %55, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %74

59:                                               ; preds = %54
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.UT_hash_handle, ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !12
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.UT_hash_handle, ptr %63, i32 0, i32 1
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  %66 = load ptr, ptr @users, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.my_struct, ptr %66, i32 0, i32 2
  %68 = getelementptr inbounds %struct.UT_hash_handle, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !13
  %70 = getelementptr inbounds %struct.UT_hash_table, ptr %69, i32 0, i32 5
  %71 = load i64, ptr %70, align 8, !tbaa !19
  %72 = getelementptr inbounds i8, ptr %65, i64 %71
  %73 = getelementptr inbounds %struct.UT_hash_handle, ptr %72, i32 0, i32 2
  store ptr %62, ptr %73, align 8, !tbaa !12
  br label %81

74:                                               ; preds = %54
  br label %75

75:                                               ; preds = %74
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.UT_hash_handle, ptr %76, i32 0, i32 2
  %78 = load ptr, ptr %77, align 8, !tbaa !12
  store ptr %78, ptr @users, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %75
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80, %59
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.UT_hash_handle, ptr %82, i32 0, i32 2
  %84 = load ptr, ptr %83, align 8, !tbaa !12
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %101

86:                                               ; preds = %81
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.UT_hash_handle, ptr %87, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !9
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.UT_hash_handle, ptr %90, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !12
  %93 = load ptr, ptr @users, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.my_struct, ptr %93, i32 0, i32 2
  %95 = getelementptr inbounds %struct.UT_hash_handle, ptr %94, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8, !tbaa !13
  %97 = getelementptr inbounds %struct.UT_hash_table, ptr %96, i32 0, i32 5
  %98 = load i64, ptr %97, align 8, !tbaa !19
  %99 = getelementptr inbounds i8, ptr %92, i64 %98
  %100 = getelementptr inbounds %struct.UT_hash_handle, ptr %99, i32 0, i32 1
  store ptr %89, ptr %100, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %86, %81
  br label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.UT_hash_handle, ptr %103, i32 0, i32 7
  %105 = load i32, ptr %104, align 4, !tbaa !20
  %106 = load ptr, ptr @users, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.my_struct, ptr %106, i32 0, i32 2
  %108 = getelementptr inbounds %struct.UT_hash_handle, ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !13
  %110 = getelementptr inbounds %struct.UT_hash_table, ptr %109, i32 0, i32 1
  %111 = load i32, ptr %110, align 8, !tbaa !21
  %112 = sub i32 %111, 1
  %113 = and i32 %105, %112
  store i32 %113, ptr %4, align 4, !tbaa !22
  br label %114

114:                                              ; preds = %102
  br label %115

115:                                              ; preds = %114
  br label %116

116:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %117 = load ptr, ptr @users, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.my_struct, ptr %117, i32 0, i32 2
  %119 = getelementptr inbounds %struct.UT_hash_handle, ptr %118, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !13
  %121 = getelementptr inbounds %struct.UT_hash_table, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !15
  %123 = load i32, ptr %4, align 4, !tbaa !22
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds %struct.UT_hash_bucket, ptr %122, i64 %124
  store ptr %125, ptr %5, align 8, !tbaa !5
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.UT_hash_bucket, ptr %126, i32 0, i32 1
  %128 = load i32, ptr %127, align 8, !tbaa !23
  %129 = add i32 %128, -1
  store i32 %129, ptr %127, align 8, !tbaa !23
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.UT_hash_bucket, ptr %130, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8, !tbaa !25
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = icmp eq ptr %132, %133
  br i1 %134, label %135, label %141

135:                                              ; preds = %116
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.UT_hash_handle, ptr %136, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !26
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.UT_hash_bucket, ptr %139, i32 0, i32 0
  store ptr %138, ptr %140, align 8, !tbaa !25
  br label %141

141:                                              ; preds = %135, %116
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.UT_hash_handle, ptr %142, i32 0, i32 3
  %144 = load ptr, ptr %143, align 8, !tbaa !27
  %145 = icmp ne ptr %144, null
  br i1 %145, label %146, label %154

146:                                              ; preds = %141
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.UT_hash_handle, ptr %147, i32 0, i32 4
  %149 = load ptr, ptr %148, align 8, !tbaa !26
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.UT_hash_handle, ptr %150, i32 0, i32 3
  %152 = load ptr, ptr %151, align 8, !tbaa !27
  %153 = getelementptr inbounds %struct.UT_hash_handle, ptr %152, i32 0, i32 4
  store ptr %149, ptr %153, align 8, !tbaa !26
  br label %154

154:                                              ; preds = %146, %141
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.UT_hash_handle, ptr %155, i32 0, i32 4
  %157 = load ptr, ptr %156, align 8, !tbaa !26
  %158 = icmp ne ptr %157, null
  br i1 %158, label %159, label %167

159:                                              ; preds = %154
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.UT_hash_handle, ptr %160, i32 0, i32 3
  %162 = load ptr, ptr %161, align 8, !tbaa !27
  %163 = load ptr, ptr %3, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.UT_hash_handle, ptr %163, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !26
  %166 = getelementptr inbounds %struct.UT_hash_handle, ptr %165, i32 0, i32 3
  store ptr %162, ptr %166, align 8, !tbaa !27
  br label %167

167:                                              ; preds = %159, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %168

168:                                              ; preds = %167
  br label %169

169:                                              ; preds = %168
  %170 = load ptr, ptr @users, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.my_struct, ptr %170, i32 0, i32 2
  %172 = getelementptr inbounds %struct.UT_hash_handle, ptr %171, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8, !tbaa !13
  %174 = getelementptr inbounds %struct.UT_hash_table, ptr %173, i32 0, i32 3
  %175 = load i32, ptr %174, align 8, !tbaa !28
  %176 = add i32 %175, -1
  store i32 %176, ptr %174, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %177

177:                                              ; preds = %169, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  br label %178

178:                                              ; preds = %177
  %179 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %179) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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, !6, i64 8}
!10 = !{!"UT_hash_handle", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !11, i64 52}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 16}
!13 = !{!14, !6, i64 32}
!14 = !{!"my_struct", !11, i64 0, !7, i64 4, !10, i64 32}
!15 = !{!16, !6, i64 0}
!16 = !{!"UT_hash_table", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !17, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56}
!17 = !{!"long", !7, i64 0}
!18 = !{!16, !6, i64 24}
!19 = !{!16, !17, i64 32}
!20 = !{!10, !11, i64 52}
!21 = !{!16, !11, i64 8}
!22 = !{!11, !11, i64 0}
!23 = !{!24, !11, i64 8}
!24 = !{!"UT_hash_bucket", !6, i64 0, !11, i64 8, !11, i64 12}
!25 = !{!24, !6, i64 0}
!26 = !{!10, !6, i64 32}
!27 = !{!10, !6, i64 24}
!28 = !{!16, !11, i64 16}


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

@users = external dso_local local_unnamed_addr global ptr, align 8

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

; Function Attrs: mustprogress nounwind willreturn uwtable
define dso_local void @delete_user(ptr noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 32
  %3 = getelementptr inbounds i8, ptr %0, i64 40
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = icmp eq ptr %4, null
  br i1 %5, label %6, label %18

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  %8 = load ptr, ptr %7, align 8, !tbaa !11
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %18

10:                                               ; preds = %6
  %11 = load ptr, ptr @users, align 8, !tbaa !12
  %12 = getelementptr inbounds i8, ptr %11, i64 32
  %13 = load ptr, ptr %12, align 8, !tbaa !13
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  tail call void @free(ptr noundef %14) #2
  %15 = load ptr, ptr @users, align 8, !tbaa !12
  %16 = getelementptr inbounds i8, ptr %15, i64 32
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  tail call void @free(ptr noundef %17) #2
  store ptr null, ptr @users, align 8, !tbaa !12
  br label %81

18:                                               ; preds = %6, %1
  %19 = load ptr, ptr @users, align 8, !tbaa !12
  %20 = getelementptr inbounds i8, ptr %19, i64 32
  %21 = load ptr, ptr %20, align 8, !tbaa !13
  %22 = getelementptr inbounds i8, ptr %21, i64 24
  %23 = load ptr, ptr %22, align 8, !tbaa !18
  %24 = icmp eq ptr %2, %23
  br i1 %24, label %25, label %29

25:                                               ; preds = %18
  %26 = getelementptr inbounds i8, ptr %21, i64 32
  %27 = load i64, ptr %26, align 8, !tbaa !19
  %28 = getelementptr inbounds i8, ptr %4, i64 %27
  store ptr %28, ptr %22, align 8, !tbaa !18
  br label %29

29:                                               ; preds = %25, %18
  %30 = getelementptr inbounds i8, ptr %0, i64 48
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  br i1 %5, label %37, label %32

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %21, i64 32
  %34 = load i64, ptr %33, align 8, !tbaa !19
  %35 = getelementptr inbounds i8, ptr %4, i64 %34
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  store ptr %31, ptr %36, align 8, !tbaa !11
  %.pre32.pre = load ptr, ptr @users, align 8, !tbaa !12
  br label %38

37:                                               ; preds = %29
  store ptr %31, ptr @users, align 8, !tbaa !12
  br label %38

38:                                               ; preds = %37, %32
  %.pre32 = phi ptr [ %31, %37 ], [ %.pre32.pre, %32 ]
  %.not29 = icmp eq ptr %31, null
  br i1 %.not29, label %46, label %39

39:                                               ; preds = %38
  %40 = getelementptr inbounds i8, ptr %.pre32, i64 32
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  %42 = getelementptr inbounds i8, ptr %41, i64 32
  %43 = load i64, ptr %42, align 8, !tbaa !19
  %44 = getelementptr inbounds i8, ptr %31, i64 %43
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  store ptr %4, ptr %45, align 8, !tbaa !5
  %.pre = load ptr, ptr @users, align 8, !tbaa !12
  br label %46

46:                                               ; preds = %38, %39
  %47 = phi ptr [ %.pre32, %38 ], [ %.pre, %39 ]
  %48 = getelementptr inbounds i8, ptr %0, i64 84
  %49 = load i32, ptr %48, align 4, !tbaa !20
  %50 = getelementptr inbounds i8, ptr %47, i64 32
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %53 = load i32, ptr %52, align 8, !tbaa !21
  %54 = add i32 %53, -1
  %55 = and i32 %54, %49
  %56 = load ptr, ptr %51, align 8, !tbaa !15
  %57 = zext i32 %55 to i64
  %58 = getelementptr inbounds %struct.UT_hash_bucket, ptr %56, i64 %57
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  %60 = load i32, ptr %59, align 8, !tbaa !22
  %61 = add i32 %60, -1
  store i32 %61, ptr %59, align 8, !tbaa !22
  %62 = load ptr, ptr %58, align 8, !tbaa !24
  %63 = icmp eq ptr %62, %2
  br i1 %63, label %64, label %67

64:                                               ; preds = %46
  %65 = getelementptr inbounds i8, ptr %0, i64 64
  %66 = load ptr, ptr %65, align 8, !tbaa !25
  store ptr %66, ptr %58, align 8, !tbaa !24
  br label %67

67:                                               ; preds = %64, %46
  %68 = getelementptr inbounds i8, ptr %0, i64 56
  %69 = load ptr, ptr %68, align 8, !tbaa !26
  %.not30 = icmp eq ptr %69, null
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 64
  %.pre33 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !25
  br i1 %.not30, label %._crit_edge, label %70

70:                                               ; preds = %67
  %71 = getelementptr inbounds i8, ptr %69, i64 32
  store ptr %.pre33, ptr %71, align 8, !tbaa !25
  br label %._crit_edge

._crit_edge:                                      ; preds = %67, %70
  %.not31 = icmp eq ptr %.pre33, null
  br i1 %.not31, label %74, label %72

72:                                               ; preds = %._crit_edge
  %73 = getelementptr inbounds i8, ptr %.pre33, i64 24
  store ptr %69, ptr %73, align 8, !tbaa !26
  br label %74

74:                                               ; preds = %72, %._crit_edge
  %75 = load ptr, ptr @users, align 8, !tbaa !12
  %76 = getelementptr inbounds i8, ptr %75, i64 32
  %77 = load ptr, ptr %76, align 8, !tbaa !13
  %78 = getelementptr inbounds i8, ptr %77, i64 16
  %79 = load i32, ptr %78, align 8, !tbaa !27
  %80 = add i32 %79, -1
  store i32 %80, ptr %78, align 8, !tbaa !27
  br label %81

81:                                               ; preds = %74, %10
  tail call void @free(ptr noundef nonnull %0) #2
  ret void
}

attributes #0 = { 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 #1 = { mustprogress nounwind willreturn 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 }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"UT_hash_handle", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !10, i64 52}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 16}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !7, i64 32}
!14 = !{!"my_struct", !10, i64 0, !8, i64 4, !6, i64 32}
!15 = !{!16, !7, i64 0}
!16 = !{!"UT_hash_table", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24, !17, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56}
!17 = !{!"long", !8, i64 0}
!18 = !{!16, !7, i64 24}
!19 = !{!16, !17, i64 32}
!20 = !{!6, !10, i64 52}
!21 = !{!16, !10, i64 8}
!22 = !{!23, !10, i64 8}
!23 = !{!"UT_hash_bucket", !7, i64 0, !10, i64 8, !10, i64 12}
!24 = !{!23, !7, i64 0}
!25 = !{!6, !7, i64 32}
!26 = !{!6, !7, i64 24}
!27 = !{!16, !10, i64 16}


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