; 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.hashmultiset1_fval = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.hashmultiset1 = type { ptr, i64, i64, i64, double, i32, ptr, ptr }
%struct.hashmultiset1_entry = type { %struct.struct_s, i64, i64, 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: nounwind uwtable
declare hidden i64 @hms1_impl_calculate_size(i64 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @hms1_free(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden ptr @hms1_impl_insert_and_return(ptr noundef, ptr noundef byval(%struct.struct_s) align 8, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @hms1_resize(ptr noundef %0, i64 noundef %1) #3 {
  %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 %struct.struct_s, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca %struct.hashmultiset1_fval, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.hashmultiset1, ptr %15, i32 0, i32 5
  store i32 0, ptr %16, align 8, !tbaa !11
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.hashmultiset1, ptr %17, i32 0, i32 1
  %19 = load i64, ptr %18, align 8, !tbaa !15
  %20 = load i64, ptr %5, align 8, !tbaa !9
  %21 = icmp eq i64 %19, %20
  br i1 %21, label %22, label %23

22:                                               ; preds = %2
  br label %165

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

35:                                               ; preds = %23
  br label %165

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

44:                                               ; preds = %36
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.hashmultiset1, ptr %45, i32 0, i32 5
  store i32 7, ptr %46, align 8, !tbaa !11
  store i1 false, ptr %3, align 1
  br label %166

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

61:                                               ; preds = %47
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.hashmultiset1, ptr %62, i32 0, i32 5
  store i32 4, ptr %63, align 8, !tbaa !11
  store i1 false, ptr %3, align 1
  br label %166

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

78:                                               ; preds = %64
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.hashmultiset1, ptr %79, i32 0, i32 5
  store i32 7, ptr %80, align 8, !tbaa !11
  store i1 false, ptr %3, align 1
  br label %166

81:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %82

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

88:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %121

89:                                               ; preds = %82
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.hashmultiset1, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !20
  %93 = load i64, ptr %8, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct.hashmultiset1_entry, ptr %92, i64 %93
  %95 = getelementptr inbounds %struct.hashmultiset1_entry, ptr %94, i32 0, i32 3
  %96 = load i32, ptr %95, align 8, !tbaa !21
  %97 = icmp eq i32 %96, 1
  br i1 %97, label %98, label %117

98:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 104, ptr %9) #4
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.hashmultiset1, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !20
  %102 = load i64, ptr %8, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct.hashmultiset1_entry, ptr %101, i64 %102
  %104 = getelementptr inbounds %struct.hashmultiset1_entry, ptr %103, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %104, i64 104, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.hashmultiset1, ptr %105, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !20
  %108 = load i64, ptr %8, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.hashmultiset1_entry, ptr %107, i64 %108
  %110 = getelementptr inbounds %struct.hashmultiset1_entry, ptr %109, i32 0, i32 1
  %111 = load i64, ptr %110, align 8, !tbaa !27
  store i64 %111, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = call ptr @hms1_impl_insert_and_return(ptr noundef %112, ptr noundef byval(%struct.struct_s) align 8 %9, ptr noundef null)
  store ptr %113, ptr %11, align 8, !tbaa !5
  %114 = load i64, ptr %10, align 8, !tbaa !9
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.hashmultiset1_entry, ptr %115, i32 0, i32 1
  store i64 %114, ptr %116, align 8, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 104, ptr %9) #4
  br label %117

117:                                              ; preds = %98, %89
  br label %118

118:                                              ; preds = %117
  %119 = load i64, ptr %8, align 8, !tbaa !9
  %120 = add i64 %119, 1
  store i64 %120, ptr %8, align 8, !tbaa !9
  br label %82, !llvm.loop !28

121:                                              ; preds = %88
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.hashmultiset1, ptr %122, i32 0, i32 2
  %124 = load i64, ptr %123, align 8, !tbaa !17
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.hashmultiset1, ptr %125, i32 0, i32 2
  %127 = load i64, ptr %126, align 8, !tbaa !17
  %128 = icmp ne i64 %124, %127
  br i1 %128, label %129, label %133

129:                                              ; preds = %121
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  call void @hms1_free(ptr noundef %130)
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.hashmultiset1, ptr %131, i32 0, i32 5
  store i32 7, ptr %132, align 8, !tbaa !11
  store i1 false, ptr %3, align 1
  br label %166

133:                                              ; preds = %121
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.hashmultiset1, ptr %134, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !20
  store ptr %136, ptr %12, align 8, !tbaa !5
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.hashmultiset1, ptr %137, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8, !tbaa !20
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.hashmultiset1, ptr %140, i32 0, i32 0
  store ptr %139, ptr %141, align 8, !tbaa !20
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.hashmultiset1, ptr %143, i32 0, i32 0
  store ptr %142, ptr %144, align 8, !tbaa !20
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.hashmultiset1, ptr %145, i32 0, i32 1
  %147 = load i64, ptr %146, align 8, !tbaa !15
  store i64 %147, ptr %13, align 8, !tbaa !9
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.hashmultiset1, ptr %148, i32 0, i32 1
  %150 = load i64, ptr %149, align 8, !tbaa !15
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.hashmultiset1, ptr %151, i32 0, i32 1
  store i64 %150, ptr %152, align 8, !tbaa !15
  %153 = load i64, ptr %13, align 8, !tbaa !9
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.hashmultiset1, ptr %154, i32 0, i32 1
  store i64 %153, ptr %155, align 8, !tbaa !15
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 48, i1 false)
  %156 = getelementptr inbounds %struct.hashmultiset1_fval, ptr %14, i32 0, i32 0
  %157 = getelementptr inbounds %struct.hashmultiset1_fval, ptr %14, i32 0, i32 1
  %158 = getelementptr inbounds %struct.hashmultiset1_fval, ptr %14, i32 0, i32 2
  %159 = getelementptr inbounds %struct.hashmultiset1_fval, ptr %14, i32 0, i32 3
  %160 = getelementptr inbounds %struct.hashmultiset1_fval, ptr %14, i32 0, i32 4
  %161 = getelementptr inbounds %struct.hashmultiset1_fval, ptr %14, i32 0, i32 5
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.hashmultiset1, ptr %162, i32 0, i32 6
  store ptr %14, ptr %163, align 8, !tbaa !18
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  call void @hms1_free(ptr noundef %164)
  br label %165

165:                                              ; preds = %133, %35, %22
  store i1 true, ptr %3, align 1
  br label %166

166:                                              ; preds = %165, %129, %78, %61, %44
  %167 = load i1, ptr %3, align 1
  ret i1 %167
}

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

