; LLVM IR from keroro824/HashingDeepLearning :: SLIDE/DensifiedWtaHash.ll (ZN16DensifiedWtaHash11getHashEasyEPfii)

; 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"

%class.DensifiedWtaHash = type <{ ptr, i32, i32, i32, i32, ptr, ptr, i32, [4 x i8] }>

; 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 speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN16DensifiedWtaHash11getHashEasyEPfii(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #4 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %25 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %26 = getelementptr inbounds %class.DensifiedWtaHash, ptr %25, i32 0, i32 2
  %27 = load i32, ptr %26, align 4, !tbaa !11
  %28 = sext i32 %27 to i64
  %29 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %28, i64 4)
  %30 = extractvalue { i64, i1 } %29, 1
  %31 = extractvalue { i64, i1 } %29, 0
  %32 = select i1 %30, i64 -1, i64 %31
  %33 = call noalias noundef nonnull ptr @_Znam(i64 noundef %32) #8
  store ptr %33, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %34 = getelementptr inbounds %class.DensifiedWtaHash, ptr %25, i32 0, i32 2
  %35 = load i32, ptr %34, align 4, !tbaa !11
  %36 = sext i32 %35 to i64
  %37 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %36, i64 4)
  %38 = extractvalue { i64, i1 } %37, 1
  %39 = extractvalue { i64, i1 } %37, 0
  %40 = select i1 %38, i64 -1, i64 %39
  %41 = call noalias noundef nonnull ptr @_Znam(i64 noundef %40) #8
  store ptr %41, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %42 = getelementptr inbounds %class.DensifiedWtaHash, ptr %25, i32 0, i32 2
  %43 = load i32, ptr %42, align 4, !tbaa !11
  %44 = sext i32 %43 to i64
  %45 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %44, i64 4)
  %46 = extractvalue { i64, i1 } %45, 1
  %47 = extractvalue { i64, i1 } %45, 0
  %48 = select i1 %46, i64 -1, i64 %47
  %49 = call noalias noundef nonnull ptr @_Znam(i64 noundef %48) #8
  store ptr %49, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %65, %4
  %51 = load i32, ptr %12, align 4, !tbaa !9
  %52 = getelementptr inbounds %class.DensifiedWtaHash, ptr %25, i32 0, i32 2
  %53 = load i32, ptr %52, align 4, !tbaa !11
  %54 = icmp slt i32 %51, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %68

56:                                               ; preds = %50
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i32, ptr %57, i64 %59
  store i32 -2147483648, ptr %60, align 4, !tbaa !9
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = load i32, ptr %12, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds float, ptr %61, i64 %63
  store float 0xC1E0000000000000, ptr %64, align 4, !tbaa !13
  br label %65

65:                                               ; preds = %56
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %12, align 4, !tbaa !9
  br label %50, !llvm.loop !15

68:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %133, %68
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = getelementptr inbounds %class.DensifiedWtaHash, ptr %25, i32 0, i32 7
  %72 = load i32, ptr %71, align 8, !tbaa !17
  %73 = icmp slt i32 %70, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %69
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %136

75:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = getelementptr inbounds %class.DensifiedWtaHash, ptr %25, i32 0, i32 3
  %78 = load i32, ptr %77, align 8, !tbaa !18
  %79 = mul nsw i32 %76, %78
  store i32 %79, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %129, %75
  %81 = load i32, ptr %16, align 4, !tbaa !9
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %132

85:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %86 = load i32, ptr %15, align 4, !tbaa !9
  %87 = load i32, ptr %16, align 4, !tbaa !9
  %88 = add nsw i32 %86, %87
  store i32 %88, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %89 = getelementptr inbounds %class.DensifiedWtaHash, ptr %25, i32 0, i32 5
  %90 = load ptr, ptr %89, align 8, !tbaa !19
  %91 = load i32, ptr %17, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i32, ptr %90, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !9
  store i32 %94, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = load i32, ptr %16, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds float, ptr %95, i64 %97
  %99 = load float, ptr %98, align 4, !tbaa !13
  store float %99, ptr %19, align 4, !tbaa !13
  %100 = load i32, ptr %18, align 4, !tbaa !9
  %101 = getelementptr inbounds %class.DensifiedWtaHash, ptr %25, i32 0, i32 2
  %102 = load i32, ptr %101, align 4, !tbaa !11
  %103 = icmp slt i32 %100, %102
  br i1 %103, label %104, label %128

104:                                              ; preds = %85
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = load i32, ptr %18, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds float, ptr %105, i64 %107
  %109 = load float, ptr %108, align 4, !tbaa !13
  %110 = load float, ptr %19, align 4, !tbaa !13
  %111 = fcmp olt float %109, %110
  br i1 %111, label %112, label %128

