; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Constraints/PathConstraintTest.ll (ZN18PathConstraintTest10InitializeEv)

; 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::Ref.7" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Array.10" = type { i64, i64, ptr }
%"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.13", %"class.JPH::RefConst" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.5 }
%union.anon.5 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.6", i32, i32 }
%"class.JPH::RefConst.6" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.13" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::PathConstraintSettings" = type <{ %"class.JPH::TwoBodyConstraintSettings", %"class.JPH::RefConst.17", %"class.JPH::Vec3", %"class.JPH::Quat", float, float, %"class.JPH::MotorSettings", i32, [8 x i8] }>
%"class.JPH::TwoBodyConstraintSettings" = type { %"class.JPH::ConstraintSettings" }
%"class.JPH::ConstraintSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.16", i8, i32, i32, i32, float, i64 }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.16" = type { %"struct.std::atomic.8" }
%"struct.std::atomic.8" = type { %"struct.std::__atomic_base.9" }
%"struct.std::__atomic_base.9" = type { i32 }
%"class.JPH::RefConst.17" = type { ptr }
%"class.JPH::MotorSettings" = type { %"class.JPH::SpringSettings", float, float, float, float }
%"class.JPH::SpringSettings" = type { i8, %union.anon.18, float }
%union.anon.18 = type { float }
%class.PathConstraintTest = type { %class.Test, [2 x %"class.JPH::Ref"], [2 x %"class.JPH::Ref.4"] }
%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 }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::Ref.4" = type { ptr }

@_ZN18PathConstraintTest16sOrientationTypeE = external dso_local global i32, align 4

; 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 @_ZN18PathConstraintTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(144) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.JPH::Ref.7", align 8
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.JPH::Array.10", align 8
  %8 = alloca float, align 4
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca i32, align 4
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca ptr, align 8
  %18 = alloca %"class.JPH::BodyCreationSettings", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Quat", align 16
  %22 = alloca ptr, align 8
  %23 = alloca %"class.JPH::BodyCreationSettings", align 16
  %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::PathConstraintSettings", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Ref.7", align 8
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Array.10", align 8
  %32 = alloca i32, align 4
  %33 = alloca float, align 4
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca i32, align 4
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca ptr, align 8
  %43 = alloca %"class.JPH::BodyCreationSettings", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::Vec3", align 16
  %46 = alloca %"class.JPH::Quat", align 16
  %47 = alloca ptr, align 8
  %48 = alloca %"class.JPH::BodyCreationSettings", align 16
  %49 = alloca %"class.JPH::Vec3", align 16
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca %"class.JPH::Quat", align 16
  %52 = alloca %"class.JPH::PathConstraintSettings", align 16
  %53 = alloca %"class.JPH::Vec3", align 16
  %54 = alloca %"class.JPH::Quat", align 16
  %55 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %56 = load ptr, ptr %2, align 8
  %57 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %56, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  %58 = call noundef ptr @_ZN3JPH25PathConstraintPathHermitenwEm(i64 noundef 40)
  call void @_ZN3JPH25PathConstraintPathHermiteC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %58) #10
  call void @_ZN3JPH3RefINS_25PathConstraintPathHermiteEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %58)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %59 unwind label %64

59:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #10
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  store float 0xBFD41B2F80000000, ptr %8, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %81, %59
  %61 = load float, ptr %8, align 4, !tbaa !9
  %62 = fcmp olt float %61, 0x402921FB60000000
  br i1 %62, label %68, label %63

63:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %88

64:                                               ; preds = %1
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %5, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %6, align 4
  br label %335

68:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #10
  %69 = load float, ptr %8, align 4, !tbaa !9
  %70 = invoke noundef float @_ZN3JPH3CosEf(float noundef %69)
          to label %71 unwind label %84

71:                                               ; preds = %68
  %72 = fmul float 5.000000e+00, %70
  %73 = load float, ptr %8, align 4, !tbaa !9
  %74 = fneg float %73
  %75 = load float, ptr %8, align 4, !tbaa !9
  %76 = invoke noundef float @_ZN3JPH3SinEf(float noundef %75)
          to label %77 unwind label %84

77:                                               ; preds = %71
  %78 = fmul float 5.000000e+00, %76
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef %72, float noundef %74, float noundef %78)
          to label %79 unwind label %84

79:                                               ; preds = %77
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(16) %9)
          to label %80 unwind label %84

80:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #10
  br label %81

81:                                               ; preds = %80
  %82 = load float, ptr %8, align 4, !tbaa !9
  %83 = fadd float %82, 0x3FD41B2F80000000
  store float %83, ptr %8, align 4, !tbaa !9
  br label %60, !llvm.loop !11

84:                                               ; preds = %79, %77, %71, %68
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %5, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %334

88:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  store i32 1, ptr %10, align 4, !tbaa !13
  br label %89

89:                                               ; preds = %155, %88
  %90 = load i32, ptr %10, align 4, !tbaa !13
  %91 = invoke noundef i64 @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %92 unwind label %97

92:                                               ; preds = %89
  %93 = sub i64 %91, 1
  %94 = trunc i64 %93 to i32
  %95 = icmp slt i32 %90, %94
  br i1 %95, label %101, label %96

96:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  br label %163

97:                                               ; preds = %89
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %5, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %6, align 4
  br label %162

101:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #10
  %102 = load i32, ptr %10, align 4, !tbaa !13
  %103 = add nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %104)
          to label %106 unwind label %158

106:                                              ; preds = %101
  %107 = load i32, ptr %10, align 4, !tbaa !13
  %108 = sub nsw i32 %107, 1
  %109 = sext i32 %108 to i64
  %110 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %109)
          to label %111 unwind label %158

111:                                              ; preds = %106
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 %110, i64 16, i1 false), !tbaa.struct !15
  %112 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %113 = load double, ptr %112, align 16
  %114 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %115 = load double, ptr %114, align 8
  %116 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %105, double %113, double %115)
          to label %117 unwind label %158

117:                                              ; preds = %111
  %118 = getelementptr inbounds %"class.JPH::Vec3", ptr %12, i32 0, i32 0
  %119 = getelementptr inbounds %union.anon, ptr %118, i32 0, i32 0
  %120 = getelementptr inbounds { double, double }, ptr %119, i32 0, i32 0
  %121 = extractvalue { double, double } %116, 0
  store double %121, ptr %120, align 16
  %122 = getelementptr inbounds { double, double }, ptr %119, i32 0, i32 1
  %123 = extractvalue { double, double } %116, 1
  store double %123, ptr %122, align 8
  %124 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %125 = load double, ptr %124, align 16
  %126 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %127 = load double, ptr %126, align 8
  %128 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 5.000000e-01, double %125, double %127)
          to label %129 unwind label %158

129:                                              ; preds = %117
  %130 = getelementptr inbounds %"class.JPH::Vec3", ptr %11, i32 0, i32 0
  %131 = getelementptr inbounds %union.anon, ptr %130, i32 0, i32 0
  %132 = getelementptr inbounds { double, double }, ptr %131, i32 0, i32 0
  %133 = extractvalue { double, double } %128, 0
  store double %133, ptr %132, align 16
  %134 = getelementptr inbounds { double, double }, ptr %131, i32 0, i32 1
  %135 = extractvalue { double, double } %128, 1
  store double %135, ptr %134, align 8
  %136 = invoke noundef ptr @_ZNK3JPH3RefINS_25PathConstraintPathHermiteEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %137 unwind label %158

137:                                              ; preds = %129
  %138 = load i32, ptr %10, align 4, !tbaa !13
  %139 = sext i32 %138 to i64
  %140 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %139)
          to label %141 unwind label %158

141:                                              ; preds = %137
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 %140, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %4, i64 16, i1 false), !tbaa.struct !15
  %142 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %143 = load double, ptr %142, align 16
  %144 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %145 = load double, ptr %144, align 8
  %146 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %147 = load double, ptr %146, align 16
  %148 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %149 = load double, ptr %148, align 8
  %150 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %151 = load double, ptr %150, align 16
  %152 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %153 = load double, ptr %152, align 8
  invoke void @_ZN3JPH25PathConstraintPathHermite8AddPointENS_4Vec3ES1_S1_(ptr noundef nonnull align 8 dereferenceable(40) %136, double %143, double %145, double %147, double %149, double %151, double %153)
          to label %154 unwind label %158

154:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #10
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %10, align 4, !tbaa !13
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %10, align 4, !tbaa !13
  br label %89, !llvm.loop !17

158:                                              ; preds = %141, %137, %129, %117, %111, %106, %101
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %5, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #10
  br label %162

162:                                              ; preds = %158, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  br label %334

163:                                              ; preds = %96
  %164 = invoke noundef ptr @_ZNK3JPH3RefINS_25PathConstraintPathHermiteEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %165 unwind label %280

165:                                              ; preds = %163
  %166 = getelementptr inbounds %class.PathConstraintTest, ptr %56, i32 0, i32 1
  %167 = getelementptr inbounds [2 x %"class.JPH::Ref"], ptr %166, i64 0, i64 0
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_18PathConstraintPathEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %167, ptr noundef %164)
          to label %169 unwind label %280

169:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %170 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 3
  %171 = load ptr, ptr %170, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 256, ptr %18) #10
  %172 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %173 unwind label %284

173:                                              ; preds = %169
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef 5.000000e+00, float noundef 5.000000e-01, float noundef 5.000000e+00)
          to label %174 unwind label %288

174:                                              ; preds = %173
  %175 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %176 = load double, ptr %175, align 16
  %177 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %178 = load double, ptr %177, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %172, double %176, double %178, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %179 unwind label %288

179:                                              ; preds = %174
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %20, float noundef -1.000000e+01, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %180 unwind label %284

180:                                              ; preds = %179
  %181 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %182 unwind label %284

182:                                              ; preds = %180
  %183 = getelementptr inbounds %"class.JPH::Quat", ptr %21, i32 0, i32 0
  %184 = getelementptr inbounds %"class.JPH::Vec4", ptr %183, i32 0, i32 0
  %185 = getelementptr inbounds %union.anon.5, ptr %184, i32 0, i32 0
  %186 = getelementptr inbounds { double, double }, ptr %185, i32 0, i32 0
  %187 = extractvalue { double, double } %181, 0
  store double %187, ptr %186, align 16
  %188 = getelementptr inbounds { double, double }, ptr %185, i32 0, i32 1
  %189 = extractvalue { double, double } %181, 1
  store double %189, ptr %188, align 8
  %190 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %191 = load double, ptr %190, align 16
  %192 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %193 = load double, ptr %192, align 8
  %194 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %195 = load double, ptr %194, align 16
  %196 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %197 = load double, ptr %196, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %18, ptr noundef %172, double %191, double %193, double %195, double %197, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %198 unwind label %284

198:                                              ; preds = %182
  %199 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %171, ptr noundef nonnull align 16 dereferenceable(256) %18)
          to label %200 unwind label %292

200:                                              ; preds = %198
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %18) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %18) #10
  store ptr %199, ptr %17, align 8, !tbaa !5
  %201 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 3
  %202 = load ptr, ptr %201, align 8, !tbaa !18
  %203 = load ptr, ptr %17, align 8, !tbaa !5
  %204 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %203)
          to label %205 unwind label %297

205:                                              ; preds = %200
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %202, ptr noundef nonnull align 4 dereferenceable(4) %204, i32 noundef 0)
          to label %206 unwind label %297

206:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %207 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 3
  %208 = load ptr, ptr %207, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 256, ptr %23) #10
  %209 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %210 unwind label %301

210:                                              ; preds = %206
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %24, float noundef 5.000000e-01, float noundef 1.000000e+00, float noundef 2.000000e+00)
          to label %211 unwind label %305

211:                                              ; preds = %210
  %212 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %213 = load double, ptr %212, align 16
  %214 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %215 = load double, ptr %214, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %209, double %213, double %215, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %216 unwind label %305

216:                                              ; preds = %211
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %25, float noundef -5.000000e+00, float noundef 1.500000e+01, float noundef 0.000000e+00)
          to label %217 unwind label %301

217:                                              ; preds = %216
  %218 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %219 unwind label %301

219:                                              ; preds = %217
  %220 = getelementptr inbounds %"class.JPH::Quat", ptr %26, i32 0, i32 0
  %221 = getelementptr inbounds %"class.JPH::Vec4", ptr %220, i32 0, i32 0
  %222 = getelementptr inbounds %union.anon.5, ptr %221, i32 0, i32 0
  %223 = getelementptr inbounds { double, double }, ptr %222, i32 0, i32 0
  %224 = extractvalue { double, double } %218, 0
  store double %224, ptr %223, align 16
  %225 = getelementptr inbounds { double, double }, ptr %222, i32 0, i32 1
  %226 = extractvalue { double, double } %218, 1
  store double %226, ptr %225, align 8
  %227 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %228 = load double, ptr %227, align 16
  %229 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %230 = load double, ptr %229, align 8
  %231 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %232 = load double, ptr %231, align 16
  %233 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %234 = load double, ptr %233, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %23, ptr noundef %209, double %228, double %230, double %232, double %234, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %235 unwind label %301

235:                                              ; preds = %219
  %236 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %208, ptr noundef nonnull align 16 dereferenceable(256) %23)
          to label %237 unwind label %309

237:                                              ; preds = %235
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %23) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %23) #10
  store ptr %236, ptr %22, align 8, !tbaa !5
  %238 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @_ZN3JPH4Body16SetAllowSleepingEb(ptr noundef nonnull align 16 dereferenceable(122) %238, i1 noundef zeroext false)
          to label %239 unwind label %314

239:                                              ; preds = %237
  %240 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 3
  %241 = load ptr, ptr %240, align 8, !tbaa !18
  %242 = load ptr, ptr %22, align 8, !tbaa !5
  %243 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %242)
          to label %244 unwind label %314

244:                                              ; preds = %239
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %241, ptr noundef nonnull align 4 dereferenceable(4) %243, i32 noundef 0)
          to label %245 unwind label %314

245:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 128, ptr %27) #10
  invoke void @_ZN3JPH22PathConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(128) %27)
          to label %246 unwind label %318

246:                                              ; preds = %245
  %247 = invoke noundef ptr @_ZNK3JPH3RefINS_25PathConstraintPathHermiteEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %248 unwind label %322

248:                                              ; preds = %246
  %249 = getelementptr inbounds %"class.JPH::PathConstraintSettings", ptr %27, i32 0, i32 1
  %250 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_18PathConstraintPathEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %249, ptr noundef %247)
          to label %251 unwind label %322

251:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %28, float noundef 0.000000e+00, float noundef 1.500000e+01, float noundef 0.000000e+00)
          to label %252 unwind label %326

252:                                              ; preds = %251
  %253 = getelementptr inbounds %"class.JPH::PathConstraintSettings", ptr %27, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %253, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #10
  %254 = load i32, ptr @_ZN18PathConstraintTest16sOrientationTypeE, align 4, !tbaa !26
  %255 = getelementptr inbounds %"class.JPH::PathConstraintSettings", ptr %27, i32 0, i32 7
  store i32 %254, ptr %255, align 4, !tbaa !28
  %256 = load ptr, ptr %17, align 8, !tbaa !5
  %257 = load ptr, ptr %22, align 8, !tbaa !5
  %258 = invoke noundef ptr @_ZNK3JPH22PathConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(128) %27, ptr noundef nonnull align 16 dereferenceable(122) %256, ptr noundef nonnull align 16 dereferenceable(122) %257)
          to label %259 unwind label %322

259:                                              ; preds = %252
  %260 = getelementptr inbounds %class.PathConstraintTest, ptr %56, i32 0, i32 2
  %261 = getelementptr inbounds [2 x %"class.JPH::Ref.4"], ptr %260, i64 0, i64 0
  %262 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_14PathConstraintEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %261, ptr noundef %258)
          to label %263 unwind label %322

263:                                              ; preds = %259
  %264 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 2
  %265 = load ptr, ptr %264, align 8, !tbaa !43
  %266 = getelementptr inbounds %class.PathConstraintTest, ptr %56, i32 0, i32 2
  %267 = getelementptr inbounds [2 x %"class.JPH::Ref.4"], ptr %266, i64 0, i64 0
  %268 = invoke noundef ptr @_ZNK3JPH3RefINS_14PathConstraintEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %267)
          to label %269 unwind label %322

269:                                              ; preds = %263
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %265, ptr noundef %268)
          to label %270 unwind label %322

270:                                              ; preds = %269
  call void @_ZN3JPH22PathConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %27) #10
  call void @llvm.lifetime.end.p0(i64 128, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #10
  call void @_ZN3JPH3RefINS_25PathConstraintPathHermiteEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  %271 = call noundef ptr @_ZN3JPH25PathConstraintPathHermitenwEm(i64 noundef 40)
  call void @_ZN3JPH25PathConstraintPathHermiteC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %271) #10
  call void @_ZN3JPH3RefINS_25PathConstraintPathHermiteEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef %271)
  %272 = invoke noundef ptr @_ZNK3JPH3RefINS_25PathConstraintPathHermiteEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %273 unwind label %336

273:                                              ; preds = %270
  invoke void @_ZN3JPH18PathConstraintPath12SetIsLoopingEb(ptr noundef nonnull align 8 dereferenceable(13) %272, i1 noundef zeroext true)
          to label %274 unwind label %336

274:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %30, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %275 unwind label %340

275:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #10
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #10
  store i32 -1, ptr %32, align 4, !tbaa !13
  br label %276

276:                                              ; preds = %359, %275
  %277 = load i32, ptr %32, align 4, !tbaa !13
  %278 = icmp slt i32 %277, 11
  br i1 %278, label %344, label %279

279:                                              ; preds = %276
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  br label %366

280:                                              ; preds = %165, %163
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %5, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %6, align 4
  br label %334

284:                                              ; preds = %182, %180, %179, %169
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %5, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %6, align 4
  br label %296

288:                                              ; preds = %174, %173
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %5, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %6, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %172) #10
  br label %296

292:                                              ; preds = %198
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %5, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %18) #10
  br label %296

296:                                              ; preds = %292, %288, %284
  call void @llvm.lifetime.end.p0(i64 256, ptr %18) #10
  br label %333

297:                                              ; preds = %205, %200
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %5, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %6, align 4
  br label %333

301:                                              ; preds = %219, %217, %216, %206
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %5, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %6, align 4
  br label %313

305:                                              ; preds = %211, %210
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %5, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %6, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %209) #10
  br label %313

309:                                              ; preds = %235
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %5, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %23) #10
  br label %313

313:                                              ; preds = %309, %305, %301
  call void @llvm.lifetime.end.p0(i64 256, ptr %23) #10
  br label %332

314:                                              ; preds = %244, %239, %237
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %5, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %6, align 4
  br label %332

318:                                              ; preds = %245
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %5, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %6, align 4
  br label %331

322:                                              ; preds = %269, %263, %259, %252, %248, %246
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %5, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %6, align 4
  br label %330

326:                                              ; preds = %251
  %327 = landingpad { ptr, i32 }
          cleanup
  %328 = extractvalue { ptr, i32 } %327, 0
  store ptr %328, ptr %5, align 8
  %329 = extractvalue { ptr, i32 } %327, 1
  store i32 %329, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #10
  br label %330

330:                                              ; preds = %326, %322
  call void @_ZN3JPH22PathConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %27) #10
  br label %331

331:                                              ; preds = %330, %318
  call void @llvm.lifetime.end.p0(i64 128, ptr %27) #10
  br label %332

332:                                              ; preds = %331, %314, %313
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %333

333:                                              ; preds = %332, %297, %296
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %334

334:                                              ; preds = %333, %280, %162, %84
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #10
  br label %335

335:                                              ; preds = %334, %64
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #10
  call void @_ZN3JPH3RefINS_25PathConstraintPathHermiteEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  br label %632

336:                                              ; preds = %273, %270
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %5, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %6, align 4
  br label %631

340:                                              ; preds = %274
  %341 = landingpad { ptr, i32 }
          cleanup
  %342 = extractvalue { ptr, i32 } %341, 0
  store ptr %342, ptr %5, align 8
  %343 = extractvalue { ptr, i32 } %341, 1
  store i32 %343, ptr %6, align 4
  br label %630

344:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #10
  %345 = load i32, ptr %32, align 4, !tbaa !13
  %346 = sitofp i32 %345 to float
  %347 = fmul float 0x401921FB60000000, %346
  %348 = fdiv float %347, 1.000000e+01
  store float %348, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #10
  %349 = load float, ptr %33, align 4, !tbaa !9
  %350 = invoke noundef float @_ZN3JPH3CosEf(float noundef %349)
          to label %351 unwind label %362

