; LLVM IR from erayzesen/QuarkPhysics :: QuarkPhysics/extensions/qspatialhashing.ll (ZN15QSpatialHashing6InsertEP5QBody)

; 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.QAABB = type { %struct.QVector, %struct.QVector, %struct.QVector, float }
%struct.QVector = type { float, float }
%"struct.QSpatialHashing::CellAABB" = type { i32, i32, i32, i32 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair.46" = type { i32, i32 }
%class.QSpatialHashing = type { %class.QBroadPhase, float, float, %"class.std::unordered_map", %"class.std::unordered_map.17" }
%class.QBroadPhase = type { ptr, %"class.std::unordered_set", ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map" = type { %"class.std::_Hashtable.2" }
%"class.std::_Hashtable.2" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.17" = type { %"class.std::_Hashtable.18" }
%"class.std::_Hashtable.18" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::pair" = type { ptr, %"struct.QSpatialHashing::CellAABB" }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15QSpatialHashing6InsertEP5QBody(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef %1) unnamed_addr #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %class.QAABB, align 4
  %6 = alloca %"struct.QSpatialHashing::CellAABB", align 4
  %7 = alloca %struct.QVector, align 4
  %8 = alloca %struct.QVector, align 4
  %9 = alloca %struct.QVector, align 4
  %10 = alloca %struct.QVector, align 4
  %11 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %12 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::pair.46", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 28, ptr %5) #7
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %5, ptr noundef nonnull align 8 dereferenceable(293) %19)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %20 = call <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %5)
  store <2 x float> %20, ptr %7, align 4
  %21 = getelementptr inbounds %struct.QVector, ptr %7, i32 0, i32 0
  %22 = load float, ptr %21, align 4, !tbaa !9
  %23 = getelementptr inbounds %class.QSpatialHashing, ptr %18, i32 0, i32 2
  %24 = load float, ptr %23, align 4, !tbaa !12
  %25 = fmul float %22, %24
  %26 = call noundef float @_ZSt5floorf(float noundef %25)
  %27 = fptosi float %26 to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %28 = call <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %5)
  store <2 x float> %28, ptr %8, align 4
  %29 = getelementptr inbounds %struct.QVector, ptr %8, i32 0, i32 1
  %30 = load float, ptr %29, align 4, !tbaa !24
  %31 = getelementptr inbounds %class.QSpatialHashing, ptr %18, i32 0, i32 2
  %32 = load float, ptr %31, align 4, !tbaa !12
  %33 = fmul float %30, %32
  %34 = call noundef float @_ZSt5floorf(float noundef %33)
  %35 = fptosi float %34 to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %36 = call <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %5)
  store <2 x float> %36, ptr %9, align 4
  %37 = getelementptr inbounds %struct.QVector, ptr %9, i32 0, i32 0
  %38 = load float, ptr %37, align 4, !tbaa !9
  %39 = getelementptr inbounds %class.QSpatialHashing, ptr %18, i32 0, i32 2
  %40 = load float, ptr %39, align 4, !tbaa !12
  %41 = fmul float %38, %40
  %42 = call noundef float @_ZSt5floorf(float noundef %41)
  %43 = fptosi float %42 to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %44 = call <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %5)
  store <2 x float> %44, ptr %10, align 4
  %45 = getelementptr inbounds %struct.QVector, ptr %10, i32 0, i32 1
  %46 = load float, ptr %45, align 4, !tbaa !24
  %47 = getelementptr inbounds %class.QSpatialHashing, ptr %18, i32 0, i32 2
  %48 = load float, ptr %47, align 4, !tbaa !12
  %49 = fmul float %46, %48
  %50 = call noundef float @_ZSt5floorf(float noundef %49)
  %51 = fptosi float %50 to i32
  call void @_ZN15QSpatialHashing8CellAABBC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef %27, i32 noundef %35, i32 noundef %43, i32 noundef %51)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %52 = getelementptr inbounds %class.QSpatialHashing, ptr %18, i32 0, i32 4
  %53 = call ptr @_ZNSt13unordered_mapIP5QBodyN15QSpatialHashing8CellAABBESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S3_EEE4findERS9_(ptr noundef nonnull align 8 dereferenceable(56) %52, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %54 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %11, i32 0, i32 0
  %55 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %54, i32 0, i32 0
  store ptr %53, ptr %55, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %56 = getelementptr inbounds %class.QSpatialHashing, ptr %18, i32 0, i32 4
  %57 = call ptr @_ZNSt13unordered_mapIP5QBodyN15QSpatialHashing8CellAABBESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %56) #7
  %58 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %12, i32 0, i32 0
  %59 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %58, i32 0, i32 0
  store ptr %57, ptr %59, align 8
  %60 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKP5QBodyN15QSpatialHashing8CellAABBEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br i1 %60, label %61, label %73

61:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %62 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKP5QBodyN15QSpatialHashing8CellAABBEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %63 = getelementptr inbounds %"struct.std::pair", ptr %62, i32 0, i32 1
  store ptr %63, ptr %13, align 8, !tbaa !5
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  %65 = call noundef zeroext i1 @_ZNK15QSpatialHashing8CellAABBeqERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %64, ptr noundef nonnull align 4 dereferenceable(16) %6)
  br i1 %65, label %66, label %67

66:                                               ; preds = %61
  store i32 1, ptr %14, align 4
  br label %70

67:                                               ; preds = %61
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN15QSpatialHashing19RemoveBodyFromCellsEP5QBodyRNS_8CellAABBE(ptr noundef nonnull align 8 dereferenceable(192) %18, ptr noundef %68, ptr noundef nonnull align 4 dereferenceable(16) %69)
  store i32 0, ptr %14, align 4
  br label %70

70:                                               ; preds = %67, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %71 = load i32, ptr %14, align 4
  switch i32 %71, label %104 [
    i32 0, label %72
  ]

72:                                               ; preds = %70
  br label %73

73:                                               ; preds = %72, %2
  %74 = getelementptr inbounds %class.QSpatialHashing, ptr %18, i32 0, i32 4
  %75 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt13unordered_mapIP5QBodyN15QSpatialHashing8CellAABBESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S3_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(56) %74, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 4 %6, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %76 = getelementptr inbounds %"struct.QSpatialHashing::CellAABB", ptr %6, i32 0, i32 0
  %77 = load i32, ptr %76, align 4, !tbaa !28
  store i32 %77, ptr %15, align 4, !tbaa !26
  br label %78

78:                                               ; preds = %100, %73
  %79 = load i32, ptr %15, align 4, !tbaa !26
  %80 = getelementptr inbounds %"struct.QSpatialHashing::CellAABB", ptr %6, i32 0, i32 2
  %81 = load i32, ptr %80, align 4, !tbaa !30
  %82 = icmp sle i32 %79, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %78
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %103

84:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %85 = getelementptr inbounds %"struct.QSpatialHashing::CellAABB", ptr %6, i32 0, i32 1
  %86 = load i32, ptr %85, align 4, !tbaa !31
  store i32 %86, ptr %16, align 4, !tbaa !26
  br label %87

87:                                               ; preds = %96, %84
  %88 = load i32, ptr %16, align 4, !tbaa !26
  %89 = getelementptr inbounds %"struct.QSpatialHashing::CellAABB", ptr %6, i32 0, i32 3
  %90 = load i32, ptr %89, align 4, !tbaa !32
  %91 = icmp sle i32 %88, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %87
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %99

93:                                               ; preds = %87
  %94 = getelementptr inbounds %class.QSpatialHashing, ptr %18, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %95 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapISt4pairIiiESt6vectorIP5QBodySaIS4_EEN15QSpatialHashing8PairHashESt8equal_toIS1_ESaIS0_IKS1_S6_EEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(56) %94, ptr noundef nonnull align 4 dereferenceable(8) %17)
  call void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %95, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %96

96:                                               ; preds = %93
  %97 = load i32, ptr %16, align 4, !tbaa !26
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %16, align 4, !tbaa !26
  br label %87, !llvm.loop !33

99:                                               ; preds = %92
  br label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %15, align 4, !tbaa !26
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %15, align 4, !tbaa !26
  br label %78, !llvm.loop !35

103:                                              ; preds = %83
  store i32 0, ptr %14, align 4
  br label %104

104:                                              ; preds = %103, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 28, ptr %5) #7
  %105 = load i32, ptr %14, align 4
  switch i32 %105, label %107 [
    i32 0, label %106
    i32 1, label %106
  ]

106:                                              ; preds = %104, %104
  ret void

107:                                              ; preds = %104
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind noalias writable sret(%class.QAABB) align 4, ptr noundef nonnull align 8 dereferenceable(293)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5floorf(float noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15QSpatialHashing8CellAABBC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapIP5QBodyN15QSpatialHashing8CellAABBESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S3_EEE4findERS9_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKP5QBodyN15QSpatialHashing8CellAABBEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_mapIP5QBodyN15QSpatialHashing8CellAABBESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKP5QBodyN15QSpatialHashing8CellAABBEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK15QSpatialHashing8CellAABBeqERKS0_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15QSpatialHashing19RemoveBodyFromCellsEP5QBodyRNS_8CellAABBE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef, ptr noundef nonnull align 4 dereferenceable(16)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt13unordered_mapIP5QBodyN15QSpatialHashing8CellAABBESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S3_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; 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) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapISt4pairIiiESt6vectorIP5QBodySaIS4_EEN15QSpatialHashing8PairHashESt8equal_toIS1_ESaIS0_IKS1_S6_EEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(8)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="64" "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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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, !11, i64 0}
!10 = !{!"_ZTS7QVector", !11, i64 0, !11, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !11, i64 76}
!13 = !{!"_ZTS15QSpatialHashing", !14, i64 0, !11, i64 72, !11, i64 76, !20, i64 80, !22, i64 136}
!14 = !{!"_ZTS11QBroadPhase", !15, i64 8, !6, i64 64}
!15 = !{!"_ZTSSt13unordered_setISt4pairIP5QBodyS2_ENS1_12BodyPairHashENS1_13BodyPairEqualESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSSt10_HashtableISt4pairIP5QBodyS2_ES3_SaIS3_ENSt8__detail9_IdentityENS1_13BodyPairEqualENS1_12BodyPairHashENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb1ELb1ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!19 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !11, i64 0, !17, i64 8}
!20 = !{!"_ZTSSt13unordered_mapISt4pairIiiESt6vectorIP5QBodySaIS4_EEN15QSpatialHashing8PairHashESt8equal_toIS1_ESaIS0_IKS1_S6_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_HashtableISt4pairIiiES0_IKS1_St6vectorIP5QBodySaIS5_EEESaIS8_ENSt8__detail10_Select1stESt8equal_toIS1_EN15QSpatialHashing8PairHashENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!22 = !{!"_ZTSSt13unordered_mapIP5QBodyN15QSpatialHashing8CellAABBESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S3_EEE", !23, i64 0}
!23 = !{!"_ZTSSt10_HashtableIP5QBodySt4pairIKS1_N15QSpatialHashing8CellAABBEESaIS6_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!24 = !{!10, !11, i64 4}
!25 = !{i64 0, i64 4, !26, i64 4, i64 4, !26, i64 8, i64 4, !26, i64 12, i64 4, !26}
!26 = !{!27, !27, i64 0}
!27 = !{!"int", !7, i64 0}
!28 = !{!29, !27, i64 0}
!29 = !{!"_ZTSN15QSpatialHashing8CellAABBE", !27, i64 0, !27, i64 4, !27, i64 8, !27, i64 12}
!30 = !{!29, !27, i64 8}
!31 = !{!29, !27, i64 4}
!32 = !{!29, !27, i64 12}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}


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

%class.QAABB = type { %struct.QVector, %struct.QVector, %struct.QVector, float }
%struct.QVector = type { float, float }
%"struct.QSpatialHashing::CellAABB" = type { i32, i32, i32, i32 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair.46" = type { i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15QSpatialHashing6InsertEP5QBody(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull %1) unnamed_addr #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca %class.QAABB, align 4
  %5 = alloca %"struct.QSpatialHashing::CellAABB", align 4
  %6 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::pair.46", align 4
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %4) #7
  call void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %4, ptr noundef nonnull align 8 dereferenceable(293) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %11 = call <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %4)
  %.sroa.04.0.vec.extract = extractelement <2 x float> %11, i64 0
  %12 = getelementptr inbounds i8, ptr %0, i64 76
  %13 = load float, ptr %12, align 4, !tbaa !9
  %14 = fmul float %.sroa.04.0.vec.extract, %13
  %15 = call noundef float @_ZSt5floorf(float noundef %14)
  %16 = fptosi float %15 to i32
  %17 = call <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %4)
  %.sroa.03.4.vec.extract = extractelement <2 x float> %17, i64 1
  %18 = load float, ptr %12, align 4, !tbaa !9
  %19 = fmul float %.sroa.03.4.vec.extract, %18
  %20 = call noundef float @_ZSt5floorf(float noundef %19)
  %21 = fptosi float %20 to i32
  %22 = call <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %4)
  %.sroa.02.0.vec.extract = extractelement <2 x float> %22, i64 0
  %23 = load float, ptr %12, align 4, !tbaa !9
  %24 = fmul float %.sroa.02.0.vec.extract, %23
  %25 = call noundef float @_ZSt5floorf(float noundef %24)
  %26 = fptosi float %25 to i32
  %27 = call <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %4)
  %.sroa.0.4.vec.extract = extractelement <2 x float> %27, i64 1
  %28 = load float, ptr %12, align 4, !tbaa !9
  %29 = fmul float %.sroa.0.4.vec.extract, %28
  %30 = call noundef float @_ZSt5floorf(float noundef %29)
  %31 = fptosi float %30 to i32
  call void @_ZN15QSpatialHashing8CellAABBC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16) %5, i32 noundef %16, i32 noundef %21, i32 noundef %26, i32 noundef %31)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %32 = getelementptr inbounds i8, ptr %0, i64 136
  %33 = call ptr @_ZNSt13unordered_mapIP5QBodyN15QSpatialHashing8CellAABBESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S3_EEE4findERS9_(ptr noundef nonnull align 8 dereferenceable(56) %32, ptr noundef nonnull align 8 dereferenceable(8) %3)
  store ptr %33, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %34 = call ptr @_ZNSt13unordered_mapIP5QBodyN15QSpatialHashing8CellAABBESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %32) #7
  store ptr %34, ptr %7, align 8
  %35 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKP5QBodyN15QSpatialHashing8CellAABBEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %35, label %36, label %42

36:                                               ; preds = %2
  %37 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKP5QBodyN15QSpatialHashing8CellAABBEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = call noundef zeroext i1 @_ZNK15QSpatialHashing8CellAABBeqERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(16) %5)
  br i1 %39, label %.critedge, label %40

40:                                               ; preds = %36
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN15QSpatialHashing19RemoveBodyFromCellsEP5QBodyRNS_8CellAABBE(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef %41, ptr noundef nonnull align 4 dereferenceable(16) %38)
  br label %42

42:                                               ; preds = %40, %2
  %43 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt13unordered_mapIP5QBodyN15QSpatialHashing8CellAABBESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S3_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(56) %32, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %43, ptr noundef nonnull align 4 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %44 = load i32, ptr %5, align 4, !tbaa !25
  %45 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %44, ptr %8, align 4, !tbaa !23
  %46 = load i32, ptr %45, align 4, !tbaa !27
  %.not9 = icmp sgt i32 %44, %46
  br i1 %.not9, label %._crit_edge12, label %.lr.ph11

.lr.ph11:                                         ; preds = %42
  %47 = getelementptr inbounds i8, ptr %5, i64 4
  %48 = getelementptr inbounds i8, ptr %5, i64 12
  %49 = getelementptr inbounds i8, ptr %0, i64 80
  %50 = load i32, ptr %47, align 4, !tbaa !28
  %51 = load i32, ptr %48, align 4, !tbaa !29
  %52 = icmp sgt i32 %50, %51
  br i1 %52, label %._crit_edge12, label %.lr.ph11.split

._crit_edge12:                                    ; preds = %._crit_edge, %.lr.ph11, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %.critedge

.lr.ph11.split:                                   ; preds = %.lr.ph11, %._crit_edge
  %53 = phi i32 [ %57, %._crit_edge ], [ %46, %.lr.ph11 ]
  %54 = phi i32 [ %60, %._crit_edge ], [ %44, %.lr.ph11 ]
  %55 = phi i32 [ %59, %._crit_edge ], [ %51, %.lr.ph11 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %56 = load i32, ptr %47, align 4, !tbaa !28
  store i32 %56, ptr %9, align 4, !tbaa !23
  %.not78 = icmp sgt i32 %56, %55
  br i1 %.not78, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr %8, align 4, !tbaa !23
  %.pre13 = load i32, ptr %45, align 4, !tbaa !27
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph11.split
  %57 = phi i32 [ %.pre13, %._crit_edge.loopexit ], [ %53, %.lr.ph11.split ]
  %58 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %54, %.lr.ph11.split ]
  %59 = phi i32 [ %64, %._crit_edge.loopexit ], [ %55, %.lr.ph11.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  %60 = add nsw i32 %58, 1
  store i32 %60, ptr %8, align 4, !tbaa !23
  %.not.not = icmp slt i32 %58, %57
  br i1 %.not.not, label %.lr.ph11.split, label %._crit_edge12, !llvm.loop !30

.lr.ph:                                           ; preds = %.lr.ph11.split, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapISt4pairIiiESt6vectorIP5QBodySaIS4_EEN15QSpatialHashing8PairHashESt8equal_toIS1_ESaIS0_IKS1_S6_EEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(56) %49, ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  %62 = load i32, ptr %9, align 4, !tbaa !23
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %9, align 4, !tbaa !23
  %64 = load i32, ptr %48, align 4, !tbaa !29
  %.not7.not = icmp slt i32 %62, %64
  br i1 %.not7.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !33

.critedge:                                        ; preds = %36, %._crit_edge12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %4) #7
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind noalias writable sret(%class.QAABB) align 4, ptr noundef nonnull align 8 dereferenceable(293)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5floorf(float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15QSpatialHashing8CellAABBC2Eiiii(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapIP5QBodyN15QSpatialHashing8CellAABBESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S3_EEE4findERS9_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKP5QBodyN15QSpatialHashing8CellAABBEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_mapIP5QBodyN15QSpatialHashing8CellAABBESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKP5QBodyN15QSpatialHashing8CellAABBEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK15QSpatialHashing8CellAABBeqERKS0_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15QSpatialHashing19RemoveBodyFromCellsEP5QBodyRNS_8CellAABBE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt13unordered_mapIP5QBodyN15QSpatialHashing8CellAABBESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S3_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; 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) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapISt4pairIiiESt6vectorIP5QBodySaIS4_EEN15QSpatialHashing8PairHashESt8equal_toIS1_ESaIS0_IKS1_S6_EEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="64" "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 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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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, !17, i64 76}
!10 = !{!"_ZTS15QSpatialHashing", !11, i64 0, !17, i64 72, !17, i64 76, !18, i64 80, !20, i64 136}
!11 = !{!"_ZTS11QBroadPhase", !12, i64 8, !6, i64 64}
!12 = !{!"_ZTSSt13unordered_setISt4pairIP5QBodyS2_ENS1_12BodyPairHashENS1_13BodyPairEqualESaIS3_EE", !13, i64 0}
!13 = !{!"_ZTSSt10_HashtableISt4pairIP5QBodyS2_ES3_SaIS3_ENSt8__detail9_IdentityENS1_13BodyPairEqualENS1_12BodyPairHashENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb1ELb1ELb1EEEE", !6, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !6, i64 48}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTSSt13unordered_mapISt4pairIiiESt6vectorIP5QBodySaIS4_EEN15QSpatialHashing8PairHashESt8equal_toIS1_ESaIS0_IKS1_S6_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_HashtableISt4pairIiiES0_IKS1_St6vectorIP5QBodySaIS5_EEESaIS8_ENSt8__detail10_Select1stESt8equal_toIS1_EN15QSpatialHashing8PairHashENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !6, i64 48}
!20 = !{!"_ZTSSt13unordered_mapIP5QBodyN15QSpatialHashing8CellAABBESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S3_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_HashtableIP5QBodySt4pairIKS1_N15QSpatialHashing8CellAABBEESaIS6_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !6, i64 48}
!22 = !{i64 0, i64 4, !23, i64 4, i64 4, !23, i64 8, i64 4, !23, i64 12, i64 4, !23}
!23 = !{!24, !24, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = !{!26, !24, i64 0}
!26 = !{!"_ZTSN15QSpatialHashing8CellAABBE", !24, i64 0, !24, i64 4, !24, i64 8, !24, i64 12}
!27 = !{!26, !24, i64 8}
!28 = !{!26, !24, i64 4}
!29 = !{!26, !24, i64 12}
!30 = distinct !{!30, !31, !32}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!"llvm.loop.unswitch.partial.disable"}
!33 = distinct !{!33, !31}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass