; 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 = type { ptr, i64, i64, double, i32, ptr, ptr, ptr }
%struct.hashmap1_fkey = type { ptr, ptr, ptr, 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: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @hm1_insert(ptr noundef %0, ptr noundef byval(%struct.struct_s) align 8 %1, ptr noundef byval(%struct.struct_s) align 8 %2) #2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.struct_s, align 8
  %11 = alloca %struct.struct_s, align 8
  %12 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = call zeroext i1 @hm1_full(ptr noundef %13)
  br i1 %14, label %15, label %24

15:                                               ; preds = %3
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.hashmap1, ptr %17, i32 0, i32 1
  %19 = load i64, ptr %18, align 8, !tbaa !9
  %20 = add i64 %19, 1
  %21 = call zeroext i1 @hm1_resize(ptr noundef %16, i64 noundef %20)
  br i1 %21, label %23, label %22

22:                                               ; preds = %15
  store i1 false, ptr %4, align 1
  br label %140

23:                                               ; preds = %15
  br label %24

24:                                               ; preds = %23, %3
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call ptr @hm1_impl_get_entry(ptr noundef %25, ptr noundef byval(%struct.struct_s) align 8 %1)
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %31

28:                                               ; preds = %24
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.hashmap1, ptr %29, i32 0, i32 4
  store i32 6, ptr %30, align 8, !tbaa !14
  store i1 false, ptr %4, align 1
  br label %140

31:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.hashmap1, ptr %32, i32 0, i32 5
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds %struct.hashmap1_fkey, ptr %34, i32 0, i32 4
  %36 = load ptr, ptr %35, align 8, !tbaa !16
  %37 = call i64 %36(ptr noundef byval(%struct.struct_s) align 8 %1)
  store i64 %37, ptr %6, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %38 = load i64, ptr %6, align 8, !tbaa !18
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.hashmap1, ptr %39, i32 0, i32 1
  %41 = load i64, ptr %40, align 8, !tbaa !9
  %42 = urem i64 %38, %41
  store i64 %42, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %43 = load i64, ptr %7, align 8, !tbaa !18
  store i64 %43, ptr %8, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.hashmap1, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !19
  %47 = load i64, ptr %8, align 8, !tbaa !18
  %48 = getelementptr inbounds %struct.hashmap1_entry, ptr %46, i64 %47
  store ptr %48, ptr %9, align 8, !tbaa !5
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.hashmap1_entry, ptr %49, i32 0, i32 3
  %51 = load i32, ptr %50, align 8, !tbaa !20
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %58, label %53

53:                                               ; preds = %31
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.hashmap1_entry, ptr %54, i32 0, i32 3
  %56 = load i32, ptr %55, align 8, !tbaa !20
  %57 = icmp eq i32 %56, -1
  br i1 %57, label %58, label %67

58:                                               ; preds = %53, %31
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.hashmap1_entry, ptr %59, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %60, ptr align 8 %1, i64 104, i1 false), !tbaa.struct !23
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.hashmap1_entry, ptr %61, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %62, ptr align 8 %2, i64 104, i1 false), !tbaa.struct !23
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.hashmap1_entry, ptr %63, i32 0, i32 2
  store i64 0, ptr %64, align 8, !tbaa !26
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.hashmap1_entry, ptr %65, i32 0, i32 3
  store i32 1, ptr %66, align 8, !tbaa !20
  br label %133

67:                                               ; preds = %53
  br label %68

68:                                               ; preds = %131, %67
  br label %69

69:                                               ; preds = %68
  %70 = load i64, ptr %8, align 8, !tbaa !18
  %71 = add i64 %70, 1
  store i64 %71, ptr %8, align 8, !tbaa !18
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.hashmap1, ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !19
  %75 = load i64, ptr %8, align 8, !tbaa !18
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.hashmap1, ptr %76, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = urem i64 %75, %78
  %80 = getelementptr inbounds %struct.hashmap1_entry, ptr %74, i64 %79
  store ptr %80, ptr %9, align 8, !tbaa !5
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.hashmap1_entry, ptr %81, i32 0, i32 3
  %83 = load i32, ptr %82, align 8, !tbaa !20
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %90, label %85

85:                                               ; preds = %69
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.hashmap1_entry, ptr %86, i32 0, i32 3
  %88 = load i32, ptr %87, align 8, !tbaa !20
  %89 = icmp eq i32 %88, -1
  br i1 %89, label %90, label %102

90:                                               ; preds = %85, %69
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.hashmap1_entry, ptr %91, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %92, ptr align 8 %1, i64 104, i1 false), !tbaa.struct !23
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.hashmap1_entry, ptr %93, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %94, ptr align 8 %2, i64 104, i1 false), !tbaa.struct !23
  %95 = load i64, ptr %8, align 8, !tbaa !18
  %96 = load i64, ptr %7, align 8, !tbaa !18
  %97 = sub i64 %95, %96
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.hashmap1_entry, ptr %98, i32 0, i32 2
  store i64 %97, ptr %99, align 8, !tbaa !26
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.hashmap1_entry, ptr %100, i32 0, i32 3
  store i32 1, ptr %101, align 8, !tbaa !20
  br label %132

102:                                              ; preds = %85
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.hashmap1_entry, ptr %103, i32 0, i32 2
  %105 = load i64, ptr %104, align 8, !tbaa !26
  %106 = load i64, ptr %8, align 8, !tbaa !18
  %107 = load i64, ptr %7, align 8, !tbaa !18
  %108 = sub i64 %106, %107
  %109 = icmp ult i64 %105, %108
  br i1 %109, label %110, label %130

110:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 104, ptr %10) #3
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.hashmap1_entry, ptr %111, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %112, i64 104, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 104, ptr %11) #3
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.hashmap1_entry, ptr %113, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %114, i64 104, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.hashmap1_entry, ptr %115, i32 0, i32 2
  %117 = load i64, ptr %116, align 8, !tbaa !26
  store i64 %117, ptr %12, align 8, !tbaa !18
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.hashmap1_entry, ptr %118, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %119, ptr align 8 %1, i64 104, i1 false), !tbaa.struct !23
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.hashmap1_entry, ptr %120, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %121, ptr align 8 %2, i64 104, i1 false), !tbaa.struct !23
  %122 = load i64, ptr %8, align 8, !tbaa !18
  %123 = load i64, ptr %7, align 8, !tbaa !18
  %124 = sub i64 %122, %123
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.hashmap1_entry, ptr %125, i32 0, i32 2
  store i64 %124, ptr %126, align 8, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %1, ptr align 8 %10, i64 104, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %2, ptr align 8 %11, i64 104, i1 false), !tbaa.struct !23
  %127 = load i64, ptr %8, align 8, !tbaa !18
  %128 = load i64, ptr %12, align 8, !tbaa !18
  %129 = sub i64 %127, %128
  store i64 %129, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 104, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 104, ptr %10) #3
  br label %130

130:                                              ; preds = %110, %102
  br label %131

131:                                              ; preds = %130
  br label %68

132:                                              ; preds = %90
  br label %133

133:                                              ; preds = %132, %58
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.hashmap1, ptr %134, i32 0, i32 2
  %136 = load i64, ptr %135, align 8, !tbaa !27
  %137 = add i64 %136, 1
  store i64 %137, ptr %135, align 8, !tbaa !27
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.hashmap1, ptr %138, i32 0, i32 4
  store i32 0, ptr %139, align 8, !tbaa !14
  store i1 true, ptr %4, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %140

140:                                              ; preds = %133, %28, %22
  %141 = load i1, ptr %4, align 1
  ret i1 %141
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @hm1_full(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @hm1_resize(ptr noundef, i64 noundef) #2

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

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


; 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_entry = type { %struct.struct_s, %struct.struct_s, i64, i32 }

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

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

; Function Attrs: mustprogress 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) #1

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @hm1_insert(ptr noundef %0, ptr noundef byval(%struct.struct_s) align 8 %1, ptr nocapture noundef byval(%struct.struct_s) align 8 %2) local_unnamed_addr #2 {
  %4 = alloca %struct.struct_s, align 8
  %5 = alloca %struct.struct_s, align 8
  %6 = tail call zeroext i1 @hm1_full(ptr noundef %0)
  br i1 %6, label %7, label %12

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load i64, ptr %8, align 8, !tbaa !5
  %10 = add i64 %9, 1
  %11 = tail call zeroext i1 @hm1_resize(ptr noundef %0, i64 noundef %10)
  br i1 %11, label %12, label %53

12:                                               ; preds = %7, %3
  %13 = tail call ptr @hm1_impl_get_entry(ptr noundef %0, ptr noundef nonnull byval(%struct.struct_s) align 8 %1)
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %14, label %.sink.split

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  %16 = load ptr, ptr %15, align 8, !tbaa !13
  %17 = getelementptr inbounds i8, ptr %16, i64 32
  %18 = load ptr, ptr %17, align 8, !tbaa !14
  %19 = tail call i64 %18(ptr noundef nonnull byval(%struct.struct_s) align 8 %1) #3
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = load i64, ptr %20, align 8, !tbaa !5
  %22 = urem i64 %19, %21
  %23 = load ptr, ptr %0, align 8, !tbaa !16
  %24 = getelementptr inbounds %struct.hashmap1_entry, ptr %23, i64 %22
  %25 = getelementptr inbounds i8, ptr %24, i64 216
  %26 = load i32, ptr %25, align 8, !tbaa !17
  switch i32 %26, label %.preheader.outer [
    i32 0, label %27
    i32 -1, label %27
  ]

27:                                               ; preds = %14, %14
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %24, ptr noundef nonnull align 8 dereferenceable(104) %1, i64 104, i1 false), !tbaa.struct !20
  %28 = getelementptr inbounds i8, ptr %24, i64 104
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %28, ptr noundef nonnull align 8 dereferenceable(104) %2, i64 104, i1 false), !tbaa.struct !20
  br label %47

.preheader:                                       ; preds = %.preheader.outer, %38
  %.044 = phi i64 [ %29, %38 ], [ %.044.ph, %.preheader.outer ]
  %29 = add i64 %.044, 1
  %30 = urem i64 %29, %.pre5356.ph
  %31 = getelementptr inbounds %struct.hashmap1_entry, ptr %.pre54.ph, i64 %30
  %32 = getelementptr inbounds i8, ptr %31, i64 216
  %33 = load i32, ptr %32, align 8, !tbaa !17
  switch i32 %33, label %38 [
    i32 0, label %34
    i32 -1, label %34
  ]

34:                                               ; preds = %.preheader, %.preheader
  %35 = getelementptr inbounds i8, ptr %31, i64 216
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %31, ptr noundef nonnull align 8 dereferenceable(104) %1, i64 104, i1 false), !tbaa.struct !20
  %36 = getelementptr inbounds i8, ptr %31, i64 104
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %36, ptr noundef nonnull align 8 dereferenceable(104) %2, i64 104, i1 false), !tbaa.struct !20
  %37 = sub i64 %29, %.045.ph
  br label %47

38:                                               ; preds = %.preheader
  %39 = getelementptr inbounds i8, ptr %31, i64 208
  %40 = load i64, ptr %39, align 8, !tbaa !24
  %41 = sub i64 %29, %.045.ph
  %42 = icmp ult i64 %40, %41
  br i1 %42, label %43, label %.preheader

43:                                               ; preds = %38
  %44 = getelementptr inbounds i8, ptr %31, i64 208
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %4)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %4, ptr noundef nonnull align 8 dereferenceable(104) %31, i64 104, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %5)
  %45 = getelementptr inbounds i8, ptr %31, i64 104
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %5, ptr noundef nonnull align 8 dereferenceable(104) %45, i64 104, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %31, ptr noundef nonnull align 8 dereferenceable(104) %1, i64 104, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %45, ptr noundef nonnull align 8 dereferenceable(104) %2, i64 104, i1 false), !tbaa.struct !20
  store i64 %41, ptr %44, align 8, !tbaa !24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %1, ptr noundef nonnull align 8 dereferenceable(104) %4, i64 104, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %2, ptr noundef nonnull align 8 dereferenceable(104) %5, i64 104, i1 false), !tbaa.struct !20
  %46 = sub i64 %29, %40
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %5)
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %4)
  %.pre.pre = load ptr, ptr %0, align 8, !tbaa !16
  %.pre53.pre = load i64, ptr %20, align 8, !tbaa !5
  br label %.preheader.outer

.preheader.outer:                                 ; preds = %14, %43
  %.pre5356.ph = phi i64 [ %.pre53.pre, %43 ], [ %21, %14 ]
  %.pre54.ph = phi ptr [ %.pre.pre, %43 ], [ %23, %14 ]
  %.045.ph = phi i64 [ %46, %43 ], [ %22, %14 ]
  %.044.ph = phi i64 [ %29, %43 ], [ %22, %14 ]
  br label %.preheader

47:                                               ; preds = %34, %27
  %.lcssa60.sink = phi ptr [ %31, %34 ], [ %24, %27 ]
  %.sink61 = phi i64 [ %37, %34 ], [ 0, %27 ]
  %.sink = phi ptr [ %35, %34 ], [ %25, %27 ]
  %48 = getelementptr inbounds i8, ptr %.lcssa60.sink, i64 208
  store i64 %.sink61, ptr %48, align 8, !tbaa !24
  store i32 1, ptr %.sink, align 8, !tbaa !17
  %49 = getelementptr inbounds i8, ptr %0, i64 16
  %50 = load i64, ptr %49, align 8, !tbaa !25
  %51 = add i64 %50, 1
  store i64 %51, ptr %49, align 8, !tbaa !25
  br label %.sink.split

.sink.split:                                      ; preds = %12, %47
  %.sink63 = phi i32 [ 0, %47 ], [ 6, %12 ]
  %52 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %.sink63, ptr %52, align 8, !tbaa !26
  br label %53

53:                                               ; preds = %.sink.split, %7
  %.0 = phi i1 [ false, %7 ], [ %.not, %.sink.split ]
  ret i1 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @hm1_full(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @hm1_resize(ptr noundef, i64 noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 8}
!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, !7, i64 40}
!14 = !{!15, !7, i64 32}
!15 = !{!"hashmap1_fkey", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!16 = !{!6, !7, i64 0}
!17 = !{!18, !12, i64 216}
!18 = !{!"hashmap1_entry", !19, i64 0, !19, i64 104, !10, i64 208, !12, i64 216}
!19 = !{!"struct_s", !12, i64 0, !12, i64 4, !7, i64 8, !7, i64 16, !8, i64 24}
!20 = !{i64 0, i64 4, !21, i64 4, i64 4, !21, i64 8, i64 8, !22, i64 16, i64 8, !22, i64 24, i64 80, !23}
!21 = !{!12, !12, i64 0}
!22 = !{!7, !7, i64 0}
!23 = !{!8, !8, i64 0}
!24 = !{!18, !10, i64 208}
!25 = !{!6, !10, i64 16}
!26 = !{!6, !12, i64 32}


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