351:                                              ; preds = %344
  %352 = fmul float 5.000000e+00, %350
  %353 = load float, ptr %33, align 4, !tbaa !9
  %354 = invoke noundef float @_ZN3JPH3SinEf(float noundef %353)
          to label %355 unwind label %362

355:                                              ; preds = %351
  %356 = fmul float 5.000000e+00, %354
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %34, float noundef %352, float noundef 0.000000e+00, float noundef %356)
          to label %357 unwind label %362

357:                                              ; preds = %355
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 16 dereferenceable(16) %34)
          to label %358 unwind label %362

358:                                              ; preds = %357
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  br label %359

359:                                              ; preds = %358
  %360 = load i32, ptr %32, align 4, !tbaa !13
  %361 = add nsw i32 %360, 1
  store i32 %361, ptr %32, align 4, !tbaa !13
  br label %276, !llvm.loop !44

362:                                              ; preds = %357, %355, %351, %344
  %363 = landingpad { ptr, i32 }
          cleanup
  %364 = extractvalue { ptr, i32 } %363, 0
  store ptr %364, ptr %5, align 8
  %365 = extractvalue { ptr, i32 } %363, 1
  store i32 %365, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  br label %629

366:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  store i32 1, ptr %35, align 4, !tbaa !13
  br label %367

367:                                              ; preds = %433, %366
  %368 = load i32, ptr %35, align 4, !tbaa !13
  %369 = invoke noundef i64 @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31)
          to label %370 unwind label %375

370:                                              ; preds = %367
  %371 = sub i64 %369, 1
  %372 = trunc i64 %371 to i32
  %373 = icmp slt i32 %368, %372
  br i1 %373, label %379, label %374

374:                                              ; preds = %370
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  br label %441

375:                                              ; preds = %367
  %376 = landingpad { ptr, i32 }
          cleanup
  %377 = extractvalue { ptr, i32 } %376, 0
  store ptr %377, ptr %5, align 8
  %378 = extractvalue { ptr, i32 } %376, 1
  store i32 %378, ptr %6, align 4
  br label %440

379:                                              ; preds = %370
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #10
  %380 = load i32, ptr %35, align 4, !tbaa !13
  %381 = add nsw i32 %380, 1
  %382 = sext i32 %381 to i64
  %383 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %382)
          to label %384 unwind label %436

384:                                              ; preds = %379
  %385 = load i32, ptr %35, align 4, !tbaa !13
  %386 = sub nsw i32 %385, 1
  %387 = sext i32 %386 to i64
  %388 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %387)
          to label %389 unwind label %436

389:                                              ; preds = %384
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %388, i64 16, i1 false), !tbaa.struct !15
  %390 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %391 = load double, ptr %390, align 16
  %392 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %393 = load double, ptr %392, align 8
  %394 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %383, double %391, double %393)
          to label %395 unwind label %436

395:                                              ; preds = %389
  %396 = getelementptr inbounds %"class.JPH::Vec3", ptr %37, i32 0, i32 0
  %397 = getelementptr inbounds %union.anon, ptr %396, i32 0, i32 0
  %398 = getelementptr inbounds { double, double }, ptr %397, i32 0, i32 0
  %399 = extractvalue { double, double } %394, 0
  store double %399, ptr %398, align 16
  %400 = getelementptr inbounds { double, double }, ptr %397, i32 0, i32 1
  %401 = extractvalue { double, double } %394, 1
  store double %401, ptr %400, align 8
  %402 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %403 = load double, ptr %402, align 16
  %404 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %405 = load double, ptr %404, align 8
  %406 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 5.000000e-01, double %403, double %405)
          to label %407 unwind label %436

407:                                              ; preds = %395
  %408 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %409 = getelementptr inbounds %union.anon, ptr %408, i32 0, i32 0
  %410 = getelementptr inbounds { double, double }, ptr %409, i32 0, i32 0
  %411 = extractvalue { double, double } %406, 0
  store double %411, ptr %410, align 16
  %412 = getelementptr inbounds { double, double }, ptr %409, i32 0, i32 1
  %413 = extractvalue { double, double } %406, 1
  store double %413, ptr %412, align 8
  %414 = invoke noundef ptr @_ZNK3JPH3RefINS_25PathConstraintPathHermiteEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %415 unwind label %436

415:                                              ; preds = %407
  %416 = load i32, ptr %35, align 4, !tbaa !13
  %417 = sext i32 %416 to i64
  %418 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %417)
          to label %419 unwind label %436

419:                                              ; preds = %415
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %418, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %36, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %30, i64 16, i1 false), !tbaa.struct !15
  %420 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %421 = load double, ptr %420, align 16
  %422 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %423 = load double, ptr %422, align 8
  %424 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %425 = load double, ptr %424, align 16
  %426 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %427 = load double, ptr %426, align 8
  %428 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %429 = load double, ptr %428, align 16
  %430 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %431 = load double, ptr %430, align 8
  invoke void @_ZN3JPH25PathConstraintPathHermite8AddPointENS_4Vec3ES1_S1_(ptr noundef nonnull align 8 dereferenceable(40) %414, double %421, double %423, double %425, double %427, double %429, double %431)
          to label %432 unwind label %436

432:                                              ; preds = %419
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #10
  br label %433

433:                                              ; preds = %432
  %434 = load i32, ptr %35, align 4, !tbaa !13
  %435 = add nsw i32 %434, 1
  store i32 %435, ptr %35, align 4, !tbaa !13
  br label %367, !llvm.loop !45

436:                                              ; preds = %419, %415, %407, %395, %389, %384, %379
  %437 = landingpad { ptr, i32 }
          cleanup
  %438 = extractvalue { ptr, i32 } %437, 0
  store ptr %438, ptr %5, align 8
  %439 = extractvalue { ptr, i32 } %437, 1
  store i32 %439, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #10
  br label %440

440:                                              ; preds = %436, %375
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  br label %629

441:                                              ; preds = %374
  %442 = invoke noundef ptr @_ZNK3JPH3RefINS_25PathConstraintPathHermiteEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %443 unwind label %571

443:                                              ; preds = %441
  %444 = getelementptr inbounds %class.PathConstraintTest, ptr %56, i32 0, i32 1
  %445 = getelementptr inbounds [2 x %"class.JPH::Ref"], ptr %444, i64 0, i64 1
  %446 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_18PathConstraintPathEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %445, ptr noundef %442)
          to label %447 unwind label %571

447:                                              ; preds = %443
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #10
  %448 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 3
  %449 = load ptr, ptr %448, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 256, ptr %43) #10
  %450 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %451 unwind label %575

451:                                              ; preds = %447
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %44, float noundef 5.000000e+00, float noundef 5.000000e-01, float noundef 5.000000e+00)
          to label %452 unwind label %579

452:                                              ; preds = %451
  %453 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %454 = load double, ptr %453, align 16
  %455 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %456 = load double, ptr %455, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %450, double %454, double %456, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %457 unwind label %579

457:                                              ; preds = %452
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %45, float noundef 1.000000e+01, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %458 unwind label %575

458:                                              ; preds = %457
  %459 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %460 unwind label %575

460:                                              ; preds = %458
  %461 = getelementptr inbounds %"class.JPH::Quat", ptr %46, i32 0, i32 0
  %462 = getelementptr inbounds %"class.JPH::Vec4", ptr %461, i32 0, i32 0
  %463 = getelementptr inbounds %union.anon.5, ptr %462, i32 0, i32 0
  %464 = getelementptr inbounds { double, double }, ptr %463, i32 0, i32 0
  %465 = extractvalue { double, double } %459, 0
  store double %465, ptr %464, align 16
  %466 = getelementptr inbounds { double, double }, ptr %463, i32 0, i32 1
  %467 = extractvalue { double, double } %459, 1
  store double %467, ptr %466, align 8
  %468 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %469 = load double, ptr %468, align 16
  %470 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %471 = load double, ptr %470, align 8
  %472 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %473 = load double, ptr %472, align 16
  %474 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %475 = load double, ptr %474, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %43, ptr noundef %450, double %469, double %471, double %473, double %475, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %476 unwind label %575

476:                                              ; preds = %460
  %477 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %449, ptr noundef nonnull align 16 dereferenceable(256) %43)
          to label %478 unwind label %583

478:                                              ; preds = %476
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %43) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %43) #10
  store ptr %477, ptr %42, align 8, !tbaa !5
  %479 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 3
  %480 = load ptr, ptr %479, align 8, !tbaa !18
  %481 = load ptr, ptr %42, align 8, !tbaa !5
  %482 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %481)
          to label %483 unwind label %588

483:                                              ; preds = %478
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %480, ptr noundef nonnull align 4 dereferenceable(4) %482, i32 noundef 0)
          to label %484 unwind label %588

484:                                              ; preds = %483
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #10
  %485 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 3
  %486 = load ptr, ptr %485, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 256, ptr %48) #10
  %487 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %488 unwind label %592

488:                                              ; preds = %484
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %49, float noundef 5.000000e-01, float noundef 1.000000e+00, float noundef 2.000000e+00)
          to label %489 unwind label %596

489:                                              ; preds = %488
  %490 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %491 = load double, ptr %490, align 16
  %492 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %493 = load double, ptr %492, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %487, double %491, double %493, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %494 unwind label %596

494:                                              ; preds = %489
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %50, float noundef 1.500000e+01, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %495 unwind label %592

495:                                              ; preds = %494
  %496 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %497 unwind label %592

497:                                              ; preds = %495
  %498 = getelementptr inbounds %"class.JPH::Quat", ptr %51, i32 0, i32 0
  %499 = getelementptr inbounds %"class.JPH::Vec4", ptr %498, i32 0, i32 0
  %500 = getelementptr inbounds %union.anon.5, ptr %499, i32 0, i32 0
  %501 = getelementptr inbounds { double, double }, ptr %500, i32 0, i32 0
  %502 = extractvalue { double, double } %496, 0
  store double %502, ptr %501, align 16
  %503 = getelementptr inbounds { double, double }, ptr %500, i32 0, i32 1
  %504 = extractvalue { double, double } %496, 1
  store double %504, ptr %503, align 8
  %505 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %506 = load double, ptr %505, align 16
  %507 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %508 = load double, ptr %507, align 8
  %509 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %510 = load double, ptr %509, align 16
  %511 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %512 = load double, ptr %511, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %48, ptr noundef %487, double %506, double %508, double %510, double %512, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %513 unwind label %592

