; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Constraints (DistanceConstraint)

; 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::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::TwoBodyConstraint" = type { %"class.JPH::Constraint", ptr, ptr }
%"class.JPH::Constraint" = type { ptr, %"class.JPH::RefTarget.3", i32, i32, i8, i8, i8, i64 }
%"class.JPH::RefTarget.3" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::DistanceConstraint" = type <{ %"class.JPH::TwoBodyConstraint", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, %"class.JPH::SpringSettings", [12 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, %"class.JPH::AxisConstraintPart", [8 x i8] }>
%"class.JPH::SpringSettings" = type { i8, %union.anon.2, float }
%union.anon.2 = type { float }
%"class.JPH::AxisConstraintPart" = type { %"class.JPH::Float3", %"class.JPH::Float3", %"class.JPH::Float3", %"class.JPH::Float3", float, %"class.JPH::SpringPart", float }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::SpringPart" = type { float, float }

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3JPH4Body24GetCenterOfMassTransformEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(122)) #3 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16)) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH18DistanceConstraint29CalculateConstraintPropertiesEf(ptr noundef nonnull align 16 dereferenceable(240) %0, float noundef %1) #5 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::Mat44", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Mat44", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca float, align 4
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  %28 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #7
  %29 = getelementptr inbounds %"class.JPH::TwoBodyConstraint", ptr %28, i32 0, i32 1
  %30 = load ptr, ptr %29, align 16, !tbaa !11
  call void @_ZNK3JPH4Body24GetCenterOfMassTransformEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %6, ptr noundef nonnull align 16 dereferenceable(122) %30)
  %31 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 %31, i64 16, i1 false), !tbaa.struct !20
  %32 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  %33 = load double, ptr %32, align 16
  %34 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  %35 = load double, ptr %34, align 8
  %36 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %6, double %33, double %35)
  %37 = getelementptr inbounds %"class.JPH::Vec3", ptr %5, i32 0, i32 0
  %38 = getelementptr inbounds %union.anon, ptr %37, i32 0, i32 0
  %39 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %40 = extractvalue { double, double } %36, 0
  store double %40, ptr %39, align 16
  %41 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %42 = extractvalue { double, double } %36, 1
  store double %42, ptr %41, align 8
  %43 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %5, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #7
  %44 = getelementptr inbounds %"class.JPH::TwoBodyConstraint", ptr %28, i32 0, i32 2
  %45 = load ptr, ptr %44, align 8, !tbaa !22
  call void @_ZNK3JPH4Body24GetCenterOfMassTransformEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %9, ptr noundef nonnull align 16 dereferenceable(122) %45)
  %46 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 %46, i64 16, i1 false), !tbaa.struct !20
  %47 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %48 = load double, ptr %47, align 16
  %49 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %50 = load double, ptr %49, align 8
  %51 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %9, double %48, double %50)
  %52 = getelementptr inbounds %"class.JPH::Vec3", ptr %8, i32 0, i32 0
  %53 = getelementptr inbounds %union.anon, ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %55 = extractvalue { double, double } %51, 0
  store double %55, ptr %54, align 16
  %56 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %57 = extractvalue { double, double } %51, 1
  store double %57, ptr %56, align 8
  %58 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %58, ptr align 16 %8, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %59 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 8
  %60 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 %60, i64 16, i1 false), !tbaa.struct !20
  %61 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %62 = load double, ptr %61, align 16
  %63 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %64 = load double, ptr %63, align 8
  %65 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %59, double %62, double %64)
  %66 = getelementptr inbounds %"class.JPH::Vec3", ptr %11, i32 0, i32 0
  %67 = getelementptr inbounds %union.anon, ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %69 = extractvalue { double, double } %65, 0
  store double %69, ptr %68, align 16
  %70 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %71 = extractvalue { double, double } %65, 1
  store double %71, ptr %70, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %72 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %11)
  store float %72, ptr %13, align 4, !tbaa !9
  %73 = load float, ptr %13, align 4, !tbaa !9
  %74 = fcmp ogt float %73, 0.000000e+00
  br i1 %74, label %75, label %85

75:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  %76 = load float, ptr %13, align 4, !tbaa !9
  %77 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef %76)
  %78 = getelementptr inbounds %"class.JPH::Vec3", ptr %14, i32 0, i32 0
  %79 = getelementptr inbounds %union.anon, ptr %78, i32 0, i32 0
  %80 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 0
  %81 = extractvalue { double, double } %77, 0
  store double %81, ptr %80, align 16
  %82 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 1
  %83 = extractvalue { double, double } %77, 1
  store double %83, ptr %82, align 8
  %84 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %84, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  br label %85

85:                                               ; preds = %75, %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %86 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 8
  %87 = getelementptr inbounds %"class.JPH::TwoBodyConstraint", ptr %28, i32 0, i32 1
  %88 = load ptr, ptr %87, align 16, !tbaa !11
  %89 = call { double, double } @_ZNK3JPH4Body23GetCenterOfMassPositionEv(ptr noundef nonnull align 16 dereferenceable(122) %88)
  %90 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %91 = getelementptr inbounds %union.anon, ptr %90, i32 0, i32 0
  %92 = getelementptr inbounds { double, double }, ptr %91, i32 0, i32 0
  %93 = extractvalue { double, double } %89, 0
  store double %93, ptr %92, align 16
  %94 = getelementptr inbounds { double, double }, ptr %91, i32 0, i32 1
  %95 = extractvalue { double, double } %89, 1
  store double %95, ptr %94, align 8
  %96 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %97 = load double, ptr %96, align 16
  %98 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %99 = load double, ptr %98, align 8
  %100 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %86, double %97, double %99)
  %101 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %102 = getelementptr inbounds %union.anon, ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds { double, double }, ptr %102, i32 0, i32 0
  %104 = extractvalue { double, double } %100, 0
  store double %104, ptr %103, align 16
  %105 = getelementptr inbounds { double, double }, ptr %102, i32 0, i32 1
  %106 = extractvalue { double, double } %100, 1
  store double %106, ptr %105, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  %107 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 8
  %108 = getelementptr inbounds %"class.JPH::TwoBodyConstraint", ptr %28, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !22
  %110 = call { double, double } @_ZNK3JPH4Body23GetCenterOfMassPositionEv(ptr noundef nonnull align 16 dereferenceable(122) %109)
  %111 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %112 = getelementptr inbounds %union.anon, ptr %111, i32 0, i32 0
  %113 = getelementptr inbounds { double, double }, ptr %112, i32 0, i32 0
  %114 = extractvalue { double, double } %110, 0
  store double %114, ptr %113, align 16
  %115 = getelementptr inbounds { double, double }, ptr %112, i32 0, i32 1
  %116 = extractvalue { double, double } %110, 1
  store double %116, ptr %115, align 8
  %117 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %118 = load double, ptr %117, align 16
  %119 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %120 = load double, ptr %119, align 8
  %121 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %107, double %118, double %120)
  %122 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %123 = getelementptr inbounds %union.anon, ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 0
  %125 = extractvalue { double, double } %121, 0
  store double %125, ptr %124, align 16
  %126 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 1
  %127 = extractvalue { double, double } %121, 1
  store double %127, ptr %126, align 8
  %128 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 3
  %129 = load float, ptr %128, align 16, !tbaa !23
  %130 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 4
  %131 = load float, ptr %130, align 4, !tbaa !31
  %132 = fcmp oeq float %129, %131
  br i1 %132, label %133, label %160

133:                                              ; preds = %85
  %134 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 12
  %135 = load float, ptr %4, align 4, !tbaa !9
  %136 = getelementptr inbounds %"class.JPH::TwoBodyConstraint", ptr %28, i32 0, i32 1
  %137 = load ptr, ptr %136, align 16, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !20
  %138 = getelementptr inbounds %"class.JPH::TwoBodyConstraint", ptr %28, i32 0, i32 2
  %139 = load ptr, ptr %138, align 8, !tbaa !22
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !20
  %140 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %140, i64 16, i1 false), !tbaa.struct !20
  %141 = load float, ptr %13, align 4, !tbaa !9
  %142 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 3
  %143 = load float, ptr %142, align 16, !tbaa !23
  %144 = fsub float %141, %143
  %145 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 5
  %146 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %147 = load double, ptr %146, align 16
  %148 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %149 = load double, ptr %148, align 8
  %150 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %151 = load double, ptr %150, align 16
  %152 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %153 = load double, ptr %152, align 8
  %154 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %155 = load double, ptr %154, align 16
  %156 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %157 = load double, ptr %156, align 8
  call void @_ZN3JPH18AxisConstraintPart41CalculateConstraintPropertiesWithSettingsEfRKNS_4BodyENS_4Vec3ES3_S4_S4_ffRKNS_14SpringSettingsE(ptr noundef nonnull align 4 dereferenceable(64) %134, float noundef %135, ptr noundef nonnull align 16 dereferenceable(122) %137, double %147, double %149, ptr noundef nonnull align 16 dereferenceable(122) %139, double %151, double %153, double %155, double %157, float noundef 0.000000e+00, float noundef %144, ptr noundef nonnull align 4 dereferenceable(12) %145)
  %158 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 10
  store float 0xC7EFFFFFE0000000, ptr %158, align 16, !tbaa !32
  %159 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 11
  store float 0x47EFFFFFE0000000, ptr %159, align 4, !tbaa !33
  br label %228

160:                                              ; preds = %85
  %161 = load float, ptr %13, align 4, !tbaa !9
  %162 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 3
  %163 = load float, ptr %162, align 16, !tbaa !23
  %164 = fcmp ole float %161, %163
  br i1 %164, label %165, label %192

165:                                              ; preds = %160
  %166 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 12
  %167 = load float, ptr %4, align 4, !tbaa !9
  %168 = getelementptr inbounds %"class.JPH::TwoBodyConstraint", ptr %28, i32 0, i32 1
  %169 = load ptr, ptr %168, align 16, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !20
  %170 = getelementptr inbounds %"class.JPH::TwoBodyConstraint", ptr %28, i32 0, i32 2
  %171 = load ptr, ptr %170, align 8, !tbaa !22
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !20
  %172 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %172, i64 16, i1 false), !tbaa.struct !20
  %173 = load float, ptr %13, align 4, !tbaa !9
  %174 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 3
  %175 = load float, ptr %174, align 16, !tbaa !23
  %176 = fsub float %173, %175
  %177 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 5
  %178 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %179 = load double, ptr %178, align 16
  %180 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %181 = load double, ptr %180, align 8
  %182 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %183 = load double, ptr %182, align 16
  %184 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %185 = load double, ptr %184, align 8
  %186 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %187 = load double, ptr %186, align 16
  %188 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %189 = load double, ptr %188, align 8
  call void @_ZN3JPH18AxisConstraintPart41CalculateConstraintPropertiesWithSettingsEfRKNS_4BodyENS_4Vec3ES3_S4_S4_ffRKNS_14SpringSettingsE(ptr noundef nonnull align 4 dereferenceable(64) %166, float noundef %167, ptr noundef nonnull align 16 dereferenceable(122) %169, double %179, double %181, ptr noundef nonnull align 16 dereferenceable(122) %171, double %183, double %185, double %187, double %189, float noundef 0.000000e+00, float noundef %176, ptr noundef nonnull align 4 dereferenceable(12) %177)
  %190 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 10
  store float 0.000000e+00, ptr %190, align 16, !tbaa !32
  %191 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 11
  store float 0x47EFFFFFE0000000, ptr %191, align 4, !tbaa !33
  br label %227

192:                                              ; preds = %160
  %193 = load float, ptr %13, align 4, !tbaa !9
  %194 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 4
  %195 = load float, ptr %194, align 4, !tbaa !31
  %196 = fcmp oge float %193, %195
  br i1 %196, label %197, label %224

197:                                              ; preds = %192
  %198 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 12
  %199 = load float, ptr %4, align 4, !tbaa !9
  %200 = getelementptr inbounds %"class.JPH::TwoBodyConstraint", ptr %28, i32 0, i32 1
  %201 = load ptr, ptr %200, align 16, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !20
  %202 = getelementptr inbounds %"class.JPH::TwoBodyConstraint", ptr %28, i32 0, i32 2
  %203 = load ptr, ptr %202, align 8, !tbaa !22
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !20
  %204 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %204, i64 16, i1 false), !tbaa.struct !20
  %205 = load float, ptr %13, align 4, !tbaa !9
  %206 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 4
  %207 = load float, ptr %206, align 4, !tbaa !31
  %208 = fsub float %205, %207
  %209 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 5
  %210 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %211 = load double, ptr %210, align 16
  %212 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %213 = load double, ptr %212, align 8
  %214 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %215 = load double, ptr %214, align 16
  %216 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %217 = load double, ptr %216, align 8
  %218 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %219 = load double, ptr %218, align 16
  %220 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %221 = load double, ptr %220, align 8
  call void @_ZN3JPH18AxisConstraintPart41CalculateConstraintPropertiesWithSettingsEfRKNS_4BodyENS_4Vec3ES3_S4_S4_ffRKNS_14SpringSettingsE(ptr noundef nonnull align 4 dereferenceable(64) %198, float noundef %199, ptr noundef nonnull align 16 dereferenceable(122) %201, double %211, double %213, ptr noundef nonnull align 16 dereferenceable(122) %203, double %215, double %217, double %219, double %221, float noundef 0.000000e+00, float noundef %208, ptr noundef nonnull align 4 dereferenceable(12) %209)
  %222 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 10
  store float 0xC7EFFFFFE0000000, ptr %222, align 16, !tbaa !32
  %223 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 11
  store float 0.000000e+00, ptr %223, align 4, !tbaa !33
  br label %226

224:                                              ; preds = %192
  %225 = getelementptr inbounds %"class.JPH::DistanceConstraint", ptr %28, i32 0, i32 12
  call void @_ZN3JPH18AxisConstraintPart10DeactivateEv(ptr noundef nonnull align 4 dereferenceable(64) %225)
  br label %226

226:                                              ; preds = %224, %197
  br label %227

227:                                              ; preds = %226, %165
  br label %228

228:                                              ; preds = %227, %133
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH18AxisConstraintPart41CalculateConstraintPropertiesWithSettingsEfRKNS_4BodyENS_4Vec3ES3_S4_S4_ffRKNS_14SpringSettingsE(ptr noundef nonnull align 4 dereferenceable(64), float noundef, ptr noundef nonnull align 16 dereferenceable(122), double, double, ptr noundef nonnull align 16 dereferenceable(122), double, double, double, double, float noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18AxisConstraintPart10DeactivateEv(ptr noundef nonnull align 4 dereferenceable(64)) #6 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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, !6, i64 32}
!12 = !{!"_ZTSN3JPH17TwoBodyConstraintE", !13, i64 0, !6, i64 32, !6, i64 40}
!13 = !{!"_ZTSN3JPH10ConstraintE", !14, i64 8, !17, i64 12, !17, i64 16, !7, i64 20, !7, i64 21, !18, i64 22, !19, i64 24}
!14 = !{!"_ZTSN3JPH9RefTargetINS_10ConstraintEEE", !15, i64 0}
!15 = !{!"_ZTSSt6atomicIjE", !16, i64 0}
!16 = !{!"_ZTSSt13__atomic_baseIjE", !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{i64 0, i64 16, !21}
!21 = !{!7, !7, i64 0}
!22 = !{!12, !6, i64 40}
!23 = !{!24, !10, i64 80}
!24 = !{!"_ZTSN3JPH18DistanceConstraintE", !12, i64 0, !25, i64 48, !25, i64 64, !10, i64 80, !10, i64 84, !26, i64 88, !25, i64 112, !25, i64 128, !25, i64 144, !10, i64 160, !10, i64 164, !28, i64 168}
!25 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!26 = !{!"_ZTSN3JPH14SpringSettingsE", !27, i64 0, !7, i64 4, !10, i64 8}
!27 = !{!"_ZTSN3JPH11ESpringModeE", !7, i64 0}
!28 = !{!"_ZTSN3JPH18AxisConstraintPartE", !29, i64 0, !29, i64 12, !29, i64 24, !29, i64 36, !10, i64 48, !30, i64 52, !10, i64 60}
!29 = !{!"_ZTSN3JPH6Float3E", !10, i64 0, !10, i64 4, !10, i64 8}
!30 = !{!"_ZTSN3JPH10SpringPartE", !10, i64 0, !10, i64 4}
!31 = !{!24, !10, i64 84}
!32 = !{!24, !10, i64 160}
!33 = !{!24, !10, i64 164}


; 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::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3JPH4Body24GetCenterOfMassTransformEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #2 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH18DistanceConstraint29CalculateConstraintPropertiesEf(ptr noundef nonnull align 16 dereferenceable(240) %0, float noundef %1) local_unnamed_addr #4 align 2 {
  %3 = alloca %"class.JPH::Mat44", align 16
  %4 = alloca %"class.JPH::Mat44", align 16
  %5 = alloca %"class.JPH::Vec3", align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #6
  %6 = getelementptr inbounds i8, ptr %0, i64 32
  %7 = load ptr, ptr %6, align 16, !tbaa !5
  call void @_ZNK3JPH4Body24GetCenterOfMassTransformEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %3, ptr noundef nonnull align 16 dereferenceable(122) %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  %.sroa.037.0.copyload = load double, ptr %8, align 16
  %.sroa.238.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 56
  %.sroa.238.0.copyload = load double, ptr %.sroa.238.0..sroa_idx, align 8, !tbaa !17
  %9 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %3, double %.sroa.037.0.copyload, double %.sroa.238.0.copyload)
  %10 = extractvalue { double, double } %9, 0
  %11 = extractvalue { double, double } %9, 1
  %12 = getelementptr inbounds i8, ptr %0, i64 112
  store double %10, ptr %12, align 16
  %.sroa.440.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 120
  store double %11, ptr %.sroa.440.0..sroa_idx, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = load ptr, ptr %13, align 8, !tbaa !18
  call void @_ZNK3JPH4Body24GetCenterOfMassTransformEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %4, ptr noundef nonnull align 16 dereferenceable(122) %14)
  %15 = getelementptr inbounds i8, ptr %0, i64 64
  %.sroa.033.0.copyload = load double, ptr %15, align 16
  %.sroa.234.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 72
  %.sroa.234.0.copyload = load double, ptr %.sroa.234.0..sroa_idx, align 8, !tbaa !17
  %16 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %4, double %.sroa.033.0.copyload, double %.sroa.234.0.copyload)
  %17 = extractvalue { double, double } %16, 0
  %18 = extractvalue { double, double } %16, 1
  %19 = getelementptr inbounds i8, ptr %0, i64 128
  store double %17, ptr %19, align 16
  %.sroa.436.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 136
  store double %18, ptr %.sroa.436.0..sroa_idx, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %.sroa.031.0.copyload = load double, ptr %12, align 16
  %.sroa.232.0.copyload = load double, ptr %.sroa.440.0..sroa_idx, align 8, !tbaa !17
  %20 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %.sroa.031.0.copyload, double %.sroa.232.0.copyload)
  %21 = extractvalue { double, double } %20, 0
  store double %21, ptr %5, align 16
  %22 = getelementptr inbounds i8, ptr %5, i64 8
  %23 = extractvalue { double, double } %20, 1
  store double %23, ptr %22, align 8
  %24 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %5)
  %25 = fcmp ogt float %24, 0.000000e+00
  br i1 %25, label %26, label %31

26:                                               ; preds = %2
  %27 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef %24)
  %28 = extractvalue { double, double } %27, 0
  %29 = extractvalue { double, double } %27, 1
  %30 = getelementptr inbounds i8, ptr %0, i64 144
  store double %28, ptr %30, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 152
  store double %29, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !17
  br label %31

31:                                               ; preds = %26, %2
  %32 = load ptr, ptr %6, align 16, !tbaa !5
  %33 = call { double, double } @_ZNK3JPH4Body23GetCenterOfMassPositionEv(ptr noundef nonnull align 16 dereferenceable(122) %32)
  %34 = extractvalue { double, double } %33, 0
  %35 = extractvalue { double, double } %33, 1
  %36 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %34, double %35)
  %37 = extractvalue { double, double } %36, 0
  %38 = extractvalue { double, double } %36, 1
  %39 = load ptr, ptr %13, align 8, !tbaa !18
  %40 = call { double, double } @_ZNK3JPH4Body23GetCenterOfMassPositionEv(ptr noundef nonnull align 16 dereferenceable(122) %39)
  %41 = extractvalue { double, double } %40, 0
  %42 = extractvalue { double, double } %40, 1
  %43 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %41, double %42)
  %44 = extractvalue { double, double } %43, 0
  %45 = extractvalue { double, double } %43, 1
  %46 = getelementptr inbounds i8, ptr %0, i64 80
  %47 = load float, ptr %46, align 16, !tbaa !19
  %48 = getelementptr inbounds i8, ptr %0, i64 84
  %49 = load float, ptr %48, align 4, !tbaa !28
  %50 = fcmp oeq float %47, %49
  br i1 %50, label %51, label %59

51:                                               ; preds = %31
  %52 = getelementptr inbounds i8, ptr %0, i64 168
  %53 = load ptr, ptr %6, align 16, !tbaa !5
  %54 = load ptr, ptr %13, align 8, !tbaa !18
  %55 = getelementptr inbounds i8, ptr %0, i64 144
  %.sroa.011.0.copyload = load double, ptr %55, align 16
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 152
  %.sroa.212.0.copyload = load double, ptr %.sroa.212.0..sroa_idx, align 8, !tbaa !17
  %56 = fsub float %24, %47
  %57 = getelementptr inbounds i8, ptr %0, i64 88
  call void @_ZN3JPH18AxisConstraintPart41CalculateConstraintPropertiesWithSettingsEfRKNS_4BodyENS_4Vec3ES3_S4_S4_ffRKNS_14SpringSettingsE(ptr noundef nonnull align 4 dereferenceable(64) %52, float noundef %1, ptr noundef nonnull align 16 dereferenceable(122) %53, double %37, double %38, ptr noundef nonnull align 16 dereferenceable(122) %54, double %44, double %45, double %.sroa.011.0.copyload, double %.sroa.212.0.copyload, float noundef 0.000000e+00, float noundef %56, ptr noundef nonnull align 4 dereferenceable(12) %57)
  %58 = getelementptr inbounds i8, ptr %0, i64 160
  store <2 x float> <float 0xC7EFFFFFE0000000, float 0x47EFFFFFE0000000>, ptr %58, align 16, !tbaa !29
  br label %80

59:                                               ; preds = %31
  %60 = fcmp ugt float %24, %47
  br i1 %60, label %69, label %61

61:                                               ; preds = %59
  %62 = getelementptr inbounds i8, ptr %0, i64 168
  %63 = load ptr, ptr %6, align 16, !tbaa !5
  %64 = load ptr, ptr %13, align 8, !tbaa !18
  %65 = getelementptr inbounds i8, ptr %0, i64 144
  %.sroa.05.0.copyload = load double, ptr %65, align 16
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 152
  %.sroa.26.0.copyload = load double, ptr %.sroa.26.0..sroa_idx, align 8, !tbaa !17
  %66 = fsub float %24, %47
  %67 = getelementptr inbounds i8, ptr %0, i64 88
  call void @_ZN3JPH18AxisConstraintPart41CalculateConstraintPropertiesWithSettingsEfRKNS_4BodyENS_4Vec3ES3_S4_S4_ffRKNS_14SpringSettingsE(ptr noundef nonnull align 4 dereferenceable(64) %62, float noundef %1, ptr noundef nonnull align 16 dereferenceable(122) %63, double %37, double %38, ptr noundef nonnull align 16 dereferenceable(122) %64, double %44, double %45, double %.sroa.05.0.copyload, double %.sroa.26.0.copyload, float noundef 0.000000e+00, float noundef %66, ptr noundef nonnull align 4 dereferenceable(12) %67)
  %68 = getelementptr inbounds i8, ptr %0, i64 160
  store <2 x float> <float 0.000000e+00, float 0x47EFFFFFE0000000>, ptr %68, align 16, !tbaa !29
  br label %80

69:                                               ; preds = %59
  %70 = fcmp ult float %24, %49
  %71 = getelementptr inbounds i8, ptr %0, i64 168
  br i1 %70, label %79, label %72

72:                                               ; preds = %69
  %73 = load ptr, ptr %6, align 16, !tbaa !5
  %74 = load ptr, ptr %13, align 8, !tbaa !18
  %75 = getelementptr inbounds i8, ptr %0, i64 144
  %.sroa.0.0.copyload = load double, ptr %75, align 16
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 152
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !17
  %76 = fsub float %24, %49
  %77 = getelementptr inbounds i8, ptr %0, i64 88
  call void @_ZN3JPH18AxisConstraintPart41CalculateConstraintPropertiesWithSettingsEfRKNS_4BodyENS_4Vec3ES3_S4_S4_ffRKNS_14SpringSettingsE(ptr noundef nonnull align 4 dereferenceable(64) %71, float noundef %1, ptr noundef nonnull align 16 dereferenceable(122) %73, double %37, double %38, ptr noundef nonnull align 16 dereferenceable(122) %74, double %44, double %45, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload, float noundef 0.000000e+00, float noundef %76, ptr noundef nonnull align 4 dereferenceable(12) %77)
  %78 = getelementptr inbounds i8, ptr %0, i64 160
  store <2 x float> <float 0xC7EFFFFFE0000000, float 0.000000e+00>, ptr %78, align 16, !tbaa !29
  br label %80

79:                                               ; preds = %69
  call void @_ZN3JPH18AxisConstraintPart10DeactivateEv(ptr noundef nonnull align 4 dereferenceable(64) %71)
  br label %80

80:                                               ; preds = %61, %79, %72, %51
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH18AxisConstraintPart41CalculateConstraintPropertiesWithSettingsEfRKNS_4BodyENS_4Vec3ES3_S4_S4_ffRKNS_14SpringSettingsE(ptr noundef nonnull align 4 dereferenceable(64), float noundef, ptr noundef nonnull align 16 dereferenceable(122), double, double, ptr noundef nonnull align 16 dereferenceable(122), double, double, double, double, float noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18AxisConstraintPart10DeactivateEv(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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, !16, i64 32}
!6 = !{!"_ZTSN3JPH17TwoBodyConstraintE", !7, i64 0, !16, i64 32, !16, i64 40}
!7 = !{!"_ZTSN3JPH10ConstraintE", !8, i64 8, !11, i64 12, !11, i64 16, !12, i64 20, !12, i64 21, !14, i64 22, !15, i64 24}
!8 = !{!"_ZTSN3JPH9RefTargetINS_10ConstraintEEE", !9, i64 0}
!9 = !{!"_ZTSSt6atomicIjE", !10, i64 0}
!10 = !{!"_ZTSSt13__atomic_baseIjE", !11, i64 0}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"bool", !12, i64 0}
!15 = !{!"long", !12, i64 0}
!16 = !{!"any pointer", !12, i64 0}
!17 = !{!12, !12, i64 0}
!18 = !{!6, !16, i64 40}
!19 = !{!20, !22, i64 80}
!20 = !{!"_ZTSN3JPH18DistanceConstraintE", !6, i64 0, !21, i64 48, !21, i64 64, !22, i64 80, !22, i64 84, !23, i64 88, !21, i64 112, !21, i64 128, !21, i64 144, !22, i64 160, !22, i64 164, !25, i64 168}
!21 = !{!"_ZTSN3JPH4Vec3E", !12, i64 0}
!22 = !{!"float", !12, i64 0}
!23 = !{!"_ZTSN3JPH14SpringSettingsE", !24, i64 0, !12, i64 4, !22, i64 8}
!24 = !{!"_ZTSN3JPH11ESpringModeE", !12, i64 0}
!25 = !{!"_ZTSN3JPH18AxisConstraintPartE", !26, i64 0, !26, i64 12, !26, i64 24, !26, i64 36, !22, i64 48, !27, i64 52, !22, i64 60}
!26 = !{!"_ZTSN3JPH6Float3E", !22, i64 0, !22, i64 4, !22, i64 8}
!27 = !{!"_ZTSN3JPH10SpringPartE", !22, i64 0, !22, i64 4}
!28 = !{!20, !22, i64 84}
!29 = !{!22, !22, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass