; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/General (HighSpeedTest)

; 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.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.5", %"class.JPH::RefConst.6" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst", i32, i32 }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::RefConst.6" = type { ptr }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = 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 }

; 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: mustprogress uwtable
define dso_local void @_ZN13HighSpeedTest18CreateDominoBlocksEN3JPH4Vec3Eiff(ptr noundef nonnull align 8 dereferenceable(112) %0, double %1, double %2, i32 noundef %3, float noundef %4, float noundef %5) #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca %"class.JPH::BodyCreationSettings", align 16
  %13 = alloca %"class.JPH::Ref", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca i32, align 4
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::BodyID", align 4
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::BodyID", align 4
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Quat", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::BodyID", align 4
  %29 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  store double %1, ptr %29, align 16
  %30 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  store double %2, ptr %30, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store float %4, ptr %10, align 4, !tbaa !11
  store float %5, ptr %11, align 4, !tbaa !11
  %31 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 256, ptr %12) #10
  call void @_ZN3JPH20BodyCreationSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(256) %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %32 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %33 unwind label %54

33:                                               ; preds = %6
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef 0x3FECCCCCC0000000, float noundef 1.000000e+00, float noundef 0x3FB99999A0000000)
          to label %34 unwind label %58

34:                                               ; preds = %33
  %35 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %36 = load double, ptr %35, align 16
  %37 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %38 = load double, ptr %37, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %32, double %36, double %38, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %39 unwind label %58

39:                                               ; preds = %34
  invoke void @_ZN3JPH3RefINS_8BoxShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %32)
          to label %40 unwind label %54

40:                                               ; preds = %39
  %41 = invoke noundef ptr @_ZNK3JPH3RefINS_8BoxShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %42 unwind label %62

42:                                               ; preds = %40
  %43 = load float, ptr %10, align 4, !tbaa !11
  invoke void @_ZN3JPH11ConvexShape10SetDensityEf(ptr noundef nonnull align 8 dereferenceable(44) %41, float noundef %43)
          to label %44 unwind label %62

44:                                               ; preds = %42
  %45 = invoke noundef ptr @_ZNK3JPH3RefINS_8BoxShapeEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %46 unwind label %62

46:                                               ; preds = %44
  invoke void @_ZN3JPH20BodyCreationSettings8SetShapeEPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(256) %12, ptr noundef %45)
          to label %47 unwind label %62

47:                                               ; preds = %46
  %48 = getelementptr inbounds %"class.JPH::BodyCreationSettings", ptr %12, i32 0, i32 5
  store i16 1, ptr %48, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #10
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %115, %47
  %50 = load i32, ptr %17, align 4, !tbaa !9
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %66, label %53

53:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  br label %131

54:                                               ; preds = %39, %6
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %14, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %15, align 4
  br label %184

58:                                               ; preds = %34, %33
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %14, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %15, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %32) #10
  br label %184

62:                                               ; preds = %161, %46, %44, %42, %40
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %14, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %15, align 4
  br label %183

66:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #10
  %67 = load i32, ptr %17, align 4, !tbaa !9
  %68 = sitofp i32 %67 to float
  %69 = fmul float 2.000000e+00, %68
  %70 = load float, ptr %11, align 4, !tbaa !11
  %71 = fsub float 0xBFF19999A0000000, %70
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef %69, float noundef 1.000000e+00, float noundef %71)
          to label %72 unwind label %118

72:                                               ; preds = %66
  %73 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %74 = load double, ptr %73, align 16
  %75 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %76 = load double, ptr %75, align 8
  %77 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %74, double %76)
          to label %78 unwind label %118

78:                                               ; preds = %72
  %79 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %80 = getelementptr inbounds %union.anon, ptr %79, i32 0, i32 0
  %81 = getelementptr inbounds { double, double }, ptr %80, i32 0, i32 0
  %82 = extractvalue { double, double } %77, 0
  store double %82, ptr %81, align 16
  %83 = getelementptr inbounds { double, double }, ptr %80, i32 0, i32 1
  %84 = extractvalue { double, double } %77, 1
  store double %84, ptr %83, align 8
  %85 = getelementptr inbounds %"class.JPH::BodyCreationSettings", ptr %12, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %85, ptr align 16 %18, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #10
  %86 = getelementptr inbounds %class.Test, ptr %31, i32 0, i32 3
  %87 = load ptr, ptr %86, align 8, !tbaa !33
  %88 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 16 dereferenceable(256) %12, i32 noundef 1)
          to label %89 unwind label %122