513:                                              ; preds = %497
  %514 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %486, ptr noundef nonnull align 16 dereferenceable(256) %48)
          to label %515 unwind label %600

515:                                              ; preds = %513
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %48) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %48) #10
  store ptr %514, ptr %47, align 8, !tbaa !5
  %516 = load ptr, ptr %47, align 8, !tbaa !5
  invoke void @_ZN3JPH4Body16SetAllowSleepingEb(ptr noundef nonnull align 16 dereferenceable(122) %516, i1 noundef zeroext false)
          to label %517 unwind label %605

517:                                              ; preds = %515
  %518 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 3
  %519 = load ptr, ptr %518, align 8, !tbaa !18
  %520 = load ptr, ptr %47, align 8, !tbaa !5
  %521 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %520)
          to label %522 unwind label %605

522:                                              ; preds = %517
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %519, ptr noundef nonnull align 4 dereferenceable(4) %521, i32 noundef 0)
          to label %523 unwind label %605

523:                                              ; preds = %522
  call void @llvm.lifetime.start.p0(i64 128, ptr %52) #10
  invoke void @_ZN3JPH22PathConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(128) %52)
          to label %524 unwind label %609

524:                                              ; preds = %523
  %525 = invoke noundef ptr @_ZNK3JPH3RefINS_25PathConstraintPathHermiteEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %526 unwind label %613

526:                                              ; preds = %524
  %527 = getelementptr inbounds %"class.JPH::PathConstraintSettings", ptr %52, i32 0, i32 1
  %528 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_18PathConstraintPathEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %527, ptr noundef %525)
          to label %529 unwind label %613

529:                                              ; preds = %526
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %53, float noundef 0.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %530 unwind label %617

530:                                              ; preds = %529
  %531 = getelementptr inbounds %"class.JPH::PathConstraintSettings", ptr %52, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %531, ptr align 16 %53, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #10
  %532 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %533 unwind label %621

533:                                              ; preds = %530
  %534 = getelementptr inbounds %"class.JPH::Vec3", ptr %55, i32 0, i32 0
  %535 = getelementptr inbounds %union.anon, ptr %534, i32 0, i32 0
  %536 = getelementptr inbounds { double, double }, ptr %535, i32 0, i32 0
  %537 = extractvalue { double, double } %532, 0
  store double %537, ptr %536, align 16
  %538 = getelementptr inbounds { double, double }, ptr %535, i32 0, i32 1
  %539 = extractvalue { double, double } %532, 1
  store double %539, ptr %538, align 8
  %540 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %541 = load double, ptr %540, align 16
  %542 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %543 = load double, ptr %542, align 8
  %544 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %541, double %543, float noundef 0xBFD41B2F80000000)
          to label %545 unwind label %621

545:                                              ; preds = %533
  %546 = getelementptr inbounds %"class.JPH::Quat", ptr %54, i32 0, i32 0
  %547 = getelementptr inbounds %"class.JPH::Vec4", ptr %546, i32 0, i32 0
  %548 = getelementptr inbounds %union.anon.5, ptr %547, i32 0, i32 0
  %549 = getelementptr inbounds { double, double }, ptr %548, i32 0, i32 0
  %550 = extractvalue { double, double } %544, 0
  store double %550, ptr %549, align 16
  %551 = getelementptr inbounds { double, double }, ptr %548, i32 0, i32 1
  %552 = extractvalue { double, double } %544, 1
  store double %552, ptr %551, align 8
  %553 = getelementptr inbounds %"class.JPH::PathConstraintSettings", ptr %52, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %553, ptr align 16 %54, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #10
  %554 = load i32, ptr @_ZN18PathConstraintTest16sOrientationTypeE, align 4, !tbaa !26
  %555 = getelementptr inbounds %"class.JPH::PathConstraintSettings", ptr %52, i32 0, i32 7
  store i32 %554, ptr %555, align 4, !tbaa !28
  %556 = load ptr, ptr %42, align 8, !tbaa !5
  %557 = load ptr, ptr %47, align 8, !tbaa !5
  %558 = invoke noundef ptr @_ZNK3JPH22PathConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(128) %52, ptr noundef nonnull align 16 dereferenceable(122) %556, ptr noundef nonnull align 16 dereferenceable(122) %557)
          to label %559 unwind label %613

559:                                              ; preds = %545
  %560 = getelementptr inbounds %class.PathConstraintTest, ptr %56, i32 0, i32 2
  %561 = getelementptr inbounds [2 x %"class.JPH::Ref.4"], ptr %560, i64 0, i64 1
  %562 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_14PathConstraintEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %561, ptr noundef %558)
          to label %563 unwind label %613

563:                                              ; preds = %559
  %564 = getelementptr inbounds %class.Test, ptr %56, i32 0, i32 2
  %565 = load ptr, ptr %564, align 8, !tbaa !43
  %566 = getelementptr inbounds %class.PathConstraintTest, ptr %56, i32 0, i32 2
  %567 = getelementptr inbounds [2 x %"class.JPH::Ref.4"], ptr %566, i64 0, i64 1
  %568 = invoke noundef ptr @_ZNK3JPH3RefINS_14PathConstraintEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %567)
          to label %569 unwind label %613

569:                                              ; preds = %563
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %565, ptr noundef %568)
          to label %570 unwind label %613

570:                                              ; preds = %569
  call void @_ZN3JPH22PathConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %52) #10
  call void @llvm.lifetime.end.p0(i64 128, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #10
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #10
  call void @_ZN3JPH3RefINS_25PathConstraintPathHermiteEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  ret void

571:                                              ; preds = %443, %441
  %572 = landingpad { ptr, i32 }
          cleanup
  %573 = extractvalue { ptr, i32 } %572, 0
  store ptr %573, ptr %5, align 8
  %574 = extractvalue { ptr, i32 } %572, 1
  store i32 %574, ptr %6, align 4
  br label %629

575:                                              ; preds = %460, %458, %457, %447
  %576 = landingpad { ptr, i32 }
          cleanup
  %577 = extractvalue { ptr, i32 } %576, 0
  store ptr %577, ptr %5, align 8
  %578 = extractvalue { ptr, i32 } %576, 1
  store i32 %578, ptr %6, align 4
  br label %587

579:                                              ; preds = %452, %451
  %580 = landingpad { ptr, i32 }
          cleanup
  %581 = extractvalue { ptr, i32 } %580, 0
  store ptr %581, ptr %5, align 8
  %582 = extractvalue { ptr, i32 } %580, 1
  store i32 %582, ptr %6, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %450) #10
  br label %587

583:                                              ; preds = %476
  %584 = landingpad { ptr, i32 }
          cleanup
  %585 = extractvalue { ptr, i32 } %584, 0
  store ptr %585, ptr %5, align 8
  %586 = extractvalue { ptr, i32 } %584, 1
  store i32 %586, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %43) #10
  br label %587

587:                                              ; preds = %583, %579, %575
  call void @llvm.lifetime.end.p0(i64 256, ptr %43) #10
  br label %628

588:                                              ; preds = %483, %478
  %589 = landingpad { ptr, i32 }
          cleanup
  %590 = extractvalue { ptr, i32 } %589, 0
  store ptr %590, ptr %5, align 8
  %591 = extractvalue { ptr, i32 } %589, 1
  store i32 %591, ptr %6, align 4
  br label %628

592:                                              ; preds = %497, %495, %494, %484
  %593 = landingpad { ptr, i32 }
          cleanup
  %594 = extractvalue { ptr, i32 } %593, 0
  store ptr %594, ptr %5, align 8
  %595 = extractvalue { ptr, i32 } %593, 1
  store i32 %595, ptr %6, align 4
  br label %604

596:                                              ; preds = %489, %488
  %597 = landingpad { ptr, i32 }
          cleanup
  %598 = extractvalue { ptr, i32 } %597, 0
  store ptr %598, ptr %5, align 8
  %599 = extractvalue { ptr, i32 } %597, 1
  store i32 %599, ptr %6, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %487) #10
  br label %604

600:                                              ; preds = %513
  %601 = landingpad { ptr, i32 }
          cleanup
  %602 = extractvalue { ptr, i32 } %601, 0
  store ptr %602, ptr %5, align 8
  %603 = extractvalue { ptr, i32 } %601, 1
  store i32 %603, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %48) #10
  br label %604

604:                                              ; preds = %600, %596, %592
  call void @llvm.lifetime.end.p0(i64 256, ptr %48) #10
  br label %627

605:                                              ; preds = %522, %517, %515
  %606 = landingpad { ptr, i32 }
          cleanup
  %607 = extractvalue { ptr, i32 } %606, 0
  store ptr %607, ptr %5, align 8
  %608 = extractvalue { ptr, i32 } %606, 1
  store i32 %608, ptr %6, align 4
  br label %627

609:                                              ; preds = %523
  %610 = landingpad { ptr, i32 }
          cleanup
  %611 = extractvalue { ptr, i32 } %610, 0
  store ptr %611, ptr %5, align 8
  %612 = extractvalue { ptr, i32 } %610, 1
  store i32 %612, ptr %6, align 4
  br label %626

613:                                              ; preds = %569, %563, %559, %545, %526, %524
  %614 = landingpad { ptr, i32 }
          cleanup
  %615 = extractvalue { ptr, i32 } %614, 0
  store ptr %615, ptr %5, align 8
  %616 = extractvalue { ptr, i32 } %614, 1
  store i32 %616, ptr %6, align 4
  br label %625

617:                                              ; preds = %529
  %618 = landingpad { ptr, i32 }
          cleanup
  %619 = extractvalue { ptr, i32 } %618, 0
  store ptr %619, ptr %5, align 8
  %620 = extractvalue { ptr, i32 } %618, 1
  store i32 %620, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #10
  br label %625

621:                                              ; preds = %533, %530
  %622 = landingpad { ptr, i32 }
          cleanup
  %623 = extractvalue { ptr, i32 } %622, 0
  store ptr %623, ptr %5, align 8
  %624 = extractvalue { ptr, i32 } %622, 1
  store i32 %624, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #10
  br label %625

625:                                              ; preds = %621, %617, %613
  call void @_ZN3JPH22PathConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %52) #10
  br label %626

626:                                              ; preds = %625, %609
  call void @llvm.lifetime.end.p0(i64 128, ptr %52) #10
  br label %627

