; 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_fval = 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
declare dso_local ptr @hm1_new_custom(i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @hm1_copy_of(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.struct_s, align 8
  %10 = alloca %struct.struct_s, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.hashmap1, ptr %11, i32 0, i32 1
  %13 = load i64, ptr %12, align 8, !tbaa !9
  %14 = uitofp i64 %13 to double
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.hashmap1, ptr %15, i32 0, i32 3
  %17 = load double, ptr %16, align 8, !tbaa !14
  %18 = fmul double %14, %17
  %19 = fptoui double %18 to i64
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.hashmap1, ptr %20, i32 0, i32 3
  %22 = load double, ptr %21, align 8, !tbaa !14
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.hashmap1, ptr %23, i32 0, i32 5
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.hashmap1, ptr %26, i32 0, i32 6
  %28 = load ptr, ptr %27, align 8, !tbaa !16
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.hashmap1, ptr %29, i32 0, i32 7
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  %32 = call ptr @hm1_new_custom(i64 noundef %19, double noundef %22, ptr noundef %25, ptr noundef %28, ptr noundef %31, ptr noundef null)
  store ptr %32, ptr %4, align 8, !tbaa !5
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %38, label %35

35:                                               ; preds = %1
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.hashmap1, ptr %36, i32 0, i32 4
  store i32 7, ptr %37, align 8, !tbaa !18
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %164

38:                                               ; preds = %1
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.hashmap1, ptr %39, i32 0, i32 5
  %41 = load ptr, ptr %40, align 8, !tbaa !15
  %42 = getelementptr inbounds %struct.hashmap1_fkey, ptr %41, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !19
  %44 = icmp ne ptr %43, null
  br i1 %44, label %52, label %45

45:                                               ; preds = %38
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.hashmap1, ptr %46, i32 0, i32 6
  %48 = load ptr, ptr %47, align 8, !tbaa !16
  %49 = getelementptr inbounds %struct.hashmap1_fval, ptr %48, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !21
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %144

52:                                               ; preds = %45, %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store i64 0, ptr %6, align 8, !tbaa !23
  br label %53

53:                                               ; preds = %140, %52
  %54 = load i64, ptr %6, align 8, !tbaa !23
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.hashmap1, ptr %55, i32 0, i32 1
  %57 = load i64, ptr %56, align 8, !tbaa !9
  %58 = icmp ult i64 %54, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %53
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %143

60:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.hashmap1, ptr %61, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !24
  %64 = load i64, ptr %6, align 8, !tbaa !23
  %65 = getelementptr inbounds %struct.hashmap1_entry, ptr %63, i64 %64
  store ptr %65, ptr %7, align 8, !tbaa !5
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.hashmap1_entry, ptr %66, i32 0, i32 3
  %68 = load i32, ptr %67, align 8, !tbaa !25
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %139

70:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.hashmap1, ptr %71, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !24
  %74 = load i64, ptr %6, align 8, !tbaa !23
  %75 = getelementptr inbounds %struct.hashmap1_entry, ptr %73, i64 %74
  store ptr %75, ptr %8, align 8, !tbaa !5
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.hashmap1_entry, ptr %76, i32 0, i32 3
  %78 = load i32, ptr %77, align 8, !tbaa !25
  %79 = icmp eq i32 %78, -1
  br i1 %79, label %80, label %83

80:                                               ; preds = %70
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.hashmap1_entry, ptr %81, i32 0, i32 3
  store i32 -1, ptr %82, align 8, !tbaa !25
  br label %138

83:                                               ; preds = %70
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.hashmap1_entry, ptr %84, i32 0, i32 3
  %86 = load i32, ptr %85, align 8, !tbaa !25
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.hashmap1_entry, ptr %87, i32 0, i32 3
  store i32 %86, ptr %88, align 8, !tbaa !25
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.hashmap1_entry, ptr %89, i32 0, i32 2
  %91 = load i64, ptr %90, align 8, !tbaa !28
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.hashmap1_entry, ptr %92, i32 0, i32 2
  store i64 %91, ptr %93, align 8, !tbaa !28
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.hashmap1, ptr %94, i32 0, i32 5
  %96 = load ptr, ptr %95, align 8, !tbaa !15
  %97 = getelementptr inbounds %struct.hashmap1_fkey, ptr %96, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8, !tbaa !19
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %110

100:                                              ; preds = %83
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.hashmap1_entry, ptr %101, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 104, ptr %9) #3
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.hashmap1, ptr %103, i32 0, i32 5
  %105 = load ptr, ptr %104, align 8, !tbaa !15
  %106 = getelementptr inbounds %struct.hashmap1_fkey, ptr %105, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8, !tbaa !19
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.hashmap1_entry, ptr %108, i32 0, i32 0
  call void %107(ptr dead_on_unwind writable sret(%struct.struct_s) align 8 %9, ptr noundef byval(%struct.struct_s) align 8 %109)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %102, ptr align 8 %9, i64 104, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 104, ptr %9) #3
  br label %115

110:                                              ; preds = %83
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.hashmap1_entry, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.hashmap1_entry, ptr %113, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %112, ptr align 8 %114, i64 104, i1 false), !tbaa.struct !29
  br label %115

115:                                              ; preds = %110, %100
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.hashmap1, ptr %116, i32 0, i32 6
  %118 = load ptr, ptr %117, align 8, !tbaa !16
  %119 = getelementptr inbounds %struct.hashmap1_fval, ptr %118, i32 0, i32 1
  %120 = load ptr, ptr %119, align 8, !tbaa !21
  %121 = icmp ne ptr %120, null
  br i1 %121, label %122, label %132

122:                                              ; preds = %115
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.hashmap1_entry, ptr %123, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 104, ptr %10) #3
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.hashmap1, ptr %125, i32 0, i32 6
  %127 = load ptr, ptr %126, align 8, !tbaa !16
  %128 = getelementptr inbounds %struct.hashmap1_fval, ptr %127, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8, !tbaa !21
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.hashmap1_entry, ptr %130, i32 0, i32 1
  call void %129(ptr dead_on_unwind writable sret(%struct.struct_s) align 8 %10, ptr noundef byval(%struct.struct_s) align 8 %131)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %124, ptr align 8 %10, i64 104, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 104, ptr %10) #3
  br label %137

132:                                              ; preds = %115
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.hashmap1_entry, ptr %133, i32 0, i32 1
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.hashmap1_entry, ptr %135, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %134, ptr align 8 %136, i64 104, i1 false), !tbaa.struct !29
  br label %137

137:                                              ; preds = %132, %122
  br label %138

138:                                              ; preds = %137, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %139

139:                                              ; preds = %138, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %140

140:                                              ; preds = %139
  %141 = load i64, ptr %6, align 8, !tbaa !23
  %142 = add i64 %141, 1
  store i64 %142, ptr %6, align 8, !tbaa !23
  br label %53, !llvm.loop !32

143:                                              ; preds = %59
  br label %155

144:                                              ; preds = %45
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.hashmap1, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !24
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.hashmap1, ptr %148, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8, !tbaa !24
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.hashmap1, ptr %151, i32 0, i32 1
  %153 = load i64, ptr %152, align 8, !tbaa !9
  %154 = mul i64 224, %153
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %147, ptr align 8 %150, i64 %154, i1 false)
  br label %155

155:                                              ; preds = %144, %143
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.hashmap1, ptr %156, i32 0, i32 2
  %158 = load i64, ptr %157, align 8, !tbaa !34
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.hashmap1, ptr %159, i32 0, i32 2
  store i64 %158, ptr %160, align 8, !tbaa !34
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.hashmap1, ptr %161, i32 0, i32 4
  store i32 0, ptr %162, align 8, !tbaa !18
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %163, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %164

164:                                              ; preds = %155, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %165 = load ptr, ptr %2, align 8
  ret ptr %165
}

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, !12, i64 24}
!15 = !{!10, !6, i64 40}
!16 = !{!10, !6, i64 48}
!17 = !{!10, !6, i64 56}
!18 = !{!10, !13, i64 32}
!19 = !{!20, !6, i64 8}
!20 = !{!"hashmap1_fkey", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!21 = !{!22, !6, i64 8}
!22 = !{!"hashmap1_fval", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!23 = !{!11, !11, i64 0}
!24 = !{!10, !6, i64 0}
!25 = !{!26, !13, i64 216}
!26 = !{!"hashmap1_entry", !27, i64 0, !27, i64 104, !11, i64 208, !13, i64 216}
!27 = !{!"struct_s", !13, i64 0, !13, i64 4, !6, i64 8, !6, i64 16, !7, i64 24}
!28 = !{!26, !11, i64 208}
!29 = !{i64 0, i64 4, !30, i64 4, i64 4, !30, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 80, !31}
!30 = !{!13, !13, i64 0}
!31 = !{!7, !7, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!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
declare dso_local ptr @hm1_new_custom(i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local ptr @hm1_copy_of(ptr nocapture noundef %0) local_unnamed_addr #2 {
  %2 = alloca %struct.struct_s, align 8
  %3 = alloca %struct.struct_s, align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %6 = uitofp i64 %5 to double
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load double, ptr %7, align 8, !tbaa !13
  %9 = fmul double %8, %6
  %10 = fptoui double %9 to i64
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %0, i64 56
  %16 = load ptr, ptr %15, align 8, !tbaa !16
  %17 = tail call ptr @hm1_new_custom(i64 noundef %10, double noundef %8, ptr noundef %12, ptr noundef %14, ptr noundef %16, ptr noundef null)
  %.not = icmp eq ptr %17, null
  br i1 %.not, label %68, label %18

18:                                               ; preds = %1
  %19 = load ptr, ptr %11, align 8, !tbaa !14
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !17
  %.not46 = icmp eq ptr %21, null
  br i1 %.not46, label %22, label %26

22:                                               ; preds = %18
  %23 = load ptr, ptr %13, align 8, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !19
  %.not47 = icmp eq ptr %25, null
  br i1 %.not47, label %60, label %26

26:                                               ; preds = %22, %18
  %27 = load i64, ptr %4, align 8, !tbaa !5
  %.not52 = icmp eq i64 %27, 0
  br i1 %.not52, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %26, %56
  %.04351 = phi i64 [ %57, %56 ], [ 0, %26 ]
  %28 = load ptr, ptr %0, align 8, !tbaa !21
  %29 = getelementptr inbounds %struct.hashmap1_entry, ptr %28, i64 %.04351
  %30 = getelementptr inbounds i8, ptr %29, i64 216
  %31 = load i32, ptr %30, align 8, !tbaa !22
  %.not48 = icmp eq i32 %31, 0
  br i1 %.not48, label %56, label %32

32:                                               ; preds = %.lr.ph
  %33 = load ptr, ptr %17, align 8, !tbaa !21
  %34 = getelementptr inbounds %struct.hashmap1_entry, ptr %33, i64 %.04351
  %35 = icmp eq i32 %31, -1
  %36 = getelementptr inbounds i8, ptr %34, i64 216
  br i1 %35, label %37, label %38

37:                                               ; preds = %32
  store i32 -1, ptr %36, align 8, !tbaa !22
  br label %56

38:                                               ; preds = %32
  store i32 %31, ptr %36, align 8, !tbaa !22
  %39 = getelementptr inbounds i8, ptr %29, i64 208
  %40 = load i64, ptr %39, align 8, !tbaa !25
  %41 = getelementptr inbounds i8, ptr %34, i64 208
  store i64 %40, ptr %41, align 8, !tbaa !25
  %42 = load ptr, ptr %11, align 8, !tbaa !14
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load ptr, ptr %43, align 8, !tbaa !17
  %.not49 = icmp eq ptr %44, null
  br i1 %.not49, label %46, label %45

45:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %2) #3
  call void %44(ptr dead_on_unwind nonnull writable sret(%struct.struct_s) align 8 %2, ptr noundef nonnull byval(%struct.struct_s) align 8 %29) #3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %34, ptr noundef nonnull align 8 dereferenceable(104) %2, i64 104, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %2) #3
  br label %47

46:                                               ; preds = %38
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %34, ptr noundef nonnull align 8 dereferenceable(104) %29, i64 104, i1 false), !tbaa.struct !26
  br label %47

47:                                               ; preds = %46, %45
  %48 = load ptr, ptr %13, align 8, !tbaa !15
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = load ptr, ptr %49, align 8, !tbaa !19
  %.not50 = icmp eq ptr %50, null
  %51 = getelementptr inbounds i8, ptr %34, i64 104
  br i1 %.not50, label %54, label %52

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %3) #3
  %53 = getelementptr inbounds i8, ptr %29, i64 104
  call void %50(ptr dead_on_unwind nonnull writable sret(%struct.struct_s) align 8 %3, ptr noundef nonnull byval(%struct.struct_s) align 8 %53) #3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %51, ptr noundef nonnull align 8 dereferenceable(104) %3, i64 104, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %3) #3
  br label %56

54:                                               ; preds = %47
  %55 = getelementptr inbounds i8, ptr %29, i64 104
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %51, ptr noundef nonnull align 8 dereferenceable(104) %55, i64 104, i1 false), !tbaa.struct !26
  br label %56

56:                                               ; preds = %37, %54, %52, %.lr.ph
  %57 = add nuw i64 %.04351, 1
  %58 = load i64, ptr %4, align 8, !tbaa !5
  %59 = icmp ult i64 %57, %58
  br i1 %59, label %.lr.ph, label %.loopexit, !llvm.loop !30

60:                                               ; preds = %22
  %61 = load ptr, ptr %17, align 8, !tbaa !21
  %62 = load ptr, ptr %0, align 8, !tbaa !21
  %63 = load i64, ptr %4, align 8, !tbaa !5
  %64 = mul i64 %63, 224
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 8 %61, ptr align 8 %62, i64 %64, i1 false)
  br label %.loopexit

.loopexit:                                        ; preds = %56, %26, %60
  %65 = getelementptr inbounds i8, ptr %0, i64 16
  %66 = load i64, ptr %65, align 8, !tbaa !32
  %67 = getelementptr inbounds i8, ptr %17, i64 16
  store i64 %66, ptr %67, align 8, !tbaa !32
  br label %68

68:                                               ; preds = %1, %.loopexit
  %.sink = phi i32 [ 0, %.loopexit ], [ 7, %1 ]
  %69 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %.sink, ptr %69, align 8, !tbaa !33
  ret ptr %17
}

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, !11, i64 24}
!14 = !{!6, !7, i64 40}
!15 = !{!6, !7, i64 48}
!16 = !{!6, !7, i64 56}
!17 = !{!18, !7, i64 8}
!18 = !{!"hashmap1_fkey", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!19 = !{!20, !7, i64 8}
!20 = !{!"hashmap1_fval", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!21 = !{!6, !7, i64 0}
!22 = !{!23, !12, i64 216}
!23 = !{!"hashmap1_entry", !24, i64 0, !24, i64 104, !10, i64 208, !12, i64 216}
!24 = !{!"struct_s", !12, i64 0, !12, i64 4, !7, i64 8, !7, i64 16, !8, i64 24}
!25 = !{!23, !10, i64 208}
!26 = !{i64 0, i64 4, !27, i64 4, i64 4, !27, i64 8, i64 8, !28, i64 16, i64 8, !28, i64 24, i64 80, !29}
!27 = !{!12, !12, i64 0}
!28 = !{!7, !7, i64 0}
!29 = !{!8, !8, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!6, !10, i64 16}
!33 = !{!6, !12, i64 32}


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