!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 40}
!12 = !{!"hashmultiset1", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !14, 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 32}
!17 = !{!12, !10, i64 16}
!18 = !{!12, !6, i64 48}
!19 = !{!12, !6, i64 56}
!20 = !{!12, !6, i64 0}
!21 = !{!22, !14, i64 120}
!22 = !{!"hashmultiset1_entry", !23, i64 0, !10, i64 104, !10, i64 112, !14, i64 120}
!23 = !{!"struct_s", !14, i64 0, !14, i64 4, !6, i64 8, !6, i64 16, !7, i64 24}
!24 = !{i64 0, i64 4, !25, i64 4, i64 4, !25, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 80, !26}
!25 = !{!14, !14, i64 0}
!26 = !{!7, !7, i64 0}
!27 = !{!22, !10, i64 104}
!28 = distinct !{!28, !29}
!29 = !{!"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.struct_s = type { i32, i32, ptr, ptr, [10 x double] }
%struct.hashmultiset1_fval = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.hashmultiset1_entry = type { %struct.struct_s, i64, i64, i32 }

; 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 @hms1_new_custom(i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i64 @hms1_impl_calculate_size(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden ptr @hms1_impl_insert_and_return(ptr noundef, ptr noundef byval(%struct.struct_s) align 8, ptr noundef) local_unnamed_addr #1

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

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

15:                                               ; preds = %8
  %16 = fmul double %12, 0x43F0000000000000
  %17 = fcmp ugt double %16, %10
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  store i32 7, ptr %4, align 8, !tbaa !5
  br label %62

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

28:                                               ; preds = %19
  store i32 4, ptr %4, align 8, !tbaa !5
  br label %62

29:                                               ; preds = %19
  %30 = getelementptr inbounds i8, ptr %0, i64 48
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = getelementptr inbounds i8, ptr %0, i64 56
  %33 = load ptr, ptr %32, align 8, !tbaa !17
  %34 = tail call ptr @hms1_new_custom(i64 noundef %1, double noundef %25, ptr noundef %31, ptr noundef %33, ptr noundef null)
  %.not = icmp eq ptr %34, null
  br i1 %.not, label %36, label %.preheader

.preheader:                                       ; preds = %29
  %35 = load i64, ptr %5, align 8, !tbaa !13
  %.not54 = icmp eq i64 %35, 0
  br i1 %.not54, label %._crit_edge, label %.lr.ph

36:                                               ; preds = %29
  store i32 7, ptr %4, align 8, !tbaa !5
  br label %62

._crit_edge:                                      ; preds = %51, %.preheader
  %.lcssa = phi i64 [ 0, %.preheader ], [ %52, %51 ]
  %37 = load i64, ptr %22, align 8, !tbaa !15
  %38 = getelementptr inbounds i8, ptr %34, i64 16
  %39 = load i64, ptr %38, align 8, !tbaa !15
  %.not52 = icmp eq i64 %37, %39
  br i1 %.not52, label %56, label %55

.lr.ph:                                           ; preds = %.preheader, %51
  %40 = phi i64 [ %52, %51 ], [ %35, %.preheader ]
  %.04853 = phi i64 [ %53, %51 ], [ 0, %.preheader ]
  %41 = load ptr, ptr %0, align 8, !tbaa !18
  %42 = getelementptr inbounds %struct.hashmultiset1_entry, ptr %41, i64 %.04853, i32 3
  %43 = load i32, ptr %42, align 8, !tbaa !19
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %51

45:                                               ; preds = %.lr.ph
  %46 = getelementptr inbounds %struct.hashmultiset1_entry, ptr %41, i64 %.04853
  %47 = getelementptr inbounds %struct.hashmultiset1_entry, ptr %41, i64 %.04853, i32 1
  %48 = load i64, ptr %47, align 8, !tbaa !22
  %49 = tail call ptr @hms1_impl_insert_and_return(ptr noundef nonnull %34, ptr noundef nonnull byval(%struct.struct_s) align 8 %46, ptr noundef null)
  %50 = getelementptr inbounds i8, ptr %49, i64 104
  store i64 %48, ptr %50, align 8, !tbaa !22
  %.pre = load i64, ptr %5, align 8, !tbaa !13
  br label %51

51:                                               ; preds = %.lr.ph, %45
  %52 = phi i64 [ %40, %.lr.ph ], [ %.pre, %45 ]
  %53 = add nuw i64 %.04853, 1
  %54 = icmp ult i64 %53, %52
  br i1 %54, label %.lr.ph, label %._crit_edge, !llvm.loop !23

55:                                               ; preds = %._crit_edge
  tail call void @hms1_free(ptr noundef nonnull %34)
  store i32 7, ptr %4, align 8, !tbaa !5
  br label %62

56:                                               ; preds = %._crit_edge
  %57 = load ptr, ptr %0, align 8, !tbaa !18
  %58 = load ptr, ptr %34, align 8, !tbaa !18
  store ptr %58, ptr %0, align 8, !tbaa !18
  store ptr %57, ptr %34, align 8, !tbaa !18
  %59 = getelementptr inbounds i8, ptr %34, i64 8
  %60 = load i64, ptr %59, align 8, !tbaa !13
  store i64 %60, ptr %5, align 8, !tbaa !13
  store i64 %.lcssa, ptr %59, align 8, !tbaa !13
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %3, i8 0, i64 48, i1 false)
  %61 = getelementptr inbounds i8, ptr %34, i64 48
  store ptr %3, ptr %61, align 8, !tbaa !16
  call void @hms1_free(ptr noundef nonnull %34)
  br label %62

62:                                               ; preds = %56, %2, %8, %55, %36, %28, %18
  %.0 = phi i1 [ false, %18 ], [ false, %28 ], [ false, %55 ], [ false, %36 ], [ true, %8 ], [ true, %2 ], [ true, %56 ]
  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 40}
!6 = !{!"hashmultiset1", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !11, i64 32, !12, 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 32}
!15 = !{!6, !10, i64 16}
!16 = !{!6, !7, i64 48}
!17 = !{!6, !7, i64 56}
!18 = !{!6, !7, i64 0}
!19 = !{!20, !12, i64 120}
!20 = !{!"hashmultiset1_entry", !21, i64 0, !10, i64 104, !10, i64 112, !12, i64 120}
!21 = !{!"struct_s", !12, i64 0, !12, i64 4, !7, i64 8, !7, i64 16, !8, i64 24}
!22 = !{!20, !10, i64 104}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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