627:                                              ; preds = %626, %605, %604
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  br label %628

628:                                              ; preds = %627, %588, %587
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #10
  br label %629

629:                                              ; preds = %628, %571, %440, %362
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #10
  br label %630

630:                                              ; preds = %629, %340
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #10
  br label %631

631:                                              ; preds = %630, %336
  call void @_ZN3JPH3RefINS_25PathConstraintPathHermiteEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  br label %632

632:                                              ; preds = %631, %335
  %633 = load ptr, ptr %5, align 8
  %634 = load i32, ptr %6, align 4
  %635 = insertvalue { ptr, i32 } poison, ptr %633, 0
  %636 = insertvalue { ptr, i32 } %635, i32 %634, 1
  resume { ptr, i32 } %636
}

declare noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112), float noundef) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH3RefINS_25PathConstraintPathHermiteEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5 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 #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3CosEf(float noundef) #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3SinEf(float noundef) #3

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH25PathConstraintPathHermite8AddPointENS_4Vec3ES1_S1_(ptr noundef nonnull align 8 dereferenceable(40), double, double, double, double, double, double) #1 align 2

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

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

declare noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256)) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef) #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) #9 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #1 align 2

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

declare void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #2

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

declare void @_ZN3JPH4Body16SetAllowSleepingEb(ptr noundef nonnull align 16 dereferenceable(122), i1 noundef zeroext) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH22PathConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(128)) unnamed_addr #5 align 2

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

declare noundef ptr @_ZNK3JPH22PathConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(128), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122)) unnamed_addr #2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH22PathConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128)) unnamed_addr #4 align 2

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisXEv() #3 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 = { "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"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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 #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 = { 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 #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 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i64 0, i64 16, !16}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !12}
!18 = !{!19, !6, i64 24}
!19 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !20, i64 48, !21, i64 56}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !22, i64 0}
!22 = !{!"_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, !23, i64 8, !24, i64 16, !23, i64 24, !25, i64 32, !6, i64 48}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!25 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !10, i64 0, !23, i64 8}
!26 = !{!27, !27, i64 0}
!27 = !{!"_ZTSN3JPH27EPathRotationConstraintTypeE", !7, i64 0}
!28 = !{!29, !27, i64 116}
!29 = !{!"_ZTSN3JPH22PathConstraintSettingsE", !30, i64 0, !36, i64 40, !37, i64 48, !38, i64 64, !10, i64 80, !10, i64 84, !40, i64 88, !27, i64 116}
!30 = !{!"_ZTSN3JPH25TwoBodyConstraintSettingsE", !31, i64 0}
!31 = !{!"_ZTSN3JPH18ConstraintSettingsE", !32, i64 0, !33, i64 8, !20, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !10, i64 28, !23, i64 32}
!32 = !{!"_ZTSN3JPH18SerializableObjectE"}
!33 = !{!"_ZTSN3JPH9RefTargetINS_18ConstraintSettingsEEE", !34, i64 0}
!34 = !{!"_ZTSSt6atomicIjE", !35, i64 0}
!35 = !{!"_ZTSSt13__atomic_baseIjE", !14, i64 0}
!36 = !{!"_ZTSN3JPH8RefConstINS_18PathConstraintPathEEE", !6, i64 0}
!37 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!38 = !{!"_ZTSN3JPH4QuatE", !39, i64 0}
!39 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!40 = !{!"_ZTSN3JPH13MotorSettingsE", !41, i64 0, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!41 = !{!"_ZTSN3JPH14SpringSettingsE", !42, i64 0, !7, i64 4, !10, i64 8}
!42 = !{!"_ZTSN3JPH11ESpringModeE", !7, i64 0}
!43 = !{!19, !6, i64 16}
!44 = distinct !{!44, !12}
!45 = distinct !{!45, !12}


; 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::Ref.7" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Array.10" = type { i64, i64, ptr }
%"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.13", %"class.JPH::RefConst" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.5 }
%union.anon.5 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.6", i32, i32 }
%"class.JPH::RefConst.6" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.13" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::PathConstraintSettings" = type <{ %"class.JPH::TwoBodyConstraintSettings", %"class.JPH::RefConst.17", %"class.JPH::Vec3", %"class.JPH::Quat", float, float, %"class.JPH::MotorSettings", i32, [8 x i8] }>
%"class.JPH::TwoBodyConstraintSettings" = type { %"class.JPH::ConstraintSettings" }
%"class.JPH::ConstraintSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.16", i8, i32, i32, i32, float, i64 }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.16" = type { %"struct.std::atomic.8" }
%"struct.std::atomic.8" = type { %"struct.std::__atomic_base.9" }
%"struct.std::__atomic_base.9" = type { i32 }
%"class.JPH::RefConst.17" = type { ptr }
%"class.JPH::MotorSettings" = type { %"class.JPH::SpringSettings", float, float, float, float }
%"class.JPH::SpringSettings" = type { i8, %union.anon.18, float }
%union.anon.18 = type { float }

@_ZN18PathConstraintTest16sOrientationTypeE = external dso_local local_unnamed_addr global i32, align 4

; 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 @_ZN18PathConstraintTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(144) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::Ref.7", align 8
  %3 = alloca %"class.JPH::Vec3", align 16
  %4 = alloca %"class.JPH::Array.10", align 8
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::BodyCreationSettings", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::BodyCreationSettings", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::PathConstraintSettings", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Ref.7", align 8
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Array.10", align 8
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::BodyCreationSettings", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::BodyCreationSettings", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::PathConstraintSettings", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = tail call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %0, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #10
  %27 = tail call noundef ptr @_ZN3JPH25PathConstraintPathHermitenwEm(i64 noundef 40)
  tail call void @_ZN3JPH25PathConstraintPathHermiteC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #10
  call void @_ZN3JPH3RefINS_25PathConstraintPathHermiteEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %27)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %3, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %28 unwind label %29

28:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #10
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  br label %31

.preheader110:                                    ; preds = %40
  %.sroa.241.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  br label %45

29:                                               ; preds = %1
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %171

31:                                               ; preds = %28, %40
  %.082111 = phi float [ 0xBFD41B2F80000000, %28 ], [ %41, %40 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #10
  %32 = invoke noundef float @_ZN3JPH3CosEf(float noundef %.082111)
          to label %33 unwind label %43

33:                                               ; preds = %31
  %34 = invoke noundef float @_ZN3JPH3SinEf(float noundef %.082111)
          to label %35 unwind label %43

35:                                               ; preds = %33
  %36 = fneg float %.082111
  %37 = fmul float %32, 5.000000e+00
  %38 = fmul float %34, 5.000000e+00
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef %37, float noundef %36, float noundef %38)
          to label %39 unwind label %43

39:                                               ; preds = %35
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 16 dereferenceable(16) %5)
          to label %40 unwind label %43

40:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  %41 = fadd float %.082111, 0x3FD41B2F80000000
  %42 = fcmp olt float %41, 0x402921FB60000000
  br i1 %42, label %31, label %.preheader110, !llvm.loop !5

43:                                               ; preds = %39, %35, %33, %31
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  br label %170

45:                                               ; preds = %.preheader110, %68
  %indvars.iv = phi i64 [ 1, %.preheader110 ], [ %indvars.iv.next, %68 ]
  %46 = call noundef i64 @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %47 = shl i64 %46, 32
  %sext = add i64 %47, -4294967296
  %48 = ashr exact i64 %sext, 32
  %49 = icmp slt i64 %indvars.iv, %48
  br i1 %49, label %54, label %50

50:                                               ; preds = %45
  %51 = call noundef ptr @_ZNK3JPH3RefINS_25PathConstraintPathHermiteEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %52 = getelementptr inbounds i8, ptr %0, i64 112
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_18PathConstraintPathEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef %51)
          to label %73 unwind label %142

54:                                               ; preds = %45
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %55 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.next)
          to label %56 unwind label %71

56:                                               ; preds = %54
  %57 = add nsw i64 %indvars.iv, -1
  %58 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %57)
          to label %59 unwind label %71

59:                                               ; preds = %56
  %.sroa.046.0.copyload = load double, ptr %58, align 16
  %.sroa.247.0..sroa_idx = getelementptr inbounds i8, ptr %58, i64 8
  %.sroa.247.0.copyload = load double, ptr %.sroa.247.0..sroa_idx, align 8, !tbaa !7
  %60 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %55, double %.sroa.046.0.copyload, double %.sroa.247.0.copyload)
          to label %61 unwind label %71

61:                                               ; preds = %59
  %62 = extractvalue { double, double } %60, 0
  %63 = extractvalue { double, double } %60, 1
  %64 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 5.000000e-01, double %62, double %63)
          to label %65 unwind label %71

65:                                               ; preds = %61
  %66 = call noundef ptr @_ZNK3JPH3RefINS_25PathConstraintPathHermiteEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %67 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv)
          to label %68 unwind label %71

68:                                               ; preds = %65
  %69 = extractvalue { double, double } %64, 1
  %70 = extractvalue { double, double } %64, 0
  %.sroa.044.0.copyload = load double, ptr %67, align 16
  %.sroa.245.0..sroa_idx = getelementptr inbounds i8, ptr %67, i64 8
  %.sroa.245.0.copyload = load double, ptr %.sroa.245.0..sroa_idx, align 8, !tbaa !7
  %.sroa.040.0.copyload = load double, ptr %3, align 16
  %.sroa.241.0.copyload = load double, ptr %.sroa.241.0..sroa_idx, align 8, !tbaa !7
  invoke void @_ZN3JPH25PathConstraintPathHermite8AddPointENS_4Vec3ES1_S1_(ptr noundef nonnull align 8 dereferenceable(40) %66, double %.sroa.044.0.copyload, double %.sroa.245.0.copyload, double %70, double %69, double %.sroa.040.0.copyload, double %.sroa.241.0.copyload)
          to label %45 unwind label %71, !llvm.loop !10

71:                                               ; preds = %68, %65, %61, %59, %56, %54
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %170

73:                                               ; preds = %50
  %74 = getelementptr inbounds i8, ptr %0, i64 24
  %75 = load ptr, ptr %74, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %6) #10
  %76 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %77 unwind label %144

77:                                               ; preds = %73
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef 5.000000e+00, float noundef 5.000000e-01, float noundef 5.000000e+00)
          to label %78 unwind label %146