112:                                              ; preds = %104
  %113 = load float, ptr %19, align 4, !tbaa !13
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = load i32, ptr %18, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds float, ptr %114, i64 %116
  store float %113, ptr %117, align 4, !tbaa !13
  %118 = getelementptr inbounds %class.DensifiedWtaHash, ptr %25, i32 0, i32 6
  %119 = load ptr, ptr %118, align 8, !tbaa !20
  %120 = load i32, ptr %17, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i32, ptr %119, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = load i32, ptr %18, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i32, ptr %124, i64 %126
  store i32 %123, ptr %127, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %112, %104, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %16, align 4, !tbaa !9
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %16, align 4, !tbaa !9
  br label %80, !llvm.loop !21

132:                                              ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %13, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %13, align 4, !tbaa !9
  br label %69, !llvm.loop !22

136:                                              ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %137

137:                                              ; preds = %195, %136
  %138 = load i32, ptr %20, align 4, !tbaa !9
  %139 = getelementptr inbounds %class.DensifiedWtaHash, ptr %25, i32 0, i32 2
  %140 = load i32, ptr %139, align 4, !tbaa !11
  %141 = icmp slt i32 %138, %140
  br i1 %141, label %143, label %142

142:                                              ; preds = %137
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %198

143:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = load i32, ptr %20, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds i32, ptr %144, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !9
  store i32 %148, ptr %21, align 4, !tbaa !9
  %149 = load i32, ptr %21, align 4, !tbaa !9
  %150 = icmp ne i32 %149, -2147483648
  br i1 %150, label %151, label %161

151:                                              ; preds = %143
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = load i32, ptr %20, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds i32, ptr %152, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  %158 = load i32, ptr %20, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds i32, ptr %157, i64 %159
  store i32 %156, ptr %160, align 4, !tbaa !9
  store i32 13, ptr %14, align 4
  br label %192

161:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %185, %161
  %163 = load i32, ptr %21, align 4, !tbaa !9
  %164 = icmp eq i32 %163, -2147483648
  br i1 %164, label %165, label %186

165:                                              ; preds = %162
  %166 = load i32, ptr %22, align 4, !tbaa !9
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %168 = load i32, ptr %20, align 4, !tbaa !9
  %169 = load i32, ptr %22, align 4, !tbaa !9
  %170 = call noundef i32 @_ZN16DensifiedWtaHash17getRandDoubleHashEii(ptr noundef nonnull align 8 dereferenceable(44) %25, i32 noundef %168, i32 noundef %169)
  store i32 %170, ptr %24, align 4, !tbaa !9
  %171 = getelementptr inbounds %class.DensifiedWtaHash, ptr %25, i32 0, i32 2
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %171)
  %173 = load i32, ptr %172, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  store i32 %173, ptr %23, align 4, !tbaa !9
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = load i32, ptr %23, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds i32, ptr %174, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !9
  store i32 %178, ptr %21, align 4, !tbaa !9
  %179 = load i32, ptr %22, align 4, !tbaa !9
  %180 = icmp sgt i32 %179, 100
  br i1 %180, label %181, label %182

181:                                              ; preds = %165
  store i32 15, ptr %14, align 4
  br label %183

182:                                              ; preds = %165
  store i32 0, ptr %14, align 4
  br label %183

183:                                              ; preds = %182, %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  %184 = load i32, ptr %14, align 4
  switch i32 %184, label %208 [
    i32 0, label %185
    i32 15, label %186
  ]

185:                                              ; preds = %183
  br label %162, !llvm.loop !23

186:                                              ; preds = %183, %162
  %187 = load i32, ptr %21, align 4, !tbaa !9
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = load i32, ptr %20, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds i32, ptr %188, i64 %190
  store i32 %187, ptr %191, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  store i32 0, ptr %14, align 4
  br label %192

192:                                              ; preds = %186, %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  %193 = load i32, ptr %14, align 4
  switch i32 %193, label %208 [
    i32 0, label %194
    i32 13, label %195
  ]

194:                                              ; preds = %192
  br label %195

195:                                              ; preds = %194, %192
  %196 = load i32, ptr %20, align 4, !tbaa !9
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %20, align 4, !tbaa !9
  br label %137, !llvm.loop !24

198:                                              ; preds = %142
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = icmp eq ptr %199, null
  br i1 %200, label %202, label %201

201:                                              ; preds = %198
  call void @_ZdaPv(ptr noundef %199) #9
  br label %202

202:                                              ; preds = %201, %198
  %203 = load ptr, ptr %10, align 8, !tbaa !5
  %204 = icmp eq ptr %203, null
  br i1 %204, label %206, label %205

205:                                              ; preds = %202
  call void @_ZdaPv(ptr noundef %203) #9
  br label %206

206:                                              ; preds = %205, %202
  %207 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret ptr %207

208:                                              ; preds = %192, %183
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN16DensifiedWtaHash17getRandDoubleHashEii(ptr noundef nonnull align 8 dereferenceable(44), i32 noundef, i32 noundef) #6 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nobuiltin allocsize(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 = { nobuiltin nounwind "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 = { mustprogress 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 #5 = { inlinehint mustprogress 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 #6 = { mustprogress 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 12}
!12 = !{!"_ZTS16DensifiedWtaHash", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !10, i64 40}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!12, !10, i64 40}
!18 = !{!12, !10, i64 16}
!19 = !{!12, !6, i64 24}
!20 = !{!12, !6, i64 32}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !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"

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noalias noundef nonnull ptr @_ZN16DensifiedWtaHash11getHashEasyEPfii(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 align 2 {
  %5 = alloca i32, align 4
  %6 = getelementptr inbounds i8, ptr %0, i64 12
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = icmp slt i32 %7, 0
  %10 = shl nsw i64 %8, 2
  %11 = select i1 %9, i64 -1, i64 %10
  %12 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %11) #6
  %13 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %11) #6
  %14 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %11) #6
  %15 = icmp sgt i32 %7, 0
  br i1 %15, label %.lr.ph.preheader, label %.preheader61

.lr.ph.preheader:                                 ; preds = %4
  %wide.trip.count = zext nneg i32 %7 to i64
  %min.iters.check = icmp ult i32 %7, 8
  br i1 %min.iters.check, label %.lr.ph.preheader85, label %vector.ph

.lr.ph.preheader85:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %16 = getelementptr inbounds i32, ptr %12, i64 %index
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  store <4 x i32> <i32 -2147483648, i32 -2147483648, i32 -2147483648, i32 -2147483648>, ptr %16, align 4, !tbaa !11
  store <4 x i32> <i32 -2147483648, i32 -2147483648, i32 -2147483648, i32 -2147483648>, ptr %17, align 4, !tbaa !11
  %18 = getelementptr inbounds float, ptr %13, i64 %index
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store <4 x float> <float 0xC1E0000000000000, float 0xC1E0000000000000, float 0xC1E0000000000000, float 0xC1E0000000000000>, ptr %18, align 4, !tbaa !12
  store <4 x float> <float 0xC1E0000000000000, float 0xC1E0000000000000, float 0xC1E0000000000000, float 0xC1E0000000000000>, ptr %19, align 4, !tbaa !12
  %index.next = add nuw i64 %index, 8
  %20 = icmp eq i64 %index.next, %n.vec
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader61, label %.lr.ph.preheader85

.preheader61:                                     ; preds = %.lr.ph, %middle.block, %4
  %21 = getelementptr inbounds i8, ptr %0, i64 40
  %22 = load i32, ptr %21, align 8, !tbaa !18
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph66, label %.preheader60

.lr.ph66:                                         ; preds = %.preheader61
  %24 = icmp sgt i32 %2, 0
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  %26 = load ptr, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr %0, i64 32
  %28 = load ptr, ptr %27, align 8
  br i1 %24, label %.lr.ph64.us.preheader, label %.preheader60

.lr.ph64.us.preheader:                            ; preds = %.lr.ph66
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = load i32, ptr %29, align 8, !tbaa !19
  %31 = sext i32 %30 to i64
  %wide.trip.count79 = zext nneg i32 %22 to i64
  %wide.trip.count74 = zext nneg i32 %2 to i64
  br label %.lr.ph64.us

.lr.ph64.us:                                      ; preds = %.lr.ph64.us.preheader, %._crit_edge.us
  %indvars.iv76 = phi i64 [ 0, %.lr.ph64.us.preheader ], [ %indvars.iv.next77, %._crit_edge.us ]
  %32 = mul nsw i64 %indvars.iv76, %31
  br label %33

33:                                               ; preds = %.lr.ph64.us, %49
  %indvars.iv71 = phi i64 [ 0, %.lr.ph64.us ], [ %indvars.iv.next72, %49 ]
  %34 = add nsw i64 %indvars.iv71, %32
  %35 = getelementptr inbounds i32, ptr %26, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !11
  %37 = getelementptr inbounds float, ptr %1, i64 %indvars.iv71
  %38 = load float, ptr %37, align 4, !tbaa !12
  %39 = icmp slt i32 %36, %7
  br i1 %39, label %40, label %49

40:                                               ; preds = %33
  %41 = sext i32 %36 to i64
  %42 = getelementptr inbounds float, ptr %13, i64 %41
  %43 = load float, ptr %42, align 4, !tbaa !12
  %44 = fcmp olt float %43, %38
  br i1 %44, label %45, label %49

45:                                               ; preds = %40
  store float %38, ptr %42, align 4, !tbaa !12
  %46 = getelementptr inbounds i32, ptr %28, i64 %34
  %47 = load i32, ptr %46, align 4, !tbaa !11
  %48 = getelementptr inbounds i32, ptr %12, i64 %41
  store i32 %47, ptr %48, align 4, !tbaa !11
  br label %49

49:                                               ; preds = %45, %40, %33
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %exitcond75.not = icmp eq i64 %indvars.iv.next72, %wide.trip.count74
  br i1 %exitcond75.not, label %._crit_edge.us, label %33, !llvm.loop !20

._crit_edge.us:                                   ; preds = %49
  %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1
  %exitcond80.not = icmp eq i64 %indvars.iv.next77, %wide.trip.count79
  br i1 %exitcond80.not, label %.preheader60, label %.lr.ph64.us, !llvm.loop !21

.lr.ph:                                           ; preds = %.lr.ph.preheader85, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader85 ]
  %50 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv
  store i32 -2147483648, ptr %50, align 4, !tbaa !11
  %51 = getelementptr inbounds float, ptr %13, i64 %indvars.iv
  store float 0xC1E0000000000000, ptr %51, align 4, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader61, label %.lr.ph, !llvm.loop !22

.preheader60:                                     ; preds = %._crit_edge.us, %.lr.ph66, %.preheader61
  br i1 %15, label %.lr.ph68, label %._crit_edge

.lr.ph68:                                         ; preds = %.preheader60, %69
  %52 = phi i32 [ %70, %69 ], [ %7, %.preheader60 ]
  %indvars.iv82 = phi i64 [ %indvars.iv.next83, %69 ], [ 0, %.preheader60 ]
  %53 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv82
  %54 = load i32, ptr %53, align 4, !tbaa !11
  %.not = icmp eq i32 %54, -2147483648
  br i1 %.not, label %.preheader.preheader, label %56

.preheader.preheader:                             ; preds = %.lr.ph68
  %55 = trunc nuw nsw i64 %indvars.iv82 to i32
  br label %.preheader

56:                                               ; preds = %.lr.ph68
  %57 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv82
  store i32 %54, ptr %57, align 4, !tbaa !11
  br label %69

.preheader:                                       ; preds = %.preheader.preheader, %59
  %.051 = phi i32 [ %66, %59 ], [ -2147483648, %.preheader.preheader ]
  %.050 = phi i32 [ %60, %59 ], [ 0, %.preheader.preheader ]
  %58 = icmp eq i32 %.051, -2147483648
  br i1 %58, label %59, label %67

59:                                               ; preds = %.preheader
  %60 = add nuw nsw i32 %.050, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %61 = call noundef i32 @_ZN16DensifiedWtaHash17getRandDoubleHashEii(ptr noundef nonnull align 8 dereferenceable(44) %0, i32 noundef %55, i32 noundef %60)
  store i32 %61, ptr %5, align 4, !tbaa !11
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %63 = load i32, ptr %62, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds i32, ptr %12, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !11
  %exitcond81 = icmp eq i32 %60, 101
  br i1 %exitcond81, label %67, label %.preheader

67:                                               ; preds = %59, %.preheader
  %.1 = phi i32 [ %66, %59 ], [ %.051, %.preheader ]
  %68 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv82
  store i32 %.1, ptr %68, align 4, !tbaa !11
  %.pre = load i32, ptr %6, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %67, %56
  %70 = phi i32 [ %.pre, %67 ], [ %52, %56 ]
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %71 = sext i32 %70 to i64
  %72 = icmp slt i64 %indvars.iv.next83, %71
  br i1 %72, label %.lr.ph68, label %._crit_edge, !llvm.loop !23

._crit_edge:                                      ; preds = %69, %.preheader60
  call void @_ZdaPv(ptr noundef nonnull %12) #8
  call void @_ZdaPv(ptr noundef nonnull %13) #8
  ret ptr %14
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN16DensifiedWtaHash17getRandDoubleHashEii(ptr noundef nonnull align 8 dereferenceable(44), i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(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 #2 = { nobuiltin nounwind "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 = { mustprogress 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 = { inlinehint mustprogress 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 #5 = { mustprogress 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 #6 = { builtin allocsize(0) }
attributes #7 = { nounwind }
attributes #8 = { builtin 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 12}
!6 = !{!"_ZTS16DensifiedWtaHash", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 32, !10, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = distinct !{!14, !15, !16, !17}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = !{!6, !10, i64 40}
!19 = !{!6, !10, i64 16}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15, !17, !16}
!23 = distinct !{!23, !15}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass