; 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_all() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  %6 = load ptr, ptr @users, align 8, !tbaa !5
  store ptr %6, ptr %1, align 8, !tbaa !5
  %7 = load ptr, ptr @users, align 8, !tbaa !5
  %8 = icmp ne ptr %7, null
  br i1 %8, label %9, label %14

9:                                                ; preds = %0
  %10 = load ptr, ptr @users, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.my_struct, ptr %10, i32 0, i32 2
  %12 = getelementptr inbounds %struct.UT_hash_handle, ptr %11, i32 0, i32 2
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  br label %15

14:                                               ; preds = %0
  br label %15

15:                                               ; preds = %14, %9
  %16 = phi ptr [ %13, %9 ], [ null, %14 ]
  store ptr %16, ptr %2, align 8, !tbaa !5
  br label %17

17:                                               ; preds = %206, %15
  %18 = load ptr, ptr %1, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %208

20:                                               ; preds = %17
  br label %21

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %22 = load ptr, ptr %1, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.my_struct, ptr %22, i32 0, i32 2
  store ptr %23, ptr %3, align 8, !tbaa !5
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.UT_hash_handle, ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !13
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %44

28:                                               ; preds = %21
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.UT_hash_handle, ptr %29, i32 0, i32 2
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %44

33:                                               ; preds = %28
  %34 = load ptr, ptr @users, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.my_struct, ptr %34, i32 0, i32 2
  %36 = getelementptr inbounds %struct.UT_hash_handle, ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  %38 = getelementptr inbounds %struct.UT_hash_table, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  call void @free(ptr noundef %39) #3
  %40 = load ptr, ptr @users, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.my_struct, ptr %40, i32 0, i32 2
  %42 = getelementptr inbounds %struct.UT_hash_handle, ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  call void @free(ptr noundef %43) #3
  store ptr null, ptr @users, align 8, !tbaa !5
  br label %192

44:                                               ; preds = %28, %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = load ptr, ptr @users, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.my_struct, ptr %46, i32 0, i32 2
  %48 = getelementptr inbounds %struct.UT_hash_handle, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !15
  %50 = getelementptr inbounds %struct.UT_hash_table, ptr %49, i32 0, i32 4
  %51 = load ptr, ptr %50, align 8, !tbaa !19
  %52 = icmp eq ptr %45, %51
  br i1 %52, label %53, label %69

53:                                               ; preds = %44
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.UT_hash_handle, ptr %54, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !13
  %57 = load ptr, ptr @users, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.my_struct, ptr %57, i32 0, i32 2
  %59 = getelementptr inbounds %struct.UT_hash_handle, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !15
  %61 = getelementptr inbounds %struct.UT_hash_table, ptr %60, i32 0, i32 5
  %62 = load i64, ptr %61, align 8, !tbaa !20
  %63 = getelementptr inbounds i8, ptr %56, i64 %62
  %64 = load ptr, ptr @users, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.my_struct, ptr %64, i32 0, i32 2
  %66 = getelementptr inbounds %struct.UT_hash_handle, ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !15
  %68 = getelementptr inbounds %struct.UT_hash_table, ptr %67, i32 0, i32 4
  store ptr %63, ptr %68, align 8, !tbaa !19
  br label %69

69:                                               ; preds = %53, %44
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.UT_hash_handle, ptr %70, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !13
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %89

74:                                               ; preds = %69
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.UT_hash_handle, ptr %75, i32 0, i32 2
  %77 = load ptr, ptr %76, align 8, !tbaa !14
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.UT_hash_handle, ptr %78, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !13
  %81 = load ptr, ptr @users, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.my_struct, ptr %81, i32 0, i32 2
  %83 = getelementptr inbounds %struct.UT_hash_handle, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  %85 = getelementptr inbounds %struct.UT_hash_table, ptr %84, i32 0, i32 5
  %86 = load i64, ptr %85, align 8, !tbaa !20
  %87 = getelementptr inbounds i8, ptr %80, i64 %86
  %88 = getelementptr inbounds %struct.UT_hash_handle, ptr %87, i32 0, i32 2
  store ptr %77, ptr %88, align 8, !tbaa !14
  br label %96

89:                                               ; preds = %69
  br label %90

90:                                               ; preds = %89
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.UT_hash_handle, ptr %91, i32 0, i32 2
  %93 = load ptr, ptr %92, align 8, !tbaa !14
  store ptr %93, ptr @users, align 8, !tbaa !5
  br label %94

94:                                               ; preds = %90
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95, %74
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.UT_hash_handle, ptr %97, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !14
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %116

101:                                              ; preds = %96
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.UT_hash_handle, ptr %102, i32 0, i32 1
  %104 = load ptr, ptr %103, align 8, !tbaa !13
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.UT_hash_handle, ptr %105, i32 0, i32 2
  %107 = load ptr, ptr %106, align 8, !tbaa !14
  %108 = load ptr, ptr @users, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.my_struct, ptr %108, i32 0, i32 2
  %110 = getelementptr inbounds %struct.UT_hash_handle, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !15
  %112 = getelementptr inbounds %struct.UT_hash_table, ptr %111, i32 0, i32 5
  %113 = load i64, ptr %112, align 8, !tbaa !20
  %114 = getelementptr inbounds i8, ptr %107, i64 %113
  %115 = getelementptr inbounds %struct.UT_hash_handle, ptr %114, i32 0, i32 1
  store ptr %104, ptr %115, align 8, !tbaa !13
  br label %116

116:                                              ; preds = %101, %96
  br label %117

117:                                              ; preds = %116
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.UT_hash_handle, ptr %118, i32 0, i32 7
  %120 = load i32, ptr %119, align 4, !tbaa !21
  %121 = load ptr, ptr @users, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.my_struct, ptr %121, i32 0, i32 2
  %123 = getelementptr inbounds %struct.UT_hash_handle, ptr %122, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !15
  %125 = getelementptr inbounds %struct.UT_hash_table, ptr %124, i32 0, i32 1
  %126 = load i32, ptr %125, align 8, !tbaa !22
  %127 = sub i32 %126, 1
  %128 = and i32 %120, %127
  store i32 %128, ptr %4, align 4, !tbaa !23
  br label %129

129:                                              ; preds = %117
  br label %130

130:                                              ; preds = %129
  br label %131

131:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %132 = load ptr, ptr @users, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.my_struct, ptr %132, i32 0, i32 2
  %134 = getelementptr inbounds %struct.UT_hash_handle, ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !15
  %136 = getelementptr inbounds %struct.UT_hash_table, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !16
  %138 = load i32, ptr %4, align 4, !tbaa !23
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds %struct.UT_hash_bucket, ptr %137, i64 %139
  store ptr %140, ptr %5, align 8, !tbaa !5
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.UT_hash_bucket, ptr %141, i32 0, i32 1
  %143 = load i32, ptr %142, align 8, !tbaa !24
  %144 = add i32 %143, -1
  store i32 %144, ptr %142, align 8, !tbaa !24
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.UT_hash_bucket, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !26
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = icmp eq ptr %147, %148
  br i1 %149, label %150, label %156

150:                                              ; preds = %131
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.UT_hash_handle, ptr %151, i32 0, i32 4
  %153 = load ptr, ptr %152, align 8, !tbaa !27
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.UT_hash_bucket, ptr %154, i32 0, i32 0
  store ptr %153, ptr %155, align 8, !tbaa !26
  br label %156

156:                                              ; preds = %150, %131
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.UT_hash_handle, ptr %157, i32 0, i32 3
  %159 = load ptr, ptr %158, align 8, !tbaa !28
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %169

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

169:                                              ; preds = %161, %156
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.UT_hash_handle, ptr %170, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !27
  %173 = icmp ne ptr %172, null
  br i1 %173, label %174, label %182

174:                                              ; preds = %169
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.UT_hash_handle, ptr %175, i32 0, i32 3
  %177 = load ptr, ptr %176, align 8, !tbaa !28
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.UT_hash_handle, ptr %178, i32 0, i32 4
  %180 = load ptr, ptr %179, align 8, !tbaa !27
  %181 = getelementptr inbounds %struct.UT_hash_handle, ptr %180, i32 0, i32 3
  store ptr %177, ptr %181, align 8, !tbaa !28
  br label %182

182:                                              ; preds = %174, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %183

183:                                              ; preds = %182
  br label %184

184:                                              ; preds = %183
  %185 = load ptr, ptr @users, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.my_struct, ptr %185, i32 0, i32 2
  %187 = getelementptr inbounds %struct.UT_hash_handle, ptr %186, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8, !tbaa !15
  %189 = getelementptr inbounds %struct.UT_hash_table, ptr %188, i32 0, i32 3
  %190 = load i32, ptr %189, align 8, !tbaa !29
  %191 = add i32 %190, -1
  store i32 %191, ptr %189, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %192

192:                                              ; preds = %184, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  br label %193

193:                                              ; preds = %192
  br label %194

194:                                              ; preds = %193
  %195 = load ptr, ptr %1, align 8, !tbaa !5
  call void @free(ptr noundef %195) #3
  br label %196

