; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Collision/BroadPhase (BroadPhaseBruteForce)

; 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.std::shared_lock" = type <{ ptr, i8, [7 x i8] }>
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"struct.JPH::BodyPair" = type { %"class.JPH::BodyID", %"class.JPH::BodyID" }
%"class.JPH::BroadPhaseBruteForce" = type { %"class.JPH::BroadPhase", %"class.JPH::Array", %"class.JPH::SharedMutex" }
%"class.JPH::BroadPhase" = type { %"class.JPH::BroadPhaseQuery", ptr }
%"class.JPH::BroadPhaseQuery" = type { ptr }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::SharedMutex" = type { %"class.std::shared_mutex", %"class.std::thread::id" }
%"class.std::shared_mutex" = type { %"class.std::__shared_mutex_pthread" }
%"class.std::__shared_mutex_pthread" = type { %union.pthread_rwlock_t }
%union.pthread_rwlock_t = type { %struct.__pthread_rwlock_arch_t }
%struct.__pthread_rwlock_arch_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i8, [7 x i8], i64, i32 }
%"class.std::thread::id" = type { i64 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 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) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11shared_lockIN3JPH11SharedMutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK3JPH4Body14GetObjectLayerEv(ptr noundef nonnull align 16 dereferenceable(122)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH4Body19GetWorldSpaceBoundsEv(ptr noundef nonnull align 16 dereferenceable(122)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH5AABox8OverlapsERKS0_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH20BroadPhaseBruteForce18FindCollidingPairsEPNS_6BodyIDEifRKNS_29ObjectVsBroadPhaseLayerFilterERKNS_21ObjectLayerPairFilterERNS_18CollisionCollectorINS_8BodyPairENS_36CollisionCollectorTraitsCollideShapeEEE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1, i32 noundef %2, float noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(24) %6) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::shared_lock", align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.JPH::BodyID", align 4
  %22 = alloca ptr, align 8
  %23 = alloca i16, align 2
  %24 = alloca %"class.JPH::AABox", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca i64, align 8
  %27 = alloca %"class.JPH::BodyID", align 4
  %28 = alloca ptr, align 8
  %29 = alloca i16, align 2
  %30 = alloca ptr, align 8
  %31 = alloca %"struct.JPH::BodyPair", align 8
  %32 = alloca %"class.JPH::BodyID", align 4
  %33 = alloca %"class.JPH::BodyID", align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store float %3, ptr %11, align 4, !tbaa !11
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  %34 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %35 = getelementptr inbounds %"class.JPH::BroadPhaseBruteForce", ptr %34, i32 0, i32 2
  call void @_ZNSt11shared_lockIN3JPH11SharedMutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(9) %15, ptr noundef nonnull align 8 dereferenceable(64) %35)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %36 = getelementptr inbounds %"class.JPH::BroadPhaseBruteForce", ptr %34, i32 0, i32 1
  %37 = invoke noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
          to label %38 unwind label %44

38:                                               ; preds = %7
  store i64 %37, ptr %16, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %173, %38
  %40 = load i32, ptr %19, align 4, !tbaa !9
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %48, label %43

43:                                               ; preds = %39
  store i32 2, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %179

44:                                               ; preds = %7
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %17, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %18, align 4
  br label %180

48:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = load i32, ptr %19, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds %"class.JPH::BodyID", ptr %49, i64 %51
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %52, i64 4, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %53 = getelementptr inbounds %"class.JPH::BroadPhase", ptr %34, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !16
  %55 = invoke noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297) %54, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %56 unwind label %82

56:                                               ; preds = %48
  store ptr %55, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %23) #7
  %57 = load ptr, ptr %22, align 8, !tbaa !5
  %58 = invoke noundef zeroext i16 @_ZNK3JPH4Body14GetObjectLayerEv(ptr noundef nonnull align 16 dereferenceable(122) %57)
          to label %59 unwind label %86

59:                                               ; preds = %56
  store i16 %58, ptr %23, align 2, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #7
  %60 = load ptr, ptr %22, align 8, !tbaa !5
  %61 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH4Body19GetWorldSpaceBoundsEv(ptr noundef nonnull align 16 dereferenceable(122) %60)
          to label %62 unwind label %90

62:                                               ; preds = %59
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %61, i64 32, i1 false), !tbaa.struct !21
  %63 = load float, ptr %11, align 4, !tbaa !11
  %64 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %63)
          to label %65 unwind label %90

