; LLVM IR from p4lang/p4c :: backends/ebpf/runtime (ebpf_map)

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

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

11:                                               ; preds = %1
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.bpf_map, ptr %12, i32 0, i32 2
  %14 = getelementptr inbounds %struct.UT_hash_handle, ptr %13, i32 0, i32 2
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  br label %17

16:                                               ; preds = %1
  br label %17

17:                                               ; preds = %16, %11
  %18 = phi ptr [ %15, %11 ], [ null, %16 ]
  store ptr %18, ptr %4, align 8, !tbaa !5
  br label %19

19:                                               ; preds = %214, %17
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %216

22:                                               ; preds = %19
  br label %23

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

30:                                               ; preds = %23
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.UT_hash_handle, ptr %31, i32 0, i32 2
  %33 = load ptr, ptr %32, align 8, !tbaa !14
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %46

35:                                               ; preds = %30
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.bpf_map, ptr %36, i32 0, i32 2
  %38 = getelementptr inbounds %struct.UT_hash_handle, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !15
  %40 = getelementptr inbounds %struct.UT_hash_table, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !16
  call void @free(ptr noundef %41) #3
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.bpf_map, 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 !15
  call void @free(ptr noundef %45) #3
  store ptr null, ptr %2, align 8, !tbaa !5
  br label %194

46:                                               ; preds = %30, %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = load ptr, ptr %2, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.bpf_map, ptr %48, i32 0, i32 2
  %50 = getelementptr inbounds %struct.UT_hash_handle, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !15
  %52 = getelementptr inbounds %struct.UT_hash_table, ptr %51, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !19
  %54 = icmp eq ptr %47, %53
  br i1 %54, label %55, label %71

55:                                               ; preds = %46
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.UT_hash_handle, ptr %56, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !13
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.bpf_map, ptr %59, i32 0, i32 2
  %61 = getelementptr inbounds %struct.UT_hash_handle, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  %63 = getelementptr inbounds %struct.UT_hash_table, ptr %62, i32 0, i32 5
  %64 = load i64, ptr %63, align 8, !tbaa !20
  %65 = getelementptr inbounds i8, ptr %58, i64 %64
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.bpf_map, 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 !15
  %70 = getelementptr inbounds %struct.UT_hash_table, ptr %69, i32 0, i32 4
  store ptr %65, ptr %70, align 8, !tbaa !19
  br label %71

71:                                               ; preds = %55, %46
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.UT_hash_handle, ptr %72, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %91

76:                                               ; preds = %71
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.UT_hash_handle, ptr %77, i32 0, i32 2
  %79 = load ptr, ptr %78, align 8, !tbaa !14
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.UT_hash_handle, ptr %80, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !13
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.bpf_map, ptr %83, i32 0, i32 2
  %85 = getelementptr inbounds %struct.UT_hash_handle, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !15
  %87 = getelementptr inbounds %struct.UT_hash_table, ptr %86, i32 0, i32 5
  %88 = load i64, ptr %87, align 8, !tbaa !20
  %89 = getelementptr inbounds i8, ptr %82, i64 %88
  %90 = getelementptr inbounds %struct.UT_hash_handle, ptr %89, i32 0, i32 2
  store ptr %79, ptr %90, align 8, !tbaa !14
  br label %98

91:                                               ; preds = %71
  br label %92

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

96:                                               ; preds = %92
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97, %76
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.UT_hash_handle, ptr %99, i32 0, i32 2
  %101 = load ptr, ptr %100, align 8, !tbaa !14
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %118

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

118:                                              ; preds = %103, %98
  br label %119

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

131:                                              ; preds = %119
  br label %132

132:                                              ; preds = %131
  br label %133

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

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

158:                                              ; preds = %152, %133
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.UT_hash_handle, ptr %159, i32 0, i32 3
  %161 = load ptr, ptr %160, align 8, !tbaa !28
  %162 = icmp ne ptr %161, null
  br i1 %162, label %163, label %171

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

171:                                              ; preds = %163, %158
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.UT_hash_handle, ptr %172, i32 0, i32 4
  %174 = load ptr, ptr %173, align 8, !tbaa !27
  %175 = icmp ne ptr %174, null
  br i1 %175, label %176, label %184

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

184:                                              ; preds = %176, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %185

185:                                              ; preds = %184
  br label %186

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

194:                                              ; preds = %186, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %195

195:                                              ; preds = %194
  br label %196

196:                                              ; preds = %195
  %197 = load ptr, ptr %3, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.bpf_map, ptr %197, i32 0, i32 1
  %199 = load ptr, ptr %198, align 8, !tbaa !30
  call void @free(ptr noundef %199) #3
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.bpf_map, ptr %200, i32 0, i32 0
  %202 = load ptr, ptr %201, align 8, !tbaa !31
  call void @free(ptr noundef %202) #3
  %203 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %203) #3
  br label %204

204:                                              ; preds = %196
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %205, ptr %3, align 8, !tbaa !5
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = icmp ne ptr %206, null
  br i1 %207, label %208, label %213

208:                                              ; preds = %204
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.bpf_map, ptr %209, i32 0, i32 2
  %211 = getelementptr inbounds %struct.UT_hash_handle, ptr %210, i32 0, i32 2
  %212 = load ptr, ptr %211, align 8, !tbaa !9
  br label %214

213:                                              ; preds = %204
  br label %214

214:                                              ; preds = %213, %208
  %215 = phi ptr [ %212, %208 ], [ null, %213 ]
  store ptr %215, ptr %4, align 8, !tbaa !5
  br label %19, !llvm.loop !32

216:                                              ; preds = %19
  %217 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %217) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret i32 0
}

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

; 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 noundef i32 @bpf_map_delete_map(ptr noundef %0) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1, %69
  %.sink68 = phi ptr [ %3, %69 ], [ %0, %1 ]
  %.062 = phi ptr [ %.2, %69 ], [ %0, %1 ]
  %2 = getelementptr inbounds i8, ptr %.sink68, i64 32
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %.sink68, i64 16
  %5 = getelementptr inbounds i8, ptr %.sink68, i64 24
  %6 = load ptr, ptr %5, align 8, !tbaa !12
  %7 = icmp eq ptr %6, null
  br i1 %7, label %8, label %17

8:                                                ; preds = %.lr.ph
  %9 = getelementptr inbounds i8, ptr %.sink68, i64 32
  %10 = load ptr, ptr %9, align 8, !tbaa !13
  %11 = icmp eq ptr %10, null
  br i1 %11, label %12, label %17

12:                                               ; preds = %8
  %13 = getelementptr inbounds i8, ptr %.062, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !14
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  tail call void @free(ptr noundef %15) #2
  %16 = load ptr, ptr %13, align 8, !tbaa !14
  tail call void @free(ptr noundef %16) #2
  br label %69

17:                                               ; preds = %8, %.lr.ph
  %18 = getelementptr inbounds i8, ptr %.062, i64 16
  %19 = load ptr, ptr %18, align 8, !tbaa !14
  %20 = getelementptr inbounds i8, ptr %19, i64 24
  %21 = load ptr, ptr %20, align 8, !tbaa !18
  %22 = icmp eq ptr %4, %21
  br i1 %22, label %23, label %27

23:                                               ; preds = %17
  %24 = getelementptr inbounds i8, ptr %19, i64 32
  %25 = load i64, ptr %24, align 8, !tbaa !19
  %26 = getelementptr inbounds i8, ptr %6, i64 %25
  store ptr %26, ptr %20, align 8, !tbaa !18
  br label %27

27:                                               ; preds = %23, %17
  %28 = getelementptr inbounds i8, ptr %.sink68, i64 32
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  br i1 %7, label %35, label %30

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %19, i64 32
  %32 = load i64, ptr %31, align 8, !tbaa !19
  %33 = getelementptr inbounds i8, ptr %6, i64 %32
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  store ptr %29, ptr %34, align 8, !tbaa !13
  br label %35

35:                                               ; preds = %27, %30
  %.1 = phi ptr [ %.062, %30 ], [ %29, %27 ]
  %.not55 = icmp eq ptr %29, null
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.1, i64 16
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !14
  br i1 %.not55, label %._crit_edge63, label %36

36:                                               ; preds = %35
  %37 = getelementptr inbounds i8, ptr %.pre, i64 32
  %38 = load i64, ptr %37, align 8, !tbaa !19
  %39 = getelementptr inbounds i8, ptr %29, i64 %38
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  store ptr %6, ptr %40, align 8, !tbaa !12
  br label %._crit_edge63

._crit_edge63:                                    ; preds = %35, %36
  %41 = getelementptr inbounds i8, ptr %.sink68, i64 68
  %42 = load i32, ptr %41, align 4, !tbaa !20
  %43 = getelementptr inbounds i8, ptr %.pre, i64 8
  %44 = load i32, ptr %43, align 8, !tbaa !21
  %45 = add i32 %44, -1
  %46 = and i32 %45, %42
  %47 = load ptr, ptr %.pre, align 8, !tbaa !15
  %48 = zext i32 %46 to i64
  %49 = getelementptr inbounds %struct.UT_hash_bucket, ptr %47, i64 %48
  %50 = getelementptr inbounds i8, ptr %49, i64 8
  %51 = load i32, ptr %50, align 8, !tbaa !22
  %52 = add i32 %51, -1
  store i32 %52, ptr %50, align 8, !tbaa !22
  %53 = load ptr, ptr %49, align 8, !tbaa !24
  %54 = icmp eq ptr %53, %4
  br i1 %54, label %55, label %58

55:                                               ; preds = %._crit_edge63
  %56 = getelementptr inbounds i8, ptr %.sink68, i64 48
  %57 = load ptr, ptr %56, align 8, !tbaa !25
  store ptr %57, ptr %49, align 8, !tbaa !24
  br label %58

58:                                               ; preds = %55, %._crit_edge63
  %59 = getelementptr inbounds i8, ptr %.sink68, i64 40
  %60 = load ptr, ptr %59, align 8, !tbaa !26
  %.not56 = icmp eq ptr %60, null
  %.phi.trans.insert65 = getelementptr inbounds i8, ptr %.sink68, i64 48
  %.pre66 = load ptr, ptr %.phi.trans.insert65, align 8, !tbaa !25
  br i1 %.not56, label %._crit_edge64, label %61

61:                                               ; preds = %58
  %62 = getelementptr inbounds i8, ptr %60, i64 32
  store ptr %.pre66, ptr %62, align 8, !tbaa !25
  br label %._crit_edge64

._crit_edge64:                                    ; preds = %58, %61
  %.not57 = icmp eq ptr %.pre66, null
  br i1 %.not57, label %65, label %63

63:                                               ; preds = %._crit_edge64
  %64 = getelementptr inbounds i8, ptr %.pre66, i64 24
  store ptr %60, ptr %64, align 8, !tbaa !26
  br label %65

65:                                               ; preds = %63, %._crit_edge64
  %66 = getelementptr inbounds i8, ptr %.pre, i64 16
  %67 = load i32, ptr %66, align 8, !tbaa !27
  %68 = add i32 %67, -1
  store i32 %68, ptr %66, align 8, !tbaa !27
  br label %69

69:                                               ; preds = %65, %12
  %.2 = phi ptr [ null, %12 ], [ %.1, %65 ]
  %70 = getelementptr inbounds i8, ptr %.sink68, i64 8
  %71 = load ptr, ptr %70, align 8, !tbaa !28
  tail call void @free(ptr noundef %71) #2
  %72 = load ptr, ptr %.sink68, align 8, !tbaa !29
  tail call void @free(ptr noundef %72) #2
  tail call void @free(ptr noundef nonnull %.sink68) #2
  %.not58 = icmp eq ptr %3, null
  br i1 %.not58, label %._crit_edge, label %.lr.ph, !llvm.loop !30

._crit_edge:                                      ; preds = %69, %1
  %.0.lcssa = phi ptr [ null, %1 ], [ %.2, %69 ]
  tail call void @free(ptr noundef %.0.lcssa) #2
  ret i32 0
}

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, !7, i64 32}
!6 = !{!"bpf_map", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"UT_hash_handle", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !11, i64 48, !11, i64 52}
!11 = !{!"int", !8, i64 0}
!12 = !{!10, !7, i64 8}
!13 = !{!10, !7, i64 16}
!14 = !{!6, !7, i64 16}
!15 = !{!16, !7, i64 0}
!16 = !{!"UT_hash_table", !7, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !7, i64 24, !17, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56}
!17 = !{!"long", !8, i64 0}
!18 = !{!16, !7, i64 24}
!19 = !{!16, !17, i64 32}
!20 = !{!10, !11, i64 52}
!21 = !{!16, !11, i64 8}
!22 = !{!23, !11, i64 8}
!23 = !{!"UT_hash_bucket", !7, i64 0, !11, i64 8, !11, i64 12}
!24 = !{!23, !7, i64 0}
!25 = !{!10, !7, i64 32}
!26 = !{!10, !7, i64 24}
!27 = !{!16, !11, i64 16}
!28 = !{!6, !7, i64 8}
!29 = !{!6, !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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