; 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.hashmap1_fkey = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.hashmap1_fval = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.hashmap1 = type { ptr, i64, i64, double, i32, ptr, ptr, ptr }
%struct.hashmap1_entry = type { %struct.struct_s, %struct.struct_s, 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 @hm1_new_custom(i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @hm1_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 %struct.struct_s, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca %struct.hashmap1_fkey, align 8
  %14 = alloca %struct.hashmap1_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.hashmap1, ptr %15, i32 0, i32 4
  store i32 0, ptr %16, align 8, !tbaa !11
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.hashmap1, 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 %172

23:                                               ; preds = %2
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.hashmap1, 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.hashmap1, ptr %30, i32 0, i32 3
  %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 %172

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.hashmap1, ptr %39, i32 0, i32 3
  %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.hashmap1, ptr %45, i32 0, i32 4
  store i32 7, ptr %46, align 8, !tbaa !11
  store i1 false, ptr %3, align 1
  br label %173

47:                                               ; preds = %36
  %48 = load i64, ptr %5, align 8, !tbaa !9
  %49 = call i64 @hm1_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.hashmap1, 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.hashmap1, ptr %56, i32 0, i32 3
  %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.hashmap1, ptr %62, i32 0, i32 4
  store i32 4, ptr %63, align 8, !tbaa !11
  store i1 false, ptr %3, align 1
  br label %173

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.hashmap1, ptr %66, i32 0, i32 3
  %68 = load double, ptr %67, align 8, !tbaa !16
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.hashmap1, ptr %69, i32 0, i32 5
  %71 = load ptr, ptr %70, align 8, !tbaa !18
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.hashmap1, ptr %72, i32 0, i32 6
  %74 = load ptr, ptr %73, align 8, !tbaa !19
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.hashmap1, ptr %75, i32 0, i32 7
  %77 = load ptr, ptr %76, align 8, !tbaa !20
  %78 = call ptr @hm1_new_custom(i64 noundef %65, double noundef %68, ptr noundef %71, ptr noundef %74, ptr noundef %77, ptr noundef null)
  store ptr %78, ptr %7, align 8, !tbaa !5
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = icmp ne ptr %79, null
  br i1 %80, label %84, label %81

81:                                               ; preds = %64
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.hashmap1, ptr %82, i32 0, i32 4
  store i32 1, ptr %83, align 8, !tbaa !11
  store i1 false, ptr %3, align 1
  br label %173

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

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

91:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %120

92:                                               ; preds = %85
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.hashmap1, ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !21
  %96 = load i64, ptr %8, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.hashmap1_entry, ptr %95, i64 %96
  %98 = getelementptr inbounds %struct.hashmap1_entry, ptr %97, i32 0, i32 3
  %99 = load i32, ptr %98, align 8, !tbaa !22
  %100 = icmp eq i32 %99, 1
  br i1 %100, label %101, label %116

101:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 104, ptr %9) #4
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.hashmap1, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !21
  %105 = load i64, ptr %8, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct.hashmap1_entry, ptr %104, i64 %105
  %107 = getelementptr inbounds %struct.hashmap1_entry, ptr %106, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %107, i64 104, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 104, ptr %10) #4
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.hashmap1, ptr %108, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !21
  %111 = load i64, ptr %8, align 8, !tbaa !9
  %112 = getelementptr inbounds %struct.hashmap1_entry, ptr %110, i64 %111
  %113 = getelementptr inbounds %struct.hashmap1_entry, ptr %112, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %113, i64 104, i1 false), !tbaa.struct !25
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = call zeroext i1 @hm1_insert(ptr noundef %114, ptr noundef byval(%struct.struct_s) align 8 %9, ptr noundef byval(%struct.struct_s) align 8 %10)
  call void @llvm.lifetime.end.p0(i64 104, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 104, ptr %9) #4
  br label %116

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

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

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

128:                                              ; preds = %120
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  call void @hm1_free(ptr noundef %129)
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.hashmap1, ptr %130, i32 0, i32 4
  store i32 7, ptr %131, align 8, !tbaa !11
  store i1 false, ptr %3, align 1
  br label %173

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

172:                                              ; preds = %132, %35, %22
  store i1 true, ptr %3, align 1
  br label %173

173:                                              ; preds = %172, %128, %81, %61, %44
  %174 = load i1, ptr %3, align 1
  ret i1 %174
}

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 32}
!12 = !{!"hashmap1", !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, !14, i64 216}
!23 = !{!"hashmap1_entry", !24, i64 0, !24, i64 104, !10, i64 208, !14, i64 216}
!24 = !{!"struct_s", !14, i64 0, !14, i64 4, !6, i64 8, !6, i64 16, !7, i64 24}
!25 = !{i64 0, i64 4, !26, i64 4, i64 4, !26, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 80, !27}
!26 = !{!14, !14, i64 0}
!27 = !{!7, !7, i64 0}
!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.hashmap1_fkey = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.hashmap1_fval = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.hashmap1_entry = type { %struct.struct_s, %struct.struct_s, 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 @hm1_new_custom(i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @hm1_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 @hm1_resize(ptr nocapture noundef %0, i64 noundef %1) local_unnamed_addr #1 {
  %3 = alloca %struct.hashmap1_fkey, align 8
  %4 = alloca %struct.hashmap1_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 %64, 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 %64, 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 %64

20:                                               ; preds = %16
  %21 = tail call i64 @hm1_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 %64

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 @hm1_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
  %.not54 = icmp eq i64 %38, 0
  br i1 %.not54, label %._crit_edge, label %.lr.ph

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

._crit_edge:                                      ; preds = %52, %.preheader
  %.lcssa = phi i64 [ 0, %.preheader ], [ %53, %52 ]
  %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
  %.not52 = icmp eq i64 %40, %42
  br i1 %.not52, label %57, label %56

.lr.ph:                                           ; preds = %.preheader, %52
  %43 = phi i64 [ %53, %52 ], [ %38, %.preheader ]
  %.04853 = phi i64 [ %54, %52 ], [ 0, %.preheader ]
  %44 = load ptr, ptr %0, align 8, !tbaa !19
  %45 = getelementptr inbounds %struct.hashmap1_entry, ptr %44, i64 %.04853, i32 3
  %46 = load i32, ptr %45, align 8, !tbaa !20
  %47 = icmp eq i32 %46, 1
  br i1 %47, label %48, label %52

48:                                               ; preds = %.lr.ph
  %49 = getelementptr inbounds %struct.hashmap1_entry, ptr %44, i64 %.04853
  %50 = getelementptr inbounds %struct.hashmap1_entry, ptr %44, i64 %.04853, i32 1
  %51 = tail call zeroext i1 @hm1_insert(ptr noundef nonnull %37, ptr noundef nonnull byval(%struct.struct_s) align 8 %49, ptr noundef nonnull byval(%struct.struct_s) align 8 %50)
  %.pre = load i64, ptr %6, align 8, !tbaa !13
  br label %52

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

56:                                               ; preds = %._crit_edge
  tail call void @hm1_free(ptr noundef nonnull %37)
  store i32 7, ptr %5, align 8, !tbaa !5
  br label %64

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

64:                                               ; preds = %57, %2, %9, %56, %39, %29, %19
  %.0 = phi i1 [ false, %19 ], [ false, %29 ], [ false, %56 ], [ false, %39 ], [ true, %9 ], [ true, %2 ], [ true, %57 ]
  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 = !{!"hashmap1", !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 = !{!21, !12, i64 216}
!21 = !{!"hashmap1_entry", !22, i64 0, !22, i64 104, !10, i64 208, !12, i64 216}
!22 = !{!"struct_s", !12, i64 0, !12, i64 4, !7, i64 8, !7, i64 16, !8, i64 24}
!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