65:                                               ; preds = %62
  %66 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %67 = getelementptr inbounds %union.anon, ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %69 = extractvalue { double, double } %64, 0
  store double %69, ptr %68, align 16
  %70 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %71 = extractvalue { double, double } %64, 1
  store double %71, ptr %70, align 8
  %72 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %73 = load double, ptr %72, align 16
  %74 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %75 = load double, ptr %74, align 8
  invoke void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %24, double %73, double %75)
          to label %76 unwind label %90

76:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  store i64 0, ptr %26, align 8, !tbaa !13
  br label %77

77:                                               ; preds = %161, %76
  %78 = load i64, ptr %26, align 8, !tbaa !13
  %79 = load i64, ptr %16, align 8, !tbaa !13
  %80 = icmp ult i64 %78, %79
  br i1 %80, label %94, label %81

81:                                               ; preds = %77
  store i32 5, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %172

82:                                               ; preds = %48
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %17, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %18, align 4
  br label %178

86:                                               ; preds = %56
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %17, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %18, align 4
  br label %177

90:                                               ; preds = %65, %62, %59
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %17, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %18, align 4
  br label %176

94:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %95 = getelementptr inbounds %"class.JPH::BroadPhaseBruteForce", ptr %34, i32 0, i32 1
  %96 = load i64, ptr %26, align 8, !tbaa !13
  %97 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %96)
          to label %98 unwind label %108

98:                                               ; preds = %94
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %97, i64 4, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %99 = getelementptr inbounds %"class.JPH::BroadPhase", ptr %34, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8, !tbaa !16
  %101 = invoke noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297) %100, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %102 unwind label %112

102:                                              ; preds = %98
  store ptr %101, ptr %28, align 8, !tbaa !5
  %103 = load ptr, ptr %22, align 8, !tbaa !5
  %104 = load ptr, ptr %28, align 8, !tbaa !5
  %105 = invoke noundef zeroext i1 @_ZN3JPH4Body29sFindCollidingPairsCanCollideERKS0_S2_(ptr noundef nonnull align 16 dereferenceable(122) %103, ptr noundef nonnull align 16 dereferenceable(122) %104)
          to label %106 unwind label %112

106:                                              ; preds = %102
  br i1 %105, label %116, label %107

107:                                              ; preds = %106
  store i32 7, ptr %20, align 4
  br label %158

108:                                              ; preds = %94
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %17, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %18, align 4
  br label %171

112:                                              ; preds = %102, %98
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %17, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %18, align 4
  br label %170

116:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 2, ptr %29) #7
  %117 = load ptr, ptr %28, align 8, !tbaa !5
  %118 = invoke noundef zeroext i16 @_ZNK3JPH4Body14GetObjectLayerEv(ptr noundef nonnull align 16 dereferenceable(122) %117)
          to label %119 unwind label %129

119:                                              ; preds = %116
  store i16 %118, ptr %29, align 2, !tbaa !19
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = load i16, ptr %23, align 2, !tbaa !19
  %122 = load i16, ptr %29, align 2, !tbaa !19
  %123 = load ptr, ptr %120, align 8, !tbaa !23
  %124 = getelementptr inbounds ptr, ptr %123, i64 2
  %125 = load ptr, ptr %124, align 8
  %126 = invoke noundef zeroext i1 %125(ptr noundef nonnull align 8 dereferenceable(8) %120, i16 noundef zeroext %121, i16 noundef zeroext %122)
          to label %127 unwind label %129

127:                                              ; preds = %119
  br i1 %126, label %133, label %128

128:                                              ; preds = %127
  store i32 7, ptr %20, align 4
  br label %157

129:                                              ; preds = %119, %116
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %17, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %18, align 4
  br label %169

133:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %134 = load ptr, ptr %28, align 8, !tbaa !5
  %135 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH4Body19GetWorldSpaceBoundsEv(ptr noundef nonnull align 16 dereferenceable(122) %134)
          to label %136 unwind label %141

136:                                              ; preds = %133
  store ptr %135, ptr %30, align 8, !tbaa !5
  %137 = load ptr, ptr %30, align 8, !tbaa !5
  %138 = invoke noundef zeroext i1 @_ZNK3JPH5AABox8OverlapsERKS0_(ptr noundef nonnull align 16 dereferenceable(32) %24, ptr noundef nonnull align 16 dereferenceable(32) %137)
          to label %139 unwind label %141