78:                                               ; preds = %77
  %79 = load double, ptr %7, align 16
  %80 = getelementptr inbounds i8, ptr %7, i64 8
  %81 = load double, ptr %80, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %76, double %79, double %81, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %82 unwind label %146

82:                                               ; preds = %78
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef -1.000000e+01, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %83 unwind label %144

83:                                               ; preds = %82
  %84 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %85 unwind label %144

85:                                               ; preds = %83
  %86 = extractvalue { double, double } %84, 0
  %87 = extractvalue { double, double } %84, 1
  %88 = load double, ptr %8, align 16
  %89 = getelementptr inbounds i8, ptr %8, i64 8
  %90 = load double, ptr %89, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %6, ptr noundef nonnull %76, double %88, double %90, double %86, double %87, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %91 unwind label %144

91:                                               ; preds = %85
  %92 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %75, ptr noundef nonnull align 16 dereferenceable(256) %6)
          to label %93 unwind label %148

93:                                               ; preds = %91
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #10
  %94 = load ptr, ptr %74, align 8, !tbaa !11
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %92)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %94, ptr noundef nonnull align 4 dereferenceable(4) %95, i32 noundef 0)
          to label %96 unwind label %151

96:                                               ; preds = %93
  %97 = load ptr, ptr %74, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %9) #10
  %98 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %99 unwind label %153

99:                                               ; preds = %96
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef 5.000000e-01, float noundef 1.000000e+00, float noundef 2.000000e+00)
          to label %100 unwind label %155

100:                                              ; preds = %99
  %101 = load double, ptr %10, align 16
  %102 = getelementptr inbounds i8, ptr %10, i64 8
  %103 = load double, ptr %102, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %98, double %101, double %103, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %104 unwind label %155

104:                                              ; preds = %100
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef -5.000000e+00, float noundef 1.500000e+01, float noundef 0.000000e+00)
          to label %105 unwind label %153

105:                                              ; preds = %104
  %106 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %107 unwind label %153

107:                                              ; preds = %105
  %108 = extractvalue { double, double } %106, 0
  %109 = extractvalue { double, double } %106, 1
  %110 = load double, ptr %11, align 16
  %111 = getelementptr inbounds i8, ptr %11, i64 8
  %112 = load double, ptr %111, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %9, ptr noundef nonnull %98, double %110, double %112, double %108, double %109, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %113 unwind label %153

113:                                              ; preds = %107
  %114 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %97, ptr noundef nonnull align 16 dereferenceable(256) %9)
          to label %115 unwind label %157

115:                                              ; preds = %113
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %9) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %9) #10
  invoke void @_ZN3JPH4Body16SetAllowSleepingEb(ptr noundef nonnull align 16 dereferenceable(122) %114, i1 noundef zeroext false)
          to label %116 unwind label %160

116:                                              ; preds = %115
  %117 = load ptr, ptr %74, align 8, !tbaa !11
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %114)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %117, ptr noundef nonnull align 4 dereferenceable(4) %118, i32 noundef 0)
          to label %119 unwind label %160

119:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %12) #10
  invoke void @_ZN3JPH22PathConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(128) %12)
          to label %120 unwind label %162

120:                                              ; preds = %119
  %121 = call noundef ptr @_ZNK3JPH3RefINS_25PathConstraintPathHermiteEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %122 = getelementptr inbounds i8, ptr %12, i64 40
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_18PathConstraintPathEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef %121)
          to label %124 unwind label %164

124:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 0.000000e+00, float noundef 1.500000e+01, float noundef 0.000000e+00)
          to label %125 unwind label %166

125:                                              ; preds = %124
  %126 = getelementptr inbounds i8, ptr %12, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %126, ptr noundef nonnull align 16 dereferenceable(16) %13, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  %127 = load i32, ptr @_ZN18PathConstraintTest16sOrientationTypeE, align 4, !tbaa !22
  %128 = getelementptr inbounds i8, ptr %12, i64 116
  store i32 %127, ptr %128, align 4, !tbaa !24
  %129 = invoke noundef ptr @_ZNK3JPH22PathConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(128) %12, ptr noundef nonnull align 16 dereferenceable(122) %92, ptr noundef nonnull align 16 dereferenceable(122) %114)
          to label %130 unwind label %164

130:                                              ; preds = %125
  %131 = getelementptr inbounds i8, ptr %0, i64 128
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_14PathConstraintEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef %129)
          to label %133 unwind label %164

133:                                              ; preds = %130
  %134 = getelementptr inbounds i8, ptr %0, i64 16
  %135 = load ptr, ptr %134, align 8, !tbaa !40
  %136 = call noundef ptr @_ZNK3JPH3RefINS_14PathConstraintEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %131)
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %135, ptr noundef %136)
          to label %137 unwind label %164

137:                                              ; preds = %133
  call void @_ZN3JPH22PathConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %12) #10
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %12) #10
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  call void @_ZN3JPH3RefINS_25PathConstraintPathHermiteEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #10
  %138 = call noundef ptr @_ZN3JPH25PathConstraintPathHermitenwEm(i64 noundef 40)
  call void @_ZN3JPH25PathConstraintPathHermiteC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %138) #10
  call void @_ZN3JPH3RefINS_25PathConstraintPathHermiteEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull %138)
  %139 = call noundef ptr @_ZNK3JPH3RefINS_25PathConstraintPathHermiteEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @_ZN3JPH18PathConstraintPath12SetIsLoopingEb(ptr noundef nonnull align 8 dereferenceable(13) %139, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %140 unwind label %172

140:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #10
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %141 = invoke noundef float @_ZN3JPH3CosEf(float noundef 0xBFE41B2F80000000)
          to label %174 unwind label %268

142:                                              ; preds = %50
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %170

144:                                              ; preds = %85, %83, %82, %73
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %150

146:                                              ; preds = %78, %77
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %76) #10
  br label %150

148:                                              ; preds = %91
  %149 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #10
  br label %150

150:                                              ; preds = %148, %146, %144
  %.pn = phi { ptr, i32 } [ %149, %148 ], [ %145, %144 ], [ %147, %146 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #10
  br label %170

151:                                              ; preds = %93
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %170

153:                                              ; preds = %107, %105, %104, %96
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %159

155:                                              ; preds = %100, %99
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %98) #10
  br label %159

157:                                              ; preds = %113
  %158 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %9) #10
  br label %159

159:                                              ; preds = %157, %155, %153
  %.pn87 = phi { ptr, i32 } [ %158, %157 ], [ %154, %153 ], [ %156, %155 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %9) #10
  br label %170

160:                                              ; preds = %116, %115
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %170

162:                                              ; preds = %119
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %169

164:                                              ; preds = %133, %130, %125, %120
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %168

166:                                              ; preds = %124
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  br label %168

168:                                              ; preds = %166, %164
  %.pn89 = phi { ptr, i32 } [ %165, %164 ], [ %167, %166 ]
  call void @_ZN3JPH22PathConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %12) #10
  br label %169

169:                                              ; preds = %168, %162
  %.pn89.pn = phi { ptr, i32 } [ %.pn89, %168 ], [ %163, %162 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %12) #10
  br label %170

170:                                              ; preds = %150, %151, %169, %160, %159, %142, %71, %43
  %.pn106 = phi { ptr, i32 } [ %44, %43 ], [ %72, %71 ], [ %143, %142 ], [ %152, %151 ], [ %.pn, %150 ], [ %.pn89.pn, %169 ], [ %161, %160 ], [ %.pn87, %159 ]
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  br label %171

171:                                              ; preds = %170, %29
  %.pn106.pn = phi { ptr, i32 } [ %.pn106, %170 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  call void @_ZN3JPH3RefINS_25PathConstraintPathHermiteEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  br label %402

172:                                              ; preds = %137
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %401

174:                                              ; preds = %140
  %175 = invoke noundef float @_ZN3JPH3SinEf(float noundef 0xBFE41B2F80000000)
          to label %176 unwind label %268

176:                                              ; preds = %174
  %177 = fmul float %141, 5.000000e+00
  %178 = fmul float %175, 5.000000e+00
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %177, float noundef 0.000000e+00, float noundef %178)
          to label %179 unwind label %268

179:                                              ; preds = %176
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 16 dereferenceable(16) %17)
          to label %180 unwind label %268

180:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %181 = invoke noundef float @_ZN3JPH3CosEf(float noundef 0.000000e+00)
          to label %182 unwind label %268

182:                                              ; preds = %180
  %183 = invoke noundef float @_ZN3JPH3SinEf(float noundef 0.000000e+00)
          to label %184 unwind label %268

184:                                              ; preds = %182
  %185 = fmul float %181, 5.000000e+00
  %186 = fmul float %183, 5.000000e+00
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %185, float noundef 0.000000e+00, float noundef %186)
          to label %187 unwind label %268

187:                                              ; preds = %184
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 16 dereferenceable(16) %17)
          to label %188 unwind label %268

188:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %189 = invoke noundef float @_ZN3JPH3CosEf(float noundef 0x3FE41B2F80000000)
          to label %190 unwind label %268

190:                                              ; preds = %188
  %191 = invoke noundef float @_ZN3JPH3SinEf(float noundef 0x3FE41B2F80000000)
          to label %192 unwind label %268

192:                                              ; preds = %190
  %193 = fmul float %189, 5.000000e+00
  %194 = fmul float %191, 5.000000e+00
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %193, float noundef 0.000000e+00, float noundef %194)
          to label %195 unwind label %268

195:                                              ; preds = %192
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 16 dereferenceable(16) %17)
          to label %196 unwind label %268

196:                                              ; preds = %195
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %197 = invoke noundef float @_ZN3JPH3CosEf(float noundef 0x3FF41B2F80000000)
          to label %198 unwind label %268

198:                                              ; preds = %196
  %199 = invoke noundef float @_ZN3JPH3SinEf(float noundef 0x3FF41B2F80000000)
          to label %200 unwind label %268

200:                                              ; preds = %198
  %201 = fmul float %197, 5.000000e+00
  %202 = fmul float %199, 5.000000e+00
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %201, float noundef 0.000000e+00, float noundef %202)
          to label %203 unwind label %268

203:                                              ; preds = %200
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 16 dereferenceable(16) %17)
          to label %204 unwind label %268

204:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %205 = invoke noundef float @_ZN3JPH3CosEf(float noundef 0x3FFE28C740000000)
          to label %206 unwind label %268

206:                                              ; preds = %204
  %207 = invoke noundef float @_ZN3JPH3SinEf(float noundef 0x3FFE28C740000000)
          to label %208 unwind label %268

208:                                              ; preds = %206
  %209 = fmul float %205, 5.000000e+00
  %210 = fmul float %207, 5.000000e+00
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %209, float noundef 0.000000e+00, float noundef %210)
          to label %211 unwind label %268

211:                                              ; preds = %208
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 16 dereferenceable(16) %17)
          to label %212 unwind label %268

212:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %213 = invoke noundef float @_ZN3JPH3CosEf(float noundef 0x40041B2F80000000)
          to label %214 unwind label %268

214:                                              ; preds = %212
  %215 = invoke noundef float @_ZN3JPH3SinEf(float noundef 0x40041B2F80000000)
          to label %216 unwind label %268

216:                                              ; preds = %214
  %217 = fmul float %213, 5.000000e+00
  %218 = fmul float %215, 5.000000e+00
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %217, float noundef 0.000000e+00, float noundef %218)
          to label %219 unwind label %268

219:                                              ; preds = %216
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 16 dereferenceable(16) %17)
          to label %220 unwind label %268

220:                                              ; preds = %219
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %221 = invoke noundef float @_ZN3JPH3CosEf(float noundef 0x400921FB60000000)
          to label %222 unwind label %268

222:                                              ; preds = %220
  %223 = invoke noundef float @_ZN3JPH3SinEf(float noundef 0x400921FB60000000)
          to label %224 unwind label %268

224:                                              ; preds = %222
  %225 = fmul float %221, 5.000000e+00
  %226 = fmul float %223, 5.000000e+00
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %225, float noundef 0.000000e+00, float noundef %226)
          to label %227 unwind label %268

227:                                              ; preds = %224
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 16 dereferenceable(16) %17)
          to label %228 unwind label %268

228:                                              ; preds = %227
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %229 = invoke noundef float @_ZN3JPH3CosEf(float noundef 0x400E28C740000000)
          to label %230 unwind label %268

230:                                              ; preds = %228
  %231 = invoke noundef float @_ZN3JPH3SinEf(float noundef 0x400E28C740000000)
          to label %232 unwind label %268

232:                                              ; preds = %230
  %233 = fmul float %229, 5.000000e+00
  %234 = fmul float %231, 5.000000e+00
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %233, float noundef 0.000000e+00, float noundef %234)
          to label %235 unwind label %268

235:                                              ; preds = %232
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 16 dereferenceable(16) %17)
          to label %236 unwind label %268

236:                                              ; preds = %235
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %237 = invoke noundef float @_ZN3JPH3CosEf(float noundef 0x401197C9A0000000)
          to label %238 unwind label %268

238:                                              ; preds = %236
  %239 = invoke noundef float @_ZN3JPH3SinEf(float noundef 0x401197C9A0000000)
          to label %240 unwind label %268

240:                                              ; preds = %238
  %241 = fmul float %237, 5.000000e+00
  %242 = fmul float %239, 5.000000e+00
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %241, float noundef 0.000000e+00, float noundef %242)
          to label %243 unwind label %268

243:                                              ; preds = %240
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 16 dereferenceable(16) %17)
          to label %244 unwind label %268

244:                                              ; preds = %243
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %245 = invoke noundef float @_ZN3JPH3CosEf(float noundef 0x40141B2F80000000)
          to label %246 unwind label %268

246:                                              ; preds = %244
  %247 = invoke noundef float @_ZN3JPH3SinEf(float noundef 0x40141B2F80000000)
          to label %248 unwind label %268

248:                                              ; preds = %246
  %249 = fmul float %245, 5.000000e+00
  %250 = fmul float %247, 5.000000e+00
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %249, float noundef 0.000000e+00, float noundef %250)
          to label %251 unwind label %268

251:                                              ; preds = %248
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 16 dereferenceable(16) %17)
          to label %252 unwind label %268

252:                                              ; preds = %251
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %253 = invoke noundef float @_ZN3JPH3CosEf(float noundef 0x40169E9560000000)
          to label %254 unwind label %268

254:                                              ; preds = %252
  %255 = invoke noundef float @_ZN3JPH3SinEf(float noundef 0x40169E9560000000)
          to label %256 unwind label %268

256:                                              ; preds = %254
  %257 = fmul float %253, 5.000000e+00
  %258 = fmul float %255, 5.000000e+00
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %257, float noundef 0.000000e+00, float noundef %258)
          to label %259 unwind label %268

259:                                              ; preds = %256
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 16 dereferenceable(16) %17)
          to label %260 unwind label %268

260:                                              ; preds = %259
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %261 = invoke noundef float @_ZN3JPH3CosEf(float noundef 0x401921FB60000000)
          to label %262 unwind label %268

262:                                              ; preds = %260
  %263 = invoke noundef float @_ZN3JPH3SinEf(float noundef 0x401921FB60000000)
          to label %264 unwind label %268

264:                                              ; preds = %262
  %265 = fmul float %261, 5.000000e+00
  %266 = fmul float %263, 5.000000e+00
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %265, float noundef 0.000000e+00, float noundef %266)
          to label %267 unwind label %268

267:                                              ; preds = %264
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 16 dereferenceable(16) %17)
          to label %.preheader unwind label %268

.preheader:                                       ; preds = %267
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  %.sroa.211.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  br label %270

268:                                              ; preds = %267, %264, %262, %260, %259, %256, %254, %252, %251, %248, %246, %244, %243, %240, %238, %236, %235, %232, %230, %228, %227, %224, %222, %220, %219, %216, %214, %212, %211, %208, %206, %204, %203, %200, %198, %196, %195, %192, %190, %188, %187, %184, %182, %180, %179, %176, %174, %140
  %269 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  br label %400

270:                                              ; preds = %.preheader, %293
  %indvars.iv114 = phi i64 [ 1, %.preheader ], [ %indvars.iv.next115, %293 ]
  %271 = call noundef i64 @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
  %272 = shl i64 %271, 32
  %sext117 = add i64 %272, -4294967296
  %273 = ashr exact i64 %sext117, 32
  %274 = icmp slt i64 %indvars.iv114, %273
  br i1 %274, label %279, label %275

275:                                              ; preds = %270
  %276 = call noundef ptr @_ZNK3JPH3RefINS_25PathConstraintPathHermiteEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %277 = getelementptr inbounds i8, ptr %0, i64 120
  %278 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_18PathConstraintPathEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %277, ptr noundef %276)
          to label %298 unwind label %370

279:                                              ; preds = %270
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %280 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %indvars.iv.next115)
          to label %281 unwind label %296

281:                                              ; preds = %279
  %282 = add nsw i64 %indvars.iv114, -1
  %283 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %282)
          to label %284 unwind label %296

284:                                              ; preds = %281
  %.sroa.016.0.copyload = load double, ptr %283, align 16
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %283, i64 8
  %.sroa.217.0.copyload = load double, ptr %.sroa.217.0..sroa_idx, align 8, !tbaa !7
  %285 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %280, double %.sroa.016.0.copyload, double %.sroa.217.0.copyload)
          to label %286 unwind label %296

286:                                              ; preds = %284
  %287 = extractvalue { double, double } %285, 0
  %288 = extractvalue { double, double } %285, 1
  %289 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 5.000000e-01, double %287, double %288)
          to label %290 unwind label %296

290:                                              ; preds = %286
  %291 = call noundef ptr @_ZNK3JPH3RefINS_25PathConstraintPathHermiteEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %292 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %indvars.iv114)
          to label %293 unwind label %296

293:                                              ; preds = %290
  %294 = extractvalue { double, double } %289, 1
  %295 = extractvalue { double, double } %289, 0
  %.sroa.014.0.copyload = load double, ptr %292, align 16
  %.sroa.215.0..sroa_idx = getelementptr inbounds i8, ptr %292, i64 8
  %.sroa.215.0.copyload = load double, ptr %.sroa.215.0..sroa_idx, align 8, !tbaa !7
  %.sroa.010.0.copyload = load double, ptr %15, align 16
  %.sroa.211.0.copyload = load double, ptr %.sroa.211.0..sroa_idx, align 8, !tbaa !7
  invoke void @_ZN3JPH25PathConstraintPathHermite8AddPointENS_4Vec3ES1_S1_(ptr noundef nonnull align 8 dereferenceable(40) %291, double %.sroa.014.0.copyload, double %.sroa.215.0.copyload, double %295, double %294, double %.sroa.010.0.copyload, double %.sroa.211.0.copyload)
          to label %270 unwind label %296, !llvm.loop !41

296:                                              ; preds = %293, %290, %286, %284, %281, %279
  %297 = landingpad { ptr, i32 }
          cleanup
  br label %400

298:                                              ; preds = %275
  %299 = load ptr, ptr %74, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %18) #10
  %300 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %301 unwind label %372

301:                                              ; preds = %298
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef 5.000000e+00, float noundef 5.000000e-01, float noundef 5.000000e+00)
          to label %302 unwind label %374

302:                                              ; preds = %301
  %303 = load double, ptr %19, align 16
  %304 = getelementptr inbounds i8, ptr %19, i64 8
  %305 = load double, ptr %304, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %300, double %303, double %305, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %306 unwind label %374

306:                                              ; preds = %302
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %20, float noundef 1.000000e+01, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %307 unwind label %372

307:                                              ; preds = %306
  %308 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %309 unwind label %372

309:                                              ; preds = %307
  %310 = extractvalue { double, double } %308, 0
  %311 = extractvalue { double, double } %308, 1
  %312 = load double, ptr %20, align 16
  %313 = getelementptr inbounds i8, ptr %20, i64 8
  %314 = load double, ptr %313, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %18, ptr noundef nonnull %300, double %312, double %314, double %310, double %311, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %315 unwind label %372

315:                                              ; preds = %309
  %316 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %299, ptr noundef nonnull align 16 dereferenceable(256) %18)
          to label %317 unwind label %376

317:                                              ; preds = %315
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %18) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %18) #10
  %318 = load ptr, ptr %74, align 8, !tbaa !11
  %319 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %316)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %318, ptr noundef nonnull align 4 dereferenceable(4) %319, i32 noundef 0)
          to label %320 unwind label %379

320:                                              ; preds = %317
  %321 = load ptr, ptr %74, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %21) #10
  %322 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %323 unwind label %381

323:                                              ; preds = %320
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef 5.000000e-01, float noundef 1.000000e+00, float noundef 2.000000e+00)
          to label %324 unwind label %383

324:                                              ; preds = %323
  %325 = load double, ptr %22, align 16
  %326 = getelementptr inbounds i8, ptr %22, i64 8
  %327 = load double, ptr %326, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %322, double %325, double %327, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %328 unwind label %383

328:                                              ; preds = %324
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %23, float noundef 1.500000e+01, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %329 unwind label %381

329:                                              ; preds = %328
  %330 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %331 unwind label %381

331:                                              ; preds = %329
  %332 = extractvalue { double, double } %330, 0
  %333 = extractvalue { double, double } %330, 1
  %334 = load double, ptr %23, align 16
  %335 = getelementptr inbounds i8, ptr %23, i64 8
  %336 = load double, ptr %335, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %21, ptr noundef nonnull %322, double %334, double %336, double %332, double %333, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %337 unwind label %381

337:                                              ; preds = %331
  %338 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %321, ptr noundef nonnull align 16 dereferenceable(256) %21)
          to label %339 unwind label %385

339:                                              ; preds = %337
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %21) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %21) #10
  invoke void @_ZN3JPH4Body16SetAllowSleepingEb(ptr noundef nonnull align 16 dereferenceable(122) %338, i1 noundef zeroext false)
          to label %340 unwind label %388

340:                                              ; preds = %339
  %341 = load ptr, ptr %74, align 8, !tbaa !11
  %342 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %338)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %341, ptr noundef nonnull align 4 dereferenceable(4) %342, i32 noundef 0)
          to label %343 unwind label %388

343:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %24) #10
  invoke void @_ZN3JPH22PathConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(128) %24)
          to label %344 unwind label %390

344:                                              ; preds = %343
  %345 = call noundef ptr @_ZNK3JPH3RefINS_25PathConstraintPathHermiteEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %346 = getelementptr inbounds i8, ptr %24, i64 40
  %347 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_18PathConstraintPathEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %346, ptr noundef %345)
          to label %348 unwind label %392

348:                                              ; preds = %344
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %25, float noundef 0.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %349 unwind label %394

349:                                              ; preds = %348
  %350 = getelementptr inbounds i8, ptr %24, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %350, ptr noundef nonnull align 16 dereferenceable(16) %25, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #10
  %351 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %352 unwind label %396

352:                                              ; preds = %349
  %353 = extractvalue { double, double } %351, 0
  %354 = extractvalue { double, double } %351, 1
  %355 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %353, double %354, float noundef 0xBFD41B2F80000000)
          to label %356 unwind label %396

356:                                              ; preds = %352
  %357 = extractvalue { double, double } %355, 0
  %358 = extractvalue { double, double } %355, 1
  %359 = getelementptr inbounds i8, ptr %24, i64 64
  store double %357, ptr %359, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %24, i64 72
  store double %358, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !7
  %360 = load i32, ptr @_ZN18PathConstraintTest16sOrientationTypeE, align 4, !tbaa !22
  %361 = getelementptr inbounds i8, ptr %24, i64 116
  store i32 %360, ptr %361, align 4, !tbaa !24
  %362 = invoke noundef ptr @_ZNK3JPH22PathConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(128) %24, ptr noundef nonnull align 16 dereferenceable(122) %316, ptr noundef nonnull align 16 dereferenceable(122) %338)
          to label %363 unwind label %392

363:                                              ; preds = %356
  %364 = getelementptr inbounds i8, ptr %0, i64 136
  %365 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_14PathConstraintEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %364, ptr noundef %362)
          to label %366 unwind label %392

366:                                              ; preds = %363
  %367 = load ptr, ptr %134, align 8, !tbaa !40
  %368 = call noundef ptr @_ZNK3JPH3RefINS_14PathConstraintEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %364)
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %367, ptr noundef %368)
          to label %369 unwind label %392

369:                                              ; preds = %366
  call void @_ZN3JPH22PathConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %24) #10
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %24) #10
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #10
  call void @_ZN3JPH3RefINS_25PathConstraintPathHermiteEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #10
  ret void

370:                                              ; preds = %275
  %371 = landingpad { ptr, i32 }
          cleanup
  br label %400

372:                                              ; preds = %309, %307, %306, %298
  %373 = landingpad { ptr, i32 }
          cleanup
  br label %378

374:                                              ; preds = %302, %301
  %375 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %300) #10
  br label %378

376:                                              ; preds = %315
  %377 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %18) #10
  br label %378

378:                                              ; preds = %376, %374, %372
  %.pn94 = phi { ptr, i32 } [ %377, %376 ], [ %373, %372 ], [ %375, %374 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %18) #10
  br label %400

379:                                              ; preds = %317
  %380 = landingpad { ptr, i32 }
          cleanup
  br label %400

381:                                              ; preds = %331, %329, %328, %320
  %382 = landingpad { ptr, i32 }
          cleanup
  br label %387

383:                                              ; preds = %324, %323
  %384 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %322) #10
  br label %387

385:                                              ; preds = %337
  %386 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %21) #10
  br label %387

387:                                              ; preds = %385, %383, %381
  %.pn96 = phi { ptr, i32 } [ %386, %385 ], [ %382, %381 ], [ %384, %383 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %21) #10
  br label %400

388:                                              ; preds = %340, %339
  %389 = landingpad { ptr, i32 }
          cleanup
  br label %400

390:                                              ; preds = %343
  %391 = landingpad { ptr, i32 }
          cleanup
  br label %399

392:                                              ; preds = %366, %363, %356, %344
  %393 = landingpad { ptr, i32 }
          cleanup
  br label %398

394:                                              ; preds = %348
  %395 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #10
  br label %398

396:                                              ; preds = %352, %349
  %397 = landingpad { ptr, i32 }
          cleanup
  br label %398

398:                                              ; preds = %396, %394, %392
  %.pn98 = phi { ptr, i32 } [ %393, %392 ], [ %397, %396 ], [ %395, %394 ]
  call void @_ZN3JPH22PathConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %24) #10
  br label %399

399:                                              ; preds = %398, %390
  %.pn98.pn = phi { ptr, i32 } [ %.pn98, %398 ], [ %391, %390 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %24) #10
  br label %400

400:                                              ; preds = %378, %379, %399, %388, %387, %370, %296, %268
  %.pn103 = phi { ptr, i32 } [ %269, %268 ], [ %297, %296 ], [ %371, %370 ], [ %380, %379 ], [ %.pn94, %378 ], [ %.pn98.pn, %399 ], [ %389, %388 ], [ %.pn96, %387 ]
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #10
  br label %401

401:                                              ; preds = %400, %172
  %.pn103.pn = phi { ptr, i32 } [ %.pn103, %400 ], [ %173, %172 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #10
  call void @_ZN3JPH3RefINS_25PathConstraintPathHermiteEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #10
  br label %402

402:                                              ; preds = %401, %171
  %.pn106.pn.pn = phi { ptr, i32 } [ %.pn106.pn, %171 ], [ %.pn103.pn, %401 ]
  resume { ptr, i32 } %.pn106.pn.pn
}

declare noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112), float noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH3RefINS_25PathConstraintPathHermiteEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5 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 #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3CosEf(float noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3SinEf(float noundef) local_unnamed_addr #3

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH25PathConstraintPathHermite8AddPointENS_4Vec3ES1_S1_(ptr noundef nonnull align 8 dereferenceable(40), double, double, double, double, double, double) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef) local_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 #9 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #1 align 2

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

declare void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #2

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

declare void @_ZN3JPH4Body16SetAllowSleepingEb(ptr noundef nonnull align 16 dereferenceable(122), i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH22PathConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(128)) unnamed_addr #5 align 2

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

declare noundef ptr @_ZNK3JPH22PathConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(128), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122)) unnamed_addr #2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH22PathConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128)) unnamed_addr #4 align 2

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisXEv() local_unnamed_addr #3 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 = { "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"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { 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 #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !6}
!11 = !{!12, !13, i64 24}
!12 = !{!"_ZTS4Test", !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !14, i64 48, !15, i64 56}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"bool", !8, i64 0}
!15 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !16, i64 0}
!16 = !{!"_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", !13, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !13, i64 48}
!17 = !{!"long", !8, i64 0}
!18 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !13, i64 0}
!19 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !20, i64 0, !17, i64 8}
!20 = !{!"float", !8, i64 0}
!21 = !{i64 0, i64 16, !7}
!22 = !{!23, !23, i64 0}
!23 = !{!"_ZTSN3JPH27EPathRotationConstraintTypeE", !8, i64 0}
!24 = !{!25, !23, i64 116}
!25 = !{!"_ZTSN3JPH22PathConstraintSettingsE", !26, i64 0, !33, i64 40, !34, i64 48, !35, i64 64, !20, i64 80, !20, i64 84, !37, i64 88, !23, i64 116}
!26 = !{!"_ZTSN3JPH25TwoBodyConstraintSettingsE", !27, i64 0}
!27 = !{!"_ZTSN3JPH18ConstraintSettingsE", !28, i64 0, !29, i64 8, !14, i64 12, !32, i64 16, !32, i64 20, !32, i64 24, !20, i64 28, !17, i64 32}
!28 = !{!"_ZTSN3JPH18SerializableObjectE"}
!29 = !{!"_ZTSN3JPH9RefTargetINS_18ConstraintSettingsEEE", !30, i64 0}
!30 = !{!"_ZTSSt6atomicIjE", !31, i64 0}
!31 = !{!"_ZTSSt13__atomic_baseIjE", !32, i64 0}
!32 = !{!"int", !8, i64 0}
!33 = !{!"_ZTSN3JPH8RefConstINS_18PathConstraintPathEEE", !13, i64 0}
!34 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!35 = !{!"_ZTSN3JPH4QuatE", !36, i64 0}
!36 = !{!"_ZTSN3JPH4Vec4E", !8, i64 0}
!37 = !{!"_ZTSN3JPH13MotorSettingsE", !38, i64 0, !20, i64 12, !20, i64 16, !20, i64 20, !20, i64 24}
!38 = !{!"_ZTSN3JPH14SpringSettingsE", !39, i64 0, !8, i64 4, !20, i64 8}
!39 = !{!"_ZTSN3JPH11ESpringModeE", !8, i64 0}
!40 = !{!12, !13, i64 16}
!41 = distinct !{!41, !6}


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