89:                                               ; preds = %78
  %90 = getelementptr inbounds %"class.JPH::BodyID", ptr %20, i32 0, i32 0
  store i32 %88, ptr %90, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #10
  %91 = load i32, ptr %17, align 4, !tbaa !9
  %92 = sitofp i32 %91 to float
  %93 = fmul float 2.000000e+00, %92
  %94 = load float, ptr %11, align 4, !tbaa !11
  %95 = fadd float 0x3FF19999A0000000, %94
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef %93, float noundef 1.000000e+00, float noundef %95)
          to label %96 unwind label %126

96:                                               ; preds = %89
  %97 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %98 = load double, ptr %97, align 16
  %99 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %100 = load double, ptr %99, align 8
  %101 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %98, double %100)
          to label %102 unwind label %126

102:                                              ; preds = %96
  %103 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %104 = getelementptr inbounds %union.anon, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds { double, double }, ptr %104, i32 0, i32 0
  %106 = extractvalue { double, double } %101, 0
  store double %106, ptr %105, align 16
  %107 = getelementptr inbounds { double, double }, ptr %104, i32 0, i32 1
  %108 = extractvalue { double, double } %101, 1
  store double %108, ptr %107, align 8
  %109 = getelementptr inbounds %"class.JPH::BodyCreationSettings", ptr %12, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %109, ptr align 16 %21, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  %110 = getelementptr inbounds %class.Test, ptr %31, i32 0, i32 3
  %111 = load ptr, ptr %110, align 8, !tbaa !33
  %112 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %111, ptr noundef nonnull align 16 dereferenceable(256) %12, i32 noundef 1)
          to label %113 unwind label %122

113:                                              ; preds = %102
  %114 = getelementptr inbounds %"class.JPH::BodyID", ptr %23, i32 0, i32 0
  store i32 %112, ptr %114, align 4
  br label %115

115:                                              ; preds = %113
  %116 = load i32, ptr %17, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %17, align 4, !tbaa !9
  br label %49, !llvm.loop !39

118:                                              ; preds = %72, %66
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %14, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #10
  br label %130

122:                                              ; preds = %102, %78
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %14, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %15, align 4
  br label %130

126:                                              ; preds = %96, %89
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %14, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  br label %130

130:                                              ; preds = %126, %122, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  br label %183

131:                                              ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #10
  %132 = load float, ptr %11, align 4, !tbaa !11
  %133 = fsub float 0xBFF19999A0000000, %132
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %25, float noundef %133, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %134 unwind label %175

134:                                              ; preds = %131
  %135 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %136 = load double, ptr %135, align 16
  %137 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %138 = load double, ptr %137, align 8
  %139 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %136, double %138)
          to label %140 unwind label %175

140:                                              ; preds = %134
  %141 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %142 = getelementptr inbounds %union.anon, ptr %141, i32 0, i32 0
  %143 = getelementptr inbounds { double, double }, ptr %142, i32 0, i32 0
  %144 = extractvalue { double, double } %139, 0
  store double %144, ptr %143, align 16
  %145 = getelementptr inbounds { double, double }, ptr %142, i32 0, i32 1
  %146 = extractvalue { double, double } %139, 1
  store double %146, ptr %145, align 8
  %147 = getelementptr inbounds %"class.JPH::BodyCreationSettings", ptr %12, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %147, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #10
  %148 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %149 unwind label %179

149:                                              ; preds = %140
  %150 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %151 = getelementptr inbounds %union.anon, ptr %150, i32 0, i32 0
  %152 = getelementptr inbounds { double, double }, ptr %151, i32 0, i32 0
  %153 = extractvalue { double, double } %148, 0
  store double %153, ptr %152, align 16
  %154 = getelementptr inbounds { double, double }, ptr %151, i32 0, i32 1
  %155 = extractvalue { double, double } %148, 1
  store double %155, ptr %154, align 8
  %156 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %157 = load double, ptr %156, align 16
  %158 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %159 = load double, ptr %158, align 8
  %160 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %157, double %159, float noundef 0x3FF921FB60000000)
          to label %161 unwind label %179

161:                                              ; preds = %149
  %162 = getelementptr inbounds %"class.JPH::Quat", ptr %26, i32 0, i32 0
  %163 = getelementptr inbounds %"class.JPH::Vec4", ptr %162, i32 0, i32 0
  %164 = getelementptr inbounds %union.anon.4, ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds { double, double }, ptr %164, i32 0, i32 0
  %166 = extractvalue { double, double } %160, 0
  store double %166, ptr %165, align 16
  %167 = getelementptr inbounds { double, double }, ptr %164, i32 0, i32 1
  %168 = extractvalue { double, double } %160, 1
  store double %168, ptr %167, align 8
  %169 = getelementptr inbounds %"class.JPH::BodyCreationSettings", ptr %12, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %169, ptr align 16 %26, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  %170 = getelementptr inbounds %class.Test, ptr %31, i32 0, i32 3
  %171 = load ptr, ptr %170, align 8, !tbaa !33
  %172 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %171, ptr noundef nonnull align 16 dereferenceable(256) %12, i32 noundef 1)
          to label %173 unwind label %62