139:                                              ; preds = %136
  br i1 %138, label %145, label %140

140:                                              ; preds = %139
  store i32 7, ptr %20, align 4
  br label %156

141:                                              ; preds = %136, %133
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %17, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %18, align 4
  br label %168

145:                                              ; preds = %139
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %21, i64 4, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %27, i64 4, i1 false), !tbaa.struct !15
  %147 = getelementptr inbounds %"class.JPH::BodyID", ptr %32, i32 0, i32 0
  %148 = load i32, ptr %147, align 4
  %149 = getelementptr inbounds %"class.JPH::BodyID", ptr %33, i32 0, i32 0
  %150 = load i32, ptr %149, align 4
  invoke void @_ZN3JPH8BodyPairC2ENS_6BodyIDES1_(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 %148, i32 %150)
          to label %151 unwind label %164

151:                                              ; preds = %145
  %152 = load ptr, ptr %146, align 8, !tbaa !23
  %153 = getelementptr inbounds ptr, ptr %152, i64 6
  %154 = load ptr, ptr %153, align 8
  invoke void %154(ptr noundef nonnull align 8 dereferenceable(24) %146, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %155 unwind label %164

155:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  store i32 0, ptr %20, align 4
  br label %156

156:                                              ; preds = %155, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %157

157:                                              ; preds = %156, %128
  call void @llvm.lifetime.end.p0(i64 2, ptr %29) #7
  br label %158

158:                                              ; preds = %157, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  %159 = load i32, ptr %20, align 4
  switch i32 %159, label %186 [
    i32 0, label %160
    i32 7, label %161
  ]

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160, %158
  %162 = load i64, ptr %26, align 8, !tbaa !13
  %163 = add i64 %162, 1
  store i64 %163, ptr %26, align 8, !tbaa !13
  br label %77, !llvm.loop !25

164:                                              ; preds = %151, %145
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %17, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %168

168:                                              ; preds = %164, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %169

169:                                              ; preds = %168, %129
  call void @llvm.lifetime.end.p0(i64 2, ptr %29) #7
  br label %170

170:                                              ; preds = %169, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %171

171:                                              ; preds = %170, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %176

172:                                              ; preds = %81
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %173

173:                                              ; preds = %172
  %174 = load i32, ptr %19, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %19, align 4, !tbaa !9
  br label %39, !llvm.loop !27

176:                                              ; preds = %171, %90
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  br label %177

177:                                              ; preds = %176, %86
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #7
  br label %178

178:                                              ; preds = %177, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %180

179:                                              ; preds = %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @_ZNSt11shared_lockIN3JPH11SharedMutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  ret void

180:                                              ; preds = %178, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @_ZNSt11shared_lockIN3JPH11SharedMutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  br label %181

181:                                              ; preds = %180
  %182 = load ptr, ptr %17, align 8
  %183 = load i32, ptr %18, align 4
  %184 = insertvalue { ptr, i32 } poison, ptr %182, 0
  %185 = insertvalue { ptr, i32 } %184, i32 %183, 1
  resume { ptr, i32 } %185

186:                                              ; preds = %158
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH4Body29sFindCollidingPairsCanCollideERKS0_S2_(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122)) #6 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { inlinehint 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{i64 0, i64 4, !9}
!16 = !{!17, !6, i64 8}
!17 = !{!"_ZTSN3JPH10BroadPhaseE", !18, i64 0, !6, i64 8}
!18 = !{!"_ZTSN3JPH15BroadPhaseQueryE"}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = !{i64 0, i64 16, !22, i64 16, i64 16, !22}
!22 = !{!7, !7, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; 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.std::shared_lock" = type <{ ptr, i8, [7 x i8] }>
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"struct.JPH::BodyPair" = type { %"class.JPH::BodyID", %"class.JPH::BodyID" }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 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) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11shared_lockIN3JPH11SharedMutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK3JPH4Body14GetObjectLayerEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH4Body19GetWorldSpaceBoundsEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH5AABox8OverlapsERKS0_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH20BroadPhaseBruteForce18FindCollidingPairsEPNS_6BodyIDEifRKNS_29ObjectVsBroadPhaseLayerFilterERKNS_21ObjectLayerPairFilterERNS_18CollisionCollectorINS_8BodyPairENS_36CollisionCollectorTraitsCollideShapeEEE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr nocapture noundef readonly %1, i32 noundef %2, float noundef %3, ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(24) %6) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::shared_lock", align 8
  %9 = alloca %"class.JPH::BodyID", align 4
  %10 = alloca %"class.JPH::AABox", align 16
  %11 = alloca %"class.JPH::BodyID", align 4
  %12 = alloca %"struct.JPH::BodyPair", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  call void @_ZNSt11shared_lockIN3JPH11SharedMutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(9) %8, ptr noundef nonnull align 8 dereferenceable(64) %13)
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = call noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %16 = icmp sgt i32 %2, 0
  br i1 %16, label %.lr.ph42, label %._crit_edge43

