; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Constraints/PulleyConstraintTest.ll (ZN20PulleyConstraintTest10InitializeEv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.6", %"class.JPH::RefConst" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.5", i32, i32 }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.6" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::PulleyConstraintSettings" = type <{ %"class.JPH::TwoBodyConstraintSettings", i32, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, float, [4 x i8] }>
%"class.JPH::TwoBodyConstraintSettings" = type { %"class.JPH::ConstraintSettings" }
%"class.JPH::ConstraintSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.10", i8, i32, i32, i32, float, i64 }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.10" = type { %"struct.std::atomic.7" }
%"struct.std::atomic.7" = type { %"struct.std::__atomic_base.8" }
%"struct.std::__atomic_base.8" = type { i32 }
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20PulleyConstraintTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(112) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca ptr, align 8
  %6 = alloca %"class.JPH::BodyCreationSettings", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Quat", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca ptr, align 8
  %14 = alloca %"class.JPH::BodyCreationSettings", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Quat", align 16
  %18 = alloca %"class.JPH::PulleyConstraintSettings", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %27 = load ptr, ptr %2, align 8
  %28 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %27, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %225, %1
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = icmp slt i32 %30, 4
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  br label %235

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #9
  %34 = load i32, ptr %3, align 4, !tbaa !9
  %35 = sitofp i32 %34 to float
  %36 = fmul float -1.000000e+01, %35
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef -1.000000e+01, float noundef 1.000000e+01, float noundef %36)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %37 = getelementptr inbounds %class.Test, ptr %27, i32 0, i32 3
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 256, ptr %6) #9
  %39 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  %40 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 5.000000e-01)
          to label %41 unwind label %175

41:                                               ; preds = %33
  %42 = getelementptr inbounds %"class.JPH::Vec3", ptr %7, i32 0, i32 0
  %43 = getelementptr inbounds %union.anon, ptr %42, i32 0, i32 0
  %44 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %45 = extractvalue { double, double } %40, 0
  store double %45, ptr %44, align 16
  %46 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %47 = extractvalue { double, double } %40, 1
  store double %47, ptr %46, align 8
  %48 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  %49 = load double, ptr %48, align 16
  %50 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  %51 = load double, ptr %50, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %39, double %49, double %51, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %52 unwind label %175

52:                                               ; preds = %41
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 %4, i64 16, i1 false), !tbaa.struct !20
  %53 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %54 = getelementptr inbounds %"class.JPH::Quat", ptr %11, i32 0, i32 0
  %55 = getelementptr inbounds %"class.JPH::Vec4", ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds %union.anon.4, ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %58 = extractvalue { double, double } %53, 0
  store double %58, ptr %57, align 16
  %59 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %60 = extractvalue { double, double } %53, 1
  store double %60, ptr %59, align 8
  %61 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %62 = load double, ptr %61, align 16
  %63 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %64 = load double, ptr %63, align 8
  %65 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %66 = load double, ptr %65, align 16
  %67 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %68 = load double, ptr %67, align 8
  call void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %6, ptr noundef %39, double %62, double %64, double %66, double %68, i8 noundef zeroext 2, i16 noundef zeroext 1)
  %69 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 16 dereferenceable(256) %6)
          to label %70 unwind label %179

70:                                               ; preds = %52
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %6) #9
  store ptr %69, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %class.Test, ptr %27, i32 0, i32 3
  %72 = load ptr, ptr %71, align 8, !tbaa !11
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %73)
  call void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 4 dereferenceable(4) %74, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  %75 = load i32, ptr %3, align 4, !tbaa !9
  %76 = sitofp i32 %75 to float
  %77 = fmul float -1.000000e+01, %76
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef 1.000000e+01, float noundef 1.000000e+01, float noundef %77)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %78 = getelementptr inbounds %class.Test, ptr %27, i32 0, i32 3
  %79 = load ptr, ptr %78, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 256, ptr %14) #9
  %80 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  %81 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 5.000000e-01)
          to label %82 unwind label %184

82:                                               ; preds = %70
  %83 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %84 = getelementptr inbounds %union.anon, ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds { double, double }, ptr %84, i32 0, i32 0
  %86 = extractvalue { double, double } %81, 0
  store double %86, ptr %85, align 16
  %87 = getelementptr inbounds { double, double }, ptr %84, i32 0, i32 1
  %88 = extractvalue { double, double } %81, 1
  store double %88, ptr %87, align 8
  %89 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %90 = load double, ptr %89, align 16
  %91 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %92 = load double, ptr %91, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %80, double %90, double %92, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %93 unwind label %184

93:                                               ; preds = %82
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !20
  %94 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %95 = getelementptr inbounds %"class.JPH::Quat", ptr %17, i32 0, i32 0
  %96 = getelementptr inbounds %"class.JPH::Vec4", ptr %95, i32 0, i32 0
  %97 = getelementptr inbounds %union.anon.4, ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds { double, double }, ptr %97, i32 0, i32 0
  %99 = extractvalue { double, double } %94, 0
  store double %99, ptr %98, align 16
  %100 = getelementptr inbounds { double, double }, ptr %97, i32 0, i32 1
  %101 = extractvalue { double, double } %94, 1
  store double %101, ptr %100, align 8
  %102 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %103 = load double, ptr %102, align 16
  %104 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %105 = load double, ptr %104, align 8
  %106 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %107 = load double, ptr %106, align 16
  %108 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %109 = load double, ptr %108, align 8
  call void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %14, ptr noundef %80, double %103, double %105, double %107, double %109, i8 noundef zeroext 2, i16 noundef zeroext 1)
  %110 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 16 dereferenceable(256) %14)
          to label %111 unwind label %188

111:                                              ; preds = %93
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %14) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %14) #9
  store ptr %110, ptr %13, align 8, !tbaa !5
  %112 = getelementptr inbounds %class.Test, ptr %27, i32 0, i32 3
  %113 = load ptr, ptr %112, align 8, !tbaa !11
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %114)
  call void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %113, ptr noundef nonnull align 4 dereferenceable(4) %115, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 128, ptr %18) #9
  call void @_ZN3JPH24PulleyConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(128) %18)
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %20, float noundef 0.000000e+00, float noundef 5.000000e-01, float noundef 0.000000e+00)
          to label %116 unwind label %193

116:                                              ; preds = %111
  %117 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %118 = load double, ptr %117, align 16
  %119 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %120 = load double, ptr %119, align 8
  %121 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %118, double %120)
          to label %122 unwind label %193

122:                                              ; preds = %116
  %123 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %124 = getelementptr inbounds %union.anon, ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds { double, double }, ptr %124, i32 0, i32 0
  %126 = extractvalue { double, double } %121, 0
  store double %126, ptr %125, align 16
  %127 = getelementptr inbounds { double, double }, ptr %124, i32 0, i32 1
  %128 = extractvalue { double, double } %121, 1
  store double %128, ptr %127, align 8
  %129 = getelementptr inbounds %"class.JPH::PulleyConstraintSettings", ptr %18, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %129, ptr align 16 %19, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef 0.000000e+00, float noundef 5.000000e-01, float noundef 0.000000e+00)
          to label %130 unwind label %197

130:                                              ; preds = %122
  %131 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %132 = load double, ptr %131, align 16
  %133 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %134 = load double, ptr %133, align 8
  %135 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %132, double %134)
          to label %136 unwind label %197

136:                                              ; preds = %130
  %137 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %138 = getelementptr inbounds %union.anon, ptr %137, i32 0, i32 0
  %139 = getelementptr inbounds { double, double }, ptr %138, i32 0, i32 0
  %140 = extractvalue { double, double } %135, 0
  store double %140, ptr %139, align 16
  %141 = getelementptr inbounds { double, double }, ptr %138, i32 0, i32 1
  %142 = extractvalue { double, double } %135, 1
  store double %142, ptr %141, align 8
  %143 = getelementptr inbounds %"class.JPH::PulleyConstraintSettings", ptr %18, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %143, ptr align 16 %21, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  %144 = getelementptr inbounds %"class.JPH::PulleyConstraintSettings", ptr %18, i32 0, i32 3
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %24, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %145 unwind label %201

145:                                              ; preds = %136
  %146 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %147 = load double, ptr %146, align 16
  %148 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %149 = load double, ptr %148, align 8
  %150 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %144, double %147, double %149)
          to label %151 unwind label %201

151:                                              ; preds = %145
  %152 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %153 = getelementptr inbounds %union.anon, ptr %152, i32 0, i32 0
  %154 = getelementptr inbounds { double, double }, ptr %153, i32 0, i32 0
  %155 = extractvalue { double, double } %150, 0
  store double %155, ptr %154, align 16
  %156 = getelementptr inbounds { double, double }, ptr %153, i32 0, i32 1
  %157 = extractvalue { double, double } %150, 1
  store double %157, ptr %156, align 8
  %158 = getelementptr inbounds %"class.JPH::PulleyConstraintSettings", ptr %18, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %158, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #9
  %159 = getelementptr inbounds %"class.JPH::PulleyConstraintSettings", ptr %18, i32 0, i32 5
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %26, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %160 unwind label %205

160:                                              ; preds = %151
  %161 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %162 = load double, ptr %161, align 16
  %163 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %164 = load double, ptr %163, align 8
  %165 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %159, double %162, double %164)
          to label %166 unwind label %205

166:                                              ; preds = %160
  %167 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %168 = getelementptr inbounds %union.anon, ptr %167, i32 0, i32 0
  %169 = getelementptr inbounds { double, double }, ptr %168, i32 0, i32 0
  %170 = extractvalue { double, double } %165, 0
  store double %170, ptr %169, align 16
  %171 = getelementptr inbounds { double, double }, ptr %168, i32 0, i32 1
  %172 = extractvalue { double, double } %165, 1
  store double %172, ptr %171, align 8
  %173 = getelementptr inbounds %"class.JPH::PulleyConstraintSettings", ptr %18, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %173, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  %174 = load i32, ptr %3, align 4, !tbaa !9
  switch i32 %174, label %217 [
    i32 0, label %217
    i32 1, label %209
    i32 2, label %212
    i32 3, label %215
  ]

175:                                              ; preds = %41, %33
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %8, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %9, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %39) #9
  br label %183

179:                                              ; preds = %52
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %8, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %9, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #9
  br label %183

183:                                              ; preds = %179, %175
  call void @llvm.lifetime.end.p0(i64 256, ptr %6) #9
  br label %234

184:                                              ; preds = %82, %70
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %8, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %9, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %80) #9
  br label %192

188:                                              ; preds = %93
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %8, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %9, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %14) #9
  br label %192

192:                                              ; preds = %188, %184
  call void @llvm.lifetime.end.p0(i64 256, ptr %14) #9
  br label %233

193:                                              ; preds = %116, %111
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %8, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  br label %232

197:                                              ; preds = %130, %122
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %8, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  br label %232

201:                                              ; preds = %145, %136
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %8, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  br label %232

205:                                              ; preds = %160, %151
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %8, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  br label %232

209:                                              ; preds = %166
  %210 = getelementptr inbounds %"class.JPH::PulleyConstraintSettings", ptr %18, i32 0, i32 9
  store float -1.000000e+00, ptr %210, align 8, !tbaa !22
  %211 = getelementptr inbounds %"class.JPH::PulleyConstraintSettings", ptr %18, i32 0, i32 8
  store float -1.000000e+00, ptr %211, align 4, !tbaa !32
  br label %217

212:                                              ; preds = %166
  %213 = getelementptr inbounds %"class.JPH::PulleyConstraintSettings", ptr %18, i32 0, i32 8
  store float 1.800000e+01, ptr %213, align 4, !tbaa !32
  %214 = getelementptr inbounds %"class.JPH::PulleyConstraintSettings", ptr %18, i32 0, i32 9
  store float 2.200000e+01, ptr %214, align 8, !tbaa !22
  br label %217

215:                                              ; preds = %166
  %216 = getelementptr inbounds %"class.JPH::PulleyConstraintSettings", ptr %18, i32 0, i32 7
  store float 4.000000e+00, ptr %216, align 16, !tbaa !33
  br label %217

217:                                              ; preds = %215, %212, %209, %166, %166
  %218 = getelementptr inbounds %class.Test, ptr %27, i32 0, i32 2
  %219 = load ptr, ptr %218, align 8, !tbaa !34
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = load ptr, ptr %13, align 8, !tbaa !5
  %222 = invoke noundef ptr @_ZNK3JPH24PulleyConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(128) %18, ptr noundef nonnull align 16 dereferenceable(122) %220, ptr noundef nonnull align 16 dereferenceable(122) %221)
          to label %223 unwind label %228

223:                                              ; preds = %217
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %219, ptr noundef %222)
          to label %224 unwind label %228

224:                                              ; preds = %223
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %18) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #9
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %3, align 4, !tbaa !9
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %3, align 4, !tbaa !9
  br label %29, !llvm.loop !35

228:                                              ; preds = %223, %217
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %8, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %9, align 4
  br label %232

