; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Constraints (ConstraintSingularityTest)

; 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::RefConst" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.10", %"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.10" = type { ptr }
%"class.JPH::HingeConstraintSettings" = type <{ %"class.JPH::TwoBodyConstraintSettings", i32, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, %"class.JPH::SpringSettings", float, %"class.JPH::MotorSettings", [12 x i8] }>
%"class.JPH::TwoBodyConstraintSettings" = type { %"class.JPH::ConstraintSettings" }
%"class.JPH::ConstraintSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.11", i8, i32, i32, i32, float, i64 }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.11" = type { %"struct.std::atomic.6" }
%"struct.std::atomic.6" = type { %"struct.std::__atomic_base.7" }
%"struct.std::__atomic_base.7" = type { i32 }
%"class.JPH::SpringSettings" = type { i8, %union.anon.12, float }
%union.anon.12 = type { float }
%"class.JPH::MotorSettings" = type { %"class.JPH::SpringSettings", float, float, float, float }
%"class.JPH::FixedConstraintSettings" = type { %"class.JPH::TwoBodyConstraintSettings", i32, i8, %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"struct.JPH::AssertLastParam" = type { i8 }
%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 }

@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [108 x i8], align 1

; 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 @_ZN25ConstraintSingularityTest10InitializeEv(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 float, align 4
  %4 = alloca %"class.JPH::RefConst", align 8
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.JPH::Ref", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %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::Quat", align 16
  %20 = alloca %"class.JPH::CollisionGroup", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.JPH::BodyCreationSettings", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Quat", align 16
  %26 = alloca %"class.JPH::CollisionGroup", align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"class.JPH::HingeConstraintSettings", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::FixedConstraintSettings", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Quat", 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 %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Quat", align 16
  %43 = alloca %"class.JPH::Quat", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::Quat", align 16
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca %"class.JPH::Vec3", align 16
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca %"class.JPH::Quat", align 16
  %50 = alloca %"class.JPH::Quat", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca %"class.JPH::Quat", align 16
  %53 = alloca %"class.JPH::Vec3", align 16
  %54 = alloca %"struct.JPH::AssertLastParam", align 1
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca %"class.JPH::Quat", align 16
  %58 = alloca %"class.JPH::Quat", align 16
  %59 = alloca %"class.JPH::Vec3", align 16
  %60 = alloca %"class.JPH::Quat", align 16
  %61 = alloca %"class.JPH::Vec3", align 16
  %62 = alloca %"class.JPH::Vec3", align 16
  %63 = alloca %"class.JPH::Quat", align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %64 = load ptr, ptr %2, align 8
  %65 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %64, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #10
  store float 4.000000e+00, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #10
  %66 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  %67 = load float, ptr %3, align 4, !tbaa !9
  %68 = fmul float 5.000000e-01, %67
  %69 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %68)
          to label %70 unwind label %90

70:                                               ; preds = %1
  %71 = getelementptr inbounds %"class.JPH::Vec3", ptr %5, i32 0, i32 0
  %72 = getelementptr inbounds %union.anon, ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 0
  %74 = extractvalue { double, double } %69, 0
  store double %74, ptr %73, align 16
  %75 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 1
  %76 = extractvalue { double, double } %69, 1
  store double %76, ptr %75, align 8
  %77 = getelementptr inbounds { double, double }, ptr %5, i32 0, i32 0
  %78 = load double, ptr %77, align 16
  %79 = getelementptr inbounds { double, double }, ptr %5, i32 0, i32 1
  %80 = load double, ptr %79, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %66, double %78, double %80, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %81 unwind label %90

81:                                               ; preds = %70
  call void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %66)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  store i32 2, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  store i32 4, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %82 = invoke noundef ptr @_ZN3JPH16GroupFilterTablenwEm(i64 noundef 40)
          to label %83 unwind label %94

83:                                               ; preds = %81
  invoke void @_ZN3JPH16GroupFilterTableC2Ej(ptr noundef nonnull align 8 dereferenceable(40) %82, i32 noundef 0)
          to label %84 unwind label %98

84:                                               ; preds = %83
  invoke void @_ZN3JPH3RefINS_16GroupFilterTableEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %82)
          to label %85 unwind label %94

85:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  store i32 0, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %86

86:                                               ; preds = %678, %85
  %87 = load i32, ptr %12, align 4, !tbaa !11
  %88 = icmp slt i32 %87, 2
  br i1 %88, label %102, label %89

89:                                               ; preds = %86
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  br label %681

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

94:                                               ; preds = %84, %81
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %6, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %7, align 4
  br label %682

98:                                               ; preds = %83
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %6, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %7, align 4
  call void @_ZN3JPH16GroupFilterTabledlEPv(ptr noundef %82) #10
  br label %682

102:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %103

103:                                              ; preds = %669, %102
  %104 = load i32, ptr %14, align 4, !tbaa !11
  %105 = icmp slt i32 %104, 4
  br i1 %105, label %107, label %106

106:                                              ; preds = %103
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  br label %677

107:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #10
  %108 = load i32, ptr %12, align 4, !tbaa !11
  %109 = sitofp i32 %108 to float
  %110 = fmul float 1.000000e+01, %109
  %111 = load i32, ptr %14, align 4, !tbaa !11
  %112 = sitofp i32 %111 to float
  %113 = call float @llvm.fmuladd.f32(float 1.000000e+01, float %112, float 1.000000e+01)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef %110, float noundef %113, float noundef 0.000000e+00)
          to label %114 unwind label %202

114:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %115 = getelementptr inbounds %class.Test, ptr %64, i32 0, i32 3
  %116 = load ptr, ptr %115, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 256, ptr %17) #10
  %117 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %118 unwind label %206

118:                                              ; preds = %114
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !21
  %119 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %120 unwind label %206

120:                                              ; preds = %118
  %121 = getelementptr inbounds %"class.JPH::Quat", ptr %19, i32 0, i32 0
  %122 = getelementptr inbounds %"class.JPH::Vec4", ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds %union.anon.4, ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 0
  %125 = extractvalue { double, double } %119, 0
  store double %125, ptr %124, align 16
  %126 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 1
  %127 = extractvalue { double, double } %119, 1
  store double %127, ptr %126, align 8
  %128 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %129 = load double, ptr %128, align 16
  %130 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %131 = load double, ptr %130, align 8
  %132 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %133 = load double, ptr %132, align 16
  %134 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %135 = load double, ptr %134, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %17, ptr noundef %117, double %129, double %131, double %133, double %135, i8 noundef zeroext 0, i16 noundef zeroext 0)
          to label %136 unwind label %206

136:                                              ; preds = %120
  %137 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %116, ptr noundef nonnull align 16 dereferenceable(256) %17)
          to label %138 unwind label %210

138:                                              ; preds = %136
  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 %137, ptr %16, align 8, !tbaa !5
  %139 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #10
  %140 = invoke noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %141 unwind label %215

141:                                              ; preds = %138
  %142 = load i32, ptr %11, align 4, !tbaa !11
  invoke void @_ZN3JPH14CollisionGroupC2EPKNS_11GroupFilterEjj(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef %140, i32 noundef %142, i32 noundef 0)
          to label %143 unwind label %215

143:                                              ; preds = %141
  invoke void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122) %139, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %144 unwind label %219

144:                                              ; preds = %143
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  %145 = getelementptr inbounds %class.Test, ptr %64, i32 0, i32 3
  %146 = load ptr, ptr %145, align 8, !tbaa !13
  %147 = load ptr, ptr %16, align 8, !tbaa !5
  %148 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %147)
          to label %149 unwind label %224

149:                                              ; preds = %144
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %146, ptr noundef nonnull align 4 dereferenceable(4) %148, i32 noundef 1)
          to label %150 unwind label %224

150:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  %151 = getelementptr inbounds %class.Test, ptr %64, i32 0, i32 3
  %152 = load ptr, ptr %151, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 256, ptr %22) #10
  %153 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %154 unwind label %228

154:                                              ; preds = %150
  %155 = load float, ptr %3, align 4, !tbaa !9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %24, float noundef %155, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %156 unwind label %228

156:                                              ; preds = %154
  %157 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %158 = load double, ptr %157, align 16
  %159 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %160 = load double, ptr %159, align 8
  %161 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %158, double %160)
          to label %162 unwind label %228

162:                                              ; preds = %156
  %163 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %164 = getelementptr inbounds %union.anon, ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds { double, double }, ptr %164, i32 0, i32 0
  %166 = extractvalue { double, double } %161, 0
  store double %166, ptr %165, align 16
  %167 = getelementptr inbounds { double, double }, ptr %164, i32 0, i32 1
  %168 = extractvalue { double, double } %161, 1
  store double %168, ptr %167, align 8
  %169 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %170 unwind label %228

170:                                              ; preds = %162
  %171 = getelementptr inbounds %"class.JPH::Quat", ptr %25, i32 0, i32 0
  %172 = getelementptr inbounds %"class.JPH::Vec4", ptr %171, i32 0, i32 0
  %173 = getelementptr inbounds %union.anon.4, ptr %172, i32 0, i32 0
  %174 = getelementptr inbounds { double, double }, ptr %173, i32 0, i32 0
  %175 = extractvalue { double, double } %169, 0
  store double %175, ptr %174, align 16
  %176 = getelementptr inbounds { double, double }, ptr %173, i32 0, i32 1
  %177 = extractvalue { double, double } %169, 1
  store double %177, ptr %176, align 8
  %178 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %179 = load double, ptr %178, align 16
  %180 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %181 = load double, ptr %180, align 8
  %182 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %183 = load double, ptr %182, align 16
  %184 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %185 = load double, ptr %184, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %22, ptr noundef %153, double %179, double %181, double %183, double %185, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %186 unwind label %228

186:                                              ; preds = %170
  %187 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %152, ptr noundef nonnull align 16 dereferenceable(256) %22)
          to label %188 unwind label %232

188:                                              ; preds = %186
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %22) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %22) #10
  store ptr %187, ptr %21, align 8, !tbaa !5
  %189 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #10
  %190 = invoke noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %191 unwind label %237

191:                                              ; preds = %188
  %192 = load i32, ptr %11, align 4, !tbaa !11
  invoke void @_ZN3JPH14CollisionGroupC2EPKNS_11GroupFilterEjj(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef %190, i32 noundef %192, i32 noundef 0)
          to label %193 unwind label %237

193:                                              ; preds = %191
  invoke void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122) %189, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %194 unwind label %241

194:                                              ; preds = %193
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  %195 = getelementptr inbounds %class.Test, ptr %64, i32 0, i32 3
  %196 = load ptr, ptr %195, align 8, !tbaa !13
  %197 = load ptr, ptr %21, align 8, !tbaa !5
  %198 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %197)
          to label %199 unwind label %246

199:                                              ; preds = %194
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %196, ptr noundef nonnull align 4 dereferenceable(4) %198, i32 noundef 0)
          to label %200 unwind label %246

200:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  %201 = load i32, ptr %12, align 4, !tbaa !11
  switch i32 %201, label %319 [
    i32 0, label %250
  ]

202:                                              ; preds = %107
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %6, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %7, align 4
  br label %676

206:                                              ; preds = %120, %118, %114
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %6, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %7, align 4
  br label %214

210:                                              ; preds = %136
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %6, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %7, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %17) #10
  br label %214

214:                                              ; preds = %210, %206
  call void @llvm.lifetime.end.p0(i64 256, ptr %17) #10
  br label %675

215:                                              ; preds = %141, %138
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %6, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %7, align 4
  br label %223

219:                                              ; preds = %143
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %6, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %7, align 4
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #10
  br label %223

223:                                              ; preds = %219, %215
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  br label %675

224:                                              ; preds = %149, %144
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %6, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %7, align 4
  br label %675

228:                                              ; preds = %170, %162, %156, %154, %150
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %6, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %7, align 4
  br label %236

232:                                              ; preds = %186
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %6, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %7, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %22) #10
  br label %236

236:                                              ; preds = %232, %228
  call void @llvm.lifetime.end.p0(i64 256, ptr %22) #10
  br label %674

237:                                              ; preds = %191, %188
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %6, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %7, align 4
  br label %245

241:                                              ; preds = %193
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %6, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %7, align 4
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #10
  br label %245

245:                                              ; preds = %241, %237
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  br label %674

246:                                              ; preds = %199, %194
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %6, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %7, align 4
  br label %674

250:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 208, ptr %28) #10
  invoke void @_ZN3JPH23HingeConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(208) %28)
          to label %251 unwind label %297

251:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #10
  %252 = load float, ptr %3, align 4, !tbaa !9
  %253 = fmul float 5.000000e-01, %252
  %254 = load float, ptr %3, align 4, !tbaa !9
  %255 = fmul float 5.000000e-01, %254
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %30, float noundef %253, float noundef 0.000000e+00, float noundef %255)
          to label %256 unwind label %301

256:                                              ; preds = %251
  %257 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %258 = load double, ptr %257, align 16
  %259 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %260 = load double, ptr %259, align 8
  %261 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %258, double %260)
          to label %262 unwind label %301

262:                                              ; preds = %256
  %263 = getelementptr inbounds %"class.JPH::Vec3", ptr %29, i32 0, i32 0
  %264 = getelementptr inbounds %union.anon, ptr %263, i32 0, i32 0
  %265 = getelementptr inbounds { double, double }, ptr %264, i32 0, i32 0
  %266 = extractvalue { double, double } %261, 0
  store double %266, ptr %265, align 16
  %267 = getelementptr inbounds { double, double }, ptr %264, i32 0, i32 1
  %268 = extractvalue { double, double } %261, 1
  store double %268, ptr %267, align 8
  %269 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %28, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %269, ptr align 16 %29, i64 16, i1 false), !tbaa.struct !21
  %270 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %28, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %270, ptr align 16 %269, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #10
  %271 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %272 unwind label %305

272:                                              ; preds = %262
  %273 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %274 = getelementptr inbounds %union.anon, ptr %273, i32 0, i32 0
  %275 = getelementptr inbounds { double, double }, ptr %274, i32 0, i32 0
  %276 = extractvalue { double, double } %271, 0
  store double %276, ptr %275, align 16
  %277 = getelementptr inbounds { double, double }, ptr %274, i32 0, i32 1
  %278 = extractvalue { double, double } %271, 1
  store double %278, ptr %277, align 8
  %279 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %28, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %279, ptr align 16 %31, i64 16, i1 false), !tbaa.struct !21
  %280 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %28, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %280, ptr align 16 %279, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #10
  %281 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %282 unwind label %309

282:                                              ; preds = %272
  %283 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %284 = getelementptr inbounds %union.anon, 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 %"class.JPH::HingeConstraintSettings", ptr %28, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %289, ptr align 16 %32, i64 16, i1 false), !tbaa.struct !21
  %290 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %28, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %290, ptr align 16 %289, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #10
  %291 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %28, i32 0, i32 9
  store float 0xBF847AE140000000, ptr %291, align 16, !tbaa !23
  %292 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %28, i32 0, i32 10
  store float 0x3F847AE140000000, ptr %292, align 4, !tbaa !36
  %293 = load ptr, ptr %16, align 8, !tbaa !5
  %294 = load ptr, ptr %21, align 8, !tbaa !5
  %295 = invoke noundef ptr @_ZNK3JPH23HingeConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(208) %28, ptr noundef nonnull align 16 dereferenceable(122) %293, ptr noundef nonnull align 16 dereferenceable(122) %294)
          to label %296 unwind label %313

296:                                              ; preds = %282
  store ptr %295, ptr %27, align 8, !tbaa !5
  store i32 8, ptr %13, align 4
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %28) #10
  call void @llvm.lifetime.end.p0(i64 208, ptr %28) #10
  br label %335

297:                                              ; preds = %250
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %6, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %7, align 4
  br label %318

301:                                              ; preds = %256, %251
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %6, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #10
  br label %317

305:                                              ; preds = %262
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %6, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  br label %317

309:                                              ; preds = %272
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %6, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #10
  br label %317

313:                                              ; preds = %282
  %314 = landingpad { ptr, i32 }
          cleanup
  %315 = extractvalue { ptr, i32 } %314, 0
  store ptr %315, ptr %6, align 8
  %316 = extractvalue { ptr, i32 } %314, 1
  store i32 %316, ptr %7, align 4
  br label %317

317:                                              ; preds = %313, %309, %305, %301
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %28) #10
  br label %318

318:                                              ; preds = %317, %297
  call void @llvm.lifetime.end.p0(i64 208, ptr %28) #10
  br label %673

319:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 144, ptr %33) #10
  invoke void @_ZN3JPH23FixedConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(144) %33)
          to label %320 unwind label %326

320:                                              ; preds = %319
  %321 = getelementptr inbounds %"class.JPH::FixedConstraintSettings", ptr %33, i32 0, i32 2
  store i8 1, ptr %321, align 4, !tbaa !37
  %322 = load ptr, ptr %16, align 8, !tbaa !5
  %323 = load ptr, ptr %21, align 8, !tbaa !5
  %324 = invoke noundef ptr @_ZNK3JPH23FixedConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(144) %33, ptr noundef nonnull align 16 dereferenceable(122) %322, ptr noundef nonnull align 16 dereferenceable(122) %323)
          to label %325 unwind label %330

325:                                              ; preds = %320
  store ptr %324, ptr %27, align 8, !tbaa !5
  store i32 8, ptr %13, align 4
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(144) %33) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr %33) #10
  br label %335

326:                                              ; preds = %319
  %327 = landingpad { ptr, i32 }
          cleanup
  %328 = extractvalue { ptr, i32 } %327, 0
  store ptr %328, ptr %6, align 8
  %329 = extractvalue { ptr, i32 } %327, 1
  store i32 %329, ptr %7, align 4
  br label %334

330:                                              ; preds = %320
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %6, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %7, align 4
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(144) %33) #10
  br label %334

334:                                              ; preds = %330, %326
  call void @llvm.lifetime.end.p0(i64 144, ptr %33) #10
  br label %673

335:                                              ; preds = %325, %296
  %336 = getelementptr inbounds %class.Test, ptr %64, i32 0, i32 2
  %337 = load ptr, ptr %336, align 8, !tbaa !39
  %338 = load ptr, ptr %27, align 8, !tbaa !5
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %337, ptr noundef %338)
          to label %339 unwind label %341

339:                                              ; preds = %335
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #10
  %340 = load i32, ptr %14, align 4, !tbaa !11
  switch i32 %340, label %555 [
    i32 0, label %345
    i32 1, label %391
    i32 2, label %473
  ]

341:                                              ; preds = %335
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %6, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %7, align 4
  br label %673

345:                                              ; preds = %339
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #10
  %346 = load float, ptr %3, align 4, !tbaa !9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %37, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %346)
          to label %347 unwind label %383

347:                                              ; preds = %345
  %348 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %349 = load double, ptr %348, align 16
  %350 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %351 = load double, ptr %350, align 8
  %352 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %349, double %351)
          to label %353 unwind label %383

353:                                              ; preds = %347
  %354 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %355 = getelementptr inbounds %union.anon, ptr %354, i32 0, i32 0
  %356 = getelementptr inbounds { double, double }, ptr %355, i32 0, i32 0
  %357 = extractvalue { double, double } %352, 0
  store double %357, ptr %356, align 16
  %358 = getelementptr inbounds { double, double }, ptr %355, i32 0, i32 1
  %359 = extractvalue { double, double } %352, 1
  store double %359, ptr %358, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %36, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #10
  %360 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %361 unwind label %387

361:                                              ; preds = %353
  %362 = getelementptr inbounds %"class.JPH::Vec3", ptr %39, i32 0, i32 0
  %363 = getelementptr inbounds %union.anon, ptr %362, i32 0, i32 0
  %364 = getelementptr inbounds { double, double }, ptr %363, i32 0, i32 0
  %365 = extractvalue { double, double } %360, 0
  store double %365, ptr %364, align 16
  %366 = getelementptr inbounds { double, double }, ptr %363, i32 0, i32 1
  %367 = extractvalue { double, double } %360, 1
  store double %367, ptr %366, align 8
  %368 = invoke noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 1.800000e+02)
          to label %369 unwind label %387

369:                                              ; preds = %361
  %370 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %371 = load double, ptr %370, align 16
  %372 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %373 = load double, ptr %372, align 8
  %374 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %371, double %373, float noundef %368)
          to label %375 unwind label %387

375:                                              ; preds = %369
  %376 = getelementptr inbounds %"class.JPH::Quat", ptr %38, i32 0, i32 0
  %377 = getelementptr inbounds %"class.JPH::Vec4", ptr %376, i32 0, i32 0
  %378 = getelementptr inbounds %union.anon.4, ptr %377, i32 0, i32 0
  %379 = getelementptr inbounds { double, double }, ptr %378, i32 0, i32 0
  %380 = extractvalue { double, double } %374, 0
  store double %380, ptr %379, align 16
  %381 = getelementptr inbounds { double, double }, ptr %378, i32 0, i32 1
  %382 = extractvalue { double, double } %374, 1
  store double %382, ptr %381, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %38, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #10
  br label %652

383:                                              ; preds = %347, %345
  %384 = landingpad { ptr, i32 }
          cleanup
  %385 = extractvalue { ptr, i32 } %384, 0
  store ptr %385, ptr %6, align 8
  %386 = extractvalue { ptr, i32 } %384, 1
  store i32 %386, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #10
  br label %672

387:                                              ; preds = %369, %361, %353
  %388 = landingpad { ptr, i32 }
          cleanup
  %389 = extractvalue { ptr, i32 } %388, 0
  store ptr %389, ptr %6, align 8
  %390 = extractvalue { ptr, i32 } %388, 1
  store i32 %390, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #10
  br label %672

391:                                              ; preds = %339
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #10
  %392 = load float, ptr %3, align 4, !tbaa !9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %41, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %392)
          to label %393 unwind label %465

393:                                              ; preds = %391
  %394 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %395 = load double, ptr %394, align 16
  %396 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %397 = load double, ptr %396, align 8
  %398 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %395, double %397)
          to label %399 unwind label %465

399:                                              ; preds = %393
  %400 = getelementptr inbounds %"class.JPH::Vec3", ptr %40, i32 0, i32 0
  %401 = getelementptr inbounds %union.anon, ptr %400, i32 0, i32 0
  %402 = getelementptr inbounds { double, double }, ptr %401, i32 0, i32 0
  %403 = extractvalue { double, double } %398, 0
  store double %403, ptr %402, align 16
  %404 = getelementptr inbounds { double, double }, ptr %401, i32 0, i32 1
  %405 = extractvalue { double, double } %398, 1
  store double %405, ptr %404, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #10
  %406 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %407 unwind label %469

407:                                              ; preds = %399
  %408 = getelementptr inbounds %"class.JPH::Vec3", ptr %44, i32 0, i32 0
  %409 = getelementptr inbounds %union.anon, ptr %408, i32 0, i32 0
  %410 = getelementptr inbounds { double, double }, ptr %409, i32 0, i32 0
  %411 = extractvalue { double, double } %406, 0
  store double %411, ptr %410, align 16
  %412 = getelementptr inbounds { double, double }, ptr %409, i32 0, i32 1
  %413 = extractvalue { double, double } %406, 1
  store double %413, ptr %412, align 8
  %414 = invoke noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef -9.000000e+01)
          to label %415 unwind label %469

415:                                              ; preds = %407
  %416 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %417 = load double, ptr %416, align 16
  %418 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %419 = load double, ptr %418, align 8
  %420 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %417, double %419, float noundef %414)
          to label %421 unwind label %469

421:                                              ; preds = %415
  %422 = getelementptr inbounds %"class.JPH::Quat", ptr %43, 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 } %420, 0
  store double %426, ptr %425, align 16
  %427 = getelementptr inbounds { double, double }, ptr %424, i32 0, i32 1
  %428 = extractvalue { double, double } %420, 1
  store double %428, ptr %427, align 8
  %429 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %430 unwind label %469

430:                                              ; preds = %421
  %431 = getelementptr inbounds %"class.JPH::Vec3", ptr %46, i32 0, i32 0
  %432 = getelementptr inbounds %union.anon, ptr %431, i32 0, i32 0
  %433 = getelementptr inbounds { double, double }, ptr %432, i32 0, i32 0
  %434 = extractvalue { double, double } %429, 0
  store double %434, ptr %433, align 16
  %435 = getelementptr inbounds { double, double }, ptr %432, i32 0, i32 1
  %436 = extractvalue { double, double } %429, 1
  store double %436, ptr %435, align 8
  %437 = invoke noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 1.800000e+02)
          to label %438 unwind label %469

438:                                              ; preds = %430
  %439 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %440 = load double, ptr %439, align 16
  %441 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %442 = load double, ptr %441, align 8
  %443 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %440, double %442, float noundef %437)
          to label %444 unwind label %469

444:                                              ; preds = %438
  %445 = getelementptr inbounds %"class.JPH::Quat", ptr %45, i32 0, i32 0
  %446 = getelementptr inbounds %"class.JPH::Vec4", ptr %445, i32 0, i32 0
  %447 = getelementptr inbounds %union.anon.4, ptr %446, i32 0, i32 0
  %448 = getelementptr inbounds { double, double }, ptr %447, i32 0, i32 0
  %449 = extractvalue { double, double } %443, 0
  store double %449, ptr %448, align 16
  %450 = getelementptr inbounds { double, double }, ptr %447, i32 0, i32 1
  %451 = extractvalue { double, double } %443, 1
  store double %451, ptr %450, align 8
  %452 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %453 = load double, ptr %452, align 16
  %454 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %455 = load double, ptr %454, align 8
  %456 = invoke { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %43, double %453, double %455)
          to label %457 unwind label %469

457:                                              ; preds = %444
  %458 = getelementptr inbounds %"class.JPH::Quat", ptr %42, i32 0, i32 0
  %459 = getelementptr inbounds %"class.JPH::Vec4", ptr %458, i32 0, i32 0
  %460 = getelementptr inbounds %union.anon.4, ptr %459, i32 0, i32 0
  %461 = getelementptr inbounds { double, double }, ptr %460, i32 0, i32 0
  %462 = extractvalue { double, double } %456, 0
  store double %462, ptr %461, align 16
  %463 = getelementptr inbounds { double, double }, ptr %460, i32 0, i32 1
  %464 = extractvalue { double, double } %456, 1
  store double %464, ptr %463, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %42, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #10
  br label %652

465:                                              ; preds = %393, %391
  %466 = landingpad { ptr, i32 }
          cleanup
  %467 = extractvalue { ptr, i32 } %466, 0
  store ptr %467, ptr %6, align 8
  %468 = extractvalue { ptr, i32 } %466, 1
  store i32 %468, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #10
  br label %672

469:                                              ; preds = %444, %438, %430, %421, %415, %407, %399
  %470 = landingpad { ptr, i32 }
          cleanup
  %471 = extractvalue { ptr, i32 } %470, 0
  store ptr %471, ptr %6, align 8
  %472 = extractvalue { ptr, i32 } %470, 1
  store i32 %472, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #10
  br label %672

473:                                              ; preds = %339
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #10
  %474 = load float, ptr %3, align 4, !tbaa !9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %48, float noundef %474, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %475 unwind label %547

475:                                              ; preds = %473
  %476 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %477 = load double, ptr %476, align 16
  %478 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %479 = load double, ptr %478, align 8
  %480 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %477, double %479)
          to label %481 unwind label %547

481:                                              ; preds = %475
  %482 = getelementptr inbounds %"class.JPH::Vec3", ptr %47, i32 0, i32 0
  %483 = getelementptr inbounds %union.anon, ptr %482, i32 0, i32 0
  %484 = getelementptr inbounds { double, double }, ptr %483, i32 0, i32 0
  %485 = extractvalue { double, double } %480, 0
  store double %485, ptr %484, align 16
  %486 = getelementptr inbounds { double, double }, ptr %483, i32 0, i32 1
  %487 = extractvalue { double, double } %480, 1
  store double %487, ptr %486, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %47, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #10
  %488 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %489 unwind label %551

489:                                              ; preds = %481
  %490 = getelementptr inbounds %"class.JPH::Vec3", ptr %51, i32 0, i32 0
  %491 = getelementptr inbounds %union.anon, ptr %490, i32 0, i32 0
  %492 = getelementptr inbounds { double, double }, ptr %491, i32 0, i32 0
  %493 = extractvalue { double, double } %488, 0
  store double %493, ptr %492, align 16
  %494 = getelementptr inbounds { double, double }, ptr %491, i32 0, i32 1
  %495 = extractvalue { double, double } %488, 1
  store double %495, ptr %494, align 8
  %496 = invoke noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 9.000000e+01)
          to label %497 unwind label %551

497:                                              ; preds = %489
  %498 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %499 = load double, ptr %498, align 16
  %500 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %501 = load double, ptr %500, align 8
  %502 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %499, double %501, float noundef %496)
          to label %503 unwind label %551

503:                                              ; preds = %497
  %504 = getelementptr inbounds %"class.JPH::Quat", ptr %50, i32 0, i32 0
  %505 = getelementptr inbounds %"class.JPH::Vec4", ptr %504, i32 0, i32 0
  %506 = getelementptr inbounds %union.anon.4, ptr %505, i32 0, i32 0
  %507 = getelementptr inbounds { double, double }, ptr %506, i32 0, i32 0
  %508 = extractvalue { double, double } %502, 0
  store double %508, ptr %507, align 16
  %509 = getelementptr inbounds { double, double }, ptr %506, i32 0, i32 1
  %510 = extractvalue { double, double } %502, 1
  store double %510, ptr %509, align 8
  %511 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %512 unwind label %551

512:                                              ; preds = %503
  %513 = getelementptr inbounds %"class.JPH::Vec3", ptr %53, i32 0, i32 0
  %514 = getelementptr inbounds %union.anon, ptr %513, i32 0, i32 0
  %515 = getelementptr inbounds { double, double }, ptr %514, i32 0, i32 0
  %516 = extractvalue { double, double } %511, 0
  store double %516, ptr %515, align 16
  %517 = getelementptr inbounds { double, double }, ptr %514, i32 0, i32 1
  %518 = extractvalue { double, double } %511, 1
  store double %518, ptr %517, align 8
  %519 = invoke noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 9.000000e+01)
          to label %520 unwind label %551

520:                                              ; preds = %512
  %521 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %522 = load double, ptr %521, align 16
  %523 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %524 = load double, ptr %523, align 8
  %525 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %522, double %524, float noundef %519)
          to label %526 unwind label %551

526:                                              ; preds = %520
  %527 = getelementptr inbounds %"class.JPH::Quat", ptr %52, i32 0, i32 0
  %528 = getelementptr inbounds %"class.JPH::Vec4", ptr %527, i32 0, i32 0
  %529 = getelementptr inbounds %union.anon.4, ptr %528, i32 0, i32 0
  %530 = getelementptr inbounds { double, double }, ptr %529, i32 0, i32 0
  %531 = extractvalue { double, double } %525, 0
  store double %531, ptr %530, align 16
  %532 = getelementptr inbounds { double, double }, ptr %529, i32 0, i32 1
  %533 = extractvalue { double, double } %525, 1
  store double %533, ptr %532, align 8
  %534 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %535 = load double, ptr %534, align 16
  %536 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %537 = load double, ptr %536, align 8
  %538 = invoke { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %50, double %535, double %537)
          to label %539 unwind label %551

539:                                              ; preds = %526
  %540 = getelementptr inbounds %"class.JPH::Quat", ptr %49, i32 0, i32 0
  %541 = getelementptr inbounds %"class.JPH::Vec4", ptr %540, i32 0, i32 0
  %542 = getelementptr inbounds %union.anon.4, ptr %541, i32 0, i32 0
  %543 = getelementptr inbounds { double, double }, ptr %542, i32 0, i32 0
  %544 = extractvalue { double, double } %538, 0
  store double %544, ptr %543, align 16
  %545 = getelementptr inbounds { double, double }, ptr %542, i32 0, i32 1
  %546 = extractvalue { double, double } %538, 1
  store double %546, ptr %545, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %49, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #10
  br label %652

547:                                              ; preds = %475, %473
  %548 = landingpad { ptr, i32 }
          cleanup
  %549 = extractvalue { ptr, i32 } %548, 0
  store ptr %549, ptr %6, align 8
  %550 = extractvalue { ptr, i32 } %548, 1
  store i32 %550, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #10
  br label %672

551:                                              ; preds = %526, %520, %512, %503, %497, %489, %481
  %552 = landingpad { ptr, i32 }
          cleanup
  %553 = extractvalue { ptr, i32 } %552, 0
  store ptr %553, ptr %6, align 8
  %554 = extractvalue { ptr, i32 } %552, 1
  store i32 %554, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #10
  br label %672

555:                                              ; preds = %339
  br label %556

556:                                              ; preds = %555
  %557 = load i32, ptr %14, align 4, !tbaa !11
  %558 = icmp eq i32 %557, 3
  br i1 %558, label %567, label %559

559:                                              ; preds = %556
  %560 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 94)
          to label %561 unwind label %563

561:                                              ; preds = %559
  br i1 %560, label %562, label %567

562:                                              ; preds = %561
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !40
  br label %567

563:                                              ; preds = %657, %652, %559
  %564 = landingpad { ptr, i32 }
          cleanup
  %565 = extractvalue { ptr, i32 } %564, 0
  store ptr %565, ptr %6, align 8
  %566 = extractvalue { ptr, i32 } %564, 1
  store i32 %566, ptr %7, align 4
  br label %672

567:                                              ; preds = %562, %561, %556
  br label %568

568:                                              ; preds = %567
  br label %569

569:                                              ; preds = %568
  call void @llvm.lifetime.start.p0(i64 16, ptr %55) #10
  %570 = load float, ptr %3, align 4, !tbaa !9
  %571 = fneg float %570
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %56, float noundef %571, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %572 unwind label %644

572:                                              ; preds = %569
  %573 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %574 = load double, ptr %573, align 16
  %575 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %576 = load double, ptr %575, align 8
  %577 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %574, double %576)
          to label %578 unwind label %644

578:                                              ; preds = %572
  %579 = getelementptr inbounds %"class.JPH::Vec3", ptr %55, i32 0, i32 0
  %580 = getelementptr inbounds %union.anon, ptr %579, i32 0, i32 0
  %581 = getelementptr inbounds { double, double }, ptr %580, i32 0, i32 0
  %582 = extractvalue { double, double } %577, 0
  store double %582, ptr %581, align 16
  %583 = getelementptr inbounds { double, double }, ptr %580, i32 0, i32 1
  %584 = extractvalue { double, double } %577, 1
  store double %584, ptr %583, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %55, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %57) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %58) #10
  %585 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %586 unwind label %648

586:                                              ; preds = %578
  %587 = getelementptr inbounds %"class.JPH::Vec3", ptr %59, i32 0, i32 0
  %588 = getelementptr inbounds %union.anon, ptr %587, i32 0, i32 0
  %589 = getelementptr inbounds { double, double }, ptr %588, i32 0, i32 0
  %590 = extractvalue { double, double } %585, 0
  store double %590, ptr %589, align 16
  %591 = getelementptr inbounds { double, double }, ptr %588, i32 0, i32 1
  %592 = extractvalue { double, double } %585, 1
  store double %592, ptr %591, align 8
  %593 = invoke noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 9.000000e+01)
          to label %594 unwind label %648

594:                                              ; preds = %586
  %595 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 0
  %596 = load double, ptr %595, align 16
  %597 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 1
  %598 = load double, ptr %597, align 8
  %599 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %596, double %598, float noundef %593)
          to label %600 unwind label %648

600:                                              ; preds = %594
  %601 = getelementptr inbounds %"class.JPH::Quat", ptr %58, i32 0, i32 0
  %602 = getelementptr inbounds %"class.JPH::Vec4", ptr %601, i32 0, i32 0
  %603 = getelementptr inbounds %union.anon.4, ptr %602, i32 0, i32 0
  %604 = getelementptr inbounds { double, double }, ptr %603, i32 0, i32 0
  %605 = extractvalue { double, double } %599, 0
  store double %605, ptr %604, align 16
  %606 = getelementptr inbounds { double, double }, ptr %603, i32 0, i32 1
  %607 = extractvalue { double, double } %599, 1
  store double %607, ptr %606, align 8
  %608 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %609 unwind label %648

609:                                              ; preds = %600
  %610 = getelementptr inbounds %"class.JPH::Vec3", ptr %61, i32 0, i32 0
  %611 = getelementptr inbounds %union.anon, ptr %610, i32 0, i32 0
  %612 = getelementptr inbounds { double, double }, ptr %611, i32 0, i32 0
  %613 = extractvalue { double, double } %608, 0
  store double %613, ptr %612, align 16
  %614 = getelementptr inbounds { double, double }, ptr %611, i32 0, i32 1
  %615 = extractvalue { double, double } %608, 1
  store double %615, ptr %614, align 8
  %616 = invoke noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 9.000000e+01)
          to label %617 unwind label %648

617:                                              ; preds = %609
  %618 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %619 = load double, ptr %618, align 16
  %620 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %621 = load double, ptr %620, align 8
  %622 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %619, double %621, float noundef %616)
          to label %623 unwind label %648

623:                                              ; preds = %617
  %624 = getelementptr inbounds %"class.JPH::Quat", ptr %60, i32 0, i32 0
  %625 = getelementptr inbounds %"class.JPH::Vec4", ptr %624, i32 0, i32 0
  %626 = getelementptr inbounds %union.anon.4, ptr %625, i32 0, i32 0
  %627 = getelementptr inbounds { double, double }, ptr %626, i32 0, i32 0
  %628 = extractvalue { double, double } %622, 0
  store double %628, ptr %627, align 16
  %629 = getelementptr inbounds { double, double }, ptr %626, i32 0, i32 1
  %630 = extractvalue { double, double } %622, 1
  store double %630, ptr %629, align 8
  %631 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 0
  %632 = load double, ptr %631, align 16
  %633 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 1
  %634 = load double, ptr %633, align 8
  %635 = invoke { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %58, double %632, double %634)
          to label %636 unwind label %648

636:                                              ; preds = %623
  %637 = getelementptr inbounds %"class.JPH::Quat", ptr %57, i32 0, i32 0
  %638 = getelementptr inbounds %"class.JPH::Vec4", ptr %637, i32 0, i32 0
  %639 = getelementptr inbounds %union.anon.4, ptr %638, i32 0, i32 0
  %640 = getelementptr inbounds { double, double }, ptr %639, i32 0, i32 0
  %641 = extractvalue { double, double } %635, 0
  store double %641, ptr %640, align 16
  %642 = getelementptr inbounds { double, double }, ptr %639, i32 0, i32 1
  %643 = extractvalue { double, double } %635, 1
  store double %643, ptr %642, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %57, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #10
  br label %652

644:                                              ; preds = %572, %569
  %645 = landingpad { ptr, i32 }
          cleanup
  %646 = extractvalue { ptr, i32 } %645, 0
  store ptr %646, ptr %6, align 8
  %647 = extractvalue { ptr, i32 } %645, 1
  store i32 %647, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #10
  br label %672

648:                                              ; preds = %623, %617, %609, %600, %594, %586, %578
  %649 = landingpad { ptr, i32 }
          cleanup
  %650 = extractvalue { ptr, i32 } %649, 0
  store ptr %650, ptr %6, align 8
  %651 = extractvalue { ptr, i32 } %649, 1
  store i32 %651, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #10
  br label %672

652:                                              ; preds = %636, %539, %457, %375
  %653 = getelementptr inbounds %class.Test, ptr %64, i32 0, i32 3
  %654 = load ptr, ptr %653, align 8, !tbaa !13
  %655 = load ptr, ptr %21, align 8, !tbaa !5
  %656 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %655)
          to label %657 unwind label %563

657:                                              ; preds = %652
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %62, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %63, ptr align 16 %35, i64 16, i1 false), !tbaa.struct !21
  %658 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %659 = load double, ptr %658, align 16
  %660 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %661 = load double, ptr %660, align 8
  %662 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %663 = load double, ptr %662, align 16
  %664 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %665 = load double, ptr %664, align 8
  invoke void @_ZN3JPH13BodyInterface22SetPositionAndRotationERKNS_6BodyIDENS_4Vec3ENS_4QuatENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %654, ptr noundef nonnull align 4 dereferenceable(4) %656, double %659, double %661, double %663, double %665, i32 noundef 1)
          to label %666 unwind label %563

666:                                              ; preds = %657
  %667 = load i32, ptr %11, align 4, !tbaa !11
  %668 = add i32 %667, 1
  store i32 %668, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #10
  br label %669

669:                                              ; preds = %666
  %670 = load i32, ptr %14, align 4, !tbaa !11
  %671 = add nsw i32 %670, 1
  store i32 %671, ptr %14, align 4, !tbaa !11
  br label %103, !llvm.loop !41

672:                                              ; preds = %648, %644, %563, %551, %547, %469, %465, %387, %383
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #10
  br label %673

673:                                              ; preds = %672, %341, %334, %318
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  br label %674

674:                                              ; preds = %673, %246, %245, %236
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  br label %675

675:                                              ; preds = %674, %224, %223, %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  br label %676

676:                                              ; preds = %675, %202
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  br label %682

677:                                              ; preds = %106
  br label %678

678:                                              ; preds = %677
  %679 = load i32, ptr %12, align 4, !tbaa !11
  %680 = add nsw i32 %679, 1
  store i32 %680, ptr %12, align 4, !tbaa !11
  br label %86, !llvm.loop !43

681:                                              ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #10
  ret void

682:                                              ; preds = %676, %98, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  br label %683

683:                                              ; preds = %682, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #10
  br label %684

684:                                              ; preds = %683
  %685 = load ptr, ptr %6, align 8
  %686 = load i32, ptr %7, align 4
  %687 = insertvalue { ptr, i32 } poison, ptr %685, 0
  %688 = insertvalue { ptr, i32 } %687, i32 %686, 1
  resume { ptr, i32 } %688
}

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec310sReplicateEf(float 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #6 align 2

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

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

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

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

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

; 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 #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH14CollisionGroupC2EPKNS_11GroupFilterEjj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 2

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

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

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

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

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

declare noundef ptr @_ZNK3JPH23HingeConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(208), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122)) unnamed_addr #2

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

declare noundef ptr @_ZNK3JPH23FixedConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(144), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122)) unnamed_addr #2

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef) #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #6

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 @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #8 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 #9 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #10 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 24}
!14 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !15, i64 48, !16, i64 56}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !17, i64 0}
!17 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !18, i64 8, !19, i64 16, !18, i64 24, !20, i64 32, !6, i64 48}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!20 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !10, i64 0, !18, i64 8}
!21 = !{i64 0, i64 16, !22}
!22 = !{!7, !7, i64 0}
!23 = !{!24, !10, i64 144}
!24 = !{!"_ZTSN3JPH23HingeConstraintSettingsE", !25, i64 0, !31, i64 40, !32, i64 48, !32, i64 64, !32, i64 80, !32, i64 96, !32, i64 112, !32, i64 128, !10, i64 144, !10, i64 148, !33, i64 152, !10, i64 164, !35, i64 168}
!25 = !{!"_ZTSN3JPH25TwoBodyConstraintSettingsE", !26, i64 0}
!26 = !{!"_ZTSN3JPH18ConstraintSettingsE", !27, i64 0, !28, i64 8, !15, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !10, i64 28, !18, i64 32}
!27 = !{!"_ZTSN3JPH18SerializableObjectE"}
!28 = !{!"_ZTSN3JPH9RefTargetINS_18ConstraintSettingsEEE", !29, i64 0}
!29 = !{!"_ZTSSt6atomicIjE", !30, i64 0}
!30 = !{!"_ZTSSt13__atomic_baseIjE", !12, i64 0}
!31 = !{!"_ZTSN3JPH16EConstraintSpaceE", !7, i64 0}
!32 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!33 = !{!"_ZTSN3JPH14SpringSettingsE", !34, i64 0, !7, i64 4, !10, i64 8}
!34 = !{!"_ZTSN3JPH11ESpringModeE", !7, i64 0}
!35 = !{!"_ZTSN3JPH13MotorSettingsE", !33, i64 0, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!36 = !{!24, !10, i64 148}
!37 = !{!38, !15, i64 44}
!38 = !{!"_ZTSN3JPH23FixedConstraintSettingsE", !25, i64 0, !31, i64 40, !15, i64 44, !32, i64 48, !32, i64 64, !32, i64 80, !32, i64 96, !32, i64 112, !32, i64 128}
!39 = !{!14, !6, i64 16}
!40 = !{i64 2160214246}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = distinct !{!43, !42}


; 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::RefConst" = type { ptr }
%"class.JPH::Ref" = type { ptr }
%"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.10", %"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.10" = type { ptr }
%"class.JPH::HingeConstraintSettings" = type <{ %"class.JPH::TwoBodyConstraintSettings", i32, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, %"class.JPH::SpringSettings", float, %"class.JPH::MotorSettings", [12 x i8] }>
%"class.JPH::TwoBodyConstraintSettings" = type { %"class.JPH::ConstraintSettings" }
%"class.JPH::ConstraintSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.11", i8, i32, i32, i32, float, i64 }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.11" = type { %"struct.std::atomic.6" }
%"struct.std::atomic.6" = type { %"struct.std::__atomic_base.7" }
%"struct.std::__atomic_base.7" = type { i32 }
%"class.JPH::SpringSettings" = type { i8, %union.anon.12, float }
%union.anon.12 = type { float }
%"class.JPH::MotorSettings" = type { %"class.JPH::SpringSettings", float, float, float, float }
%"class.JPH::FixedConstraintSettings" = type { %"class.JPH::TwoBodyConstraintSettings", i32, i8, %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3" }

; 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 @_ZN25ConstraintSingularityTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(112) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::RefConst", align 8
  %3 = alloca %"class.JPH::Ref", align 8
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::BodyCreationSettings", align 16
  %6 = alloca %"class.JPH::CollisionGroup", align 8
  %7 = alloca %"class.JPH::BodyCreationSettings", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::CollisionGroup", align 8
  %10 = alloca %"class.JPH::HingeConstraintSettings", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::FixedConstraintSettings", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Quat", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Quat", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Quat", align 16
  %20 = tail call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %0, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #10
  %21 = tail call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  %22 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 2.000000e+00)
          to label %23 unwind label %50

23:                                               ; preds = %1
  %24 = extractvalue { double, double } %22, 0
  %25 = extractvalue { double, double } %22, 1
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %21, double %24, double %25, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %26 unwind label %50

26:                                               ; preds = %23
  call void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %21)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10
  %27 = invoke noundef ptr @_ZN3JPH16GroupFilterTablenwEm(i64 noundef 40)
          to label %28 unwind label %52

28:                                               ; preds = %26
  invoke void @_ZN3JPH16GroupFilterTableC2Ej(ptr noundef nonnull align 8 dereferenceable(40) %27, i32 noundef 0)
          to label %29 unwind label %54

29:                                               ; preds = %28
  invoke void @_ZN3JPH3RefINS_16GroupFilterTableEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull %27)
          to label %.preheader131 unwind label %52

.preheader131:                                    ; preds = %29
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.259.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  %31 = getelementptr inbounds i8, ptr %8, i64 8
  %32 = getelementptr inbounds i8, ptr %12, i64 44
  %33 = getelementptr inbounds i8, ptr %11, i64 8
  %34 = getelementptr inbounds i8, ptr %10, i64 96
  %.sroa.546.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 104
  %35 = getelementptr inbounds i8, ptr %10, i64 48
  %36 = getelementptr inbounds i8, ptr %10, i64 112
  %.sroa.544.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 120
  %37 = getelementptr inbounds i8, ptr %10, i64 64
  %38 = getelementptr inbounds i8, ptr %10, i64 128
  %.sroa.542.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 136
  %39 = getelementptr inbounds i8, ptr %10, i64 80
  %40 = getelementptr inbounds i8, ptr %10, i64 144
  %41 = getelementptr inbounds i8, ptr %0, i64 16
  %42 = getelementptr inbounds i8, ptr %18, i64 8
  %43 = getelementptr inbounds i8, ptr %19, i64 8
  %44 = getelementptr inbounds i8, ptr %16, i64 8
  %45 = getelementptr inbounds i8, ptr %17, i64 8
  %46 = getelementptr inbounds i8, ptr %14, i64 8
  %47 = getelementptr inbounds i8, ptr %15, i64 8
  %48 = getelementptr inbounds i8, ptr %13, i64 8
  br label %.preheader

.preheader:                                       ; preds = %.preheader131, %56
  %.0102164 = phi i32 [ 0, %.preheader131 ], [ %281, %56 ]
  %cond = phi i1 [ true, %.preheader131 ], [ false, %56 ]
  %.0104163 = phi float [ 0.000000e+00, %.preheader131 ], [ 1.000000e+01, %56 ]
  br label %57

49:                                               ; preds = %56
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  ret void

50:                                               ; preds = %23, %1
  %51 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %21) #10
  br label %285

52:                                               ; preds = %29, %26
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %284

54:                                               ; preds = %28
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH16GroupFilterTabledlEPv(ptr noundef %27) #10
  br label %284

56:                                               ; preds = %280
  br i1 %cond, label %.preheader, label %49, !llvm.loop !5

57:                                               ; preds = %.preheader, %280
  %.1103162 = phi i32 [ %.0102164, %.preheader ], [ %281, %280 ]
  %.0105161 = phi i32 [ 0, %.preheader ], [ %282, %280 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #10
  %58 = uitofp nneg i32 %.0105161 to float
  %59 = call float @llvm.fmuladd.f32(float %58, float 1.000000e+01, float 1.000000e+01)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef %.0104163, float noundef %59, float noundef 0.000000e+00)
          to label %60 unwind label %98

60:                                               ; preds = %57
  %61 = load ptr, ptr %30, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #10
  %62 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %.sroa.058.0.copyload = load double, ptr %4, align 16
  %.sroa.259.0.copyload = load double, ptr %.sroa.259.0..sroa_idx, align 8, !tbaa !19
  %63 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %64 unwind label %100

64:                                               ; preds = %60
  %65 = extractvalue { double, double } %63, 0
  %66 = extractvalue { double, double } %63, 1
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %5, ptr noundef %62, double %.sroa.058.0.copyload, double %.sroa.259.0.copyload, double %65, double %66, i8 noundef zeroext 0, i16 noundef zeroext 0)
          to label %67 unwind label %100

67:                                               ; preds = %64
  %68 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 16 dereferenceable(256) %5)
          to label %69 unwind label %102

69:                                               ; preds = %67
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %5) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #10
  %70 = call noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  invoke void @_ZN3JPH14CollisionGroupC2EPKNS_11GroupFilterEjj(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %70, i32 noundef %.1103162, i32 noundef 0)
          to label %71 unwind label %105

71:                                               ; preds = %69
  invoke void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122) %68, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %72 unwind label %107

72:                                               ; preds = %71
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  %73 = load ptr, ptr %30, align 8, !tbaa !7
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %68)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 4 dereferenceable(4) %74, i32 noundef 1)
          to label %75 unwind label %110

75:                                               ; preds = %72
  %76 = load ptr, ptr %30, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %7) #10
  %77 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef 4.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %78 unwind label %112

78:                                               ; preds = %75
  %79 = load double, ptr %8, align 16
  %80 = load double, ptr %31, align 8
  %81 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %79, double %80)
          to label %82 unwind label %112

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

84:                                               ; preds = %82
  %85 = extractvalue { double, double } %81, 1
  %86 = extractvalue { double, double } %81, 0
  %87 = extractvalue { double, double } %83, 0
  %88 = extractvalue { double, double } %83, 1
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %7, ptr noundef %77, double %86, double %85, double %87, double %88, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %89 unwind label %112

89:                                               ; preds = %84
  %90 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %76, ptr noundef nonnull align 16 dereferenceable(256) %7)
          to label %91 unwind label %114

91:                                               ; preds = %89
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %7) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #10
  %92 = call noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  invoke void @_ZN3JPH14CollisionGroupC2EPKNS_11GroupFilterEjj(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef %92, i32 noundef %.1103162, i32 noundef 0)
          to label %93 unwind label %117

93:                                               ; preds = %91
  invoke void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122) %90, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %94 unwind label %119

94:                                               ; preds = %93
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #10
  %95 = load ptr, ptr %30, align 8, !tbaa !7
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %90)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %95, ptr noundef nonnull align 4 dereferenceable(4) %96, i32 noundef 0)
          to label %97 unwind label %122

97:                                               ; preds = %94
  br i1 %cond, label %124, label %155

98:                                               ; preds = %57
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %283

100:                                              ; preds = %64, %60
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %104

102:                                              ; preds = %67
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %5) #10
  br label %104

104:                                              ; preds = %102, %100
  %.pn = phi { ptr, i32 } [ %103, %102 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #10
  br label %283

105:                                              ; preds = %69
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %109

107:                                              ; preds = %71
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #10
  br label %109

109:                                              ; preds = %107, %105
  %.pn108 = phi { ptr, i32 } [ %108, %107 ], [ %106, %105 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  br label %283

110:                                              ; preds = %72
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %283

112:                                              ; preds = %84, %82, %78, %75
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %116

114:                                              ; preds = %89
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %7) #10
  br label %116

116:                                              ; preds = %114, %112
  %.pn110 = phi { ptr, i32 } [ %115, %114 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #10
  br label %283

117:                                              ; preds = %91
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %121

119:                                              ; preds = %93
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #10
  br label %121

121:                                              ; preds = %119, %117
  %.pn112 = phi { ptr, i32 } [ %120, %119 ], [ %118, %117 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #10
  br label %283

122:                                              ; preds = %94
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %283

124:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %10) #10
  invoke void @_ZN3JPH23HingeConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(208) %10)
          to label %125 unwind label %143

125:                                              ; preds = %124
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef 2.000000e+00, float noundef 0.000000e+00, float noundef 2.000000e+00)
          to label %126 unwind label %145

126:                                              ; preds = %125
  %127 = load double, ptr %11, align 16
  %128 = load double, ptr %33, align 8
  %129 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %127, double %128)
          to label %130 unwind label %145

130:                                              ; preds = %126
  %131 = extractvalue { double, double } %129, 0
  %132 = extractvalue { double, double } %129, 1
  store double %131, ptr %34, align 16
  store double %132, ptr %.sroa.546.0..sroa_idx, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %35, ptr noundef nonnull align 16 dereferenceable(16) %34, i64 16, i1 false), !tbaa.struct !20
  %133 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %134 unwind label %147

134:                                              ; preds = %130
  %135 = extractvalue { double, double } %133, 0
  %136 = extractvalue { double, double } %133, 1
  store double %135, ptr %36, align 16
  store double %136, ptr %.sroa.544.0..sroa_idx, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %37, ptr noundef nonnull align 16 dereferenceable(16) %36, i64 16, i1 false), !tbaa.struct !20
  %137 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %138 unwind label %149

138:                                              ; preds = %134
  %139 = extractvalue { double, double } %137, 0
  %140 = extractvalue { double, double } %137, 1
  store double %139, ptr %38, align 16
  store double %140, ptr %.sroa.542.0..sroa_idx, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %39, ptr noundef nonnull align 16 dereferenceable(16) %38, i64 16, i1 false), !tbaa.struct !20
  store <2 x float> <float 0xBF847AE140000000, float 0x3F847AE140000000>, ptr %40, align 16, !tbaa !21
  %141 = invoke noundef ptr @_ZNK3JPH23HingeConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(208) %10, ptr noundef nonnull align 16 dereferenceable(122) %68, ptr noundef nonnull align 16 dereferenceable(122) %90)
          to label %142 unwind label %151

142:                                              ; preds = %138
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %10) #10
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %10) #10
  br label %164

143:                                              ; preds = %124
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %154

145:                                              ; preds = %126, %125
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %153

147:                                              ; preds = %130
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %153

149:                                              ; preds = %134
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %153

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

153:                                              ; preds = %151, %149, %147, %145
  %.pn116 = phi { ptr, i32 } [ %152, %151 ], [ %150, %149 ], [ %148, %147 ], [ %146, %145 ]
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %10) #10
  br label %154

154:                                              ; preds = %153, %143
  %.pn116.pn = phi { ptr, i32 } [ %.pn116, %153 ], [ %144, %143 ]
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %10) #10
  br label %283

155:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %12) #10
  invoke void @_ZN3JPH23FixedConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(144) %12)
          to label %156 unwind label %159

156:                                              ; preds = %155
  store i8 1, ptr %32, align 4, !tbaa !22
  %157 = invoke noundef ptr @_ZNK3JPH23FixedConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(144) %12, ptr noundef nonnull align 16 dereferenceable(122) %68, ptr noundef nonnull align 16 dereferenceable(122) %90)
          to label %158 unwind label %161

158:                                              ; preds = %156
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(144) %12) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %12) #10
  br label %164

159:                                              ; preds = %155
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %163

161:                                              ; preds = %156
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(144) %12) #10
  br label %163

163:                                              ; preds = %161, %159
  %.pn114 = phi { ptr, i32 } [ %162, %161 ], [ %160, %159 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %12) #10
  br label %283

164:                                              ; preds = %158, %142
  %.0106 = phi ptr [ %141, %142 ], [ %157, %158 ]
  %165 = load ptr, ptr %41, align 8, !tbaa !33
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %165, ptr noundef %.0106)
          to label %166 unwind label %167

166:                                              ; preds = %164
  switch i32 %.0105161, label %default.unreachable [
    i32 0, label %169
    i32 1, label %185
    i32 2, label %215
    i32 3, label %247
  ]

167:                                              ; preds = %164
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %283

169:                                              ; preds = %166
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 4.000000e+00)
          to label %170 unwind label %181

170:                                              ; preds = %169
  %171 = load double, ptr %13, align 16
  %172 = load double, ptr %48, align 8
  %173 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %171, double %172)
          to label %174 unwind label %181

174:                                              ; preds = %170
  %175 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %176 unwind label %183

176:                                              ; preds = %174
  %177 = extractvalue { double, double } %175, 0
  %178 = extractvalue { double, double } %175, 1
  %179 = call noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 1.800000e+02)
  %180 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %177, double %178, float noundef %179)
          to label %277 unwind label %183

181:                                              ; preds = %170, %169
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %283

183:                                              ; preds = %176, %174
  %184 = landingpad { ptr, i32 }
          cleanup
  br label %283

185:                                              ; preds = %166
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 4.000000e+00)
          to label %186 unwind label %211

186:                                              ; preds = %185
  %187 = load double, ptr %14, align 16
  %188 = load double, ptr %46, align 8
  %189 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %187, double %188)
          to label %190 unwind label %211

190:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #10
  %191 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %192 unwind label %213

192:                                              ; preds = %190
  %193 = extractvalue { double, double } %191, 0
  %194 = extractvalue { double, double } %191, 1
  %195 = call noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef -9.000000e+01)
  %196 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %193, double %194, float noundef %195)
          to label %197 unwind label %213

197:                                              ; preds = %192
  %198 = extractvalue { double, double } %196, 0
  store double %198, ptr %15, align 16
  %199 = extractvalue { double, double } %196, 1
  store double %199, ptr %47, align 8
  %200 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %201 unwind label %213

201:                                              ; preds = %197
  %202 = extractvalue { double, double } %200, 0
  %203 = extractvalue { double, double } %200, 1
  %204 = call noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 1.800000e+02)
  %205 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %202, double %203, float noundef %204)
          to label %206 unwind label %213

206:                                              ; preds = %201
  %207 = extractvalue { double, double } %205, 0
  %208 = extractvalue { double, double } %205, 1
  %209 = invoke { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %207, double %208)
          to label %210 unwind label %213

210:                                              ; preds = %206
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #10
  br label %277

211:                                              ; preds = %186, %185
  %212 = landingpad { ptr, i32 }
          cleanup
  br label %283

213:                                              ; preds = %206, %201, %197, %192, %190
  %214 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #10
  br label %283

215:                                              ; preds = %166
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef 4.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %216 unwind label %241

216:                                              ; preds = %215
  %217 = load double, ptr %16, align 16
  %218 = load double, ptr %44, align 8
  %219 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %217, double %218)
          to label %220 unwind label %241

220:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %221 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %222 unwind label %243

222:                                              ; preds = %220
  %223 = extractvalue { double, double } %221, 0
  %224 = extractvalue { double, double } %221, 1
  %225 = call noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 9.000000e+01)
  %226 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %223, double %224, float noundef %225)
          to label %227 unwind label %243

227:                                              ; preds = %222
  %228 = extractvalue { double, double } %226, 0
  store double %228, ptr %17, align 16
  %229 = extractvalue { double, double } %226, 1
  store double %229, ptr %45, align 8
  %230 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %231 unwind label %243

231:                                              ; preds = %227
  %232 = extractvalue { double, double } %230, 0
  %233 = extractvalue { double, double } %230, 1
  %234 = call noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 9.000000e+01)
  %235 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %232, double %233, float noundef %234)
          to label %236 unwind label %243

236:                                              ; preds = %231
  %237 = extractvalue { double, double } %235, 0
  %238 = extractvalue { double, double } %235, 1
  %239 = invoke { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %237, double %238)
          to label %240 unwind label %243

240:                                              ; preds = %236
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  br label %277

241:                                              ; preds = %216, %215
  %242 = landingpad { ptr, i32 }
          cleanup
  br label %283

243:                                              ; preds = %236, %231, %227, %222, %220
  %244 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  br label %283

default.unreachable:                              ; preds = %166
  unreachable

245:                                              ; preds = %277
  %246 = landingpad { ptr, i32 }
          cleanup
  br label %283

247:                                              ; preds = %166
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %18, float noundef -4.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %248 unwind label %273

248:                                              ; preds = %247
  %249 = load double, ptr %18, align 16
  %250 = load double, ptr %42, align 8
  %251 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %249, double %250)
          to label %252 unwind label %273

252:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #10
  %253 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %254 unwind label %275

254:                                              ; preds = %252
  %255 = extractvalue { double, double } %253, 0
  %256 = extractvalue { double, double } %253, 1
  %257 = call noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 9.000000e+01)
  %258 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %255, double %256, float noundef %257)
          to label %259 unwind label %275

259:                                              ; preds = %254
  %260 = extractvalue { double, double } %258, 0
  store double %260, ptr %19, align 16
  %261 = extractvalue { double, double } %258, 1
  store double %261, ptr %43, align 8
  %262 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %263 unwind label %275

263:                                              ; preds = %259
  %264 = extractvalue { double, double } %262, 0
  %265 = extractvalue { double, double } %262, 1
  %266 = call noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 9.000000e+01)
  %267 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %264, double %265, float noundef %266)
          to label %268 unwind label %275

268:                                              ; preds = %263
  %269 = extractvalue { double, double } %267, 0
  %270 = extractvalue { double, double } %267, 1
  %271 = invoke { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %269, double %270)
          to label %272 unwind label %275

272:                                              ; preds = %268
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #10
  br label %277

273:                                              ; preds = %248, %247
  %274 = landingpad { ptr, i32 }
          cleanup
  br label %283

275:                                              ; preds = %268, %263, %259, %254, %252
  %276 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #10
  br label %283

277:                                              ; preds = %176, %272, %240, %210
  %.pn119 = phi { double, double } [ %271, %272 ], [ %239, %240 ], [ %209, %210 ], [ %180, %176 ]
  %.pn121 = phi { double, double } [ %251, %272 ], [ %219, %240 ], [ %189, %210 ], [ %173, %176 ]
  %.sroa.840.0 = extractvalue { double, double } %.pn121, 1
  %.sroa.039.0 = extractvalue { double, double } %.pn121, 0
  %.sroa.8.0 = extractvalue { double, double } %.pn119, 1
  %.sroa.038.0 = extractvalue { double, double } %.pn119, 0
  %278 = load ptr, ptr %30, align 8, !tbaa !7
  %279 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %90)
  invoke void @_ZN3JPH13BodyInterface22SetPositionAndRotationERKNS_6BodyIDENS_4Vec3ENS_4QuatENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %278, ptr noundef nonnull align 4 dereferenceable(4) %279, double %.sroa.039.0, double %.sroa.840.0, double %.sroa.038.0, double %.sroa.8.0, i32 noundef 1)
          to label %280 unwind label %245

280:                                              ; preds = %277
  %281 = add i32 %.1103162, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  %282 = add nuw nsw i32 %.0105161, 1
  %exitcond.not = icmp eq i32 %282, 4
  br i1 %exitcond.not, label %56, label %57, !llvm.loop !34

283:                                              ; preds = %104, %109, %110, %154, %163, %167, %275, %273, %245, %243, %241, %213, %211, %183, %181, %122, %121, %116, %98
  %.pn123.pn.pn.pn.pn = phi { ptr, i32 } [ %99, %98 ], [ %111, %110 ], [ %.pn108, %109 ], [ %.pn, %104 ], [ %123, %122 ], [ %.pn112, %121 ], [ %.pn110, %116 ], [ %168, %167 ], [ %.pn116.pn, %154 ], [ %.pn114, %163 ], [ %246, %245 ], [ %276, %275 ], [ %274, %273 ], [ %244, %243 ], [ %242, %241 ], [ %214, %213 ], [ %212, %211 ], [ %184, %183 ], [ %182, %181 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  br label %284

284:                                              ; preds = %283, %54, %52
  %.pn123.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn123.pn.pn.pn.pn, %283 ], [ %53, %52 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  br label %285

285:                                              ; preds = %284, %50
  %.pn123.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn123.pn.pn.pn.pn.pn, %284 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  resume { ptr, i32 } %.pn123.pn.pn.pn.pn.pn.pn
}

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec310sReplicateEf(float 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #6 align 2

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

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

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

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

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

; 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 #4 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #8 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) #9

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH14CollisionGroupC2EPKNS_11GroupFilterEjj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #8 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 #8 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 #4 align 2

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

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

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

declare noundef ptr @_ZNK3JPH23HingeConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(208), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122)) unnamed_addr #2

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

declare noundef ptr @_ZNK3JPH23FixedConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(144), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122)) unnamed_addr #2

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef) local_unnamed_addr #5

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 #9 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #10 = { nounwind }

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

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


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