196:                                              ; preds = %194
  %197 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %197, ptr %1, align 8, !tbaa !5
  %198 = load ptr, ptr %2, align 8, !tbaa !5
  %199 = icmp ne ptr %198, null
  br i1 %199, label %200, label %205

200:                                              ; preds = %196
  %201 = load ptr, ptr %2, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.my_struct, ptr %201, i32 0, i32 2
  %203 = getelementptr inbounds %struct.UT_hash_handle, ptr %202, i32 0, i32 2
  %204 = load ptr, ptr %203, align 8, !tbaa !9
  br label %206

205:                                              ; preds = %196
  br label %206

206:                                              ; preds = %205, %200
  %207 = phi ptr [ %204, %200 ], [ null, %205 ]
  store ptr %207, ptr %2, align 8, !tbaa !5
  br label %17, !llvm.loop !30

208:                                              ; preds = %17
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #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 48}
!10 = !{!"my_struct", !11, i64 0, !7, i64 4, !12, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!"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}
!13 = !{!12, !6, i64 8}
!14 = !{!12, !6, i64 16}
!15 = !{!10, !6, i64 32}
!16 = !{!17, !6, i64 0}
!17 = !{!"UT_hash_table", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !18, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56}
!18 = !{!"long", !7, i64 0}
!19 = !{!17, !6, i64 24}
!20 = !{!17, !18, i64 32}
!21 = !{!12, !11, i64 52}
!22 = !{!17, !11, i64 8}
!23 = !{!11, !11, i64 0}
!24 = !{!25, !11, i64 8}
!25 = !{!"UT_hash_bucket", !6, i64 0, !11, i64 8, !11, i64 12}
!26 = !{!25, !6, i64 0}
!27 = !{!12, !6, i64 32}
!28 = !{!12, !6, i64 24}
!29 = !{!17, !11, i64 16}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.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: nounwind uwtable
define dso_local void @delete_all() local_unnamed_addr #1 {
  %1 = load ptr, ptr @users, align 8, !tbaa !5
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %82
  %.sink52 = phi ptr [ %3, %82 ], [ %1, %0 ]
  %2 = getelementptr inbounds i8, ptr %.sink52, i64 48
  %3 = load ptr, ptr %2, align 8, !tbaa !9
  %4 = getelementptr inbounds i8, ptr %.sink52, i64 32
  %5 = getelementptr inbounds i8, ptr %.sink52, i64 40
  %6 = load ptr, ptr %5, align 8, !tbaa !13
  %7 = icmp eq ptr %6, null
  br i1 %7, label %8, label %.lr.ph._crit_edge

.lr.ph._crit_edge:                                ; preds = %.lr.ph
  %.pre = load ptr, ptr @users, align 8, !tbaa !5
  br label %19

8:                                                ; preds = %.lr.ph
  %9 = getelementptr inbounds i8, ptr %.sink52, i64 48
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  %11 = icmp eq ptr %10, null
  %.pre45 = load ptr, ptr @users, align 8, !tbaa !5
  br i1 %11, label %12, label %19

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

19:                                               ; preds = %.lr.ph._crit_edge, %8
  %20 = phi ptr [ %.pre, %.lr.ph._crit_edge ], [ %.pre45, %8 ]
  %21 = getelementptr inbounds i8, ptr %20, i64 32
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = getelementptr inbounds i8, ptr %22, i64 24
  %24 = load ptr, ptr %23, align 8, !tbaa !19
  %25 = icmp eq ptr %4, %24
  br i1 %25, label %26, label %30

26:                                               ; preds = %19
  %27 = getelementptr inbounds i8, ptr %22, i64 32
  %28 = load i64, ptr %27, align 8, !tbaa !20
  %29 = getelementptr inbounds i8, ptr %6, i64 %28
  store ptr %29, ptr %23, align 8, !tbaa !19
  br label %30

30:                                               ; preds = %26, %19
  %31 = getelementptr inbounds i8, ptr %.sink52, i64 48
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  br i1 %7, label %38, label %33

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %22, i64 32
  %35 = load i64, ptr %34, align 8, !tbaa !20
  %36 = getelementptr inbounds i8, ptr %6, i64 %35
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  store ptr %32, ptr %37, align 8, !tbaa !14
  %.pre47.pre = load ptr, ptr @users, align 8, !tbaa !5
  br label %39

38:                                               ; preds = %30
  store ptr %32, ptr @users, align 8, !tbaa !5
  br label %39

39:                                               ; preds = %38, %33
  %.pre47 = phi ptr [ %32, %38 ], [ %.pre47.pre, %33 ]
  %.not38 = icmp eq ptr %32, null
  br i1 %.not38, label %47, label %40

40:                                               ; preds = %39
  %41 = getelementptr inbounds i8, ptr %.pre47, i64 32
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  %43 = getelementptr inbounds i8, ptr %42, i64 32
  %44 = load i64, ptr %43, align 8, !tbaa !20
  %45 = getelementptr inbounds i8, ptr %32, i64 %44
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  store ptr %6, ptr %46, align 8, !tbaa !13
  %.pre46 = load ptr, ptr @users, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %39, %40
  %48 = phi ptr [ %.pre47, %39 ], [ %.pre46, %40 ]
  %49 = getelementptr inbounds i8, ptr %.sink52, i64 84
  %50 = load i32, ptr %49, align 4, !tbaa !21
  %51 = getelementptr inbounds i8, ptr %48, i64 32
  %52 = load ptr, ptr %51, align 8, !tbaa !15
  %53 = getelementptr inbounds i8, ptr %52, i64 8
  %54 = load i32, ptr %53, align 8, !tbaa !22
  %55 = add i32 %54, -1
  %56 = and i32 %55, %50
  %57 = load ptr, ptr %52, align 8, !tbaa !16
  %58 = zext i32 %56 to i64
  %59 = getelementptr inbounds %struct.UT_hash_bucket, ptr %57, i64 %58
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  %61 = load i32, ptr %60, align 8, !tbaa !23
  %62 = add i32 %61, -1
  store i32 %62, ptr %60, align 8, !tbaa !23
  %63 = load ptr, ptr %59, align 8, !tbaa !25
  %64 = icmp eq ptr %63, %4
  br i1 %64, label %65, label %68

65:                                               ; preds = %47
  %66 = getelementptr inbounds i8, ptr %.sink52, i64 64
  %67 = load ptr, ptr %66, align 8, !tbaa !26
  store ptr %67, ptr %59, align 8, !tbaa !25
  br label %68

68:                                               ; preds = %65, %47
  %69 = getelementptr inbounds i8, ptr %.sink52, i64 56
  %70 = load ptr, ptr %69, align 8, !tbaa !27
  %.not39 = icmp eq ptr %70, null
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.sink52, i64 64
  %.pre49 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !26
  br i1 %.not39, label %._crit_edge48, label %71

71:                                               ; preds = %68
  %72 = getelementptr inbounds i8, ptr %70, i64 32
  store ptr %.pre49, ptr %72, align 8, !tbaa !26
  br label %._crit_edge48

._crit_edge48:                                    ; preds = %68, %71
  %.not40 = icmp eq ptr %.pre49, null
  br i1 %.not40, label %75, label %73

73:                                               ; preds = %._crit_edge48
  %74 = getelementptr inbounds i8, ptr %.pre49, i64 24
  store ptr %70, ptr %74, align 8, !tbaa !27
  br label %75

75:                                               ; preds = %73, %._crit_edge48
  %76 = load ptr, ptr @users, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 32
  %78 = load ptr, ptr %77, align 8, !tbaa !15
  %79 = getelementptr inbounds i8, ptr %78, i64 16
  %80 = load i32, ptr %79, align 8, !tbaa !28
  %81 = add i32 %80, -1
  store i32 %81, ptr %79, align 8, !tbaa !28
  br label %82

82:                                               ; preds = %75, %12
  tail call void @free(ptr noundef nonnull %.sink52) #2
  %.not41 = icmp eq ptr %3, null
  br i1 %.not41, label %._crit_edge, label %.lr.ph, !llvm.loop !29

._crit_edge:                                      ; preds = %82, %0
  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 = { 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 }

!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 48}
!10 = !{!"my_struct", !11, i64 0, !7, i64 4, !12, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!"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}
!13 = !{!12, !6, i64 8}
!14 = !{!12, !6, i64 16}
!15 = !{!10, !6, i64 32}
!16 = !{!17, !6, i64 0}
!17 = !{!"UT_hash_table", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !18, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56}
!18 = !{!"long", !7, i64 0}
!19 = !{!17, !6, i64 24}
!20 = !{!17, !18, i64 32}
!21 = !{!12, !11, i64 52}
!22 = !{!17, !11, i64 8}
!23 = !{!24, !11, i64 8}
!24 = !{!"UT_hash_bucket", !6, i64 0, !11, i64 8, !11, i64 12}
!25 = !{!24, !6, i64 0}
!26 = !{!12, !6, i64 32}
!27 = !{!12, !6, i64 24}
!28 = !{!17, !11, i64 16}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


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