173:                                              ; preds = %161
  %174 = getelementptr inbounds %"class.JPH::BodyID", ptr %28, i32 0, i32 0
  store i32 %172, ptr %174, align 4
  call void @_ZN3JPH3RefINS_8BoxShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %12) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %12) #10
  ret void

175:                                              ; preds = %134, %131
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %14, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #10
  br label %183

179:                                              ; preds = %149, %140
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %14, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  br label %183

183:                                              ; preds = %179, %175, %130, %62
  call void @_ZN3JPH3RefINS_8BoxShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  br label %184

184:                                              ; preds = %183, %58, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %12) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %12) #10
  br label %185

185:                                              ; preds = %184
  %186 = load ptr, ptr %14, align 8
  %187 = load i32, ptr %15, align 4
  %188 = insertvalue { ptr, i32 } poison, ptr %186, 0
  %189 = insertvalue { ptr, i32 } %188, i32 %187, 1
  resume { ptr, i32 } %189
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(256)) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef) #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80), double, double, float noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH8BoxShapedlEPv(ptr noundef) #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH11ConvexShape10SetDensityEf(ptr noundef nonnull align 8 dereferenceable(44), float noundef) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettings8SetShapeEPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef) #1 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #3 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) #8

declare i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256), i32 noundef) #9

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisYEv() #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH3RefINS_8BoxShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256)) unnamed_addr #6 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { alwaysinline 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 #3 = { 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 #4 = { alwaysinline 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 = { 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 #6 = { 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 #7 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { "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 #10 = { 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, !19, i64 72}
!14 = !{!"_ZTSN3JPH20BodyCreationSettingsE", !15, i64 0, !16, i64 16, !15, i64 32, !15, i64 48, !18, i64 64, !19, i64 72, !20, i64 80, !22, i64 96, !23, i64 97, !24, i64 98, !24, i64 99, !24, i64 100, !24, i64 101, !24, i64 102, !25, i64 103, !24, i64 104, !24, i64 105, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !10, i64 136, !10, i64 140, !26, i64 144, !12, i64 148, !27, i64 160, !29, i64 240, !30, i64 248}
!15 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!16 = !{!"_ZTSN3JPH4QuatE", !17, i64 0}
!17 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!"_ZTSN3JPH14CollisionGroupE", !21, i64 0, !10, i64 8, !10, i64 12}
!21 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !6, i64 0}
!22 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!23 = !{!"_ZTSN3JPH12EAllowedDOFsE", !7, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"_ZTSN3JPH14EMotionQualityE", !7, i64 0}
!26 = !{!"_ZTSN3JPH23EOverrideMassPropertiesE", !7, i64 0}
!27 = !{!"_ZTSN3JPH14MassPropertiesE", !12, i64 0, !28, i64 16}
!28 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!29 = !{!"_ZTSN3JPH8RefConstINS_13ShapeSettingsEEE", !6, i64 0}
!30 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !6, i64 0}
!31 = !{i64 0, i64 16, !32}
!32 = !{!7, !7, i64 0}
!33 = !{!34, !6, i64 24}
!34 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !24, i64 48, !35, i64 56}
!35 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !36, i64 0}
!36 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !18, i64 8, !37, i64 16, !18, i64 24, !38, i64 32, !6, i64 48}
!37 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!38 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !12, i64 0, !18, i64 8}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}


; 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.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.5", %"class.JPH::RefConst.6" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst", i32, i32 }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::RefConst.6" = type { ptr }
%"class.JPH::Ref" = type { ptr }

; 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: mustprogress uwtable
define dso_local void @_ZN13HighSpeedTest18CreateDominoBlocksEN3JPH4Vec3Eiff(ptr nocapture noundef nonnull readonly align 8 dereferenceable(112) %0, double %1, double %2, i32 noundef %3, float noundef %4, float noundef %5) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::BodyCreationSettings", align 16
  %9 = alloca %"class.JPH::Ref", align 8
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  store double %1, ptr %7, align 16
  %14 = getelementptr inbounds i8, ptr %7, i64 8
  store double %2, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %8) #9
  call void @_ZN3JPH20BodyCreationSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(256) %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %15 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %16 unwind label %33

16:                                               ; preds = %6
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef 0x3FECCCCCC0000000, float noundef 1.000000e+00, float noundef 0x3FB99999A0000000)
          to label %17 unwind label %35

17:                                               ; preds = %16
  %18 = load double, ptr %10, align 16
  %19 = getelementptr inbounds i8, ptr %10, i64 8
  %20 = load double, ptr %19, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %15, double %18, double %20, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %21 unwind label %35

21:                                               ; preds = %17
  invoke void @_ZN3JPH3RefINS_8BoxShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull %15)
          to label %22 unwind label %33

22:                                               ; preds = %21
  %23 = call noundef ptr @_ZNK3JPH3RefINS_8BoxShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @_ZN3JPH11ConvexShape10SetDensityEf(ptr noundef nonnull align 8 dereferenceable(44) %23, float noundef %4)
  %24 = call noundef ptr @_ZNK3JPH3RefINS_8BoxShapeEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
  invoke void @_ZN3JPH20BodyCreationSettings8SetShapeEPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(256) %8, ptr noundef %24)
          to label %25 unwind label %37

25:                                               ; preds = %22
  %26 = getelementptr inbounds i8, ptr %8, i64 72
  store i16 1, ptr %26, align 8, !tbaa !5
  %27 = icmp sgt i32 %3, 0
  %28 = fsub float 0xBFF19999A0000000, %5
  br i1 %27, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %25
  %29 = getelementptr inbounds i8, ptr %11, i64 8
  %.sroa.510.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  %31 = fadd float %5, 0x3FF19999A0000000
  %32 = getelementptr inbounds i8, ptr %12, i64 8
  br label %39

._crit_edge:                                      ; preds = %61, %25
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef %28, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %69 unwind label %90

33:                                               ; preds = %21, %6
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %95

35:                                               ; preds = %17, %16
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %15) #9
  br label %95

37:                                               ; preds = %82, %22
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %94

39:                                               ; preds = %.lr.ph, %61
  %.02428 = phi i32 [ 0, %.lr.ph ], [ %62, %61 ]
  %40 = uitofp nneg i32 %.02428 to float
  %41 = fmul float %40, 2.000000e+00
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef %41, float noundef 1.000000e+00, float noundef %28)
          to label %42 unwind label %63

42:                                               ; preds = %39
  %43 = load double, ptr %11, align 16
  %44 = load double, ptr %29, align 8
  %45 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %43, double %44)
          to label %46 unwind label %63

46:                                               ; preds = %42
  %47 = extractvalue { double, double } %45, 0
  %48 = extractvalue { double, double } %45, 1
  store double %47, ptr %8, align 16
  store double %48, ptr %.sroa.510.0..sroa_idx, align 8, !tbaa !28
  %49 = load ptr, ptr %30, align 8, !tbaa !29
  %50 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 16 dereferenceable(256) %8, i32 noundef 1)
          to label %51 unwind label %65

51:                                               ; preds = %46
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef %41, float noundef 1.000000e+00, float noundef %31)
          to label %52 unwind label %67

52:                                               ; preds = %51
  %53 = load double, ptr %12, align 16
  %54 = load double, ptr %32, align 8
  %55 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %53, double %54)
          to label %56 unwind label %67

56:                                               ; preds = %52
  %57 = extractvalue { double, double } %55, 0
  %58 = extractvalue { double, double } %55, 1
  store double %57, ptr %8, align 16
  store double %58, ptr %.sroa.510.0..sroa_idx, align 8, !tbaa !28
  %59 = load ptr, ptr %30, align 8, !tbaa !29
  %60 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 16 dereferenceable(256) %8, i32 noundef 1)
          to label %61 unwind label %65

61:                                               ; preds = %56
  %62 = add nuw nsw i32 %.02428, 1
  %exitcond.not = icmp eq i32 %62, %3
  br i1 %exitcond.not, label %._crit_edge, label %39, !llvm.loop !35

63:                                               ; preds = %42, %39
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %94

65:                                               ; preds = %56, %46
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %94

67:                                               ; preds = %52, %51
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %94

69:                                               ; preds = %._crit_edge
  %70 = load double, ptr %13, align 16
  %71 = getelementptr inbounds i8, ptr %13, i64 8
  %72 = load double, ptr %71, align 8
  %73 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %70, double %72)
          to label %74 unwind label %90

74:                                               ; preds = %69
  %75 = extractvalue { double, double } %73, 0
  %76 = extractvalue { double, double } %73, 1
  store double %75, ptr %8, align 16
  %.sroa.54.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store double %76, ptr %.sroa.54.0..sroa_idx, align 8, !tbaa !28
  %77 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %78 unwind label %92

78:                                               ; preds = %74
  %79 = extractvalue { double, double } %77, 0
  %80 = extractvalue { double, double } %77, 1
  %81 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %79, double %80, float noundef 0x3FF921FB60000000)
          to label %82 unwind label %92

82:                                               ; preds = %78
  %83 = extractvalue { double, double } %81, 0
  %84 = extractvalue { double, double } %81, 1
  %85 = getelementptr inbounds i8, ptr %8, i64 16
  store double %83, ptr %85, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 24
  store double %84, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !28
  %86 = getelementptr inbounds i8, ptr %0, i64 24
  %87 = load ptr, ptr %86, align 8, !tbaa !29
  %88 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 16 dereferenceable(256) %8, i32 noundef 1)
          to label %89 unwind label %37

89:                                               ; preds = %82
  call void @_ZN3JPH3RefINS_8BoxShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %8) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #9
  ret void

90:                                               ; preds = %69, %._crit_edge
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %94

92:                                               ; preds = %78, %74
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %94

94:                                               ; preds = %63, %65, %67, %92, %90, %37
  %.pn.pn = phi { ptr, i32 } [ %38, %37 ], [ %93, %92 ], [ %91, %90 ], [ %66, %65 ], [ %68, %67 ], [ %64, %63 ]
  call void @_ZN3JPH3RefINS_8BoxShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  br label %95

95:                                               ; preds = %94, %35, %33
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %94 ], [ %34, %33 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %8) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #9
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(256)) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80), double, double, float noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH8BoxShapedlEPv(ptr noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH11ConvexShape10SetDensityEf(ptr noundef nonnull align 8 dereferenceable(44), float noundef) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettings8SetShapeEPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #3 align 2

declare i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256), i32 noundef) local_unnamed_addr #8

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH3RefINS_8BoxShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256)) unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { alwaysinline 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 #3 = { 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 #4 = { alwaysinline 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 = { 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 #6 = { 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 #7 = { 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 #8 = { "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 #9 = { 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, !13, i64 72}
!6 = !{!"_ZTSN3JPH20BodyCreationSettingsE", !7, i64 0, !10, i64 16, !7, i64 32, !7, i64 48, !12, i64 64, !13, i64 72, !14, i64 80, !18, i64 96, !19, i64 97, !20, i64 98, !20, i64 99, !20, i64 100, !20, i64 101, !20, i64 102, !21, i64 103, !20, i64 104, !20, i64 105, !22, i64 108, !22, i64 112, !22, i64 116, !22, i64 120, !22, i64 124, !22, i64 128, !22, i64 132, !17, i64 136, !17, i64 140, !23, i64 144, !22, i64 148, !24, i64 160, !26, i64 240, !27, i64 248}
!7 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3JPH4QuatE", !11, i64 0}
!11 = !{!"_ZTSN3JPH4Vec4E", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"short", !8, i64 0}
!14 = !{!"_ZTSN3JPH14CollisionGroupE", !15, i64 0, !17, i64 8, !17, i64 12}
!15 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !16, i64 0}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"int", !8, i64 0}
!18 = !{!"_ZTSN3JPH11EMotionTypeE", !8, i64 0}
!19 = !{!"_ZTSN3JPH12EAllowedDOFsE", !8, i64 0}
!20 = !{!"bool", !8, i64 0}
!21 = !{!"_ZTSN3JPH14EMotionQualityE", !8, i64 0}
!22 = !{!"float", !8, i64 0}
!23 = !{!"_ZTSN3JPH23EOverrideMassPropertiesE", !8, i64 0}
!24 = !{!"_ZTSN3JPH14MassPropertiesE", !22, i64 0, !25, i64 16}
!25 = !{!"_ZTSN3JPH5Mat44E", !8, i64 0}
!26 = !{!"_ZTSN3JPH8RefConstINS_13ShapeSettingsEEE", !16, i64 0}
!27 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !16, i64 0}
!28 = !{!8, !8, i64 0}
!29 = !{!30, !16, i64 24}
!30 = !{!"_ZTS4Test", !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !20, i64 48, !31, i64 56}
!31 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !32, i64 0}
!32 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !16, i64 0, !12, i64 8, !33, i64 16, !12, i64 24, !34, i64 32, !16, i64 48}
!33 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !16, i64 0}
!34 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !22, i64 0, !12, i64 8}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}


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