; LLVM IR from LeoVen/C-Macro-Collections :: tests (types)

; 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.struct_s = type { i32, i32, ptr, ptr, [10 x double] }
%struct.hashmultimap1_fkey = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.hashmultimap1_fval = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.hashmultimap1 = type { ptr, i64, i64, double, i32, ptr, ptr, ptr }
%struct.hashmultimap1_entry = type { %struct.struct_s, %struct.struct_s, 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @hmm1_new_custom(i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @hmm1_impl_calculate_size(i64 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @hmm1_free(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @hmm1_insert(ptr noundef, ptr noundef byval(%struct.struct_s) align 8, ptr noundef byval(%struct.struct_s) align 8) #2

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @hmm1_resize(ptr noundef %0, i64 noundef %1) #2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca %struct.hashmultimap1_fkey, align 8
  %13 = alloca %struct.hashmultimap1_fval, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.hashmultimap1, ptr %14, i32 0, i32 4
  store i32 0, ptr %15, align 8, !tbaa !11
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.hashmultimap1, ptr %16, i32 0, i32 1
  %18 = load i64, ptr %17, align 8, !tbaa !15
  %19 = load i64, ptr %5, align 8, !tbaa !9
  %20 = icmp eq i64 %18, %19
  br i1 %20, label %21, label %22

21:                                               ; preds = %2
  br label %168

22:                                               ; preds = %2
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.hashmultimap1, ptr %23, i32 0, i32 1
  %25 = load i64, ptr %24, align 8, !tbaa !15
  %26 = uitofp i64 %25 to double
  %27 = load i64, ptr %5, align 8, !tbaa !9
  %28 = uitofp i64 %27 to double
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.hashmultimap1, ptr %29, i32 0, i32 3
  %31 = load double, ptr %30, align 8, !tbaa !16
  %32 = fdiv double %28, %31
  %33 = fcmp ogt double %26, %32
  br i1 %33, label %34, label %35

34:                                               ; preds = %22
  br label %168

35:                                               ; preds = %22
  %36 = load i64, ptr %5, align 8, !tbaa !9
  %37 = uitofp i64 %36 to double
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.hashmultimap1, ptr %38, i32 0, i32 3
  %40 = load double, ptr %39, align 8, !tbaa !16
  %41 = fmul double 0x43F0000000000000, %40
  %42 = fcmp oge double %37, %41
  br i1 %42, label %43, label %46

43:                                               ; preds = %35
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.hashmultimap1, ptr %44, i32 0, i32 4
  store i32 7, ptr %45, align 8, !tbaa !11
  store i1 false, ptr %3, align 1
  br label %169

46:                                               ; preds = %35
  %47 = load i64, ptr %5, align 8, !tbaa !9
  %48 = call i64 @hmm1_impl_calculate_size(i64 noundef %47)
  store i64 %48, ptr %6, align 8, !tbaa !9
  %49 = load i64, ptr %6, align 8, !tbaa !9
  %50 = uitofp i64 %49 to double
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.hashmultimap1, ptr %51, i32 0, i32 2
  %53 = load i64, ptr %52, align 8, !tbaa !17
  %54 = uitofp i64 %53 to double
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.hashmultimap1, ptr %55, i32 0, i32 3
  %57 = load double, ptr %56, align 8, !tbaa !16
  %58 = fdiv double %54, %57
  %59 = fcmp olt double %50, %58
  br i1 %59, label %60, label %63

60:                                               ; preds = %46
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.hashmultimap1, ptr %61, i32 0, i32 4
  store i32 4, ptr %62, align 8, !tbaa !11
  store i1 false, ptr %3, align 1
  br label %169

63:                                               ; preds = %46
  %64 = load i64, ptr %5, align 8, !tbaa !9
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.hashmultimap1, ptr %65, i32 0, i32 3
  %67 = load double, ptr %66, align 8, !tbaa !16
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.hashmultimap1, ptr %68, i32 0, i32 5
  %70 = load ptr, ptr %69, align 8, !tbaa !18
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.hashmultimap1, ptr %71, i32 0, i32 6
  %73 = load ptr, ptr %72, align 8, !tbaa !19
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.hashmultimap1, ptr %74, i32 0, i32 7
  %76 = load ptr, ptr %75, align 8, !tbaa !20
  %77 = call ptr @hmm1_new_custom(i64 noundef %64, double noundef %67, ptr noundef %70, ptr noundef %73, ptr noundef %76, ptr noundef null)
  store ptr %77, ptr %7, align 8, !tbaa !5
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = icmp ne ptr %78, null
  br i1 %79, label %83, label %80

80:                                               ; preds = %63
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.hashmultimap1, ptr %81, i32 0, i32 4
  store i32 1, ptr %82, align 8, !tbaa !11
  store i1 false, ptr %3, align 1
  br label %169

83:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %84

84:                                               ; preds = %113, %83
  %85 = load i64, ptr %8, align 8, !tbaa !9
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.hashmultimap1, ptr %86, i32 0, i32 1
  %88 = load i64, ptr %87, align 8, !tbaa !15
  %89 = icmp ult i64 %85, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %116

91:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.hashmultimap1, ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !21
  %95 = load i64, ptr %8, align 8, !tbaa !9
  %96 = getelementptr inbounds [2 x ptr], ptr %94, i64 %95
  %97 = getelementptr inbounds [2 x ptr], ptr %96, i64 0, i64 0
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  store ptr %98, ptr %9, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %102, %91
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %112

102:                                              ; preds = %99
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %104, i32 0, i32 0
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %106, i32 0, i32 1
  %108 = call zeroext i1 @hmm1_insert(ptr noundef %103, ptr noundef byval(%struct.struct_s) align 8 %105, ptr noundef byval(%struct.struct_s) align 8 %107)
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.hashmultimap1_entry, ptr %109, i32 0, i32 2
  %111 = load ptr, ptr %110, align 8, !tbaa !22
  store ptr %111, ptr %9, align 8, !tbaa !5
  br label %99, !llvm.loop !25

112:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %113

113:                                              ; preds = %112
  %114 = load i64, ptr %8, align 8, !tbaa !9
  %115 = add i64 %114, 1
  store i64 %115, ptr %8, align 8, !tbaa !9
  br label %84, !llvm.loop !27

116:                                              ; preds = %90
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.hashmultimap1, ptr %117, i32 0, i32 2
  %119 = load i64, ptr %118, align 8, !tbaa !17
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.hashmultimap1, ptr %120, i32 0, i32 2
  %122 = load i64, ptr %121, align 8, !tbaa !17
  %123 = icmp ne i64 %119, %122
  br i1 %123, label %124, label %128

124:                                              ; preds = %116
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  call void @hmm1_free(ptr noundef %125)
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.hashmultimap1, ptr %126, i32 0, i32 4
  store i32 7, ptr %127, align 8, !tbaa !11
  store i1 false, ptr %3, align 1
  br label %169

128:                                              ; preds = %116
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.hashmultimap1, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !21
  store ptr %131, ptr %10, align 8, !tbaa !5
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.hashmultimap1, ptr %132, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !21
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.hashmultimap1, ptr %135, i32 0, i32 0
  store ptr %134, ptr %136, align 8, !tbaa !21
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.hashmultimap1, ptr %138, i32 0, i32 0
  store ptr %137, ptr %139, align 8, !tbaa !21
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.hashmultimap1, ptr %140, i32 0, i32 1
  %142 = load i64, ptr %141, align 8, !tbaa !15
  store i64 %142, ptr %11, align 8, !tbaa !9
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.hashmultimap1, ptr %143, i32 0, i32 1
  %145 = load i64, ptr %144, align 8, !tbaa !15
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.hashmultimap1, ptr %146, i32 0, i32 1
  store i64 %145, ptr %147, align 8, !tbaa !15
  %148 = load i64, ptr %11, align 8, !tbaa !9
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.hashmultimap1, ptr %149, i32 0, i32 1
  store i64 %148, ptr %150, align 8, !tbaa !15
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 48, i1 false)
  %151 = getelementptr inbounds %struct.hashmultimap1_fkey, ptr %12, i32 0, i32 0
  %152 = getelementptr inbounds %struct.hashmultimap1_fkey, ptr %12, i32 0, i32 1
  %153 = getelementptr inbounds %struct.hashmultimap1_fkey, ptr %12, i32 0, i32 2
  %154 = getelementptr inbounds %struct.hashmultimap1_fkey, ptr %12, i32 0, i32 3
  %155 = getelementptr inbounds %struct.hashmultimap1_fkey, ptr %12, i32 0, i32 4
  %156 = getelementptr inbounds %struct.hashmultimap1_fkey, ptr %12, i32 0, i32 5
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.hashmultimap1, ptr %157, i32 0, i32 5
  store ptr %12, ptr %158, align 8, !tbaa !18
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 48, i1 false)
  %159 = getelementptr inbounds %struct.hashmultimap1_fval, ptr %13, i32 0, i32 0
  %160 = getelementptr inbounds %struct.hashmultimap1_fval, ptr %13, i32 0, i32 1
  %161 = getelementptr inbounds %struct.hashmultimap1_fval, ptr %13, i32 0, i32 2
  %162 = getelementptr inbounds %struct.hashmultimap1_fval, ptr %13, i32 0, i32 3
  %163 = getelementptr inbounds %struct.hashmultimap1_fval, ptr %13, i32 0, i32 4
  %164 = getelementptr inbounds %struct.hashmultimap1_fval, ptr %13, i32 0, i32 5
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.hashmultimap1, ptr %165, i32 0, i32 6
  store ptr %13, ptr %166, align 8, !tbaa !19
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  call void @hmm1_free(ptr noundef %167)
  br label %168

168:                                              ; preds = %128, %34, %21
  store i1 true, ptr %3, align 1
  br label %169

169:                                              ; preds = %168, %124, %80, %60, %43
  %170 = load i1, ptr %3, align 1
  ret i1 %170
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !14, i64 32}
!12 = !{!"hashmultimap1", !6, i64 0, !10, i64 8, !10, i64 16, !13, i64 24, !14, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!13 = !{!"double", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!12, !10, i64 8}
!16 = !{!12, !13, i64 24}
!17 = !{!12, !10, i64 16}
!18 = !{!12, !6, i64 40}
!19 = !{!12, !6, i64 48}
!20 = !{!12, !6, i64 56}
!21 = !{!12, !6, i64 0}
!22 = !{!23, !6, i64 208}
!23 = !{!"hashmultimap1_entry", !24, i64 0, !24, i64 104, !6, i64 208, !6, i64 216}
!24 = !{!"struct_s", !14, i64 0, !14, i64 4, !6, i64 8, !6, i64 16, !7, i64 24}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; 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.struct_s = type { i32, i32, ptr, ptr, [10 x double] }
%struct.hashmultimap1_fkey = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.hashmultimap1_fval = type { ptr, ptr, ptr, ptr, ptr, ptr }

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @hmm1_new_custom(i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @hmm1_impl_calculate_size(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @hmm1_insert(ptr noundef, ptr noundef byval(%struct.struct_s) align 8, ptr noundef byval(%struct.struct_s) align 8) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @hmm1_resize(ptr nocapture noundef %0, i64 noundef %1) local_unnamed_addr #1 {
  %3 = alloca %struct.hashmultimap1_fkey, align 8
  %4 = alloca %struct.hashmultimap1_fval, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 0, ptr %5, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load i64, ptr %6, align 8, !tbaa !13
  %8 = icmp eq i64 %7, %1
  br i1 %8, label %60, label %9

9:                                                ; preds = %2
  %10 = uitofp i64 %7 to double
  %11 = uitofp i64 %1 to double
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  %13 = load double, ptr %12, align 8, !tbaa !14
  %14 = fdiv double %11, %13
  %15 = fcmp olt double %14, %10
  br i1 %15, label %60, label %16

16:                                               ; preds = %9
  %17 = fmul double %13, 0x43F0000000000000
  %18 = fcmp ugt double %17, %11
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  store i32 7, ptr %5, align 8, !tbaa !5
  br label %60

20:                                               ; preds = %16
  %21 = tail call i64 @hmm1_impl_calculate_size(i64 noundef %1)
  %22 = uitofp i64 %21 to double
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = load i64, ptr %23, align 8, !tbaa !15
  %25 = uitofp i64 %24 to double
  %26 = load double, ptr %12, align 8, !tbaa !14
  %27 = fdiv double %25, %26
  %28 = fcmp ogt double %27, %22
  br i1 %28, label %29, label %30

29:                                               ; preds = %20
  store i32 4, ptr %5, align 8, !tbaa !5
  br label %60

30:                                               ; preds = %20
  %31 = getelementptr inbounds i8, ptr %0, i64 40
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  %33 = getelementptr inbounds i8, ptr %0, i64 48
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %35 = getelementptr inbounds i8, ptr %0, i64 56
  %36 = load ptr, ptr %35, align 8, !tbaa !18
  %37 = tail call ptr @hmm1_new_custom(i64 noundef %1, double noundef %26, ptr noundef %32, ptr noundef %34, ptr noundef %36, ptr noundef null)
  %.not = icmp eq ptr %37, null
  br i1 %.not, label %39, label %.preheader

.preheader:                                       ; preds = %30
  %38 = load i64, ptr %6, align 8, !tbaa !13
  %.not61 = icmp eq i64 %38, 0
  br i1 %.not61, label %._crit_edge60, label %.lr.ph59

39:                                               ; preds = %30
  store i32 1, ptr %5, align 8, !tbaa !5
  br label %60

._crit_edge60:                                    ; preds = %._crit_edge, %.preheader
  %.lcssa = phi i64 [ 0, %.preheader ], [ %49, %._crit_edge ]
  %40 = load i64, ptr %23, align 8, !tbaa !15
  %41 = getelementptr inbounds i8, ptr %37, i64 16
  %42 = load i64, ptr %41, align 8, !tbaa !15
  %.not53 = icmp eq i64 %40, %42
  br i1 %.not53, label %53, label %52

.lr.ph59:                                         ; preds = %.preheader, %._crit_edge
  %43 = phi i64 [ %49, %._crit_edge ], [ %38, %.preheader ]
  %.04858 = phi i64 [ %50, %._crit_edge ], [ 0, %.preheader ]
  %44 = load ptr, ptr %0, align 8, !tbaa !19
  %45 = getelementptr inbounds [2 x ptr], ptr %44, i64 %.04858
  %.04955 = load ptr, ptr %45, align 8, !tbaa !20
  %.not5456 = icmp eq ptr %.04955, null
  br i1 %.not5456, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph59, %.lr.ph
  %.04957 = phi ptr [ %.049, %.lr.ph ], [ %.04955, %.lr.ph59 ]
  %46 = getelementptr inbounds i8, ptr %.04957, i64 104
  %47 = tail call zeroext i1 @hmm1_insert(ptr noundef nonnull %37, ptr noundef nonnull byval(%struct.struct_s) align 8 %.04957, ptr noundef nonnull byval(%struct.struct_s) align 8 %46)
  %48 = getelementptr inbounds i8, ptr %.04957, i64 208
  %.049 = load ptr, ptr %48, align 8, !tbaa !20
  %.not54 = icmp eq ptr %.049, null
  br i1 %.not54, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !21

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i64, ptr %6, align 8, !tbaa !13
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph59
  %49 = phi i64 [ %.pre, %._crit_edge.loopexit ], [ %43, %.lr.ph59 ]
  %50 = add nuw i64 %.04858, 1
  %51 = icmp ult i64 %50, %49
  br i1 %51, label %.lr.ph59, label %._crit_edge60, !llvm.loop !23

52:                                               ; preds = %._crit_edge60
  tail call void @hmm1_free(ptr noundef nonnull %37)
  store i32 7, ptr %5, align 8, !tbaa !5
  br label %60

53:                                               ; preds = %._crit_edge60
  %54 = load ptr, ptr %0, align 8, !tbaa !19
  %55 = load ptr, ptr %37, align 8, !tbaa !19
  store ptr %55, ptr %0, align 8, !tbaa !19
  store ptr %54, ptr %37, align 8, !tbaa !19
  %56 = getelementptr inbounds i8, ptr %37, i64 8
  %57 = load i64, ptr %56, align 8, !tbaa !13
  store i64 %57, ptr %6, align 8, !tbaa !13
  store i64 %.lcssa, ptr %56, align 8, !tbaa !13
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %3, i8 0, i64 48, i1 false)
  %58 = getelementptr inbounds i8, ptr %37, i64 40
  store ptr %3, ptr %58, align 8, !tbaa !16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %4, i8 0, i64 48, i1 false)
  %59 = getelementptr inbounds i8, ptr %37, i64 48
  store ptr %4, ptr %59, align 8, !tbaa !17
  call void @hmm1_free(ptr noundef nonnull %37)
  br label %60

60:                                               ; preds = %53, %2, %9, %52, %39, %29, %19
  %.0 = phi i1 [ false, %19 ], [ false, %29 ], [ false, %52 ], [ false, %39 ], [ true, %9 ], [ true, %2 ], [ true, %53 ]
  ret i1 %.0
}

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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" }

!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, !12, i64 32}
!6 = !{!"hashmultimap1", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !12, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!6, !10, i64 8}
!14 = !{!6, !11, i64 24}
!15 = !{!6, !10, i64 16}
!16 = !{!6, !7, i64 40}
!17 = !{!6, !7, i64 48}
!18 = !{!6, !7, i64 56}
!19 = !{!6, !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


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