232:                                              ; preds = %228, %205, %201, %197, %193
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %18) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr %18) #9
  br label %233

233:                                              ; preds = %232, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  br label %234

234:                                              ; preds = %233, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  br label %236

235:                                              ; preds = %32
  ret void

236:                                              ; preds = %234
  %237 = load ptr, ptr %8, align 8
  %238 = load i32, ptr %9, align 4
  %239 = insertvalue { ptr, i32 } poison, ptr %237, 0
  %240 = insertvalue { ptr, i32 } %239, i32 %238, 1
  resume { ptr, i32 } %240
}

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 void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #3 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) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec310sReplicateEf(float 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) #5 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Quat9sIdentityEv() #4 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 #7 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)) #7 align 2

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

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

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

declare noundef ptr @_ZNK3JPH24PulleyConstraintSettings6CreateERNS_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 nounwind uwtable
declare dso_local void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #7 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"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { 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 #9 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 24}
!12 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !14, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !15, i64 0}
!15 = !{!"_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, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !6, i64 48}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!18 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !19, i64 0, !16, i64 8}
!19 = !{!"float", !7, i64 0}
!20 = !{i64 0, i64 16, !21}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !19, i64 120}
!23 = !{!"_ZTSN3JPH24PulleyConstraintSettingsE", !24, i64 0, !30, i64 40, !31, i64 48, !31, i64 64, !31, i64 80, !31, i64 96, !19, i64 112, !19, i64 116, !19, i64 120}
!24 = !{!"_ZTSN3JPH25TwoBodyConstraintSettingsE", !25, i64 0}
!25 = !{!"_ZTSN3JPH18ConstraintSettingsE", !26, i64 0, !27, i64 8, !13, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !19, i64 28, !16, i64 32}
!26 = !{!"_ZTSN3JPH18SerializableObjectE"}
!27 = !{!"_ZTSN3JPH9RefTargetINS_18ConstraintSettingsEEE", !28, i64 0}
!28 = !{!"_ZTSSt6atomicIjE", !29, i64 0}
!29 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!30 = !{!"_ZTSN3JPH16EConstraintSpaceE", !7, i64 0}
!31 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!32 = !{!23, !19, i64 116}
!33 = !{!23, !19, i64 112}
!34 = !{!12, !6, i64 16}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.6", %"class.JPH::RefConst" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.5", i32, i32 }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.6" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::PulleyConstraintSettings" = type <{ %"class.JPH::TwoBodyConstraintSettings", i32, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, float, [4 x i8] }>
%"class.JPH::TwoBodyConstraintSettings" = type { %"class.JPH::ConstraintSettings" }
%"class.JPH::ConstraintSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.10", i8, i32, i32, i32, float, i64 }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.10" = type { %"struct.std::atomic.7" }
%"struct.std::atomic.7" = type { %"struct.std::__atomic_base.8" }
%"struct.std::__atomic_base.8" = type { i32 }

; 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 @_ZN20PulleyConstraintTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(112) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::Vec3", align 16
  %3 = alloca %"class.JPH::BodyCreationSettings", align 16
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::BodyCreationSettings", align 16
  %6 = alloca %"class.JPH::PulleyConstraintSettings", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = tail call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %0, float noundef 2.000000e+02)
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  %13 = getelementptr inbounds i8, ptr %7, i64 8
  %14 = getelementptr inbounds i8, ptr %6, i64 48
  %.sroa.56.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 56
  %15 = getelementptr inbounds i8, ptr %8, i64 8
  %16 = getelementptr inbounds i8, ptr %6, i64 80
  %.sroa.54.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 88
  %17 = getelementptr inbounds i8, ptr %9, i64 8
  %18 = getelementptr inbounds i8, ptr %6, i64 64
  %.sroa.52.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 72
  %19 = getelementptr inbounds i8, ptr %10, i64 8
  %20 = getelementptr inbounds i8, ptr %6, i64 96
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 104
  %21 = getelementptr inbounds i8, ptr %6, i64 116
  %22 = getelementptr inbounds i8, ptr %6, i64 112
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  br label %25

24:                                               ; preds = %109
  ret void

25:                                               ; preds = %1, %109
  %.056 = phi i32 [ 0, %1 ], [ %110, %109 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #8
  %26 = uitofp nneg i32 %.056 to float
  %27 = fmul float %26, -1.000000e+01
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %2, float noundef -1.000000e+01, float noundef 1.000000e+01, float noundef %27)
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #8
  %29 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  %30 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 5.000000e-01)
          to label %31 unwind label %84

31:                                               ; preds = %25
  %32 = extractvalue { double, double } %30, 0
  %33 = extractvalue { double, double } %30, 1
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %29, double %32, double %33, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %34 unwind label %84

34:                                               ; preds = %31
  %.sroa.015.0.copyload = load double, ptr %2, align 16
  %.sroa.216.0.copyload = load double, ptr %.sroa.216.0..sroa_idx, align 8, !tbaa !17
  %35 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %36 = extractvalue { double, double } %35, 0
  %37 = extractvalue { double, double } %35, 1
  call void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %3, ptr noundef nonnull %29, double %.sroa.015.0.copyload, double %.sroa.216.0.copyload, double %36, double %37, i8 noundef zeroext 2, i16 noundef zeroext 1)
  %38 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 16 dereferenceable(256) %3)
          to label %39 unwind label %86

39:                                               ; preds = %34
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %3) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #8
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %38)
  call void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 4 dereferenceable(4) %41, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 1.000000e+01, float noundef 1.000000e+01, float noundef %27)
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #8
  %43 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  %44 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 5.000000e-01)
          to label %45 unwind label %89

45:                                               ; preds = %39
  %46 = extractvalue { double, double } %44, 0
  %47 = extractvalue { double, double } %44, 1
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %43, double %46, double %47, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %48 unwind label %89

48:                                               ; preds = %45
  %.sroa.08.0.copyload = load double, ptr %4, align 16
  %.sroa.29.0.copyload = load double, ptr %.sroa.29.0..sroa_idx, align 8, !tbaa !17
  %49 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %50 = extractvalue { double, double } %49, 0
  %51 = extractvalue { double, double } %49, 1
  call void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %5, ptr noundef nonnull %43, double %.sroa.08.0.copyload, double %.sroa.29.0.copyload, double %50, double %51, i8 noundef zeroext 2, i16 noundef zeroext 1)
  %52 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 16 dereferenceable(256) %5)
          to label %53 unwind label %91

53:                                               ; preds = %48
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %5) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #8
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %52)
  call void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 4 dereferenceable(4) %55, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %6) #8
  call void @_ZN3JPH24PulleyConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(128) %6)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef 0.000000e+00, float noundef 5.000000e-01, float noundef 0.000000e+00)
          to label %56 unwind label %94

56:                                               ; preds = %53
  %57 = load double, ptr %7, align 16
  %58 = load double, ptr %13, align 8
  %59 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %2, double %57, double %58)
          to label %60 unwind label %94

60:                                               ; preds = %56
  %61 = extractvalue { double, double } %59, 0
  %62 = extractvalue { double, double } %59, 1
  store double %61, ptr %14, align 16
  store double %62, ptr %.sroa.56.0..sroa_idx, align 8, !tbaa !17
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef 0.000000e+00, float noundef 5.000000e-01, float noundef 0.000000e+00)
          to label %63 unwind label %96

63:                                               ; preds = %60
  %64 = load double, ptr %8, align 16
  %65 = load double, ptr %15, align 8
  %66 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %64, double %65)
          to label %67 unwind label %96

67:                                               ; preds = %63
  %68 = extractvalue { double, double } %66, 0
  %69 = extractvalue { double, double } %66, 1
  store double %68, ptr %16, align 16
  store double %69, ptr %.sroa.54.0..sroa_idx, align 8, !tbaa !17
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %70 unwind label %98

70:                                               ; preds = %67
  %71 = load double, ptr %9, align 16
  %72 = load double, ptr %17, align 8
  %73 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %71, double %72)
          to label %74 unwind label %98

74:                                               ; preds = %70
  %75 = extractvalue { double, double } %73, 0
  %76 = extractvalue { double, double } %73, 1
  store double %75, ptr %18, align 16
  store double %76, ptr %.sroa.52.0..sroa_idx, align 8, !tbaa !17
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %77 unwind label %100

77:                                               ; preds = %74
  %78 = load double, ptr %10, align 16
  %79 = load double, ptr %19, align 8
  %80 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %78, double %79)
          to label %81 unwind label %100

81:                                               ; preds = %77
  %82 = extractvalue { double, double } %80, 0
  %83 = extractvalue { double, double } %80, 1
  store double %82, ptr %20, align 16
  store double %83, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !17
  switch i32 %.056, label %105 [
    i32 3, label %104
    i32 1, label %102
    i32 2, label %103
  ]

84:                                               ; preds = %31, %25
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %29) #8
  br label %88

86:                                               ; preds = %34
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %3) #8
  br label %88

88:                                               ; preds = %86, %84
  %.pn = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #8
  br label %115

89:                                               ; preds = %45, %39
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %43) #8
  br label %93

91:                                               ; preds = %48
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %5) #8
  br label %93

93:                                               ; preds = %91, %89
  %.pn35 = phi { ptr, i32 } [ %92, %91 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #8
  br label %114

94:                                               ; preds = %56, %53
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %113

96:                                               ; preds = %63, %60
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %113

98:                                               ; preds = %70, %67
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %113

100:                                              ; preds = %77, %74
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %113

102:                                              ; preds = %81
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %21, align 4, !tbaa !18
  br label %105

103:                                              ; preds = %81
  store <2 x float> <float 1.800000e+01, float 2.200000e+01>, ptr %21, align 4, !tbaa !18
  br label %105

104:                                              ; preds = %81
  store float 4.000000e+00, ptr %22, align 16, !tbaa !19
  br label %105

105:                                              ; preds = %104, %103, %102, %81
  %106 = load ptr, ptr %23, align 8, !tbaa !30
  %107 = invoke noundef ptr @_ZNK3JPH24PulleyConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(128) %6, ptr noundef nonnull align 16 dereferenceable(122) %38, ptr noundef nonnull align 16 dereferenceable(122) %52)
          to label %108 unwind label %111

108:                                              ; preds = %105
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %106, ptr noundef %107)
          to label %109 unwind label %111

109:                                              ; preds = %108
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %6) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #8
  %110 = add nuw nsw i32 %.056, 1
  %exitcond.not = icmp eq i32 %110, 4
  br i1 %exitcond.not, label %24, label %25, !llvm.loop !31

111:                                              ; preds = %108, %105
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %113

113:                                              ; preds = %111, %100, %98, %96, %94
  %.pn37 = phi { ptr, i32 } [ %112, %111 ], [ %101, %100 ], [ %99, %98 ], [ %97, %96 ], [ %95, %94 ]
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %6) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #8
  br label %114

114:                                              ; preds = %113, %93
  %.pn37.pn = phi { ptr, i32 } [ %.pn37, %113 ], [ %.pn35, %93 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  br label %115

115:                                              ; preds = %114, %88
  %.pn37.pn.pn = phi { ptr, i32 } [ %.pn37.pn, %114 ], [ %.pn, %88 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn37.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 void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #3 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 #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec310sReplicateEf(float 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 #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Quat9sIdentityEv() local_unnamed_addr #4 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 #6 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 #6 align 2

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

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

; 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

declare noundef ptr @_ZNK3JPH24PulleyConstraintSettings6CreateERNS_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 nounwind uwtable
declare dso_local void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { 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, !7, i64 24}
!6 = !{!"_ZTS4Test", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !11, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !12, i64 0}
!12 = !{!"_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", !7, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !7, i64 48}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !16, i64 0, !13, i64 8}
!16 = !{!"float", !8, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!16, !16, i64 0}
!19 = !{!20, !16, i64 112}
!20 = !{!"_ZTSN3JPH24PulleyConstraintSettingsE", !21, i64 0, !28, i64 40, !29, i64 48, !29, i64 64, !29, i64 80, !29, i64 96, !16, i64 112, !16, i64 116, !16, i64 120}
!21 = !{!"_ZTSN3JPH25TwoBodyConstraintSettingsE", !22, i64 0}
!22 = !{!"_ZTSN3JPH18ConstraintSettingsE", !23, i64 0, !24, i64 8, !10, i64 12, !27, i64 16, !27, i64 20, !27, i64 24, !16, i64 28, !13, i64 32}
!23 = !{!"_ZTSN3JPH18SerializableObjectE"}
!24 = !{!"_ZTSN3JPH9RefTargetINS_18ConstraintSettingsEEE", !25, i64 0}
!25 = !{!"_ZTSSt6atomicIjE", !26, i64 0}
!26 = !{!"_ZTSSt13__atomic_baseIjE", !27, i64 0}
!27 = !{!"int", !8, i64 0}
!28 = !{!"_ZTSN3JPH16EConstraintSpaceE", !8, i64 0}
!29 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!30 = !{!6, !7, i64 16}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass