; LLVM IR from mrbid/CSGO_TENSOR_TRIGGER :: GOBOT15/LIBONNX (hmap)

; 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.hmap_t = type { ptr, %struct.list_head, i32, i32, ptr }
%struct.list_head = type { ptr, ptr }
%struct.hlist_head = type { ptr }
%struct.hmap_entry_t = type { %struct.hlist_node, %struct.list_head, ptr, ptr }
%struct.hlist_node = type { ptr, ptr }

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @init_list_head(ptr noundef) #2

; 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 void @hmap_add(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %24

21:                                               ; preds = %3
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %25, label %24

24:                                               ; preds = %21, %3
  store i32 1, ptr %9, align 4
  br label %151

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.hmap_t, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = call i32 @shash(ptr noundef %29)
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.hmap_t, ptr %31, i32 0, i32 2
  %33 = load i32, ptr %32, align 8, !tbaa !13
  %34 = sub i32 %33, 1
  %35 = and i32 %30, %34
  %36 = zext i32 %35 to i64
  %37 = getelementptr inbounds %struct.hlist_head, ptr %28, i64 %36
  %38 = getelementptr inbounds %struct.hlist_head, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  store ptr %39, ptr %10, align 8, !tbaa !5
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %47

42:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %43, ptr %12, align 8, !tbaa !5
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 0
  store ptr %45, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %46 = load ptr, ptr %13, align 8, !tbaa !5
  br label %48

47:                                               ; preds = %25
  br label %48

48:                                               ; preds = %47, %42
  %49 = phi ptr [ %46, %42 ], [ null, %47 ]
  store ptr %49, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %50, ptr %7, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %92, %48
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %61

54:                                               ; preds = %51
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.hmap_entry_t, ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds %struct.hlist_node, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !16
  store ptr %58, ptr %8, align 8, !tbaa !5
  store i32 1, ptr %14, align 4, !tbaa !19
  %59 = load i32, ptr %14, align 4, !tbaa !19
  %60 = icmp ne i32 %59, 0
  br label %61

61:                                               ; preds = %54, %51
  %62 = phi i1 [ false, %51 ], [ %60, %54 ]
  br i1 %62, label %63, label %95

63:                                               ; preds = %61
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.hmap_entry_t, ptr %64, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !20
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = call i32 @strcmp(ptr noundef %66, ptr noundef %67) #7
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %81

70:                                               ; preds = %63
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.hmap_entry_t, ptr %71, i32 0, i32 3
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = icmp ne ptr %73, %74
  br i1 %75, label %76, label %80

76:                                               ; preds = %70
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.hmap_entry_t, ptr %78, i32 0, i32 3
  store ptr %77, ptr %79, align 8, !tbaa !21
  br label %80

80:                                               ; preds = %76, %70
  store i32 1, ptr %9, align 4
  br label %151

81:                                               ; preds = %63
  br label %82

82:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %83, ptr %15, align 8, !tbaa !5
  %84 = load ptr, ptr %15, align 8, !tbaa !5
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %91

86:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %87, ptr %17, align 8, !tbaa !5
  %88 = load ptr, ptr %17, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 0
  store ptr %89, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %90 = load ptr, ptr %18, align 8, !tbaa !5
  br label %92

91:                                               ; preds = %82
  br label %92

92:                                               ; preds = %91, %86
  %93 = phi ptr [ %90, %86 ], [ null, %91 ]
  store ptr %93, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  %94 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %94, ptr %7, align 8, !tbaa !5
  br label %51, !llvm.loop !22

95:                                               ; preds = %61
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.hmap_t, ptr %96, i32 0, i32 3
  %98 = load i32, ptr %97, align 4, !tbaa !24
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.hmap_t, ptr %99, i32 0, i32 2
  %101 = load i32, ptr %100, align 8, !tbaa !13
  %102 = lshr i32 %101, 1
  %103 = icmp ugt i32 %98, %102
  br i1 %103, label %104, label %110

104:                                              ; preds = %95
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.hmap_t, ptr %106, i32 0, i32 2
  %108 = load i32, ptr %107, align 8, !tbaa !13
  %109 = shl i32 %108, 1
  call void @hmap_resize(ptr noundef %105, i32 noundef %109)
  br label %110

110:                                              ; preds = %104, %95
  %111 = call noalias ptr @malloc(i64 noundef 48) #8
  store ptr %111, ptr %7, align 8, !tbaa !5
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = icmp ne ptr %112, null
  br i1 %113, label %115, label %114

114:                                              ; preds = %110
  store i32 1, ptr %9, align 4
  br label %151

115:                                              ; preds = %110
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = call noalias ptr @strdup(ptr noundef %116) #6
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.hmap_entry_t, ptr %118, i32 0, i32 2
  store ptr %117, ptr %119, align 8, !tbaa !20
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.hmap_entry_t, ptr %121, i32 0, i32 3
  store ptr %120, ptr %122, align 8, !tbaa !21
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.hmap_entry_t, ptr %123, i32 0, i32 0
  call void @init_hlist_node(ptr noundef %124)
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.hmap_entry_t, ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.hmap_t, ptr %127, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !9
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.hmap_entry_t, ptr %130, i32 0, i32 2
  %132 = load ptr, ptr %131, align 8, !tbaa !20
  %133 = call i32 @shash(ptr noundef %132)
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.hmap_t, ptr %134, i32 0, i32 2
  %136 = load i32, ptr %135, align 8, !tbaa !13
  %137 = sub i32 %136, 1
  %138 = and i32 %133, %137
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds %struct.hlist_head, ptr %129, i64 %139
  call void @hlist_add_head(ptr noundef %126, ptr noundef %140)
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.hmap_entry_t, ptr %141, i32 0, i32 1
  call void @init_list_head(ptr noundef %142)
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.hmap_entry_t, ptr %143, i32 0, i32 1
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.hmap_t, ptr %145, i32 0, i32 1
  call void @list_add_tail(ptr noundef %144, ptr noundef %146)
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.hmap_t, ptr %147, i32 0, i32 3
  %149 = load i32, ptr %148, align 4, !tbaa !24
  %150 = add i32 %149, 1
  store i32 %150, ptr %148, align 4, !tbaa !24
  store i32 0, ptr %9, align 4
  br label %151

151:                                              ; preds = %115, %114, %80, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %152 = load i32, ptr %9, align 4
  switch i32 %152, label %154 [
    i32 0, label %153
    i32 1, label %153
  ]

153:                                              ; preds = %151, %151
  ret void

154:                                              ; preds = %151
  unreachable
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @shash(ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @hmap_resize(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @init_hlist_node(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @hlist_add_head(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @list_add_tail(ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind willreturn memory(read) "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 #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind allocsize(0) }

!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 0}
!10 = !{!"hmap_t", !6, i64 0, !11, i64 8, !12, i64 24, !12, i64 28, !6, i64 32}
!11 = !{!"list_head", !6, i64 0, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !12, i64 24}
!14 = !{!15, !6, i64 0}
!15 = !{!"hlist_head", !6, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"hmap_entry_t", !18, i64 0, !11, i64 16, !6, i64 32, !6, i64 40}
!18 = !{!"hlist_node", !6, i64 0, !6, i64 8}
!19 = !{!12, !12, i64 0}
!20 = !{!17, !6, i64 32}
!21 = !{!17, !6, i64 40}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!10, !12, i64 28}


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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @init_list_head(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @hmap_add(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = icmp ne ptr %0, null
  %5 = icmp ne ptr %1, null
  %or.cond = and i1 %4, %5
  br i1 %or.cond, label %6, label %49

6:                                                ; preds = %3
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = tail call i32 @shash(ptr noundef nonnull %1)
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = load i32, ptr %9, align 8, !tbaa !12
  %11 = add i32 %10, -1
  %12 = and i32 %11, %8
  %13 = zext i32 %12 to i64
  %14 = getelementptr inbounds %struct.hlist_head, ptr %7, i64 %13
  br label %15

15:                                               ; preds = %16, %6
  %.0.in = phi ptr [ %14, %6 ], [ %.0, %16 ]
  %.0 = load ptr, ptr %.0.in, align 8, !tbaa !13
  %.not49 = icmp eq ptr %.0, null
  br i1 %.not49, label %.critedge, label %16

16:                                               ; preds = %15
  %17 = getelementptr inbounds i8, ptr %.0, i64 32
  %18 = load ptr, ptr %17, align 8, !tbaa !14
  %19 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) %1) #5
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %15, !llvm.loop !17

21:                                               ; preds = %16
  %22 = getelementptr inbounds i8, ptr %.0, i64 40
  %23 = load ptr, ptr %22, align 8, !tbaa !19
  %.not52 = icmp eq ptr %23, %2
  br i1 %.not52, label %49, label %24

24:                                               ; preds = %21
  store ptr %2, ptr %22, align 8, !tbaa !19
  br label %49

.critedge:                                        ; preds = %15
  %25 = getelementptr inbounds i8, ptr %0, i64 28
  %26 = load i32, ptr %25, align 4, !tbaa !20
  %27 = lshr i32 %10, 1
  %28 = icmp ugt i32 %26, %27
  br i1 %28, label %29, label %31

29:                                               ; preds = %.critedge
  %30 = shl i32 %10, 1
  tail call void @hmap_resize(ptr noundef nonnull %0, i32 noundef %30)
  br label %31

31:                                               ; preds = %29, %.critedge
  %32 = tail call noalias dereferenceable_or_null(48) ptr @malloc(i64 noundef 48) #6
  %.not50 = icmp eq ptr %32, null
  br i1 %.not50, label %49, label %33

33:                                               ; preds = %31
  %34 = tail call noalias ptr @strdup(ptr noundef nonnull %1) #7
  %35 = getelementptr inbounds i8, ptr %32, i64 32
  store ptr %34, ptr %35, align 8, !tbaa !14
  %36 = getelementptr inbounds i8, ptr %32, i64 40
  store ptr %2, ptr %36, align 8, !tbaa !19
  tail call void @init_hlist_node(ptr noundef nonnull %32)
  %37 = load ptr, ptr %0, align 8, !tbaa !5
  %38 = load ptr, ptr %35, align 8, !tbaa !14
  %39 = tail call i32 @shash(ptr noundef %38)
  %40 = load i32, ptr %9, align 8, !tbaa !12
  %41 = add i32 %40, -1
  %42 = and i32 %41, %39
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds %struct.hlist_head, ptr %37, i64 %43
  tail call void @hlist_add_head(ptr noundef nonnull %32, ptr noundef %44)
  %45 = getelementptr inbounds i8, ptr %32, i64 16
  tail call void @init_list_head(ptr noundef nonnull %45)
  %46 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @list_add_tail(ptr noundef nonnull %45, ptr noundef nonnull %46)
  %47 = load i32, ptr %25, align 4, !tbaa !20
  %48 = add i32 %47, 1
  store i32 %48, ptr %25, align 4, !tbaa !20
  br label %49

49:                                               ; preds = %31, %21, %24, %3, %33
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @shash(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @hmap_resize(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @init_hlist_node(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @hlist_add_head(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @list_add_tail(ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 = { 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 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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { mustprogress nofree nounwind willreturn 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 #5 = { nounwind willreturn memory(read) }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { 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 0}
!6 = !{!"hmap_t", !7, i64 0, !10, i64 8, !11, i64 24, !11, i64 28, !7, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"list_head", !7, i64 0, !7, i64 8}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !11, i64 24}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 32}
!15 = !{!"hmap_entry_t", !16, i64 0, !10, i64 16, !7, i64 32, !7, i64 40}
!16 = !{!"hlist_node", !7, i64 0, !7, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!15, !7, i64 40}
!20 = !{!6, !11, i64 28}


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