; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Constraints/SpringTest.ll (ZN10SpringTest10InitializeEv)

; 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::DistanceConstraintSettings" = type <{ %"class.JPH::TwoBodyConstraintSettings", i32, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, %"class.JPH::SpringSettings", [12 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.JPH::SpringSettings" = type { i8, %union.anon.11, float }
%union.anon.11 = type { float }
%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 @_ZN10SpringTest10InitializeEv(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 %"class.JPH::Vec3", align 16
  %4 = alloca ptr, align 8
  %5 = alloca %"class.JPH::BodyCreationSettings", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Quat", align 16
  %11 = alloca i32, align 4
  %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 ptr, align 8
  %17 = alloca %"class.JPH::BodyCreationSettings", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Quat", align 16
  %21 = alloca %"class.JPH::DistanceConstraintSettings", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Quat", align 16
  %25 = alloca i32, align 4
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca ptr, align 8
  %31 = alloca %"class.JPH::BodyCreationSettings", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Quat", align 16
  %35 = alloca %"class.JPH::DistanceConstraintSettings", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Quat", align 16
  %39 = alloca i32, align 4
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca %"class.JPH::Vec3", align 16
  %44 = alloca ptr, align 8
  %45 = alloca %"class.JPH::BodyCreationSettings", align 16
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca %"class.JPH::Vec3", align 16
  %48 = alloca %"class.JPH::Quat", align 16
  %49 = alloca %"class.JPH::DistanceConstraintSettings", align 16
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca %"class.JPH::Quat", align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %53 = load ptr, ptr %2, align 8
  %54 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %53, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #10
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %3, float noundef 0.000000e+00, float noundef 7.500000e+01, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #10
  %55 = getelementptr inbounds %class.Test, ptr %53, i32 0, i32 3
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %5) #10
  %57 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef 1.000000e+02, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %58 unwind label %90

58:                                               ; preds = %1
  %59 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  %60 = load double, ptr %59, align 16
  %61 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  %62 = load double, ptr %61, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %57, double %60, double %62, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %63 unwind label %90

63:                                               ; preds = %58
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 %3, i64 16, i1 false), !tbaa.struct !18
  %64 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %65 = getelementptr inbounds %"class.JPH::Quat", ptr %10, i32 0, i32 0
  %66 = getelementptr inbounds %"class.JPH::Vec4", ptr %65, i32 0, i32 0
  %67 = getelementptr inbounds %union.anon.4, ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %69 = extractvalue { double, double } %64, 0
  store double %69, ptr %68, align 16
  %70 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %71 = extractvalue { double, double } %64, 1
  store double %71, ptr %70, align 8
  %72 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %73 = load double, ptr %72, align 16
  %74 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %75 = load double, ptr %74, align 8
  %76 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %77 = load double, ptr %76, align 16
  %78 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %79 = load double, ptr %78, align 8
  call void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %5, ptr noundef %57, double %73, double %75, double %77, double %79, i8 noundef zeroext 0, i16 noundef zeroext 0)
  %80 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef nonnull align 16 dereferenceable(256) %5)
          to label %81 unwind label %94

81:                                               ; preds = %63
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %5) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %5) #10
  store ptr %80, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %class.Test, ptr %53, i32 0, i32 3
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %84)
  call void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %83, ptr noundef nonnull align 4 dereferenceable(4) %85, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  store i32 0, ptr %11, align 4, !tbaa !20
  br label %86

86:                                               ; preds = %217, %81
  %87 = load i32, ptr %11, align 4, !tbaa !20
  %88 = icmp slt i32 %87, 10
  br i1 %88, label %99, label %89

89:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  br label %234

90:                                               ; preds = %58, %1
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %7, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %8, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %57) #10
  br label %98

94:                                               ; preds = %63
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %7, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %8, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %5) #10
  br label %98

98:                                               ; preds = %94, %90
  call void @llvm.lifetime.end.p0(i64 256, ptr %5) #10
  br label %517

99:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #10
  %100 = load i32, ptr %11, align 4, !tbaa !20
  %101 = sitofp i32 %100 to float
  %102 = call float @llvm.fmuladd.f32(float %101, float 5.000000e+00, float -1.000000e+02)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef %102, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %103 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %104 = load double, ptr %103, align 16
  %105 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %106 = load double, ptr %105, align 8
  %107 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %104, double %106)
  %108 = getelementptr inbounds %"class.JPH::Vec3", ptr %12, i32 0, i32 0
  %109 = getelementptr inbounds %union.anon, ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds { double, double }, ptr %109, i32 0, i32 0
  %111 = extractvalue { double, double } %107, 0
  store double %111, ptr %110, align 16
  %112 = getelementptr inbounds { double, double }, ptr %109, i32 0, i32 1
  %113 = extractvalue { double, double } %107, 1
  store double %113, ptr %112, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #10
  %114 = load i32, ptr %11, align 4, !tbaa !20
  %115 = sitofp i32 %114 to float
  %116 = call float @llvm.fmuladd.f32(float %115, float 2.500000e+00, float 1.000000e+01)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef 0.000000e+00, float noundef %116, float noundef 0.000000e+00)
  %117 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %118 = load double, ptr %117, align 16
  %119 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %120 = load double, ptr %119, align 8
  %121 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %118, double %120)
  %122 = getelementptr inbounds %"class.JPH::Vec3", ptr %14, i32 0, i32 0
  %123 = getelementptr inbounds %union.anon, ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 0
  %125 = extractvalue { double, double } %121, 0
  store double %125, ptr %124, align 16
  %126 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 1
  %127 = extractvalue { double, double } %121, 1
  store double %127, ptr %126, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %128 = getelementptr inbounds %class.Test, ptr %53, i32 0, i32 3
  %129 = load ptr, ptr %128, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %17) #10
  %130 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  %131 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 7.500000e-01)
          to label %132 unwind label %220

132:                                              ; preds = %99
  %133 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %134 = getelementptr inbounds %union.anon, ptr %133, i32 0, i32 0
  %135 = getelementptr inbounds { double, double }, ptr %134, i32 0, i32 0
  %136 = extractvalue { double, double } %131, 0
  store double %136, ptr %135, align 16
  %137 = getelementptr inbounds { double, double }, ptr %134, i32 0, i32 1
  %138 = extractvalue { double, double } %131, 1
  store double %138, ptr %137, align 8
  %139 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %140 = load double, ptr %139, align 16
  %141 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %142 = load double, ptr %141, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %130, double %140, double %142, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %143 unwind label %220

143:                                              ; preds = %132
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !18
  %144 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %145 = getelementptr inbounds %"class.JPH::Quat", ptr %20, i32 0, i32 0
  %146 = getelementptr inbounds %"class.JPH::Vec4", ptr %145, i32 0, i32 0
  %147 = getelementptr inbounds %union.anon.4, ptr %146, i32 0, i32 0
  %148 = getelementptr inbounds { double, double }, ptr %147, i32 0, i32 0
  %149 = extractvalue { double, double } %144, 0
  store double %149, ptr %148, align 16
  %150 = getelementptr inbounds { double, double }, ptr %147, i32 0, i32 1
  %151 = extractvalue { double, double } %144, 1
  store double %151, ptr %150, align 8
  %152 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %153 = load double, ptr %152, align 16
  %154 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %155 = load double, ptr %154, align 8
  %156 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %157 = load double, ptr %156, align 16
  %158 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %159 = load double, ptr %158, align 8
  call void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %17, ptr noundef %130, double %153, double %155, double %157, double %159, i8 noundef zeroext 2, i16 noundef zeroext 1)
  %160 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %129, ptr noundef nonnull align 16 dereferenceable(256) %17)
          to label %161 unwind label %224

161:                                              ; preds = %143
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %17) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %17) #10
  store ptr %160, ptr %16, align 8, !tbaa !5
  %162 = load ptr, ptr %16, align 8, !tbaa !5
  %163 = call noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %162)
  call void @_ZN3JPH16MotionProperties17SetAngularDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %163, float noundef 0.000000e+00)
  %164 = load ptr, ptr %16, align 8, !tbaa !5
  %165 = call noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %164)
  call void @_ZN3JPH16MotionProperties16SetLinearDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %165, float noundef 0.000000e+00)
  %166 = getelementptr inbounds %class.Test, ptr %53, i32 0, i32 3
  %167 = load ptr, ptr %166, align 8, !tbaa !9
  %168 = load ptr, ptr %16, align 8, !tbaa !5
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %168)
  call void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %167, ptr noundef nonnull align 4 dereferenceable(4) %169, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 112, ptr %21) #10
  call void @_ZN3JPH26DistanceConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(112) %21)
  %170 = getelementptr inbounds %"class.JPH::DistanceConstraintSettings", ptr %21, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %170, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !18
  %171 = getelementptr inbounds %"class.JPH::DistanceConstraintSettings", ptr %21, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %171, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !18
  %172 = getelementptr inbounds %"class.JPH::DistanceConstraintSettings", ptr %21, i32 0, i32 7
  %173 = getelementptr inbounds %"class.JPH::SpringSettings", ptr %172, i32 0, i32 1
  store float 0x3FD51EB860000000, ptr %173, align 4, !tbaa !19
  %174 = getelementptr inbounds %class.Test, ptr %53, i32 0, i32 2
  %175 = load ptr, ptr %174, align 8, !tbaa !22
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = load ptr, ptr %16, align 8, !tbaa !5
  %178 = invoke noundef ptr @_ZNK3JPH26DistanceConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(112) %21, ptr noundef nonnull align 16 dereferenceable(122) %176, ptr noundef nonnull align 16 dereferenceable(122) %177)
          to label %179 unwind label %229

179:                                              ; preds = %161
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %175, ptr noundef %178)
          to label %180 unwind label %229

180:                                              ; preds = %179
  %181 = getelementptr inbounds %class.Test, ptr %53, i32 0, i32 3
  %182 = load ptr, ptr %181, align 8, !tbaa !9
  %183 = load ptr, ptr %16, align 8, !tbaa !5
  %184 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %183)
          to label %185 unwind label %229

185:                                              ; preds = %180
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %23, float noundef 0.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %186 unwind label %229

186:                                              ; preds = %185
  %187 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %188 = load double, ptr %187, align 16
  %189 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %190 = load double, ptr %189, align 8
  %191 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %188, double %190)
          to label %192 unwind label %229

192:                                              ; preds = %186
  %193 = getelementptr inbounds %"class.JPH::Vec3", ptr %22, i32 0, i32 0
  %194 = getelementptr inbounds %union.anon, ptr %193, i32 0, i32 0
  %195 = getelementptr inbounds { double, double }, ptr %194, i32 0, i32 0
  %196 = extractvalue { double, double } %191, 0
  store double %196, ptr %195, align 16
  %197 = getelementptr inbounds { double, double }, ptr %194, i32 0, i32 1
  %198 = extractvalue { double, double } %191, 1
  store double %198, ptr %197, align 8
  %199 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %200 unwind label %229

200:                                              ; preds = %192
  %201 = getelementptr inbounds %"class.JPH::Quat", ptr %24, i32 0, i32 0
  %202 = getelementptr inbounds %"class.JPH::Vec4", ptr %201, i32 0, i32 0
  %203 = getelementptr inbounds %union.anon.4, ptr %202, i32 0, i32 0
  %204 = getelementptr inbounds { double, double }, ptr %203, i32 0, i32 0
  %205 = extractvalue { double, double } %199, 0
  store double %205, ptr %204, align 16
  %206 = getelementptr inbounds { double, double }, ptr %203, i32 0, i32 1
  %207 = extractvalue { double, double } %199, 1
  store double %207, ptr %206, align 8
  %208 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %209 = load double, ptr %208, align 16
  %210 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %211 = load double, ptr %210, align 8
  %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 @_ZN3JPH13BodyInterface22SetPositionAndRotationERKNS_6BodyIDENS_4Vec3ENS_4QuatENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %182, ptr noundef nonnull align 4 dereferenceable(4) %184, double %209, double %211, double %213, double %215, i32 noundef 1)
          to label %216 unwind label %229

216:                                              ; preds = %200
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %21) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #10
  br label %217

217:                                              ; preds = %216
  %218 = load i32, ptr %11, align 4, !tbaa !20
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %11, align 4, !tbaa !20
  br label %86, !llvm.loop !23

220:                                              ; preds = %132, %99
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %7, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %8, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %130) #10
  br label %228

224:                                              ; preds = %143
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %7, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %8, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %17) #10
  br label %228

228:                                              ; preds = %224, %220
  call void @llvm.lifetime.end.p0(i64 256, ptr %17) #10
  br label %233

229:                                              ; preds = %200, %192, %186, %185, %180, %179, %161
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %7, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %8, align 4
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %21) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr %21) #10
  br label %233

233:                                              ; preds = %229, %228
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  br label %517

234:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #10
  store i32 0, ptr %25, align 4, !tbaa !20
  br label %235

235:                                              ; preds = %357, %234
  %236 = load i32, ptr %25, align 4, !tbaa !20
  %237 = icmp slt i32 %236, 10
  br i1 %237, label %239, label %238

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

239:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #10
  %240 = load i32, ptr %25, align 4, !tbaa !20
  %241 = sitofp i32 %240 to float
  %242 = call float @llvm.fmuladd.f32(float %241, float 5.000000e+00, float -2.500000e+01)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %27, float noundef %242, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %243 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %244 = load double, ptr %243, align 16
  %245 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %246 = load double, ptr %245, align 8
  %247 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %244, double %246)
  %248 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %249 = getelementptr inbounds %union.anon, ptr %248, i32 0, i32 0
  %250 = getelementptr inbounds { double, double }, ptr %249, i32 0, i32 0
  %251 = extractvalue { double, double } %247, 0
  store double %251, ptr %250, align 16
  %252 = getelementptr inbounds { double, double }, ptr %249, i32 0, i32 1
  %253 = extractvalue { double, double } %247, 1
  store double %253, ptr %252, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #10
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %29, float noundef 0.000000e+00, float noundef 2.500000e+01, float noundef 0.000000e+00)
  %254 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %255 = load double, ptr %254, align 16
  %256 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %257 = load double, ptr %256, align 8
  %258 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %26, double %255, double %257)
  %259 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %260 = getelementptr inbounds %union.anon, ptr %259, i32 0, i32 0
  %261 = getelementptr inbounds { double, double }, ptr %260, i32 0, i32 0
  %262 = extractvalue { double, double } %258, 0
  store double %262, ptr %261, align 16
  %263 = getelementptr inbounds { double, double }, ptr %260, i32 0, i32 1
  %264 = extractvalue { double, double } %258, 1
  store double %264, ptr %263, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #10
  %265 = getelementptr inbounds %class.Test, ptr %53, i32 0, i32 3
  %266 = load ptr, ptr %265, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %31) #10
  %267 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  %268 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 7.500000e-01)
          to label %269 unwind label %360

269:                                              ; preds = %239
  %270 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %271 = getelementptr inbounds %union.anon, ptr %270, i32 0, i32 0
  %272 = getelementptr inbounds { double, double }, ptr %271, i32 0, i32 0
  %273 = extractvalue { double, double } %268, 0
  store double %273, ptr %272, align 16
  %274 = getelementptr inbounds { double, double }, ptr %271, i32 0, i32 1
  %275 = extractvalue { double, double } %268, 1
  store double %275, ptr %274, align 8
  %276 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %277 = load double, ptr %276, align 16
  %278 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %279 = load double, ptr %278, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %267, double %277, double %279, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %280 unwind label %360

280:                                              ; preds = %269
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !18
  %281 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %282 = getelementptr inbounds %"class.JPH::Quat", ptr %34, i32 0, i32 0
  %283 = getelementptr inbounds %"class.JPH::Vec4", ptr %282, i32 0, i32 0
  %284 = getelementptr inbounds %union.anon.4, ptr %283, i32 0, i32 0
  %285 = getelementptr inbounds { double, double }, ptr %284, i32 0, i32 0
  %286 = extractvalue { double, double } %281, 0
  store double %286, ptr %285, align 16
  %287 = getelementptr inbounds { double, double }, ptr %284, i32 0, i32 1
  %288 = extractvalue { double, double } %281, 1
  store double %288, ptr %287, align 8
  %289 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %290 = load double, ptr %289, align 16
  %291 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %292 = load double, ptr %291, align 8
  %293 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %294 = load double, ptr %293, align 16
  %295 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %296 = load double, ptr %295, align 8
  call void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %31, ptr noundef %267, double %290, double %292, double %294, double %296, i8 noundef zeroext 2, i16 noundef zeroext 1)
  %297 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %266, ptr noundef nonnull align 16 dereferenceable(256) %31)
          to label %298 unwind label %364

298:                                              ; preds = %280
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %31) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %31) #10
  store ptr %297, ptr %30, align 8, !tbaa !5
  %299 = load ptr, ptr %30, align 8, !tbaa !5
  %300 = call noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %299)
  call void @_ZN3JPH16MotionProperties17SetAngularDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %300, float noundef 0.000000e+00)
  %301 = load ptr, ptr %30, align 8, !tbaa !5
  %302 = call noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %301)
  call void @_ZN3JPH16MotionProperties16SetLinearDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %302, float noundef 0.000000e+00)
  %303 = getelementptr inbounds %class.Test, ptr %53, i32 0, i32 3
  %304 = load ptr, ptr %303, align 8, !tbaa !9
  %305 = load ptr, ptr %30, align 8, !tbaa !5
  %306 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %305)
  call void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %304, ptr noundef nonnull align 4 dereferenceable(4) %306, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 112, ptr %35) #10
  call void @_ZN3JPH26DistanceConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(112) %35)
  %307 = getelementptr inbounds %"class.JPH::DistanceConstraintSettings", ptr %35, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %307, ptr align 16 %26, i64 16, i1 false), !tbaa.struct !18
  %308 = getelementptr inbounds %"class.JPH::DistanceConstraintSettings", ptr %35, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %308, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !18
  %309 = load i32, ptr %25, align 4, !tbaa !20
  %310 = sitofp i32 %309 to float
  %311 = call float @llvm.fmuladd.f32(float 0x3FB99999A0000000, float %310, float 0x3FB99999A0000000)
  %312 = getelementptr inbounds %"class.JPH::DistanceConstraintSettings", ptr %35, i32 0, i32 7
  %313 = getelementptr inbounds %"class.JPH::SpringSettings", ptr %312, i32 0, i32 1
  store float %311, ptr %313, align 4, !tbaa !19
  %314 = getelementptr inbounds %class.Test, ptr %53, i32 0, i32 2
  %315 = load ptr, ptr %314, align 8, !tbaa !22
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = load ptr, ptr %30, align 8, !tbaa !5
  %318 = invoke noundef ptr @_ZNK3JPH26DistanceConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(112) %35, ptr noundef nonnull align 16 dereferenceable(122) %316, ptr noundef nonnull align 16 dereferenceable(122) %317)
          to label %319 unwind label %369

319:                                              ; preds = %298
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %315, ptr noundef %318)
          to label %320 unwind label %369

320:                                              ; preds = %319
  %321 = getelementptr inbounds %class.Test, ptr %53, i32 0, i32 3
  %322 = load ptr, ptr %321, align 8, !tbaa !9
  %323 = load ptr, ptr %30, align 8, !tbaa !5
  %324 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %323)
          to label %325 unwind label %369

325:                                              ; preds = %320
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %37, float noundef 0.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %326 unwind label %369

326:                                              ; preds = %325
  %327 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %328 = load double, ptr %327, align 16
  %329 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %330 = load double, ptr %329, align 8
  %331 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %26, double %328, double %330)
          to label %332 unwind label %369

332:                                              ; preds = %326
  %333 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %334 = getelementptr inbounds %union.anon, ptr %333, i32 0, i32 0
  %335 = getelementptr inbounds { double, double }, ptr %334, i32 0, i32 0
  %336 = extractvalue { double, double } %331, 0
  store double %336, ptr %335, align 16
  %337 = getelementptr inbounds { double, double }, ptr %334, i32 0, i32 1
  %338 = extractvalue { double, double } %331, 1
  store double %338, ptr %337, align 8
  %339 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %340 unwind label %369

340:                                              ; preds = %332
  %341 = getelementptr inbounds %"class.JPH::Quat", ptr %38, i32 0, i32 0
  %342 = getelementptr inbounds %"class.JPH::Vec4", ptr %341, i32 0, i32 0
  %343 = getelementptr inbounds %union.anon.4, ptr %342, i32 0, i32 0
  %344 = getelementptr inbounds { double, double }, ptr %343, i32 0, i32 0
  %345 = extractvalue { double, double } %339, 0
  store double %345, ptr %344, align 16
  %346 = getelementptr inbounds { double, double }, ptr %343, i32 0, i32 1
  %347 = extractvalue { double, double } %339, 1
  store double %347, ptr %346, align 8
  %348 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %349 = load double, ptr %348, align 16
  %350 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %351 = load double, ptr %350, align 8
  %352 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %353 = load double, ptr %352, align 16
  %354 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %355 = load double, ptr %354, align 8
  invoke void @_ZN3JPH13BodyInterface22SetPositionAndRotationERKNS_6BodyIDENS_4Vec3ENS_4QuatENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %322, ptr noundef nonnull align 4 dereferenceable(4) %324, double %349, double %351, double %353, double %355, i32 noundef 1)
          to label %356 unwind label %369

356:                                              ; preds = %340
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %35) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  br label %357

357:                                              ; preds = %356
  %358 = load i32, ptr %25, align 4, !tbaa !20
  %359 = add nsw i32 %358, 1
  store i32 %359, ptr %25, align 4, !tbaa !20
  br label %235, !llvm.loop !25

360:                                              ; preds = %269, %239
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %7, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %8, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %267) #10
  br label %368

364:                                              ; preds = %280
  %365 = landingpad { ptr, i32 }
          cleanup
  %366 = extractvalue { ptr, i32 } %365, 0
  store ptr %366, ptr %7, align 8
  %367 = extractvalue { ptr, i32 } %365, 1
  store i32 %367, ptr %8, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %31) #10
  br label %368

368:                                              ; preds = %364, %360
  call void @llvm.lifetime.end.p0(i64 256, ptr %31) #10
  br label %373

369:                                              ; preds = %340, %332, %326, %325, %320, %319, %298
  %370 = landingpad { ptr, i32 }
          cleanup
  %371 = extractvalue { ptr, i32 } %370, 0
  store ptr %371, ptr %7, align 8
  %372 = extractvalue { ptr, i32 } %370, 1
  store i32 %372, ptr %8, align 4
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %35) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr %35) #10
  br label %373

373:                                              ; preds = %369, %368
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #10
  br label %517

374:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #10
  store i32 0, ptr %39, align 4, !tbaa !20
  br label %375

375:                                              ; preds = %499, %374
  %376 = load i32, ptr %39, align 4, !tbaa !20
  %377 = icmp slt i32 %376, 10
  br i1 %377, label %379, label %378

378:                                              ; preds = %375
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #10
  br label %516

379:                                              ; preds = %375
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #10
  %380 = load i32, ptr %39, align 4, !tbaa !20
  %381 = sitofp i32 %380 to float
  %382 = call float @llvm.fmuladd.f32(float %381, float 5.000000e+00, float 5.000000e+01)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %41, float noundef %382, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %383 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %384 = load double, ptr %383, align 16
  %385 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %386 = load double, ptr %385, align 8
  %387 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %384, double %386)
  %388 = getelementptr inbounds %"class.JPH::Vec3", ptr %40, i32 0, i32 0
  %389 = getelementptr inbounds %union.anon, ptr %388, i32 0, i32 0
  %390 = getelementptr inbounds { double, double }, ptr %389, i32 0, i32 0
  %391 = extractvalue { double, double } %387, 0
  store double %391, ptr %390, align 16
  %392 = getelementptr inbounds { double, double }, ptr %389, i32 0, i32 1
  %393 = extractvalue { double, double } %387, 1
  store double %393, ptr %392, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #10
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %43, float noundef 0.000000e+00, float noundef 2.500000e+01, float noundef 0.000000e+00)
  %394 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %395 = load double, ptr %394, align 16
  %396 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %397 = load double, ptr %396, align 8
  %398 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %40, double %395, double %397)
  %399 = getelementptr inbounds %"class.JPH::Vec3", ptr %42, i32 0, i32 0
  %400 = getelementptr inbounds %union.anon, ptr %399, i32 0, i32 0
  %401 = getelementptr inbounds { double, double }, ptr %400, i32 0, i32 0
  %402 = extractvalue { double, double } %398, 0
  store double %402, ptr %401, align 16
  %403 = getelementptr inbounds { double, double }, ptr %400, i32 0, i32 1
  %404 = extractvalue { double, double } %398, 1
  store double %404, ptr %403, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #10
  %405 = getelementptr inbounds %class.Test, ptr %53, i32 0, i32 3
  %406 = load ptr, ptr %405, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %45) #10
  %407 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  %408 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 7.500000e-01)
          to label %409 unwind label %502

409:                                              ; preds = %379
  %410 = getelementptr inbounds %"class.JPH::Vec3", ptr %46, i32 0, i32 0
  %411 = getelementptr inbounds %union.anon, ptr %410, i32 0, i32 0
  %412 = getelementptr inbounds { double, double }, ptr %411, i32 0, i32 0
  %413 = extractvalue { double, double } %408, 0
  store double %413, ptr %412, align 16
  %414 = getelementptr inbounds { double, double }, ptr %411, i32 0, i32 1
  %415 = extractvalue { double, double } %408, 1
  store double %415, ptr %414, align 8
  %416 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %417 = load double, ptr %416, align 16
  %418 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %419 = load double, ptr %418, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %407, double %417, double %419, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %420 unwind label %502

420:                                              ; preds = %409
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %47, ptr align 16 %42, i64 16, i1 false), !tbaa.struct !18
  %421 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %422 = getelementptr inbounds %"class.JPH::Quat", ptr %48, i32 0, i32 0
  %423 = getelementptr inbounds %"class.JPH::Vec4", ptr %422, i32 0, i32 0
  %424 = getelementptr inbounds %union.anon.4, ptr %423, i32 0, i32 0
  %425 = getelementptr inbounds { double, double }, ptr %424, i32 0, i32 0
  %426 = extractvalue { double, double } %421, 0
  store double %426, ptr %425, align 16
  %427 = getelementptr inbounds { double, double }, ptr %424, i32 0, i32 1
  %428 = extractvalue { double, double } %421, 1
  store double %428, ptr %427, align 8
  %429 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %430 = load double, ptr %429, align 16
  %431 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %432 = load double, ptr %431, align 8
  %433 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %434 = load double, ptr %433, align 16
  %435 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %436 = load double, ptr %435, align 8
  call void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %45, ptr noundef %407, double %430, double %432, double %434, double %436, i8 noundef zeroext 2, i16 noundef zeroext 1)
  %437 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %406, ptr noundef nonnull align 16 dereferenceable(256) %45)
          to label %438 unwind label %506

438:                                              ; preds = %420
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %45) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %45) #10
  store ptr %437, ptr %44, align 8, !tbaa !5
  %439 = load ptr, ptr %44, align 8, !tbaa !5
  %440 = call noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %439)
  call void @_ZN3JPH16MotionProperties17SetAngularDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %440, float noundef 0.000000e+00)
  %441 = load ptr, ptr %44, align 8, !tbaa !5
  %442 = call noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %441)
  call void @_ZN3JPH16MotionProperties16SetLinearDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %442, float noundef 0.000000e+00)
  %443 = getelementptr inbounds %class.Test, ptr %53, i32 0, i32 3
  %444 = load ptr, ptr %443, align 8, !tbaa !9
  %445 = load ptr, ptr %44, align 8, !tbaa !5
  %446 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %445)
  call void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %444, ptr noundef nonnull align 4 dereferenceable(4) %446, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 112, ptr %49) #10
  call void @_ZN3JPH26DistanceConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(112) %49)
  %447 = getelementptr inbounds %"class.JPH::DistanceConstraintSettings", ptr %49, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %447, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !18
  %448 = getelementptr inbounds %"class.JPH::DistanceConstraintSettings", ptr %49, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %448, ptr align 16 %42, i64 16, i1 false), !tbaa.struct !18
  %449 = getelementptr inbounds %"class.JPH::DistanceConstraintSettings", ptr %49, i32 0, i32 7
  %450 = getelementptr inbounds %"class.JPH::SpringSettings", ptr %449, i32 0, i32 1
  store float 0x3FD51EB860000000, ptr %450, align 4, !tbaa !19
  %451 = load i32, ptr %39, align 4, !tbaa !20
  %452 = sitofp i32 %451 to float
  %453 = fmul float 0x3FBC71C720000000, %452
  %454 = getelementptr inbounds %"class.JPH::DistanceConstraintSettings", ptr %49, i32 0, i32 7
  %455 = getelementptr inbounds %"class.JPH::SpringSettings", ptr %454, i32 0, i32 2
  store float %453, ptr %455, align 8, !tbaa !26
  %456 = getelementptr inbounds %class.Test, ptr %53, i32 0, i32 2
  %457 = load ptr, ptr %456, align 8, !tbaa !22
  %458 = load ptr, ptr %4, align 8, !tbaa !5
  %459 = load ptr, ptr %44, align 8, !tbaa !5
  %460 = invoke noundef ptr @_ZNK3JPH26DistanceConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(112) %49, ptr noundef nonnull align 16 dereferenceable(122) %458, ptr noundef nonnull align 16 dereferenceable(122) %459)
          to label %461 unwind label %511

461:                                              ; preds = %438
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %457, ptr noundef %460)
          to label %462 unwind label %511

462:                                              ; preds = %461
  %463 = getelementptr inbounds %class.Test, ptr %53, i32 0, i32 3
  %464 = load ptr, ptr %463, align 8, !tbaa !9
  %465 = load ptr, ptr %44, align 8, !tbaa !5
  %466 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %465)
          to label %467 unwind label %511

467:                                              ; preds = %462
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %51, float noundef 0.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %468 unwind label %511

468:                                              ; preds = %467
  %469 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %470 = load double, ptr %469, align 16
  %471 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %472 = load double, ptr %471, align 8
  %473 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %40, double %470, double %472)
          to label %474 unwind label %511

474:                                              ; preds = %468
  %475 = getelementptr inbounds %"class.JPH::Vec3", ptr %50, i32 0, i32 0
  %476 = getelementptr inbounds %union.anon, ptr %475, i32 0, i32 0
  %477 = getelementptr inbounds { double, double }, ptr %476, i32 0, i32 0
  %478 = extractvalue { double, double } %473, 0
  store double %478, ptr %477, align 16
  %479 = getelementptr inbounds { double, double }, ptr %476, i32 0, i32 1
  %480 = extractvalue { double, double } %473, 1
  store double %480, ptr %479, align 8
  %481 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %482 unwind label %511

482:                                              ; preds = %474
  %483 = getelementptr inbounds %"class.JPH::Quat", ptr %52, i32 0, i32 0
  %484 = getelementptr inbounds %"class.JPH::Vec4", ptr %483, i32 0, i32 0
  %485 = getelementptr inbounds %union.anon.4, ptr %484, i32 0, i32 0
  %486 = getelementptr inbounds { double, double }, ptr %485, i32 0, i32 0
  %487 = extractvalue { double, double } %481, 0
  store double %487, ptr %486, align 16
  %488 = getelementptr inbounds { double, double }, ptr %485, i32 0, i32 1
  %489 = extractvalue { double, double } %481, 1
  store double %489, ptr %488, align 8
  %490 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %491 = load double, ptr %490, align 16
  %492 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %493 = load double, ptr %492, align 8
  %494 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %495 = load double, ptr %494, align 16
  %496 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %497 = load double, ptr %496, align 8
  invoke void @_ZN3JPH13BodyInterface22SetPositionAndRotationERKNS_6BodyIDENS_4Vec3ENS_4QuatENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %464, ptr noundef nonnull align 4 dereferenceable(4) %466, double %491, double %493, double %495, double %497, i32 noundef 1)
          to label %498 unwind label %511

498:                                              ; preds = %482
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %49) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #10
  br label %499

499:                                              ; preds = %498
  %500 = load i32, ptr %39, align 4, !tbaa !20
  %501 = add nsw i32 %500, 1
  store i32 %501, ptr %39, align 4, !tbaa !20
  br label %375, !llvm.loop !38

502:                                              ; preds = %409, %379
  %503 = landingpad { ptr, i32 }
          cleanup
  %504 = extractvalue { ptr, i32 } %503, 0
  store ptr %504, ptr %7, align 8
  %505 = extractvalue { ptr, i32 } %503, 1
  store i32 %505, ptr %8, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %407) #10
  br label %510

506:                                              ; preds = %420
  %507 = landingpad { ptr, i32 }
          cleanup
  %508 = extractvalue { ptr, i32 } %507, 0
  store ptr %508, ptr %7, align 8
  %509 = extractvalue { ptr, i32 } %507, 1
  store i32 %509, ptr %8, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %45) #10
  br label %510

510:                                              ; preds = %506, %502
  call void @llvm.lifetime.end.p0(i64 256, ptr %45) #10
  br label %515

511:                                              ; preds = %482, %474, %468, %467, %462, %461, %438
  %512 = landingpad { ptr, i32 }
          cleanup
  %513 = extractvalue { ptr, i32 } %512, 0
  store ptr %513, ptr %7, align 8
  %514 = extractvalue { ptr, i32 } %512, 1
  store i32 %514, ptr %8, align 4
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %49) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr %49) #10
  br label %515

515:                                              ; preds = %511, %510
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #10
  br label %517

516:                                              ; preds = %378
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #10
  ret void

517:                                              ; preds = %515, %373, %233, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #10
  br label %518

518:                                              ; preds = %517
  %519 = load ptr, ptr %7, align 8
  %520 = load i32, ptr %8, align 4
  %521 = insertvalue { ptr, i32 } poison, ptr %519, 0
  %522 = insertvalue { ptr, i32 } %521, i32 %520, 1
  resume { ptr, i32 } %522
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #8

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH26DistanceConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(112)) unnamed_addr #9 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 @_ZNK3JPH26DistanceConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(112), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122)) unnamed_addr #2

declare void @_ZN3JPH13BodyInterface22SetPositionAndRotationERKNS_6BodyIDENS_4Vec3ENS_4QuatENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), double, double, double, double, i32 noundef) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { 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 #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, !6, i64 24}
!10 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !12, i64 56}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !13, i64 0}
!13 = !{!"_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, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !6, i64 48}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !7, i64 0}
!18 = !{i64 0, i64 16, !19}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!10, !6, i64 16}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = !{!27, !17, i64 96}
!27 = !{!"_ZTSN3JPH26DistanceConstraintSettingsE", !28, i64 0, !34, i64 40, !35, i64 48, !35, i64 64, !17, i64 80, !17, i64 84, !36, i64 88}
!28 = !{!"_ZTSN3JPH25TwoBodyConstraintSettingsE", !29, i64 0}
!29 = !{!"_ZTSN3JPH18ConstraintSettingsE", !30, i64 0, !31, i64 8, !11, i64 12, !21, i64 16, !21, i64 20, !21, i64 24, !17, i64 28, !14, i64 32}
!30 = !{!"_ZTSN3JPH18SerializableObjectE"}
!31 = !{!"_ZTSN3JPH9RefTargetINS_18ConstraintSettingsEEE", !32, i64 0}
!32 = !{!"_ZTSSt6atomicIjE", !33, i64 0}
!33 = !{!"_ZTSSt13__atomic_baseIjE", !21, i64 0}
!34 = !{!"_ZTSN3JPH16EConstraintSpaceE", !7, i64 0}
!35 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!36 = !{!"_ZTSN3JPH14SpringSettingsE", !37, i64 0, !7, i64 4, !17, i64 8}
!37 = !{!"_ZTSN3JPH11ESpringModeE", !7, i64 0}
!38 = distinct !{!38, !24}


; 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::DistanceConstraintSettings" = type <{ %"class.JPH::TwoBodyConstraintSettings", i32, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, %"class.JPH::SpringSettings", [12 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.JPH::SpringSettings" = type { i8, %union.anon.11, float }
%union.anon.11 = type { float }

; 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 @_ZN10SpringTest10InitializeEv(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::Vec3", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::BodyCreationSettings", align 16
  %9 = alloca %"class.JPH::DistanceConstraintSettings", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::BodyCreationSettings", align 16
  %15 = alloca %"class.JPH::DistanceConstraintSettings", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::BodyCreationSettings", align 16
  %21 = alloca %"class.JPH::DistanceConstraintSettings", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = 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 16, ptr nonnull %2) #10
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %2, float noundef 0.000000e+00, float noundef 7.500000e+01, float noundef 0.000000e+00)
  %24 = getelementptr inbounds i8, ptr %0, i64 24
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #10
  %26 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 1.000000e+02, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %27 unwind label %54

27:                                               ; preds = %1
  %28 = load double, ptr %4, align 16
  %29 = getelementptr inbounds i8, ptr %4, i64 8
  %30 = load double, ptr %29, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %26, double %28, double %30, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %31 unwind label %54

31:                                               ; preds = %27
  %.sroa.061.0.copyload = load double, ptr %2, align 16
  %.sroa.262.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  %.sroa.262.0.copyload = load double, ptr %.sroa.262.0..sroa_idx, align 8, !tbaa !17
  %32 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %33 = extractvalue { double, double } %32, 0
  %34 = extractvalue { double, double } %32, 1
  call void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %3, ptr noundef nonnull %26, double %.sroa.061.0.copyload, double %.sroa.262.0.copyload, double %33, double %34, i8 noundef zeroext 0, i16 noundef zeroext 0)
  %35 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 16 dereferenceable(256) %3)
          to label %36 unwind label %56

36:                                               ; preds = %31
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %3) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #10
  %37 = load ptr, ptr %24, align 8, !tbaa !5
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %35)
  call void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 4 dereferenceable(4) %38, i32 noundef 1)
  %39 = getelementptr inbounds i8, ptr %6, i64 8
  %40 = getelementptr inbounds i8, ptr %5, i64 8
  %41 = getelementptr inbounds i8, ptr %7, i64 8
  %42 = getelementptr inbounds i8, ptr %9, i64 48
  %43 = getelementptr inbounds i8, ptr %9, i64 64
  %.sroa.654.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 72
  %44 = getelementptr inbounds i8, ptr %9, i64 92
  %45 = getelementptr inbounds i8, ptr %0, i64 16
  %46 = getelementptr inbounds i8, ptr %10, i64 8
  br label %59

.preheader95:                                     ; preds = %106
  %47 = getelementptr inbounds i8, ptr %12, i64 8
  %48 = getelementptr inbounds i8, ptr %11, i64 8
  %49 = getelementptr inbounds i8, ptr %13, i64 8
  %50 = getelementptr inbounds i8, ptr %15, i64 48
  %51 = getelementptr inbounds i8, ptr %15, i64 64
  %.sroa.633.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 72
  %52 = getelementptr inbounds i8, ptr %15, i64 92
  %53 = getelementptr inbounds i8, ptr %16, i64 8
  br label %124

54:                                               ; preds = %27, %1
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %26) #10
  br label %58

56:                                               ; preds = %31
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %3) #10
  br label %58

58:                                               ; preds = %56, %54
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #10
  br label %239

59:                                               ; preds = %36, %106
  %.078104 = phi i32 [ 0, %36 ], [ %107, %106 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #10
  %60 = uitofp nneg i32 %.078104 to float
  %61 = call float @llvm.fmuladd.f32(float %60, float 5.000000e+00, float -1.000000e+02)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef %61, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %62 = load double, ptr %6, align 16
  %63 = load double, ptr %39, align 8
  %64 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %2, double %62, double %63)
  %65 = extractvalue { double, double } %64, 0
  store double %65, ptr %5, align 16
  %66 = extractvalue { double, double } %64, 1
  store double %66, ptr %40, align 8
  %67 = call float @llvm.fmuladd.f32(float %60, float 2.500000e+00, float 1.000000e+01)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef 0.000000e+00, float noundef %67, float noundef 0.000000e+00)
  %68 = load double, ptr %7, align 16
  %69 = load double, ptr %41, align 8
  %70 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %68, double %69)
  %71 = extractvalue { double, double } %70, 0
  %72 = extractvalue { double, double } %70, 1
  %73 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %8) #10
  %74 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  %75 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 7.500000e-01)
          to label %76 unwind label %108

76:                                               ; preds = %59
  %77 = extractvalue { double, double } %75, 0
  %78 = extractvalue { double, double } %75, 1
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %74, double %77, double %78, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %79 unwind label %108

79:                                               ; preds = %76
  %80 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %81 = extractvalue { double, double } %80, 0
  %82 = extractvalue { double, double } %80, 1
  call void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %8, ptr noundef nonnull %74, double %71, double %72, double %81, double %82, i8 noundef zeroext 2, i16 noundef zeroext 1)
  %83 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 16 dereferenceable(256) %8)
          to label %84 unwind label %110

84:                                               ; preds = %79
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %8) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #10
  %85 = call noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %83)
  call void @_ZN3JPH16MotionProperties17SetAngularDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %85, float noundef 0.000000e+00)
  %86 = call noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %83)
  call void @_ZN3JPH16MotionProperties16SetLinearDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %86, float noundef 0.000000e+00)
  %87 = load ptr, ptr %24, align 8, !tbaa !5
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %83)
  call void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 4 dereferenceable(4) %88, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %9) #10
  call void @_ZN3JPH26DistanceConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(112) %9)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %42, ptr noundef nonnull align 16 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !18
  store double %71, ptr %43, align 16
  store double %72, ptr %.sroa.654.0..sroa_idx, align 8, !tbaa !17
  store float 0x3FD51EB860000000, ptr %44, align 4, !tbaa !17
  %89 = load ptr, ptr %45, align 8, !tbaa !19
  %90 = invoke noundef ptr @_ZNK3JPH26DistanceConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(112) %9, ptr noundef nonnull align 16 dereferenceable(122) %35, ptr noundef nonnull align 16 dereferenceable(122) %83)
          to label %91 unwind label %113

91:                                               ; preds = %84
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %89, ptr noundef %90)
          to label %92 unwind label %113

92:                                               ; preds = %91
  %93 = load ptr, ptr %24, align 8, !tbaa !5
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %83)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef 0.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %95 unwind label %113

95:                                               ; preds = %92
  %96 = load double, ptr %10, align 16
  %97 = load double, ptr %46, align 8
  %98 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %96, double %97)
          to label %99 unwind label %113

99:                                               ; preds = %95
  %100 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %101 unwind label %113

101:                                              ; preds = %99
  %102 = extractvalue { double, double } %98, 1
  %103 = extractvalue { double, double } %98, 0
  %104 = extractvalue { double, double } %100, 0
  %105 = extractvalue { double, double } %100, 1
  invoke void @_ZN3JPH13BodyInterface22SetPositionAndRotationERKNS_6BodyIDENS_4Vec3ENS_4QuatENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr noundef nonnull align 4 dereferenceable(4) %94, double %103, double %102, double %104, double %105, i32 noundef 1)
          to label %106 unwind label %113

106:                                              ; preds = %101
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %9) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  %107 = add nuw nsw i32 %.078104, 1
  %exitcond.not = icmp eq i32 %107, 10
  br i1 %exitcond.not, label %.preheader95, label %59, !llvm.loop !20

108:                                              ; preds = %76, %59
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %74) #10
  br label %112

110:                                              ; preds = %79
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %8) #10
  br label %112

112:                                              ; preds = %110, %108
  %.pn90 = phi { ptr, i32 } [ %111, %110 ], [ %109, %108 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #10
  br label %115

113:                                              ; preds = %101, %99, %95, %92, %91, %84
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %9) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %9) #10
  br label %115

115:                                              ; preds = %113, %112
  %.pn92 = phi { ptr, i32 } [ %114, %113 ], [ %.pn90, %112 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  br label %239

.preheader:                                       ; preds = %171
  %116 = getelementptr inbounds i8, ptr %18, i64 8
  %117 = getelementptr inbounds i8, ptr %17, i64 8
  %118 = getelementptr inbounds i8, ptr %19, i64 8
  %119 = getelementptr inbounds i8, ptr %21, i64 48
  %120 = getelementptr inbounds i8, ptr %21, i64 64
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %21, i64 72
  %121 = getelementptr inbounds i8, ptr %21, i64 92
  %122 = getelementptr inbounds i8, ptr %21, i64 96
  %123 = getelementptr inbounds i8, ptr %22, i64 8
  br label %182

124:                                              ; preds = %.preheader95, %171
  %.079105 = phi i32 [ 0, %.preheader95 ], [ %172, %171 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #10
  %125 = uitofp nneg i32 %.079105 to float
  %126 = call float @llvm.fmuladd.f32(float %125, float 5.000000e+00, float -2.500000e+01)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef %126, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %127 = load double, ptr %12, align 16
  %128 = load double, ptr %47, align 8
  %129 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %2, double %127, double %128)
  %130 = extractvalue { double, double } %129, 0
  store double %130, ptr %11, align 16
  %131 = extractvalue { double, double } %129, 1
  store double %131, ptr %48, align 8
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 0.000000e+00, float noundef 2.500000e+01, float noundef 0.000000e+00)
  %132 = load double, ptr %13, align 16
  %133 = load double, ptr %49, align 8
  %134 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %132, double %133)
  %135 = extractvalue { double, double } %134, 0
  %136 = extractvalue { double, double } %134, 1
  %137 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %14) #10
  %138 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  %139 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 7.500000e-01)
          to label %140 unwind label %173

140:                                              ; preds = %124
  %141 = extractvalue { double, double } %139, 0
  %142 = extractvalue { double, double } %139, 1
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %138, double %141, double %142, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %143 unwind label %173

143:                                              ; preds = %140
  %144 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %145 = extractvalue { double, double } %144, 0
  %146 = extractvalue { double, double } %144, 1
  call void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %14, ptr noundef nonnull %138, double %135, double %136, double %145, double %146, i8 noundef zeroext 2, i16 noundef zeroext 1)
  %147 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %137, ptr noundef nonnull align 16 dereferenceable(256) %14)
          to label %148 unwind label %175

148:                                              ; preds = %143
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %14) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %14) #10
  %149 = call noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %147)
  call void @_ZN3JPH16MotionProperties17SetAngularDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %149, float noundef 0.000000e+00)
  %150 = call noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %147)
  call void @_ZN3JPH16MotionProperties16SetLinearDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %150, float noundef 0.000000e+00)
  %151 = load ptr, ptr %24, align 8, !tbaa !5
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %147)
  call void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 4 dereferenceable(4) %152, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %15) #10
  call void @_ZN3JPH26DistanceConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(112) %15)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %50, ptr noundef nonnull align 16 dereferenceable(16) %11, i64 16, i1 false), !tbaa.struct !18
  store double %135, ptr %51, align 16
  store double %136, ptr %.sroa.633.0..sroa_idx, align 8, !tbaa !17
  %153 = call float @llvm.fmuladd.f32(float %125, float 0x3FB99999A0000000, float 0x3FB99999A0000000)
  store float %153, ptr %52, align 4, !tbaa !17
  %154 = load ptr, ptr %45, align 8, !tbaa !19
  %155 = invoke noundef ptr @_ZNK3JPH26DistanceConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(112) %15, ptr noundef nonnull align 16 dereferenceable(122) %35, ptr noundef nonnull align 16 dereferenceable(122) %147)
          to label %156 unwind label %178

156:                                              ; preds = %148
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %154, ptr noundef %155)
          to label %157 unwind label %178

157:                                              ; preds = %156
  %158 = load ptr, ptr %24, align 8, !tbaa !5
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %147)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef 0.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %160 unwind label %178

160:                                              ; preds = %157
  %161 = load double, ptr %16, align 16
  %162 = load double, ptr %53, align 8
  %163 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %161, double %162)
          to label %164 unwind label %178

164:                                              ; preds = %160
  %165 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %166 unwind label %178

166:                                              ; preds = %164
  %167 = extractvalue { double, double } %163, 1
  %168 = extractvalue { double, double } %163, 0
  %169 = extractvalue { double, double } %165, 0
  %170 = extractvalue { double, double } %165, 1
  invoke void @_ZN3JPH13BodyInterface22SetPositionAndRotationERKNS_6BodyIDENS_4Vec3ENS_4QuatENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %158, ptr noundef nonnull align 4 dereferenceable(4) %159, double %168, double %167, double %169, double %170, i32 noundef 1)
          to label %171 unwind label %178

171:                                              ; preds = %166
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %15) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  %172 = add nuw nsw i32 %.079105, 1
  %exitcond118.not = icmp eq i32 %172, 10
  br i1 %exitcond118.not, label %.preheader, label %124, !llvm.loop !22

173:                                              ; preds = %140, %124
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %138) #10
  br label %177

175:                                              ; preds = %143
  %176 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %14) #10
  br label %177

177:                                              ; preds = %175, %173
  %.pn86 = phi { ptr, i32 } [ %176, %175 ], [ %174, %173 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %14) #10
  br label %180

178:                                              ; preds = %166, %164, %160, %157, %156, %148
  %179 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %15) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %15) #10
  br label %180

180:                                              ; preds = %178, %177
  %.pn88 = phi { ptr, i32 } [ %179, %178 ], [ %.pn86, %177 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  br label %239

181:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #10
  ret void

182:                                              ; preds = %.preheader, %229
  %.080106 = phi i32 [ 0, %.preheader ], [ %230, %229 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %183 = uitofp nneg i32 %.080106 to float
  %184 = call float @llvm.fmuladd.f32(float %183, float 5.000000e+00, float 5.000000e+01)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %18, float noundef %184, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %185 = load double, ptr %18, align 16
  %186 = load double, ptr %116, align 8
  %187 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %2, double %185, double %186)
  %188 = extractvalue { double, double } %187, 0
  store double %188, ptr %17, align 16
  %189 = extractvalue { double, double } %187, 1
  store double %189, ptr %117, align 8
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef 0.000000e+00, float noundef 2.500000e+01, float noundef 0.000000e+00)
  %190 = load double, ptr %19, align 16
  %191 = load double, ptr %118, align 8
  %192 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %190, double %191)
  %193 = extractvalue { double, double } %192, 0
  %194 = extractvalue { double, double } %192, 1
  %195 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %20) #10
  %196 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  %197 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 7.500000e-01)
          to label %198 unwind label %231

198:                                              ; preds = %182
  %199 = extractvalue { double, double } %197, 0
  %200 = extractvalue { double, double } %197, 1
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %196, double %199, double %200, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %201 unwind label %231

201:                                              ; preds = %198
  %202 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %203 = extractvalue { double, double } %202, 0
  %204 = extractvalue { double, double } %202, 1
  call void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %20, ptr noundef nonnull %196, double %193, double %194, double %203, double %204, i8 noundef zeroext 2, i16 noundef zeroext 1)
  %205 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %195, ptr noundef nonnull align 16 dereferenceable(256) %20)
          to label %206 unwind label %233

206:                                              ; preds = %201
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %20) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %20) #10
  %207 = call noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %205)
  call void @_ZN3JPH16MotionProperties17SetAngularDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %207, float noundef 0.000000e+00)
  %208 = call noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %205)
  call void @_ZN3JPH16MotionProperties16SetLinearDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %208, float noundef 0.000000e+00)
  %209 = load ptr, ptr %24, align 8, !tbaa !5
  %210 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %205)
  call void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %209, ptr noundef nonnull align 4 dereferenceable(4) %210, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %21) #10
  call void @_ZN3JPH26DistanceConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(112) %21)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %119, ptr noundef nonnull align 16 dereferenceable(16) %17, i64 16, i1 false), !tbaa.struct !18
  store double %193, ptr %120, align 16
  store double %194, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !17
  store float 0x3FD51EB860000000, ptr %121, align 4, !tbaa !17
  %211 = fmul float %183, 0x3FBC71C720000000
  store float %211, ptr %122, align 16, !tbaa !23
  %212 = load ptr, ptr %45, align 8, !tbaa !19
  %213 = invoke noundef ptr @_ZNK3JPH26DistanceConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(112) %21, ptr noundef nonnull align 16 dereferenceable(122) %35, ptr noundef nonnull align 16 dereferenceable(122) %205)
          to label %214 unwind label %236

214:                                              ; preds = %206
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %212, ptr noundef %213)
          to label %215 unwind label %236

215:                                              ; preds = %214
  %216 = load ptr, ptr %24, align 8, !tbaa !5
  %217 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %205)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef 0.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %218 unwind label %236

218:                                              ; preds = %215
  %219 = load double, ptr %22, align 16
  %220 = load double, ptr %123, align 8
  %221 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %219, double %220)
          to label %222 unwind label %236

222:                                              ; preds = %218
  %223 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %224 unwind label %236

224:                                              ; preds = %222
  %225 = extractvalue { double, double } %221, 1
  %226 = extractvalue { double, double } %221, 0
  %227 = extractvalue { double, double } %223, 0
  %228 = extractvalue { double, double } %223, 1
  invoke void @_ZN3JPH13BodyInterface22SetPositionAndRotationERKNS_6BodyIDENS_4Vec3ENS_4QuatENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %216, ptr noundef nonnull align 4 dereferenceable(4) %217, double %226, double %225, double %227, double %228, i32 noundef 1)
          to label %229 unwind label %236

229:                                              ; preds = %224
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %21) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  %230 = add nuw nsw i32 %.080106, 1
  %exitcond119.not = icmp eq i32 %230, 10
  br i1 %exitcond119.not, label %181, label %182, !llvm.loop !36

231:                                              ; preds = %198, %182
  %232 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %196) #10
  br label %235

233:                                              ; preds = %201
  %234 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %20) #10
  br label %235

235:                                              ; preds = %233, %231
  %.pn82 = phi { ptr, i32 } [ %234, %233 ], [ %232, %231 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %20) #10
  br label %238

236:                                              ; preds = %224, %222, %218, %215, %214, %206
  %237 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %21) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %21) #10
  br label %238

238:                                              ; preds = %236, %235
  %.pn84 = phi { ptr, i32 } [ %237, %236 ], [ %.pn82, %235 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  br label %239

239:                                              ; preds = %238, %180, %115, %58
  %.pn92.pn = phi { ptr, i32 } [ %.pn92, %115 ], [ %.pn88, %180 ], [ %.pn84, %238 ], [ %.pn, %58 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #10
  resume { ptr, i32 } %.pn92.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: 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: 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 #7 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 #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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #8

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH26DistanceConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(112)) unnamed_addr #9 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 @_ZNK3JPH26DistanceConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(112), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122)) unnamed_addr #2

declare void @_ZN3JPH13BodyInterface22SetPositionAndRotationERKNS_6BodyIDENS_4Vec3ENS_4QuatENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), double, double, double, double, i32 noundef) local_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 = { 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 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { 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 #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, !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 = !{i64 0, i64 16, !17}
!19 = !{!6, !7, i64 16}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!24, !16, i64 96}
!24 = !{!"_ZTSN3JPH26DistanceConstraintSettingsE", !25, i64 0, !32, i64 40, !33, i64 48, !33, i64 64, !16, i64 80, !16, i64 84, !34, i64 88}
!25 = !{!"_ZTSN3JPH25TwoBodyConstraintSettingsE", !26, i64 0}
!26 = !{!"_ZTSN3JPH18ConstraintSettingsE", !27, i64 0, !28, i64 8, !10, i64 12, !31, i64 16, !31, i64 20, !31, i64 24, !16, i64 28, !13, i64 32}
!27 = !{!"_ZTSN3JPH18SerializableObjectE"}
!28 = !{!"_ZTSN3JPH9RefTargetINS_18ConstraintSettingsEEE", !29, i64 0}
!29 = !{!"_ZTSSt6atomicIjE", !30, i64 0}
!30 = !{!"_ZTSSt13__atomic_baseIjE", !31, i64 0}
!31 = !{!"int", !8, i64 0}
!32 = !{!"_ZTSN3JPH16EConstraintSpaceE", !8, i64 0}
!33 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!34 = !{!"_ZTSN3JPH14SpringSettingsE", !35, i64 0, !8, i64 4, !16, i64 8}
!35 = !{!"_ZTSN3JPH11ESpringModeE", !8, i64 0}
!36 = distinct !{!36, !21}


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