; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/ScaledShapes (ScaledConvexHullShapeTest)

; 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::Array" = type { i64, i64, ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"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::RefConst.6" = type { ptr }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.6", %"class.JPH::RefConst" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.5", i32, i32 }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN25ScaledConvexHullShapeTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(112) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.JPH::Array", align 8
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Array", align 8
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::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::Mat44", align 16
  %20 = alloca %"class.JPH::Mat44", align 16
  %21 = alloca %"class.JPH::Mat44", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Mat44", align 16
  %24 = alloca %"class.JPH::Mat44", align 16
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca [2 x %"class.JPH::RefConst.6"], align 16
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca %"class.JPH::BodyCreationSettings", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Quat", align 16
  %37 = alloca %"class.JPH::BodyID", align 4
  %38 = alloca %"class.JPH::BodyCreationSettings", align 16
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Quat", align 16
  %42 = alloca %"class.JPH::BodyID", align 4
  %43 = alloca %"class.JPH::BodyCreationSettings", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::Vec3", align 16
  %46 = alloca %"class.JPH::Quat", align 16
  %47 = alloca %"class.JPH::BodyID", align 4
  %48 = alloca %"class.JPH::BodyCreationSettings", align 16
  %49 = alloca %"class.JPH::Vec3", align 16
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca %"class.JPH::Quat", align 16
  %52 = alloca %"class.JPH::BodyID", align 4
  %53 = alloca %"class.JPH::BodyCreationSettings", align 16
  %54 = alloca %"class.JPH::Vec3", align 16
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::Quat", align 16
  %57 = alloca %"class.JPH::BodyID", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %58 = load ptr, ptr %2, align 8
  %59 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %58, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #10
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #10
  %60 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %61 unwind label %112

61:                                               ; preds = %1
  %62 = getelementptr inbounds %"class.JPH::Vec3", ptr %4, i32 0, i32 0
  %63 = getelementptr inbounds %union.anon, ptr %62, i32 0, i32 0
  %64 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %65 = extractvalue { double, double } %60, 0
  store double %65, ptr %64, align 16
  %66 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %67 = extractvalue { double, double } %60, 1
  store double %67, ptr %66, align 8
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 16 dereferenceable(16) %4)
          to label %68 unwind label %112

68:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef 1.000000e+01, float noundef 0.000000e+00, float noundef 1.250000e+01)
          to label %69 unwind label %116

69:                                               ; preds = %68
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 16 dereferenceable(16) %7)
          to label %70 unwind label %116

70:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef 1.500000e+01, float noundef 0.000000e+00, float noundef 2.500000e+00)
          to label %71 unwind label %120

71:                                               ; preds = %70
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 16 dereferenceable(16) %8)
          to label %72 unwind label %120

72:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef 1.000000e+01, float noundef -5.000000e+00, float noundef 5.000000e+00)
          to label %73 unwind label %124

73:                                               ; preds = %72
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 16 dereferenceable(16) %9)
          to label %74 unwind label %124

74:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #10
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef 1.000000e+00, float noundef 2.000000e+00, float noundef 3.000000e+00)
          to label %75 unwind label %128

75:                                               ; preds = %74
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 16 dereferenceable(16) %11)
          to label %76 unwind label %128

76:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef -1.000000e+00, float noundef 2.000000e+00, float noundef 3.000000e+00)
          to label %77 unwind label %132

77:                                               ; preds = %76
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 16 dereferenceable(16) %12)
          to label %78 unwind label %132

78:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 1.000000e+00, float noundef -2.000000e+00, float noundef 3.000000e+00)
          to label %79 unwind label %136

79:                                               ; preds = %78
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 16 dereferenceable(16) %13)
          to label %80 unwind label %136

80:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef -1.000000e+00, float noundef -2.000000e+00, float noundef 3.000000e+00)
          to label %81 unwind label %140

81:                                               ; preds = %80
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 16 dereferenceable(16) %14)
          to label %82 unwind label %140

82:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef 1.000000e+00, float noundef 2.000000e+00, float noundef -3.000000e+00)
          to label %83 unwind label %144

83:                                               ; preds = %82
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 16 dereferenceable(16) %15)
          to label %84 unwind label %144

84:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef -1.000000e+00, float noundef 2.000000e+00, float noundef -3.000000e+00)
          to label %85 unwind label %148

85:                                               ; preds = %84
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 16 dereferenceable(16) %16)
          to label %86 unwind label %148

86:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef 1.000000e+00, float noundef -2.000000e+00, float noundef -3.000000e+00)
          to label %87 unwind label %152

87:                                               ; preds = %86
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 16 dereferenceable(16) %17)
          to label %88 unwind label %152

88:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %18, float noundef -1.000000e+00, float noundef -2.000000e+00, float noundef -3.000000e+00)
          to label %89 unwind label %156

89:                                               ; preds = %88
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 16 dereferenceable(16) %18)
          to label %90 unwind label %156

90:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef 3.000000e+00, float noundef -2.000000e+00, float noundef 1.000000e+00)
          to label %91 unwind label %160

91:                                               ; preds = %90
  %92 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %93 = load double, ptr %92, align 16
  %94 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %95 = load double, ptr %94, align 8
  invoke void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %21, double %93, double %95)
          to label %96 unwind label %160

96:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #10
  invoke void @_ZN3JPH5Mat4410sRotationYEf(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %23, float noundef 0x3FE41B2F80000000)
          to label %97 unwind label %164

97:                                               ; preds = %96
  invoke void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %20, ptr noundef nonnull align 16 dereferenceable(64) %21, ptr noundef nonnull align 16 dereferenceable(64) %23)
          to label %98 unwind label %164

98:                                               ; preds = %97
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #10
  invoke void @_ZN3JPH5Mat4410sRotationZEf(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %24, float noundef 0x3FD41B2F80000000)
          to label %99 unwind label %168

99:                                               ; preds = %98
  invoke void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %19, ptr noundef nonnull align 16 dereferenceable(64) %20, ptr noundef nonnull align 16 dereferenceable(64) %24)
          to label %100 unwind label %168

100:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  store ptr %10, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %101 = load ptr, ptr %25, align 8, !tbaa !5
  %102 = invoke noundef ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %101)
          to label %103 unwind label %174

103:                                              ; preds = %100
  store ptr %102, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  %104 = load ptr, ptr %25, align 8, !tbaa !5
  %105 = invoke noundef ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %104)
          to label %106 unwind label %178

106:                                              ; preds = %103
  store ptr %105, ptr %27, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %198, %106
  %108 = load ptr, ptr %26, align 8, !tbaa !5
  %109 = load ptr, ptr %27, align 8, !tbaa !5
  %110 = icmp ne ptr %108, %109
  br i1 %110, label %182, label %111

111:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  br label %207

112:                                              ; preds = %61, %1
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %5, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #10
  br label %524

116:                                              ; preds = %69, %68
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %5, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #10
  br label %524

120:                                              ; preds = %71, %70
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %5, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #10
  br label %524

124:                                              ; preds = %73, %72
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %5, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #10
  br label %524

128:                                              ; preds = %75, %74
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %5, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #10
  br label %523

132:                                              ; preds = %77, %76
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %5, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #10
  br label %523

136:                                              ; preds = %79, %78
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %5, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #10
  br label %523

140:                                              ; preds = %81, %80
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %5, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  br label %523

144:                                              ; preds = %83, %82
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %5, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #10
  br label %523

148:                                              ; preds = %85, %84
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %5, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #10
  br label %523

152:                                              ; preds = %87, %86
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %5, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #10
  br label %523

156:                                              ; preds = %89, %88
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %5, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #10
  br label %523

160:                                              ; preds = %91, %90
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %5, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %6, align 4
  br label %173

164:                                              ; preds = %97, %96
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %5, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %6, align 4
  br label %172

168:                                              ; preds = %99, %98
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %5, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #10
  br label %172

172:                                              ; preds = %168, %164
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #10
  br label %173

173:                                              ; preds = %172, %160
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #10
  br label %522

174:                                              ; preds = %100
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %5, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %6, align 4
  br label %206

178:                                              ; preds = %103
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %5, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %6, align 4
  br label %205

182:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  %183 = load ptr, ptr %26, align 8, !tbaa !5
  store ptr %183, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #10
  %184 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %184, i64 16, i1 false), !tbaa.struct !9
  %185 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %186 = load double, ptr %185, align 16
  %187 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %188 = load double, ptr %187, align 8
  %189 = invoke { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %19, double %186, double %188)
          to label %190 unwind label %201

190:                                              ; preds = %182
  %191 = getelementptr inbounds %"class.JPH::Vec3", ptr %29, i32 0, i32 0
  %192 = getelementptr inbounds %union.anon, ptr %191, i32 0, i32 0
  %193 = getelementptr inbounds { double, double }, ptr %192, i32 0, i32 0
  %194 = extractvalue { double, double } %189, 0
  store double %194, ptr %193, align 16
  %195 = getelementptr inbounds { double, double }, ptr %192, i32 0, i32 1
  %196 = extractvalue { double, double } %189, 1
  store double %196, ptr %195, align 8
  %197 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %197, ptr align 16 %29, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  br label %198

198:                                              ; preds = %190
  %199 = load ptr, ptr %26, align 8, !tbaa !5
  %200 = getelementptr inbounds %"class.JPH::Vec3", ptr %199, i32 1
  store ptr %200, ptr %26, align 8, !tbaa !5
  br label %107

201:                                              ; preds = %182
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %5, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  br label %205

205:                                              ; preds = %201, %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  br label %206

206:                                              ; preds = %205, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  br label %522

207:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #10
  store ptr %31, ptr %32, align 8
  %208 = invoke noundef ptr @_ZN3JPH23ConvexHullShapeSettingsnwEm(i64 noundef 120)
          to label %209 unwind label %221

209:                                              ; preds = %207
  invoke void @_ZN3JPH23ConvexHullShapeSettingsC2ERKNS_5ArrayINS_4Vec3ENS_12STLAllocatorIS2_EEEEfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(120) %208, ptr noundef nonnull align 8 dereferenceable(24) %3, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %210 unwind label %225

210:                                              ; preds = %209
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef %208)
          to label %211 unwind label %221

211:                                              ; preds = %210
  %212 = getelementptr inbounds %"class.JPH::RefConst.6", ptr %31, i64 1
  store ptr %212, ptr %32, align 8
  %213 = invoke noundef ptr @_ZN3JPH23ConvexHullShapeSettingsnwEm(i64 noundef 120)
          to label %214 unwind label %221

214:                                              ; preds = %211
  invoke void @_ZN3JPH23ConvexHullShapeSettingsC2ERKNS_5ArrayINS_4Vec3ENS_12STLAllocatorIS2_EEEEfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(120) %213, ptr noundef nonnull align 8 dereferenceable(24) %10, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %215 unwind label %229

215:                                              ; preds = %214
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %212, ptr noundef %213)
          to label %216 unwind label %221

216:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #10
  store i32 0, ptr %33, align 4, !tbaa !11
  br label %217

217:                                              ; preds = %441, %216
  %218 = load i32, ptr %33, align 4, !tbaa !11
  %219 = icmp slt i32 %218, 2
  br i1 %219, label %241, label %220

220:                                              ; preds = %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  br label %508

221:                                              ; preds = %215, %211, %210, %207
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %5, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %6, align 4
  br label %233

225:                                              ; preds = %209
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %5, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %6, align 4
  call void @_ZN3JPH23ConvexHullShapeSettingsdlEPv(ptr noundef %208) #10
  br label %233

229:                                              ; preds = %214
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %5, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %6, align 4
  call void @_ZN3JPH23ConvexHullShapeSettingsdlEPv(ptr noundef %213) #10
  br label %233

233:                                              ; preds = %229, %225, %221
  %234 = load ptr, ptr %32, align 8
  %235 = icmp eq ptr %31, %234
  br i1 %235, label %240, label %236

236:                                              ; preds = %236, %233
  %237 = phi ptr [ %234, %233 ], [ %238, %236 ]
  %238 = getelementptr inbounds %"class.JPH::RefConst.6", ptr %237, i64 -1
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %238) #10
  %239 = icmp eq ptr %238, %31
  br i1 %239, label %240, label %236

240:                                              ; preds = %236, %233
  br label %521

241:                                              ; preds = %217
  %242 = getelementptr inbounds %class.Test, ptr %58, i32 0, i32 3
  %243 = load ptr, ptr %242, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 256, ptr %34) #10
  %244 = load i32, ptr %33, align 4, !tbaa !11
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [2 x %"class.JPH::RefConst.6"], ptr %31, i64 0, i64 %245
  %247 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %246)
          to label %248 unwind label %444

248:                                              ; preds = %241
  %249 = load i32, ptr %33, align 4, !tbaa !11
  %250 = sitofp i32 %249 to float
  %251 = fmul float %250, 2.000000e+01
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %35, float noundef -4.000000e+01, float noundef 1.000000e+01, float noundef %251)
          to label %252 unwind label %444

252:                                              ; preds = %248
  %253 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %254 unwind label %444

254:                                              ; preds = %252
  %255 = getelementptr inbounds %"class.JPH::Quat", ptr %36, i32 0, i32 0
  %256 = getelementptr inbounds %"class.JPH::Vec4", ptr %255, i32 0, i32 0
  %257 = getelementptr inbounds %union.anon.4, ptr %256, i32 0, i32 0
  %258 = getelementptr inbounds { double, double }, ptr %257, i32 0, i32 0
  %259 = extractvalue { double, double } %253, 0
  store double %259, ptr %258, align 16
  %260 = getelementptr inbounds { double, double }, ptr %257, i32 0, i32 1
  %261 = extractvalue { double, double } %253, 1
  store double %261, ptr %260, align 8
  %262 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %263 = load double, ptr %262, align 16
  %264 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %265 = load double, ptr %264, align 8
  %266 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %267 = load double, ptr %266, align 16
  %268 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %269 = load double, ptr %268, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %34, ptr noundef %247, double %263, double %265, double %267, double %269, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %270 unwind label %444

270:                                              ; preds = %254
  %271 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %243, ptr noundef nonnull align 16 dereferenceable(256) %34, i32 noundef 0)
          to label %272 unwind label %448

272:                                              ; preds = %270
  %273 = getelementptr inbounds %"class.JPH::BodyID", ptr %37, i32 0, i32 0
  store i32 %271, ptr %273, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %34) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %34) #10
  %274 = getelementptr inbounds %class.Test, ptr %58, i32 0, i32 3
  %275 = load ptr, ptr %274, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 256, ptr %38) #10
  %276 = invoke noundef ptr @_ZN3JPH19ScaledShapeSettingsnwEm(i64 noundef 96)
          to label %277 unwind label %453

277:                                              ; preds = %272
  %278 = load i32, ptr %33, align 4, !tbaa !11
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [2 x %"class.JPH::RefConst.6"], ptr %31, i64 0, i64 %279
  %281 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %280)
          to label %282 unwind label %457

282:                                              ; preds = %277
  %283 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 2.500000e-01)
          to label %284 unwind label %457

284:                                              ; preds = %282
  %285 = getelementptr inbounds %"class.JPH::Vec3", ptr %39, i32 0, i32 0
  %286 = getelementptr inbounds %union.anon, ptr %285, i32 0, i32 0
  %287 = getelementptr inbounds { double, double }, ptr %286, i32 0, i32 0
  %288 = extractvalue { double, double } %283, 0
  store double %288, ptr %287, align 16
  %289 = getelementptr inbounds { double, double }, ptr %286, i32 0, i32 1
  %290 = extractvalue { double, double } %283, 1
  store double %290, ptr %289, align 8
  %291 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %292 = load double, ptr %291, align 16
  %293 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %294 = load double, ptr %293, align 8
  invoke void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %276, ptr noundef %281, double %292, double %294)
          to label %295 unwind label %457

295:                                              ; preds = %284
  %296 = load i32, ptr %33, align 4, !tbaa !11
  %297 = sitofp i32 %296 to float
  %298 = fmul float %297, 2.000000e+01
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %40, float noundef -2.000000e+01, float noundef 1.000000e+01, float noundef %298)
          to label %299 unwind label %453

299:                                              ; preds = %295
  %300 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %301 unwind label %453

301:                                              ; preds = %299
  %302 = getelementptr inbounds %"class.JPH::Quat", ptr %41, i32 0, i32 0
  %303 = getelementptr inbounds %"class.JPH::Vec4", ptr %302, i32 0, i32 0
  %304 = getelementptr inbounds %union.anon.4, ptr %303, i32 0, i32 0
  %305 = getelementptr inbounds { double, double }, ptr %304, i32 0, i32 0
  %306 = extractvalue { double, double } %300, 0
  store double %306, ptr %305, align 16
  %307 = getelementptr inbounds { double, double }, ptr %304, i32 0, i32 1
  %308 = extractvalue { double, double } %300, 1
  store double %308, ptr %307, align 8
  %309 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %310 = load double, ptr %309, align 16
  %311 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %312 = load double, ptr %311, align 8
  %313 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %314 = load double, ptr %313, align 16
  %315 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %316 = load double, ptr %315, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %38, ptr noundef %276, double %310, double %312, double %314, double %316, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %317 unwind label %453

317:                                              ; preds = %301
  %318 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %275, ptr noundef nonnull align 16 dereferenceable(256) %38, i32 noundef 0)
          to label %319 unwind label %461

319:                                              ; preds = %317
  %320 = getelementptr inbounds %"class.JPH::BodyID", ptr %42, i32 0, i32 0
  store i32 %318, ptr %320, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %38) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %38) #10
  %321 = getelementptr inbounds %class.Test, ptr %58, i32 0, i32 3
  %322 = load ptr, ptr %321, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 256, ptr %43) #10
  %323 = invoke noundef ptr @_ZN3JPH19ScaledShapeSettingsnwEm(i64 noundef 96)
          to label %324 unwind label %466

324:                                              ; preds = %319
  %325 = load i32, ptr %33, align 4, !tbaa !11
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [2 x %"class.JPH::RefConst.6"], ptr %31, i64 0, i64 %326
  %328 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %327)
          to label %329 unwind label %470

329:                                              ; preds = %324
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %44, float noundef 2.500000e-01, float noundef 5.000000e-01, float noundef 1.500000e+00)
          to label %330 unwind label %470

330:                                              ; preds = %329
  %331 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %332 = load double, ptr %331, align 16
  %333 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %334 = load double, ptr %333, align 8
  invoke void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %323, ptr noundef %328, double %332, double %334)
          to label %335 unwind label %470

335:                                              ; preds = %330
  %336 = load i32, ptr %33, align 4, !tbaa !11
  %337 = sitofp i32 %336 to float
  %338 = fmul float %337, 2.000000e+01
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %45, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef %338)
          to label %339 unwind label %466

339:                                              ; preds = %335
  %340 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %341 unwind label %466

341:                                              ; preds = %339
  %342 = getelementptr inbounds %"class.JPH::Quat", ptr %46, i32 0, i32 0
  %343 = getelementptr inbounds %"class.JPH::Vec4", ptr %342, i32 0, i32 0
  %344 = getelementptr inbounds %union.anon.4, ptr %343, i32 0, i32 0
  %345 = getelementptr inbounds { double, double }, ptr %344, i32 0, i32 0
  %346 = extractvalue { double, double } %340, 0
  store double %346, ptr %345, align 16
  %347 = getelementptr inbounds { double, double }, ptr %344, i32 0, i32 1
  %348 = extractvalue { double, double } %340, 1
  store double %348, ptr %347, align 8
  %349 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %350 = load double, ptr %349, align 16
  %351 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %352 = load double, ptr %351, align 8
  %353 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %354 = load double, ptr %353, align 16
  %355 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %356 = load double, ptr %355, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %43, ptr noundef %323, double %350, double %352, double %354, double %356, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %357 unwind label %466

357:                                              ; preds = %341
  %358 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %322, ptr noundef nonnull align 16 dereferenceable(256) %43, i32 noundef 0)
          to label %359 unwind label %474

359:                                              ; preds = %357
  %360 = getelementptr inbounds %"class.JPH::BodyID", ptr %47, i32 0, i32 0
  store i32 %358, ptr %360, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %43) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %43) #10
  %361 = getelementptr inbounds %class.Test, ptr %58, i32 0, i32 3
  %362 = load ptr, ptr %361, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 256, ptr %48) #10
  %363 = invoke noundef ptr @_ZN3JPH19ScaledShapeSettingsnwEm(i64 noundef 96)
          to label %364 unwind label %479

364:                                              ; preds = %359
  %365 = load i32, ptr %33, align 4, !tbaa !11
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds [2 x %"class.JPH::RefConst.6"], ptr %31, i64 0, i64 %366
  %368 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %367)
          to label %369 unwind label %483

369:                                              ; preds = %364
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %49, float noundef -2.500000e-01, float noundef 5.000000e-01, float noundef -1.500000e+00)
          to label %370 unwind label %483

370:                                              ; preds = %369
  %371 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %372 = load double, ptr %371, align 16
  %373 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %374 = load double, ptr %373, align 8
  invoke void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %363, ptr noundef %368, double %372, double %374)
          to label %375 unwind label %483

375:                                              ; preds = %370
  %376 = load i32, ptr %33, align 4, !tbaa !11
  %377 = sitofp i32 %376 to float
  %378 = fmul float %377, 2.000000e+01
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %50, float noundef 2.000000e+01, float noundef 1.000000e+01, float noundef %378)
          to label %379 unwind label %479

379:                                              ; preds = %375
  %380 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %381 unwind label %479

381:                                              ; preds = %379
  %382 = getelementptr inbounds %"class.JPH::Quat", ptr %51, i32 0, i32 0
  %383 = getelementptr inbounds %"class.JPH::Vec4", ptr %382, i32 0, i32 0
  %384 = getelementptr inbounds %union.anon.4, ptr %383, i32 0, i32 0
  %385 = getelementptr inbounds { double, double }, ptr %384, i32 0, i32 0
  %386 = extractvalue { double, double } %380, 0
  store double %386, ptr %385, align 16
  %387 = getelementptr inbounds { double, double }, ptr %384, i32 0, i32 1
  %388 = extractvalue { double, double } %380, 1
  store double %388, ptr %387, align 8
  %389 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %390 = load double, ptr %389, align 16
  %391 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %392 = load double, ptr %391, align 8
  %393 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %394 = load double, ptr %393, align 16
  %395 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %396 = load double, ptr %395, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %48, ptr noundef %363, double %390, double %392, double %394, double %396, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %397 unwind label %479

397:                                              ; preds = %381
  %398 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %362, ptr noundef nonnull align 16 dereferenceable(256) %48, i32 noundef 0)
          to label %399 unwind label %487

399:                                              ; preds = %397
  %400 = getelementptr inbounds %"class.JPH::BodyID", ptr %52, i32 0, i32 0
  store i32 %398, ptr %400, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %48) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %48) #10
  %401 = getelementptr inbounds %class.Test, ptr %58, i32 0, i32 3
  %402 = load ptr, ptr %401, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 256, ptr %53) #10
  %403 = invoke noundef ptr @_ZN3JPH19ScaledShapeSettingsnwEm(i64 noundef 96)
          to label %404 unwind label %492

404:                                              ; preds = %399
  %405 = load i32, ptr %33, align 4, !tbaa !11
  %406 = sext i32 %405 to i64
  %407 = getelementptr inbounds [2 x %"class.JPH::RefConst.6"], ptr %31, i64 0, i64 %406
  %408 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %407)
          to label %409 unwind label %496

409:                                              ; preds = %404
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %54, float noundef -2.500000e-01, float noundef 5.000000e-01, float noundef 1.500000e+00)
          to label %410 unwind label %496

410:                                              ; preds = %409
  %411 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %412 = load double, ptr %411, align 16
  %413 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %414 = load double, ptr %413, align 8
  invoke void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %403, ptr noundef %408, double %412, double %414)
          to label %415 unwind label %496

415:                                              ; preds = %410
  %416 = load i32, ptr %33, align 4, !tbaa !11
  %417 = sitofp i32 %416 to float
  %418 = fmul float %417, 2.000000e+01
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %55, float noundef 4.000000e+01, float noundef 1.000000e+01, float noundef %418)
          to label %419 unwind label %492

419:                                              ; preds = %415
  %420 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %421 unwind label %492

421:                                              ; preds = %419
  %422 = getelementptr inbounds %"class.JPH::Quat", ptr %56, i32 0, i32 0
  %423 = getelementptr inbounds %"class.JPH::Vec4", ptr %422, i32 0, i32 0
  %424 = getelementptr inbounds %union.anon.4, ptr %423, i32 0, i32 0
  %425 = getelementptr inbounds { double, double }, ptr %424, i32 0, i32 0
  %426 = extractvalue { double, double } %420, 0
  store double %426, ptr %425, align 16
  %427 = getelementptr inbounds { double, double }, ptr %424, i32 0, i32 1
  %428 = extractvalue { double, double } %420, 1
  store double %428, ptr %427, align 8
  %429 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %430 = load double, ptr %429, align 16
  %431 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %432 = load double, ptr %431, align 8
  %433 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %434 = load double, ptr %433, align 16
  %435 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %436 = load double, ptr %435, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %53, ptr noundef %403, double %430, double %432, double %434, double %436, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %437 unwind label %492

437:                                              ; preds = %421
  %438 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %402, ptr noundef nonnull align 16 dereferenceable(256) %53, i32 noundef 0)
          to label %439 unwind label %500

439:                                              ; preds = %437
  %440 = getelementptr inbounds %"class.JPH::BodyID", ptr %57, i32 0, i32 0
  store i32 %438, ptr %440, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %53) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %53) #10
  br label %441

441:                                              ; preds = %439
  %442 = load i32, ptr %33, align 4, !tbaa !11
  %443 = add nsw i32 %442, 1
  store i32 %443, ptr %33, align 4, !tbaa !11
  br label %217, !llvm.loop !22

444:                                              ; preds = %254, %252, %248, %241
  %445 = landingpad { ptr, i32 }
          cleanup
  %446 = extractvalue { ptr, i32 } %445, 0
  store ptr %446, ptr %5, align 8
  %447 = extractvalue { ptr, i32 } %445, 1
  store i32 %447, ptr %6, align 4
  br label %452

448:                                              ; preds = %270
  %449 = landingpad { ptr, i32 }
          cleanup
  %450 = extractvalue { ptr, i32 } %449, 0
  store ptr %450, ptr %5, align 8
  %451 = extractvalue { ptr, i32 } %449, 1
  store i32 %451, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %34) #10
  br label %452

452:                                              ; preds = %448, %444
  call void @llvm.lifetime.end.p0(i64 256, ptr %34) #10
  br label %505

453:                                              ; preds = %301, %299, %295, %272
  %454 = landingpad { ptr, i32 }
          cleanup
  %455 = extractvalue { ptr, i32 } %454, 0
  store ptr %455, ptr %5, align 8
  %456 = extractvalue { ptr, i32 } %454, 1
  store i32 %456, ptr %6, align 4
  br label %465

457:                                              ; preds = %284, %282, %277
  %458 = landingpad { ptr, i32 }
          cleanup
  %459 = extractvalue { ptr, i32 } %458, 0
  store ptr %459, ptr %5, align 8
  %460 = extractvalue { ptr, i32 } %458, 1
  store i32 %460, ptr %6, align 4
  call void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef %276) #10
  br label %465

461:                                              ; preds = %317
  %462 = landingpad { ptr, i32 }
          cleanup
  %463 = extractvalue { ptr, i32 } %462, 0
  store ptr %463, ptr %5, align 8
  %464 = extractvalue { ptr, i32 } %462, 1
  store i32 %464, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %38) #10
  br label %465

465:                                              ; preds = %461, %457, %453
  call void @llvm.lifetime.end.p0(i64 256, ptr %38) #10
  br label %505

466:                                              ; preds = %341, %339, %335, %319
  %467 = landingpad { ptr, i32 }
          cleanup
  %468 = extractvalue { ptr, i32 } %467, 0
  store ptr %468, ptr %5, align 8
  %469 = extractvalue { ptr, i32 } %467, 1
  store i32 %469, ptr %6, align 4
  br label %478

470:                                              ; preds = %330, %329, %324
  %471 = landingpad { ptr, i32 }
          cleanup
  %472 = extractvalue { ptr, i32 } %471, 0
  store ptr %472, ptr %5, align 8
  %473 = extractvalue { ptr, i32 } %471, 1
  store i32 %473, ptr %6, align 4
  call void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef %323) #10
  br label %478

474:                                              ; preds = %357
  %475 = landingpad { ptr, i32 }
          cleanup
  %476 = extractvalue { ptr, i32 } %475, 0
  store ptr %476, ptr %5, align 8
  %477 = extractvalue { ptr, i32 } %475, 1
  store i32 %477, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %43) #10
  br label %478

478:                                              ; preds = %474, %470, %466
  call void @llvm.lifetime.end.p0(i64 256, ptr %43) #10
  br label %505

479:                                              ; preds = %381, %379, %375, %359
  %480 = landingpad { ptr, i32 }
          cleanup
  %481 = extractvalue { ptr, i32 } %480, 0
  store ptr %481, ptr %5, align 8
  %482 = extractvalue { ptr, i32 } %480, 1
  store i32 %482, ptr %6, align 4
  br label %491

483:                                              ; preds = %370, %369, %364
  %484 = landingpad { ptr, i32 }
          cleanup
  %485 = extractvalue { ptr, i32 } %484, 0
  store ptr %485, ptr %5, align 8
  %486 = extractvalue { ptr, i32 } %484, 1
  store i32 %486, ptr %6, align 4
  call void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef %363) #10
  br label %491

487:                                              ; preds = %397
  %488 = landingpad { ptr, i32 }
          cleanup
  %489 = extractvalue { ptr, i32 } %488, 0
  store ptr %489, ptr %5, align 8
  %490 = extractvalue { ptr, i32 } %488, 1
  store i32 %490, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %48) #10
  br label %491

491:                                              ; preds = %487, %483, %479
  call void @llvm.lifetime.end.p0(i64 256, ptr %48) #10
  br label %505

492:                                              ; preds = %421, %419, %415, %399
  %493 = landingpad { ptr, i32 }
          cleanup
  %494 = extractvalue { ptr, i32 } %493, 0
  store ptr %494, ptr %5, align 8
  %495 = extractvalue { ptr, i32 } %493, 1
  store i32 %495, ptr %6, align 4
  br label %504

496:                                              ; preds = %410, %409, %404
  %497 = landingpad { ptr, i32 }
          cleanup
  %498 = extractvalue { ptr, i32 } %497, 0
  store ptr %498, ptr %5, align 8
  %499 = extractvalue { ptr, i32 } %497, 1
  store i32 %499, ptr %6, align 4
  call void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef %403) #10
  br label %504

500:                                              ; preds = %437
  %501 = landingpad { ptr, i32 }
          cleanup
  %502 = extractvalue { ptr, i32 } %501, 0
  store ptr %502, ptr %5, align 8
  %503 = extractvalue { ptr, i32 } %501, 1
  store i32 %503, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %53) #10
  br label %504

504:                                              ; preds = %500, %496, %492
  call void @llvm.lifetime.end.p0(i64 256, ptr %53) #10
  br label %505

505:                                              ; preds = %504, %491, %478, %465, %452
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  %506 = getelementptr inbounds [2 x %"class.JPH::RefConst.6"], ptr %31, i32 0, i32 0
  %507 = getelementptr inbounds %"class.JPH::RefConst.6", ptr %506, i64 2
  br label %516

508:                                              ; preds = %220
  %509 = getelementptr inbounds [2 x %"class.JPH::RefConst.6"], ptr %31, i32 0, i32 0
  %510 = getelementptr inbounds %"class.JPH::RefConst.6", ptr %509, i64 2
  br label %511

511:                                              ; preds = %511, %508
  %512 = phi ptr [ %510, %508 ], [ %513, %511 ]
  %513 = getelementptr inbounds %"class.JPH::RefConst.6", ptr %512, i64 -1
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %513) #10
  %514 = icmp eq ptr %513, %509
  br i1 %514, label %515, label %511

515:                                              ; preds = %511
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #10
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #10
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #10
  ret void

516:                                              ; preds = %516, %505
  %517 = phi ptr [ %507, %505 ], [ %518, %516 ]
  %518 = getelementptr inbounds %"class.JPH::RefConst.6", ptr %517, i64 -1
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %518) #10
  %519 = icmp eq ptr %518, %506
  br i1 %519, label %520, label %516

520:                                              ; preds = %516
  br label %521

521:                                              ; preds = %520, %240
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  br label %522

522:                                              ; preds = %521, %206, %173
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #10
  br label %523

523:                                              ; preds = %522, %156, %152, %148, %144, %140, %136, %132, %128
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #10
  br label %524

524:                                              ; preds = %523, %124, %120, %116, %112
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #10
  br label %525

525:                                              ; preds = %524
  %526 = load ptr, ptr %5, align 8
  %527 = load i32, ptr %6, align 4
  %528 = insertvalue { ptr, i32 } poison, ptr %526, 0
  %529 = insertvalue { ptr, i32 } %528, i32 %527, 1
  resume { ptr, i32 } %529
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(16)) #4 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4410sRotationYEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, float noundef) #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4410sRotationZEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, float noundef) #6 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH23ConvexHullShapeSettingsC2ERKNS_5ArrayINS_4Vec3ENS_12STLAllocatorIS2_EEEEfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(24), float noundef, ptr noundef) unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96), ptr noundef, double, double) unnamed_addr #1 align 2

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

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

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

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

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


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

%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"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::RefConst.6" = type { ptr }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.6", %"class.JPH::RefConst" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.5", i32, i32 }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::RefConst" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN25ScaledConvexHullShapeTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(112) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::Array", align 8
  %3 = alloca %"class.JPH::Vec3", align 16
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Array", align 8
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Mat44", align 16
  %17 = alloca %"class.JPH::Mat44", align 16
  %18 = alloca %"class.JPH::Mat44", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Mat44", align 16
  %21 = alloca %"class.JPH::Mat44", align 16
  %22 = alloca [2 x %"class.JPH::RefConst.6"], align 16
  %23 = alloca %"class.JPH::BodyCreationSettings", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::BodyCreationSettings", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::BodyCreationSettings", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::BodyCreationSettings", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::BodyCreationSettings", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = tail call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %0, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #9
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  %indvars.iv.sroa.gep239 = getelementptr inbounds i8, ptr %22, i64 8
  %37 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %38 unwind label %77

38:                                               ; preds = %1
  %39 = extractvalue { double, double } %37, 0
  store double %39, ptr %3, align 16
  %40 = getelementptr inbounds i8, ptr %3, i64 8
  %41 = extractvalue { double, double } %37, 1
  store double %41, ptr %40, align 8
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 16 dereferenceable(16) %3)
          to label %42 unwind label %77

42:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 1.000000e+01, float noundef 0.000000e+00, float noundef 1.250000e+01)
          to label %43 unwind label %79

43:                                               ; preds = %42
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 16 dereferenceable(16) %4)
          to label %44 unwind label %79

44:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef 1.500000e+01, float noundef 0.000000e+00, float noundef 2.500000e+00)
          to label %45 unwind label %81

45:                                               ; preds = %44
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 16 dereferenceable(16) %5)
          to label %46 unwind label %81

46:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef 1.000000e+01, float noundef -5.000000e+00, float noundef 5.000000e+00)
          to label %47 unwind label %83

47:                                               ; preds = %46
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 16 dereferenceable(16) %6)
          to label %48 unwind label %83

48:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #9
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef 1.000000e+00, float noundef 2.000000e+00, float noundef 3.000000e+00)
          to label %49 unwind label %85

49:                                               ; preds = %48
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(16) %8)
          to label %50 unwind label %85

50:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef -1.000000e+00, float noundef 2.000000e+00, float noundef 3.000000e+00)
          to label %51 unwind label %87

51:                                               ; preds = %50
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(16) %9)
          to label %52 unwind label %87

52:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef 1.000000e+00, float noundef -2.000000e+00, float noundef 3.000000e+00)
          to label %53 unwind label %89

53:                                               ; preds = %52
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(16) %10)
          to label %54 unwind label %89

54:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef -1.000000e+00, float noundef -2.000000e+00, float noundef 3.000000e+00)
          to label %55 unwind label %91

55:                                               ; preds = %54
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(16) %11)
          to label %56 unwind label %91

56:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef 1.000000e+00, float noundef 2.000000e+00, float noundef -3.000000e+00)
          to label %57 unwind label %93

57:                                               ; preds = %56
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(16) %12)
          to label %58 unwind label %93

58:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef -1.000000e+00, float noundef 2.000000e+00, float noundef -3.000000e+00)
          to label %59 unwind label %95

59:                                               ; preds = %58
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(16) %13)
          to label %60 unwind label %95

60:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef 1.000000e+00, float noundef -2.000000e+00, float noundef -3.000000e+00)
          to label %61 unwind label %97

61:                                               ; preds = %60
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(16) %14)
          to label %62 unwind label %97

62:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef -1.000000e+00, float noundef -2.000000e+00, float noundef -3.000000e+00)
          to label %63 unwind label %99

63:                                               ; preds = %62
  invoke void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(16) %15)
          to label %64 unwind label %99

64:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef 3.000000e+00, float noundef -2.000000e+00, float noundef 1.000000e+00)
          to label %65 unwind label %101

65:                                               ; preds = %64
  %66 = load double, ptr %19, align 16
  %67 = getelementptr inbounds i8, ptr %19, i64 8
  %68 = load double, ptr %67, align 8
  invoke void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %18, double %66, double %68)
          to label %69 unwind label %101

69:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #9
  invoke void @_ZN3JPH5Mat4410sRotationYEf(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %20, float noundef 0x3FE41B2F80000000)
          to label %70 unwind label %103

70:                                               ; preds = %69
  invoke void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %17, ptr noundef nonnull align 16 dereferenceable(64) %18, ptr noundef nonnull align 16 dereferenceable(64) %20)
          to label %71 unwind label %103

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #9
  invoke void @_ZN3JPH5Mat4410sRotationZEf(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %21, float noundef 0x3FD41B2F80000000)
          to label %72 unwind label %105

72:                                               ; preds = %71
  invoke void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %16, ptr noundef nonnull align 16 dereferenceable(64) %17, ptr noundef nonnull align 16 dereferenceable(64) %21)
          to label %73 unwind label %105

73:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #9
  %74 = call noundef ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %75 = call noundef ptr @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %.not108 = icmp eq ptr %74, %75
  br i1 %.not108, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %110, %73
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #9
  %76 = invoke noundef ptr @_ZN3JPH23ConvexHullShapeSettingsnwEm(i64 noundef 120)
          to label %116 unwind label %.thread147

77:                                               ; preds = %38, %1
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  br label %260

79:                                               ; preds = %43, %42
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  br label %260

81:                                               ; preds = %45, %44
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  br label %260

83:                                               ; preds = %47, %46
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  br label %260

85:                                               ; preds = %49, %48
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  br label %259

87:                                               ; preds = %51, %50
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  br label %259

89:                                               ; preds = %53, %52
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  br label %259

91:                                               ; preds = %55, %54
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  br label %259

93:                                               ; preds = %57, %56
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  br label %259

95:                                               ; preds = %59, %58
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  br label %259

97:                                               ; preds = %61, %60
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  br label %259

99:                                               ; preds = %63, %62
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  br label %259

101:                                              ; preds = %65, %64
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %108

103:                                              ; preds = %70, %69
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %107

105:                                              ; preds = %72, %71
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #9
  br label %107

107:                                              ; preds = %105, %103
  %.pn = phi { ptr, i32 } [ %106, %105 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #9
  br label %108

108:                                              ; preds = %107, %101
  %.pn.pn = phi { ptr, i32 } [ %.pn, %107 ], [ %102, %101 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #9
  br label %258

.lr.ph:                                           ; preds = %73, %110
  %.054109 = phi ptr [ %113, %110 ], [ %74, %73 ]
  %.sroa.027.0.copyload = load double, ptr %.054109, align 16
  %.sroa.228.0..sroa_idx = getelementptr inbounds i8, ptr %.054109, i64 8
  %.sroa.228.0.copyload = load double, ptr %.sroa.228.0..sroa_idx, align 8, !tbaa !5
  %109 = invoke { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %16, double %.sroa.027.0.copyload, double %.sroa.228.0.copyload)
          to label %110 unwind label %114

110:                                              ; preds = %.lr.ph
  %111 = extractvalue { double, double } %109, 0
  %112 = extractvalue { double, double } %109, 1
  store double %111, ptr %.054109, align 16
  store double %112, ptr %.sroa.228.0..sroa_idx, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %.054109, i64 16
  %.not = icmp eq ptr %113, %75
  br i1 %.not, label %._crit_edge, label %.lr.ph

114:                                              ; preds = %.lr.ph
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %258

116:                                              ; preds = %._crit_edge
  invoke void @_ZN3JPH23ConvexHullShapeSettingsC2ERKNS_5ArrayINS_4Vec3ENS_12STLAllocatorIS2_EEEEfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(120) %76, ptr noundef nonnull align 8 dereferenceable(24) %2, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %117 unwind label %.thread

117:                                              ; preds = %116
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull %76)
          to label %118 unwind label %.thread147

118:                                              ; preds = %117
  %119 = getelementptr inbounds i8, ptr %22, i64 8
  %120 = invoke noundef ptr @_ZN3JPH23ConvexHullShapeSettingsnwEm(i64 noundef 120)
          to label %121 unwind label %136

121:                                              ; preds = %118
  invoke void @_ZN3JPH23ConvexHullShapeSettingsC2ERKNS_5ArrayINS_4Vec3ENS_12STLAllocatorIS2_EEEEfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(120) %120, ptr noundef nonnull align 8 dereferenceable(24) %7, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %122 unwind label %.thread142

122:                                              ; preds = %121
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull %120)
          to label %.preheader unwind label %136

.preheader:                                       ; preds = %122
  %123 = getelementptr inbounds i8, ptr %0, i64 24
  %124 = getelementptr inbounds i8, ptr %24, i64 8
  %125 = getelementptr inbounds i8, ptr %26, i64 8
  %126 = getelementptr inbounds i8, ptr %28, i64 8
  %127 = getelementptr inbounds i8, ptr %29, i64 8
  %128 = getelementptr inbounds i8, ptr %31, i64 8
  %129 = getelementptr inbounds i8, ptr %32, i64 8
  %130 = getelementptr inbounds i8, ptr %34, i64 8
  %131 = getelementptr inbounds i8, ptr %35, i64 8
  br label %137

132:                                              ; preds = %223
  %133 = getelementptr inbounds i8, ptr %22, i64 8
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %133) #9
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #9
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #9
  ret void

.thread:                                          ; preds = %116
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH23ConvexHullShapeSettingsdlEPv(ptr noundef %76) #9
  br label %.loopexit

.thread142:                                       ; preds = %121
  %135 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH23ConvexHullShapeSettingsdlEPv(ptr noundef %120) #9
  br label %.preheader81

.thread147:                                       ; preds = %117, %._crit_edge
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

136:                                              ; preds = %118, %122
  %lpad.thr_comm.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.preheader81

.preheader81:                                     ; preds = %.thread142, %136
  %.pn61146 = phi { ptr, i32 } [ %135, %.thread142 ], [ %lpad.thr_comm.split-lp, %136 ]
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  br label %.loopexit

137:                                              ; preds = %.preheader, %223
  %138 = phi i1 [ true, %.preheader ], [ false, %223 ]
  %indvars.iv.sroa.phi = phi ptr [ %22, %.preheader ], [ %indvars.iv.sroa.gep239, %223 ]
  %indvars.iv = phi float [ 0.000000e+00, %.preheader ], [ 2.000000e+01, %223 ]
  %139 = load ptr, ptr %123, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %23) #9
  %140 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %indvars.iv.sroa.phi)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %24, float noundef -4.000000e+01, float noundef 1.000000e+01, float noundef %indvars.iv)
          to label %141 unwind label %224

141:                                              ; preds = %137
  %142 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %143 unwind label %224

143:                                              ; preds = %141
  %144 = extractvalue { double, double } %142, 0
  %145 = extractvalue { double, double } %142, 1
  %146 = load double, ptr %24, align 16
  %147 = load double, ptr %124, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %23, ptr noundef %140, double %146, double %147, double %144, double %145, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %148 unwind label %224

148:                                              ; preds = %143
  %149 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 16 dereferenceable(256) %23, i32 noundef 0)
          to label %150 unwind label %226

150:                                              ; preds = %148
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %23) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %23) #9
  %151 = load ptr, ptr %123, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %25) #9
  %152 = invoke noundef ptr @_ZN3JPH19ScaledShapeSettingsnwEm(i64 noundef 96)
          to label %153 unwind label %229

153:                                              ; preds = %150
  %154 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %indvars.iv.sroa.phi)
  %155 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 2.500000e-01)
          to label %156 unwind label %231

156:                                              ; preds = %153
  %157 = extractvalue { double, double } %155, 0
  %158 = extractvalue { double, double } %155, 1
  invoke void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %152, ptr noundef %154, double %157, double %158)
          to label %159 unwind label %231

159:                                              ; preds = %156
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %26, float noundef -2.000000e+01, float noundef 1.000000e+01, float noundef %indvars.iv)
          to label %160 unwind label %229

160:                                              ; preds = %159
  %161 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %162 unwind label %229

162:                                              ; preds = %160
  %163 = extractvalue { double, double } %161, 0
  %164 = extractvalue { double, double } %161, 1
  %165 = load double, ptr %26, align 16
  %166 = load double, ptr %125, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %25, ptr noundef nonnull %152, double %165, double %166, double %163, double %164, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %167 unwind label %229

167:                                              ; preds = %162
  %168 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 16 dereferenceable(256) %25, i32 noundef 0)
          to label %169 unwind label %233

169:                                              ; preds = %167
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %25) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %25) #9
  %170 = load ptr, ptr %123, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %27) #9
  %171 = invoke noundef ptr @_ZN3JPH19ScaledShapeSettingsnwEm(i64 noundef 96)
          to label %172 unwind label %236

172:                                              ; preds = %169
  %173 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %indvars.iv.sroa.phi)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %28, float noundef 2.500000e-01, float noundef 5.000000e-01, float noundef 1.500000e+00)
          to label %174 unwind label %238

174:                                              ; preds = %172
  %175 = load double, ptr %28, align 16
  %176 = load double, ptr %126, align 8
  invoke void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %171, ptr noundef %173, double %175, double %176)
          to label %177 unwind label %238

177:                                              ; preds = %174
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %29, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef %indvars.iv)
          to label %178 unwind label %236

178:                                              ; preds = %177
  %179 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %180 unwind label %236

180:                                              ; preds = %178
  %181 = extractvalue { double, double } %179, 0
  %182 = extractvalue { double, double } %179, 1
  %183 = load double, ptr %29, align 16
  %184 = load double, ptr %127, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %27, ptr noundef nonnull %171, double %183, double %184, double %181, double %182, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %185 unwind label %236

185:                                              ; preds = %180
  %186 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %170, ptr noundef nonnull align 16 dereferenceable(256) %27, i32 noundef 0)
          to label %187 unwind label %240

187:                                              ; preds = %185
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %27) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %27) #9
  %188 = load ptr, ptr %123, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %30) #9
  %189 = invoke noundef ptr @_ZN3JPH19ScaledShapeSettingsnwEm(i64 noundef 96)
          to label %190 unwind label %243

190:                                              ; preds = %187
  %191 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %indvars.iv.sroa.phi)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %31, float noundef -2.500000e-01, float noundef 5.000000e-01, float noundef -1.500000e+00)
          to label %192 unwind label %245

192:                                              ; preds = %190
  %193 = load double, ptr %31, align 16
  %194 = load double, ptr %128, align 8
  invoke void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %189, ptr noundef %191, double %193, double %194)
          to label %195 unwind label %245

195:                                              ; preds = %192
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %32, float noundef 2.000000e+01, float noundef 1.000000e+01, float noundef %indvars.iv)
          to label %196 unwind label %243

196:                                              ; preds = %195
  %197 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %198 unwind label %243

198:                                              ; preds = %196
  %199 = extractvalue { double, double } %197, 0
  %200 = extractvalue { double, double } %197, 1
  %201 = load double, ptr %32, align 16
  %202 = load double, ptr %129, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %30, ptr noundef nonnull %189, double %201, double %202, double %199, double %200, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %203 unwind label %243

203:                                              ; preds = %198
  %204 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %188, ptr noundef nonnull align 16 dereferenceable(256) %30, i32 noundef 0)
          to label %205 unwind label %247

205:                                              ; preds = %203
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %30) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %30) #9
  %206 = load ptr, ptr %123, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %33) #9
  %207 = invoke noundef ptr @_ZN3JPH19ScaledShapeSettingsnwEm(i64 noundef 96)
          to label %208 unwind label %250

208:                                              ; preds = %205
  %209 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %indvars.iv.sroa.phi)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %34, float noundef -2.500000e-01, float noundef 5.000000e-01, float noundef 1.500000e+00)
          to label %210 unwind label %252

210:                                              ; preds = %208
  %211 = load double, ptr %34, align 16
  %212 = load double, ptr %130, align 8
  invoke void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %207, ptr noundef %209, double %211, double %212)
          to label %213 unwind label %252

213:                                              ; preds = %210
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %35, float noundef 4.000000e+01, float noundef 1.000000e+01, float noundef %indvars.iv)
          to label %214 unwind label %250

214:                                              ; preds = %213
  %215 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %216 unwind label %250

216:                                              ; preds = %214
  %217 = extractvalue { double, double } %215, 0
  %218 = extractvalue { double, double } %215, 1
  %219 = load double, ptr %35, align 16
  %220 = load double, ptr %131, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %33, ptr noundef nonnull %207, double %219, double %220, double %217, double %218, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %221 unwind label %250

221:                                              ; preds = %216
  %222 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %206, ptr noundef nonnull align 16 dereferenceable(256) %33, i32 noundef 0)
          to label %223 unwind label %254

223:                                              ; preds = %221
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %33) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %33) #9
  br i1 %138, label %137, label %132, !llvm.loop !18

224:                                              ; preds = %143, %141, %137
  %225 = landingpad { ptr, i32 }
          cleanup
  br label %228

226:                                              ; preds = %148
  %227 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %23) #9
  br label %228

228:                                              ; preds = %226, %224
  %.pn63 = phi { ptr, i32 } [ %227, %226 ], [ %225, %224 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %23) #9
  br label %.loopexit.loopexit

229:                                              ; preds = %162, %160, %159, %150
  %230 = landingpad { ptr, i32 }
          cleanup
  br label %235

231:                                              ; preds = %156, %153
  %232 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef %152) #9
  br label %235

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

235:                                              ; preds = %233, %231, %229
  %.pn65 = phi { ptr, i32 } [ %234, %233 ], [ %230, %229 ], [ %232, %231 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %25) #9
  br label %.loopexit.loopexit

236:                                              ; preds = %180, %178, %177, %169
  %237 = landingpad { ptr, i32 }
          cleanup
  br label %242

238:                                              ; preds = %174, %172
  %239 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef %171) #9
  br label %242

240:                                              ; preds = %185
  %241 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %27) #9
  br label %242

242:                                              ; preds = %240, %238, %236
  %.pn67 = phi { ptr, i32 } [ %241, %240 ], [ %237, %236 ], [ %239, %238 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %27) #9
  br label %.loopexit.loopexit

243:                                              ; preds = %198, %196, %195, %187
  %244 = landingpad { ptr, i32 }
          cleanup
  br label %249

245:                                              ; preds = %192, %190
  %246 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef %189) #9
  br label %249

247:                                              ; preds = %203
  %248 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %30) #9
  br label %249

249:                                              ; preds = %247, %245, %243
  %.pn69 = phi { ptr, i32 } [ %248, %247 ], [ %244, %243 ], [ %246, %245 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %30) #9
  br label %.loopexit.loopexit

250:                                              ; preds = %216, %214, %213, %205
  %251 = landingpad { ptr, i32 }
          cleanup
  br label %256

252:                                              ; preds = %210, %208
  %253 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef %207) #9
  br label %256

254:                                              ; preds = %221
  %255 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %33) #9
  br label %256

256:                                              ; preds = %254, %252, %250
  %.pn71 = phi { ptr, i32 } [ %255, %254 ], [ %251, %250 ], [ %253, %252 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %33) #9
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %256, %249, %242, %235, %228
  %.pn71.pn = phi { ptr, i32 } [ %.pn71, %256 ], [ %.pn69, %249 ], [ %.pn67, %242 ], [ %.pn65, %235 ], [ %.pn63, %228 ]
  %257 = getelementptr inbounds i8, ptr %22, i64 8
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %257) #9
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader81, %.thread147, %.loopexit.loopexit, %.thread
  %.pn71.pn.pn = phi { ptr, i32 } [ %134, %.thread ], [ %.pn71.pn, %.loopexit.loopexit ], [ %lpad.thr_comm, %.thread147 ], [ %.pn61146, %.preheader81 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #9
  br label %258

258:                                              ; preds = %.loopexit, %114, %108
  %.pn75 = phi { ptr, i32 } [ %115, %114 ], [ %.pn71.pn.pn, %.loopexit ], [ %.pn.pn, %108 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #9
  br label %259

259:                                              ; preds = %258, %99, %97, %95, %93, %91, %89, %87, %85
  %.pn75.pn = phi { ptr, i32 } [ %.pn75, %258 ], [ %100, %99 ], [ %98, %97 ], [ %96, %95 ], [ %94, %93 ], [ %92, %91 ], [ %90, %89 ], [ %88, %87 ], [ %86, %85 ]
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  br label %260

260:                                              ; preds = %259, %83, %81, %79, %77
  %.pn75.pn.pn = phi { ptr, i32 } [ %.pn75.pn, %259 ], [ %84, %83 ], [ %82, %81 ], [ %80, %79 ], [ %78, %77 ]
  call void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #9
  resume { ptr, i32 } %.pn75.pn.pn
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #4 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) local_unnamed_addr #6 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4410sRotationYEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, float noundef) local_unnamed_addr #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4410sRotationZEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, float noundef) local_unnamed_addr #6 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH23ConvexHullShapeSettingsC2ERKNS_5ArrayINS_4Vec3ENS_12STLAllocatorIS2_EEEEfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(24), float noundef, ptr noundef) unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96), ptr noundef, double, double) unnamed_addr #1 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 24}
!9 = !{!"_ZTS4Test", !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !11, i64 48, !12, i64 56}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!"bool", !6, 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", !10, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !10, i64 48}
!14 = !{!"long", !6, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !10, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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