.lr.ph42:                                         ; preds = %7
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %.not = icmp eq i64 %15, 0
  %wide.trip.count68 = zext nneg i32 %2 to i64
  br i1 %.not, label %.lr.ph42.split, label %.lr.ph42.split.us

.lr.ph42.split.us:                                ; preds = %.lr.ph42, %._crit_edge.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge.us ], [ 0, %.lr.ph42 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %18 = getelementptr inbounds %"class.JPH::BodyID", ptr %1, i64 %indvars.iv
  %19 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %19, ptr %9, align 4, !tbaa !5
  %20 = load ptr, ptr %17, align 8, !tbaa !9
  %21 = invoke noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297) %20, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %22 unwind label %.split.us

22:                                               ; preds = %.lr.ph42.split.us
  %23 = call noundef zeroext i16 @_ZNK3JPH4Body14GetObjectLayerEv(ptr noundef nonnull align 16 dereferenceable(122) %21)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  %24 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH4Body19GetWorldSpaceBoundsEv(ptr noundef nonnull align 16 dereferenceable(122) %21)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %10, ptr noundef nonnull align 16 dereferenceable(32) %24, i64 32, i1 false), !tbaa.struct !13
  %25 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %3)
          to label %26 unwind label %.split45.us

26:                                               ; preds = %22
  %27 = extractvalue { double, double } %25, 0
  %28 = extractvalue { double, double } %25, 1
  invoke void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %10, double %27, double %28)
          to label %.preheader.us unwind label %.split45.us

.preheader.us:                                    ; preds = %26, %53
  %.03239.us = phi i64 [ %54, %53 ], [ 0, %26 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %29 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.03239.us)
          to label %30 unwind label %.split48.us

30:                                               ; preds = %.preheader.us
  %31 = load i32, ptr %29, align 4, !tbaa !5
  store i32 %31, ptr %11, align 4, !tbaa !5
  %32 = load ptr, ptr %17, align 8, !tbaa !9
  %33 = invoke noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297) %32, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %34 unwind label %.split51.us

34:                                               ; preds = %30
  %35 = invoke noundef zeroext i1 @_ZN3JPH4Body29sFindCollidingPairsCanCollideERKS0_S2_(ptr noundef nonnull align 16 dereferenceable(122) %21, ptr noundef nonnull align 16 dereferenceable(122) %33)
          to label %36 unwind label %.split51.us

36:                                               ; preds = %34
  br i1 %35, label %37, label %53

37:                                               ; preds = %36
  %38 = call noundef zeroext i16 @_ZNK3JPH4Body14GetObjectLayerEv(ptr noundef nonnull align 16 dereferenceable(122) %33)
  %39 = load ptr, ptr %5, align 8, !tbaa !15
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  %41 = load ptr, ptr %40, align 8
  %42 = invoke noundef zeroext i1 %41(ptr noundef nonnull align 8 dereferenceable(8) %5, i16 noundef zeroext %23, i16 noundef zeroext %38)
          to label %43 unwind label %.split54.us

43:                                               ; preds = %37
  br i1 %42, label %44, label %53

44:                                               ; preds = %43
  %45 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH4Body19GetWorldSpaceBoundsEv(ptr noundef nonnull align 16 dereferenceable(122) %33)
  %46 = invoke noundef zeroext i1 @_ZNK3JPH5AABox8OverlapsERKS0_(ptr noundef nonnull align 16 dereferenceable(32) %10, ptr noundef nonnull align 16 dereferenceable(32) %45)
          to label %47 unwind label %.split57.us

47:                                               ; preds = %44
  br i1 %46, label %48, label %53

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %.sroa.01.0.copyload.us = load i32, ptr %9, align 4, !tbaa !5
  %.sroa.0.0.copyload.us = load i32, ptr %11, align 4, !tbaa !5
  call void @_ZN3JPH8BodyPairC2ENS_6BodyIDES1_(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 %.sroa.01.0.copyload.us, i32 %.sroa.0.0.copyload.us)
  %49 = load ptr, ptr %6, align 8, !tbaa !15
  %50 = getelementptr inbounds i8, ptr %49, i64 48
  %51 = load ptr, ptr %50, align 8
  invoke void %51(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %52 unwind label %.split60.us

52:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %53

53:                                               ; preds = %52, %47, %43, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  %54 = add nuw i64 %.03239.us, 1
  %exitcond.not = icmp eq i64 %54, %15
  br i1 %exitcond.not, label %._crit_edge.us, label %.preheader.us, !llvm.loop !17

._crit_edge.us:                                   ; preds = %53
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond64.not = icmp eq i64 %indvars.iv.next, %wide.trip.count68
  br i1 %exitcond64.not, label %._crit_edge43, label %.lr.ph42.split.us, !llvm.loop !19

.split.us:                                        ; preds = %.lr.ph42.split.us
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %77

.split45.us:                                      ; preds = %26, %22
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %76

.split48.us:                                      ; preds = %.preheader.us
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %75

.split51.us:                                      ; preds = %34, %30
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %75

.split54.us:                                      ; preds = %37
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %75

.split57.us:                                      ; preds = %44
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %75

.split60.us:                                      ; preds = %48
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %75

._crit_edge43:                                    ; preds = %._crit_edge.us, %.preheader, %7
  call void @_ZNSt11shared_lockIN3JPH11SharedMutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  ret void

.lr.ph42.split:                                   ; preds = %.lr.ph42, %.preheader
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %.preheader ], [ 0, %.lr.ph42 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %62 = getelementptr inbounds %"class.JPH::BodyID", ptr %1, i64 %indvars.iv65
  %63 = load i32, ptr %62, align 4, !tbaa !5
  store i32 %63, ptr %9, align 4, !tbaa !5
  %64 = load ptr, ptr %17, align 8, !tbaa !9
  %65 = invoke noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297) %64, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %66 unwind label %.split

66:                                               ; preds = %.lr.ph42.split
  %67 = call noundef zeroext i16 @_ZNK3JPH4Body14GetObjectLayerEv(ptr noundef nonnull align 16 dereferenceable(122) %65)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  %68 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH4Body19GetWorldSpaceBoundsEv(ptr noundef nonnull align 16 dereferenceable(122) %65)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %10, ptr noundef nonnull align 16 dereferenceable(32) %68, i64 32, i1 false), !tbaa.struct !13
  %69 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %3)
          to label %70 unwind label %.split45

70:                                               ; preds = %66
  %71 = extractvalue { double, double } %69, 0
  %72 = extractvalue { double, double } %69, 1
  invoke void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %10, double %71, double %72)
          to label %.preheader unwind label %.split45

.preheader:                                       ; preds = %70
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %exitcond69.not = icmp eq i64 %indvars.iv.next66, %wide.trip.count68
  br i1 %exitcond69.not, label %._crit_edge43, label %.lr.ph42.split, !llvm.loop !19

.split:                                           ; preds = %.lr.ph42.split
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %77

.split45:                                         ; preds = %70, %66
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %76

75:                                               ; preds = %.split51.us, %.split57.us, %.split60.us, %.split54.us, %.split48.us
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %57, %.split48.us ], [ %58, %.split51.us ], [ %59, %.split54.us ], [ %61, %.split60.us ], [ %60, %.split57.us ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  br label %76

76:                                               ; preds = %.split45, %.split45.us, %75
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %75 ], [ %74, %.split45 ], [ %56, %.split45.us ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  br label %77

77:                                               ; preds = %.split, %.split.us, %76
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %76 ], [ %73, %.split ], [ %55, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @_ZNSt11shared_lockIN3JPH11SharedMutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH4Body29sFindCollidingPairsCanCollideERKS0_S2_(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #6 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { inlinehint 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"_ZTSN3JPH10BroadPhaseE", !11, i64 0, !12, i64 8}
!11 = !{!"_ZTSN3JPH15BroadPhaseQueryE"}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{i64 0, i64 16, !14, i64 16, i64 16, !14}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass