; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/SoftBody (SoftBodySkinnedConstraintTest)

; 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::Color" = type { %union.anon.82 }
%union.anon.82 = type { i32 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Vec3" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%class.SoftBodySkinnedConstraintTest = type <{ %class.Test, ptr, float, [4 x 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 }
%"class.Test::PreUpdateParams" = type { float, [12 x i8], %struct.CameraState }
%struct.CameraState = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>

@_ZN3JPH5Color6sGreenE = external global %"class.JPH::Color", align 4
@_ZN29SoftBodySkinnedConstraintTest10sTimeScaleE = external dso_local global float, align 4

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK29SoftBodySkinnedConstraintTest17GetWorldSpacePoseEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Array") align 8, ptr noundef nonnull align 8 dereferenceable(124), float noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 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) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN29SoftBodySkinnedConstraintTest12SkinVerticesEb(ptr noundef nonnull align 8 dereferenceable(124), i1 noundef zeroext) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN29SoftBodySkinnedConstraintTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 8 dereferenceable(124) %0, ptr noundef nonnull align 16 dereferenceable(80) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.JPH::Array", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Color", align 4
  %12 = alloca %"class.JPH::Mat44", align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  %14 = getelementptr inbounds %class.SoftBodySkinnedConstraintTest, ptr %13, i32 0, i32 2
  %15 = load float, ptr %14, align 8, !tbaa !9
  call void @_ZNK29SoftBodySkinnedConstraintTest17GetWorldSpacePoseEf(ptr dead_on_unwind writable sret(%"class.JPH::Array") align 8 %5, ptr noundef nonnull align 8 dereferenceable(124) %13, float noundef %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 1, ptr %6, align 4, !tbaa !19
  br label %16

16:                                               ; preds = %67, %2
  %17 = load i32, ptr %6, align 4, !tbaa !19
  %18 = icmp slt i32 %17, 11
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %79

20:                                               ; preds = %16
  %21 = getelementptr inbounds %class.Test, ptr %13, i32 0, i32 4
  %22 = load ptr, ptr %21, align 8, !tbaa !21
  %23 = load i32, ptr %6, align 4, !tbaa !19
  %24 = sub nsw i32 %23, 1
  %25 = sext i32 %24 to i64
  %26 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %25)
          to label %27 unwind label %70

27:                                               ; preds = %20
  %28 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %26)
          to label %29 unwind label %70

29:                                               ; preds = %27
  %30 = getelementptr inbounds %"class.JPH::Vec3", ptr %7, i32 0, i32 0
  %31 = getelementptr inbounds %union.anon.4, ptr %30, i32 0, i32 0
  %32 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %33 = extractvalue { double, double } %28, 0
  store double %33, ptr %32, align 16
  %34 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %35 = extractvalue { double, double } %28, 1
  store double %35, ptr %34, align 8
  %36 = load i32, ptr %6, align 4, !tbaa !19
  %37 = sext i32 %36 to i64
  %38 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %37)
          to label %39 unwind label %70

39:                                               ; preds = %29
  %40 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %38)
          to label %41 unwind label %70

41:                                               ; preds = %39
  %42 = getelementptr inbounds %"class.JPH::Vec3", ptr %10, i32 0, i32 0
  %43 = getelementptr inbounds %union.anon.4, ptr %42, i32 0, i32 0
  %44 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %45 = extractvalue { double, double } %40, 0
  store double %45, ptr %44, align 16
  %46 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %47 = extractvalue { double, double } %40, 1
  store double %47, ptr %46, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 @_ZN3JPH5Color6sGreenE, i64 4, i1 false), !tbaa.struct !22
  %48 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  %49 = load double, ptr %48, align 16
  %50 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  %51 = load double, ptr %50, align 8
  %52 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %53 = load double, ptr %52, align 16
  %54 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %55 = load double, ptr %54, align 8
  %56 = getelementptr inbounds %"class.JPH::Color", ptr %11, i32 0, i32 0
  %57 = getelementptr inbounds %union.anon.82, ptr %56, i32 0, i32 0
  %58 = load i32, ptr %57, align 4
  invoke void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %22, double %49, double %51, double %53, double %55, i32 %58, float noundef 0x3FB99999A0000000)
          to label %59 unwind label %70

59:                                               ; preds = %41
  %60 = getelementptr inbounds %class.Test, ptr %13, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #8
  %62 = load i32, ptr %6, align 4, !tbaa !19
  %63 = sext i32 %62 to i64
  %64 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %63)
          to label %65 unwind label %74

65:                                               ; preds = %59
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 %64, i64 64, i1 false), !tbaa.struct !24
  invoke void @_ZN3JPH13DebugRenderer20DrawCoordinateSystemERKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(320) %61, ptr noundef nonnull align 16 dereferenceable(64) %12, float noundef 5.000000e-01)
          to label %66 unwind label %74

66:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #8
  br label %67

67:                                               ; preds = %66
  %68 = load i32, ptr %6, align 4, !tbaa !19
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %6, align 4, !tbaa !19
  br label %16, !llvm.loop !25

70:                                               ; preds = %41, %39, %29, %27, %20
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %8, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %9, align 4
  br label %78

74:                                               ; preds = %65, %59
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %8, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #8
  br label %78

78:                                               ; preds = %74, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %92

79:                                               ; preds = %19
  %80 = load float, ptr @_ZN29SoftBodySkinnedConstraintTest10sTimeScaleE, align 4, !tbaa !27
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %"class.Test::PreUpdateParams", ptr %81, i32 0, i32 0
  %83 = load float, ptr %82, align 16, !tbaa !28
  %84 = getelementptr inbounds %class.SoftBodySkinnedConstraintTest, ptr %13, i32 0, i32 2
  %85 = load float, ptr %84, align 8, !tbaa !9
  %86 = call float @llvm.fmuladd.f32(float %80, float %83, float %85)
  store float %86, ptr %84, align 8, !tbaa !9
  invoke void @_ZN29SoftBodySkinnedConstraintTest12SkinVerticesEb(ptr noundef nonnull align 8 dereferenceable(124) %13, i1 noundef zeroext false)
          to label %87 unwind label %88

87:                                               ; preds = %79
  call void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  ret void

88:                                               ; preds = %79
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %8, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %9, align 4
  br label %92

92:                                               ; preds = %88, %78
  call void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  br label %93

93:                                               ; preds = %92
  %94 = load ptr, ptr %8, align 8
  %95 = load i32, ptr %9, align 4
  %96 = insertvalue { ptr, i32 } poison, ptr %94, 0
  %97 = insertvalue { ptr, i32 } %96, i32 %95, 1
  resume { ptr, i32 } %97
}

declare void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320), double, double, double, double, i32, float noundef) #7

declare void @_ZN3JPH13DebugRenderer20DrawCoordinateSystemERKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 16 dereferenceable(64), float noundef) #7

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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }

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

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


; 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::Color" = type { %union.anon.82 }
%union.anon.82 = type { i32 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }

@_ZN3JPH5Color6sGreenE = external local_unnamed_addr global %"class.JPH::Color", align 4
@_ZN29SoftBodySkinnedConstraintTest10sTimeScaleE = external dso_local local_unnamed_addr global float, align 4

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK29SoftBodySkinnedConstraintTest17GetWorldSpacePoseEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Array") align 8, ptr noundef nonnull align 8 dereferenceable(124), float noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 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) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN29SoftBodySkinnedConstraintTest12SkinVerticesEb(ptr noundef nonnull align 8 dereferenceable(124), i1 noundef zeroext) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN29SoftBodySkinnedConstraintTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 8 dereferenceable(124) %0, ptr nocapture noundef nonnull readonly align 16 dereferenceable(80) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.JPH::Array", align 8
  %4 = alloca %"class.JPH::Mat44", align 16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  %5 = getelementptr inbounds i8, ptr %0, i64 120
  %6 = load float, ptr %5, align 8, !tbaa !5
  call void @_ZNK29SoftBodySkinnedConstraintTest17GetWorldSpacePoseEf(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Array") align 8 %3, ptr noundef nonnull align 8 dereferenceable(124) %0, float noundef %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  %8 = load ptr, ptr %7, align 8, !tbaa !18
  %9 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0)
          to label %10 unwind label %192

10:                                               ; preds = %2
  %11 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %9)
          to label %12 unwind label %192

12:                                               ; preds = %10
  %13 = extractvalue { double, double } %11, 0
  %14 = extractvalue { double, double } %11, 1
  %15 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1)
          to label %16 unwind label %192

16:                                               ; preds = %12
  %17 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %15)
          to label %18 unwind label %192

18:                                               ; preds = %16
  %19 = extractvalue { double, double } %17, 0
  %20 = extractvalue { double, double } %17, 1
  %.sroa.0.0.copyload = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !19
  invoke void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %8, double %13, double %14, double %19, double %20, i32 %.sroa.0.0.copyload, float noundef 0x3FB99999A0000000)
          to label %21 unwind label %192

21:                                               ; preds = %18
  %22 = load ptr, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  %23 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1)
          to label %24 unwind label %194

24:                                               ; preds = %21
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull align 16 dereferenceable(64) %23, i64 64, i1 false), !tbaa.struct !20
  invoke void @_ZN3JPH13DebugRenderer20DrawCoordinateSystemERKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(320) %22, ptr noundef nonnull align 16 dereferenceable(64) %4, float noundef 5.000000e-01)
          to label %25 unwind label %194

25:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  %26 = load ptr, ptr %7, align 8, !tbaa !18
  %27 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1)
          to label %28 unwind label %192

28:                                               ; preds = %25
  %29 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %27)
          to label %30 unwind label %192

30:                                               ; preds = %28
  %31 = extractvalue { double, double } %29, 0
  %32 = extractvalue { double, double } %29, 1
  %33 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2)
          to label %34 unwind label %192

34:                                               ; preds = %30
  %35 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %33)
          to label %36 unwind label %192

36:                                               ; preds = %34
  %37 = extractvalue { double, double } %35, 0
  %38 = extractvalue { double, double } %35, 1
  %.sroa.0.0.copyload.1 = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !19
  invoke void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %26, double %31, double %32, double %37, double %38, i32 %.sroa.0.0.copyload.1, float noundef 0x3FB99999A0000000)
          to label %39 unwind label %192

39:                                               ; preds = %36
  %40 = load ptr, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  %41 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2)
          to label %42 unwind label %194

42:                                               ; preds = %39
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull align 16 dereferenceable(64) %41, i64 64, i1 false), !tbaa.struct !20
  invoke void @_ZN3JPH13DebugRenderer20DrawCoordinateSystemERKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(320) %40, ptr noundef nonnull align 16 dereferenceable(64) %4, float noundef 5.000000e-01)
          to label %43 unwind label %194

43:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  %44 = load ptr, ptr %7, align 8, !tbaa !18
  %45 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2)
          to label %46 unwind label %192

46:                                               ; preds = %43
  %47 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %45)
          to label %48 unwind label %192

48:                                               ; preds = %46
  %49 = extractvalue { double, double } %47, 0
  %50 = extractvalue { double, double } %47, 1
  %51 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 3)
          to label %52 unwind label %192

52:                                               ; preds = %48
  %53 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %51)
          to label %54 unwind label %192

54:                                               ; preds = %52
  %55 = extractvalue { double, double } %53, 0
  %56 = extractvalue { double, double } %53, 1
  %.sroa.0.0.copyload.2 = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !19
  invoke void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %44, double %49, double %50, double %55, double %56, i32 %.sroa.0.0.copyload.2, float noundef 0x3FB99999A0000000)
          to label %57 unwind label %192

57:                                               ; preds = %54
  %58 = load ptr, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  %59 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 3)
          to label %60 unwind label %194

60:                                               ; preds = %57
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull align 16 dereferenceable(64) %59, i64 64, i1 false), !tbaa.struct !20
  invoke void @_ZN3JPH13DebugRenderer20DrawCoordinateSystemERKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(320) %58, ptr noundef nonnull align 16 dereferenceable(64) %4, float noundef 5.000000e-01)
          to label %61 unwind label %194

61:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  %62 = load ptr, ptr %7, align 8, !tbaa !18
  %63 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 3)
          to label %64 unwind label %192

64:                                               ; preds = %61
  %65 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %63)
          to label %66 unwind label %192

66:                                               ; preds = %64
  %67 = extractvalue { double, double } %65, 0
  %68 = extractvalue { double, double } %65, 1
  %69 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 4)
          to label %70 unwind label %192

70:                                               ; preds = %66
  %71 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %69)
          to label %72 unwind label %192

72:                                               ; preds = %70
  %73 = extractvalue { double, double } %71, 0
  %74 = extractvalue { double, double } %71, 1
  %.sroa.0.0.copyload.3 = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !19
  invoke void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %62, double %67, double %68, double %73, double %74, i32 %.sroa.0.0.copyload.3, float noundef 0x3FB99999A0000000)
          to label %75 unwind label %192

75:                                               ; preds = %72
  %76 = load ptr, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  %77 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 4)
          to label %78 unwind label %194

78:                                               ; preds = %75
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull align 16 dereferenceable(64) %77, i64 64, i1 false), !tbaa.struct !20
  invoke void @_ZN3JPH13DebugRenderer20DrawCoordinateSystemERKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(320) %76, ptr noundef nonnull align 16 dereferenceable(64) %4, float noundef 5.000000e-01)
          to label %79 unwind label %194

79:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  %80 = load ptr, ptr %7, align 8, !tbaa !18
  %81 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 4)
          to label %82 unwind label %192

82:                                               ; preds = %79
  %83 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %81)
          to label %84 unwind label %192

84:                                               ; preds = %82
  %85 = extractvalue { double, double } %83, 0
  %86 = extractvalue { double, double } %83, 1
  %87 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 5)
          to label %88 unwind label %192

88:                                               ; preds = %84
  %89 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %87)
          to label %90 unwind label %192

90:                                               ; preds = %88
  %91 = extractvalue { double, double } %89, 0
  %92 = extractvalue { double, double } %89, 1
  %.sroa.0.0.copyload.4 = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !19
  invoke void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %80, double %85, double %86, double %91, double %92, i32 %.sroa.0.0.copyload.4, float noundef 0x3FB99999A0000000)
          to label %93 unwind label %192

93:                                               ; preds = %90
  %94 = load ptr, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  %95 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 5)
          to label %96 unwind label %194

96:                                               ; preds = %93
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull align 16 dereferenceable(64) %95, i64 64, i1 false), !tbaa.struct !20
  invoke void @_ZN3JPH13DebugRenderer20DrawCoordinateSystemERKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(320) %94, ptr noundef nonnull align 16 dereferenceable(64) %4, float noundef 5.000000e-01)
          to label %97 unwind label %194

97:                                               ; preds = %96
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  %98 = load ptr, ptr %7, align 8, !tbaa !18
  %99 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 5)
          to label %100 unwind label %192

100:                                              ; preds = %97
  %101 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %99)
          to label %102 unwind label %192

102:                                              ; preds = %100
  %103 = extractvalue { double, double } %101, 0
  %104 = extractvalue { double, double } %101, 1
  %105 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 6)
          to label %106 unwind label %192

106:                                              ; preds = %102
  %107 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %105)
          to label %108 unwind label %192

108:                                              ; preds = %106
  %109 = extractvalue { double, double } %107, 0
  %110 = extractvalue { double, double } %107, 1
  %.sroa.0.0.copyload.5 = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !19
  invoke void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %98, double %103, double %104, double %109, double %110, i32 %.sroa.0.0.copyload.5, float noundef 0x3FB99999A0000000)
          to label %111 unwind label %192

111:                                              ; preds = %108
  %112 = load ptr, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  %113 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 6)
          to label %114 unwind label %194

114:                                              ; preds = %111
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull align 16 dereferenceable(64) %113, i64 64, i1 false), !tbaa.struct !20
  invoke void @_ZN3JPH13DebugRenderer20DrawCoordinateSystemERKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(320) %112, ptr noundef nonnull align 16 dereferenceable(64) %4, float noundef 5.000000e-01)
          to label %115 unwind label %194

115:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  %116 = load ptr, ptr %7, align 8, !tbaa !18
  %117 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 6)
          to label %118 unwind label %192

118:                                              ; preds = %115
  %119 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %117)
          to label %120 unwind label %192

120:                                              ; preds = %118
  %121 = extractvalue { double, double } %119, 0
  %122 = extractvalue { double, double } %119, 1
  %123 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 7)
          to label %124 unwind label %192

124:                                              ; preds = %120
  %125 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %123)
          to label %126 unwind label %192

126:                                              ; preds = %124
  %127 = extractvalue { double, double } %125, 0
  %128 = extractvalue { double, double } %125, 1
  %.sroa.0.0.copyload.6 = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !19
  invoke void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %116, double %121, double %122, double %127, double %128, i32 %.sroa.0.0.copyload.6, float noundef 0x3FB99999A0000000)
          to label %129 unwind label %192

129:                                              ; preds = %126
  %130 = load ptr, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  %131 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 7)
          to label %132 unwind label %194

132:                                              ; preds = %129
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull align 16 dereferenceable(64) %131, i64 64, i1 false), !tbaa.struct !20
  invoke void @_ZN3JPH13DebugRenderer20DrawCoordinateSystemERKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(320) %130, ptr noundef nonnull align 16 dereferenceable(64) %4, float noundef 5.000000e-01)
          to label %133 unwind label %194

133:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  %134 = load ptr, ptr %7, align 8, !tbaa !18
  %135 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 7)
          to label %136 unwind label %192

136:                                              ; preds = %133
  %137 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %135)
          to label %138 unwind label %192

138:                                              ; preds = %136
  %139 = extractvalue { double, double } %137, 0
  %140 = extractvalue { double, double } %137, 1
  %141 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 8)
          to label %142 unwind label %192

142:                                              ; preds = %138
  %143 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %141)
          to label %144 unwind label %192

144:                                              ; preds = %142
  %145 = extractvalue { double, double } %143, 0
  %146 = extractvalue { double, double } %143, 1
  %.sroa.0.0.copyload.7 = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !19
  invoke void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %134, double %139, double %140, double %145, double %146, i32 %.sroa.0.0.copyload.7, float noundef 0x3FB99999A0000000)
          to label %147 unwind label %192

147:                                              ; preds = %144
  %148 = load ptr, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  %149 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 8)
          to label %150 unwind label %194

150:                                              ; preds = %147
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull align 16 dereferenceable(64) %149, i64 64, i1 false), !tbaa.struct !20
  invoke void @_ZN3JPH13DebugRenderer20DrawCoordinateSystemERKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(320) %148, ptr noundef nonnull align 16 dereferenceable(64) %4, float noundef 5.000000e-01)
          to label %151 unwind label %194

151:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  %152 = load ptr, ptr %7, align 8, !tbaa !18
  %153 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 8)
          to label %154 unwind label %192

154:                                              ; preds = %151
  %155 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %153)
          to label %156 unwind label %192

156:                                              ; preds = %154
  %157 = extractvalue { double, double } %155, 0
  %158 = extractvalue { double, double } %155, 1
  %159 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 9)
          to label %160 unwind label %192

160:                                              ; preds = %156
  %161 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %159)
          to label %162 unwind label %192

162:                                              ; preds = %160
  %163 = extractvalue { double, double } %161, 0
  %164 = extractvalue { double, double } %161, 1
  %.sroa.0.0.copyload.8 = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !19
  invoke void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %152, double %157, double %158, double %163, double %164, i32 %.sroa.0.0.copyload.8, float noundef 0x3FB99999A0000000)
          to label %165 unwind label %192

165:                                              ; preds = %162
  %166 = load ptr, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  %167 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 9)
          to label %168 unwind label %194

168:                                              ; preds = %165
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull align 16 dereferenceable(64) %167, i64 64, i1 false), !tbaa.struct !20
  invoke void @_ZN3JPH13DebugRenderer20DrawCoordinateSystemERKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(320) %166, ptr noundef nonnull align 16 dereferenceable(64) %4, float noundef 5.000000e-01)
          to label %169 unwind label %194

169:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  %170 = load ptr, ptr %7, align 8, !tbaa !18
  %171 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 9)
          to label %172 unwind label %192

172:                                              ; preds = %169
  %173 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %171)
          to label %174 unwind label %192

174:                                              ; preds = %172
  %175 = extractvalue { double, double } %173, 0
  %176 = extractvalue { double, double } %173, 1
  %177 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 10)
          to label %178 unwind label %192

178:                                              ; preds = %174
  %179 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %177)
          to label %180 unwind label %192

180:                                              ; preds = %178
  %181 = extractvalue { double, double } %179, 0
  %182 = extractvalue { double, double } %179, 1
  %.sroa.0.0.copyload.9 = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !19
  invoke void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %170, double %175, double %176, double %181, double %182, i32 %.sroa.0.0.copyload.9, float noundef 0x3FB99999A0000000)
          to label %183 unwind label %192

183:                                              ; preds = %180
  %184 = load ptr, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  %185 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 10)
          to label %186 unwind label %194

186:                                              ; preds = %183
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull align 16 dereferenceable(64) %185, i64 64, i1 false), !tbaa.struct !20
  invoke void @_ZN3JPH13DebugRenderer20DrawCoordinateSystemERKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(320) %184, ptr noundef nonnull align 16 dereferenceable(64) %4, float noundef 5.000000e-01)
          to label %187 unwind label %194

187:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  %188 = load float, ptr @_ZN29SoftBodySkinnedConstraintTest10sTimeScaleE, align 4, !tbaa !21
  %189 = load float, ptr %1, align 16, !tbaa !22
  %190 = load float, ptr %5, align 8, !tbaa !5
  %191 = call float @llvm.fmuladd.f32(float %188, float %189, float %190)
  store float %191, ptr %5, align 8, !tbaa !5
  invoke void @_ZN29SoftBodySkinnedConstraintTest12SkinVerticesEb(ptr noundef nonnull align 8 dereferenceable(124) %0, i1 noundef zeroext false)
          to label %196 unwind label %197

192:                                              ; preds = %180, %178, %174, %172, %169, %162, %160, %156, %154, %151, %144, %142, %138, %136, %133, %126, %124, %120, %118, %115, %108, %106, %102, %100, %97, %90, %88, %84, %82, %79, %72, %70, %66, %64, %61, %54, %52, %48, %46, %43, %36, %34, %30, %28, %25, %18, %16, %12, %10, %2
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %199

194:                                              ; preds = %186, %183, %168, %165, %150, %147, %132, %129, %114, %111, %96, %93, %78, %75, %60, %57, %42, %39, %24, %21
  %195 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  br label %199

196:                                              ; preds = %187
  call void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  ret void

197:                                              ; preds = %187
  %198 = landingpad { ptr, i32 }
          cleanup
  br label %199

199:                                              ; preds = %192, %194, %197
  %.pn.pn = phi { ptr, i32 } [ %198, %197 ], [ %195, %194 ], [ %193, %192 ]
  call void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn.pn
}

declare void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320), double, double, double, double, i32, float noundef) local_unnamed_addr #7

declare void @_ZN3JPH13DebugRenderer20DrawCoordinateSystemERKNS_5Mat44Ef(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 16 dereferenceable(64), float noundef) local_unnamed_addr #7

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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !17, i64 120}
!6 = !{!"_ZTS29SoftBodySkinnedConstraintTest", !7, i64 0, !8, i64 112, !17, i64 120}
!7 = !{!"_ZTS4Test", !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !11, i64 48, !12, i64 56}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !13, i64 0}
!13 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !8, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !8, i64 48}
!14 = !{!"long", !9, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !8, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !9, i64 0}
!18 = !{!7, !8, i64 32}
!19 = !{!9, !9, i64 0}
!20 = !{i64 0, i64 64, !19}
!21 = !{!17, !17, i64 0}
!22 = !{!23, !17, i64 0}
!23 = !{!"_ZTSN4Test15PreUpdateParamsE", !17, i64 0, !24, i64 16}
!24 = !{!"_ZTS11CameraState", !25, i64 0, !25, i64 16, !25, i64 32, !17, i64 48}
!25 = !{!"_ZTSN3JPH4Vec3E", !9, i64 0}


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