; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/ConvexCollision (ConvexHullShrinkTest)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Color" = type { %union.anon.28 }
%union.anon.28 = type { i32 }
%"class.JPH::ConvexHullShapeSettings" = type <{ %"class.JPH::ConvexShapeSettings.base", [4 x i8], %"class.JPH::Array.4", float, float, float, [4 x i8] }>
%"class.JPH::ConvexShapeSettings.base" = type <{ %"class.JPH::ShapeSettings", %"class.JPH::RefConst", float }>
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Result" = type <{ %union.anon.9, i8, [7 x i8] }>
%union.anon.9 = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.12 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.12 = type { i64, [8 x i8] }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Array.4" = type { i64, i64, ptr }
%"class.JPH::RefConst.13" = type { ptr }
%"class.JPH::ConvexShape::SupportBuffer" = type { [4160 x i8] }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"struct.JPH::AddConvexRadius" = type <{ ptr, float, [4 x i8] }>
%class.ConvexHullShrinkTest = type { %class.Test, %"class.JPH::Array", i64 }
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.JPH::Array" = type { i64, i64, ptr }

@_ZN3JPH5TraceE = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZN3JPH5Color7sPurpleE = external global %"class.JPH::Color", align 4

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20ConvexHullShrinkTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 16 dereferenceable(80) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.JPH::ConvexHullShapeSettings", align 8
  %7 = alloca %"class.JPH::Result", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.JPH::RefConst.13", align 8
  %12 = alloca float, align 4
  %13 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %14 = alloca ptr, align 8
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"struct.JPH::AddConvexRadius", align 8
  %17 = alloca float, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca float, align 4
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Color", align 4
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Color", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %34 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %35 = getelementptr inbounds %class.ConvexHullShrinkTest, ptr %34, i32 0, i32 2
  %36 = load i64, ptr %35, align 8, !tbaa !9
  %37 = getelementptr inbounds %class.ConvexHullShrinkTest, ptr %34, i32 0, i32 1
  %38 = call noundef i64 @_ZNK3JPH5ArrayINS0_INS_4Vec3ENS_12STLAllocatorIS1_EEEENS2_IS4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37)
  %39 = icmp ult i64 %36, %38
  br i1 %39, label %40, label %45

40:                                               ; preds = %2
  %41 = getelementptr inbounds %class.ConvexHullShrinkTest, ptr %34, i32 0, i32 1
  %42 = getelementptr inbounds %class.ConvexHullShrinkTest, ptr %34, i32 0, i32 2
  %43 = load i64, ptr %42, align 8, !tbaa !9
  %44 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_INS_4Vec3ENS_12STLAllocatorIS1_EEEENS2_IS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %43)
  br label %48

45:                                               ; preds = %2
  %46 = getelementptr inbounds %class.ConvexHullShrinkTest, ptr %34, i32 0, i32 1
  %47 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_INS_4Vec3ENS_12STLAllocatorIS1_EEEENS2_IS4_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %46)
  br label %48

48:                                               ; preds = %45, %40
  %49 = phi ptr [ %44, %40 ], [ %47, %45 ]
  store ptr %49, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %class.ConvexHullShrinkTest, ptr %34, i32 0, i32 2
  %51 = load i64, ptr %50, align 8, !tbaa !9
  %52 = add i64 %51, 1
  store i64 %52, ptr %50, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 120, ptr %6) #9
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3JPH23ConvexHullShapeSettingsC2ERKNS_5ArrayINS_4Vec3ENS_12STLAllocatorIS2_EEEEfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(120) %6, ptr noundef nonnull align 8 dereferenceable(24) %53, float noundef 0x3FA99999A0000000, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #9
  invoke void @_ZNK3JPH23ConvexHullShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8 %7, ptr noundef nonnull align 8 dereferenceable(120) %6)
          to label %54 unwind label %66

54:                                               ; preds = %48
  %55 = invoke noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE7IsValidEv(ptr noundef nonnull align 8 dereferenceable(33) %7)
          to label %56 unwind label %70

56:                                               ; preds = %54
  br i1 %55, label %74, label %57

57:                                               ; preds = %56
  %58 = load ptr, ptr @_ZN3JPH5TraceE, align 8, !tbaa !5
  %59 = getelementptr inbounds %class.ConvexHullShrinkTest, ptr %34, i32 0, i32 2
  %60 = load i64, ptr %59, align 8, !tbaa !9
  %61 = sub i64 %60, 1
  %62 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(33) %7)
          to label %63 unwind label %70

63:                                               ; preds = %57
  %64 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %62) #9
  invoke void (ptr, ...) %58(ptr noundef @.str.2, i64 noundef %61, ptr noundef %64)
          to label %65 unwind label %70

65:                                               ; preds = %63
  store i32 1, ptr %10, align 4
  br label %296

66:                                               ; preds = %48
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %8, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %9, align 4
  br label %302

70:                                               ; preds = %63, %57, %54
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %8, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %9, align 4
  br label %301

74:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %7)
          to label %76 unwind label %126

76:                                               ; preds = %74
  %77 = invoke noundef ptr @_ZN3JPH10StaticCastINS_15ConvexHullShapeENS_5ShapeETnNSt9enable_ifIXoosr3stdE12is_base_of_vIT_T0_Esr3stdE12is_base_of_vIS5_S4_EEbE4typeELb1EEEPS4_RKNS_3RefIS5_EE(ptr noundef nonnull align 8 dereferenceable(8) %75)
          to label %78 unwind label %126

78:                                               ; preds = %76
  invoke void @_ZN3JPH8RefConstINS_15ConvexHullShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef %77)
          to label %79 unwind label %126

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %80 = invoke noundef ptr @_ZNK3JPH8RefConstINS_15ConvexHullShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %81 unwind label %130

81:                                               ; preds = %79
  %82 = invoke noundef float @_ZNK3JPH15ConvexHullShape15GetConvexRadiusEv(ptr noundef nonnull align 16 dereferenceable(272) %80)
          to label %83 unwind label %130

83:                                               ; preds = %81
  store float %82, ptr %12, align 4, !tbaa !20
  %84 = load float, ptr %12, align 4, !tbaa !20
  %85 = fcmp ogt float %84, 0.000000e+00
  br i1 %85, label %86, label %295

86:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4160, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %87 = invoke noundef ptr @_ZNK3JPH8RefConstINS_15ConvexHullShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %88 unwind label %134

88:                                               ; preds = %86
  %89 = invoke { double, double } @_ZN3JPH4Vec34sOneEv()
          to label %90 unwind label %134

90:                                               ; preds = %88
  %91 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %92 = getelementptr inbounds %union.anon, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds { double, double }, ptr %92, i32 0, i32 0
  %94 = extractvalue { double, double } %89, 0
  store double %94, ptr %93, align 16
  %95 = getelementptr inbounds { double, double }, ptr %92, i32 0, i32 1
  %96 = extractvalue { double, double } %89, 1
  store double %96, ptr %95, align 8
  %97 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %98 = load double, ptr %97, align 16
  %99 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %100 = load double, ptr %99, align 8
  %101 = invoke noundef ptr @_ZNK3JPH15ConvexHullShape18GetSupportFunctionENS_11ConvexShape12ESupportModeERNS1_13SupportBufferENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(272) %87, i32 noundef 0, ptr noundef nonnull align 16 dereferenceable(4160) %13, double %98, double %100)
          to label %102 unwind label %134

102:                                              ; preds = %90
  store ptr %101, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #9
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = load float, ptr %12, align 4, !tbaa !20
  invoke void @_ZN3JPH15AddConvexRadiusINS_11ConvexShape7SupportEEC2ERKS2_f(ptr noundef nonnull align 8 dereferenceable(12) %16, ptr noundef nonnull align 8 dereferenceable(8) %103, float noundef %104)
          to label %105 unwind label %138

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store float 0xC7EFFFFFE0000000, ptr %17, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 0, ptr %18, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #9
  %106 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %107 unwind label %142

107:                                              ; preds = %105
  %108 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %109 = getelementptr inbounds %union.anon, ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds { double, double }, ptr %109, i32 0, i32 0
  %111 = extractvalue { double, double } %106, 0
  store double %111, ptr %110, align 16
  %112 = getelementptr inbounds { double, double }, ptr %109, i32 0, i32 1
  %113 = extractvalue { double, double } %106, 1
  store double %113, ptr %112, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %114 = invoke noundef ptr @_ZNK3JPH8RefConstINS_15ConvexHullShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %115 unwind label %146

115:                                              ; preds = %107
  %116 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3JPH15ConvexHullShape9GetPlanesEv(ptr noundef nonnull align 16 dereferenceable(272) %114)
          to label %117 unwind label %146

117:                                              ; preds = %115
  store ptr %116, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store i32 0, ptr %21, align 4, !tbaa !21
  br label %118

118:                                              ; preds = %207, %117
  %119 = load i32, ptr %21, align 4, !tbaa !21
  %120 = load ptr, ptr %20, align 8, !tbaa !5
  %121 = invoke noundef i64 @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %120)
          to label %122 unwind label %150

122:                                              ; preds = %118
  %123 = trunc i64 %121 to i32
  %124 = icmp slt i32 %119, %123
  br i1 %124, label %154, label %125

125:                                              ; preds = %122
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %213

126:                                              ; preds = %78, %76, %74
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %8, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %9, align 4
  br label %300

130:                                              ; preds = %81, %79
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %8, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %9, align 4
  br label %299

134:                                              ; preds = %90, %88, %86
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %8, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %9, align 4
  br label %294

138:                                              ; preds = %102
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %8, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %9, align 4
  br label %293

142:                                              ; preds = %105
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %8, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %9, align 4
  br label %292

146:                                              ; preds = %271, %259, %247, %245, %237, %227, %218, %115, %107
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %8, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %9, align 4
  br label %291

150:                                              ; preds = %118
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %8, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %9, align 4
  br label %212

154:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %155 = load ptr, ptr %20, align 8, !tbaa !5
  %156 = load i32, ptr %21, align 4, !tbaa !21
  %157 = sext i32 %156 to i64
  %158 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %155, i64 noundef %157)
          to label %159 unwind label %194

159:                                              ; preds = %154
  store ptr %158, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  %160 = load ptr, ptr %22, align 8, !tbaa !5
  %161 = invoke { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %160)
          to label %162 unwind label %198

162:                                              ; preds = %159
  %163 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %164 = getelementptr inbounds %union.anon, ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds { double, double }, ptr %164, i32 0, i32 0
  %166 = extractvalue { double, double } %161, 0
  store double %166, ptr %165, align 16
  %167 = getelementptr inbounds { double, double }, ptr %164, i32 0, i32 1
  %168 = extractvalue { double, double } %161, 1
  store double %168, ptr %167, align 8
  %169 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %170 = load double, ptr %169, align 16
  %171 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %172 = load double, ptr %171, align 8
  %173 = invoke { double, double } @_ZNK3JPH15AddConvexRadiusINS_11ConvexShape7SupportEE10GetSupportENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(12) %16, double %170, double %172)
          to label %174 unwind label %198

174:                                              ; preds = %162
  %175 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %176 = getelementptr inbounds %union.anon, ptr %175, i32 0, i32 0
  %177 = getelementptr inbounds { double, double }, ptr %176, i32 0, i32 0
  %178 = extractvalue { double, double } %173, 0
  store double %178, ptr %177, align 16
  %179 = getelementptr inbounds { double, double }, ptr %176, i32 0, i32 1
  %180 = extractvalue { double, double } %173, 1
  store double %180, ptr %179, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  %181 = load ptr, ptr %22, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !23
  %182 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %183 = load double, ptr %182, align 16
  %184 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %185 = load double, ptr %184, align 8
  %186 = invoke noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %181, double %183, double %185)
          to label %187 unwind label %202

187:                                              ; preds = %174
  store float %186, ptr %25, align 4, !tbaa !20
  %188 = load float, ptr %25, align 4, !tbaa !20
  %189 = load float, ptr %17, align 4, !tbaa !20
  %190 = fcmp ogt float %188, %189
  br i1 %190, label %191, label %206

191:                                              ; preds = %187
  %192 = load float, ptr %25, align 4, !tbaa !20
  store float %192, ptr %17, align 4, !tbaa !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !23
  %193 = load i32, ptr %21, align 4, !tbaa !21
  store i32 %193, ptr %18, align 4, !tbaa !21
  br label %206

194:                                              ; preds = %154
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %8, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %9, align 4
  br label %211

198:                                              ; preds = %162, %159
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %8, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %9, align 4
  br label %210

202:                                              ; preds = %174
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %8, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %210

206:                                              ; preds = %191, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %207

207:                                              ; preds = %206
  %208 = load i32, ptr %21, align 4, !tbaa !21
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %21, align 4, !tbaa !21
  br label %118, !llvm.loop !25

210:                                              ; preds = %202, %198
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  br label %211

211:                                              ; preds = %210, %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %212

212:                                              ; preds = %211, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %291

213:                                              ; preds = %125
  %214 = load float, ptr %17, align 4, !tbaa !20
  %215 = getelementptr inbounds %"class.JPH::ConvexHullShapeSettings", ptr %6, i32 0, i32 4
  %216 = load float, ptr %215, align 4, !tbaa !27
  %217 = fcmp ogt float %214, %216
  br i1 %217, label %218, label %290

218:                                              ; preds = %213
  %219 = load ptr, ptr @_ZN3JPH5TraceE, align 8, !tbaa !5
  %220 = getelementptr inbounds %class.ConvexHullShrinkTest, ptr %34, i32 0, i32 2
  %221 = load i64, ptr %220, align 8, !tbaa !9
  %222 = sub i64 %221, 1
  %223 = load float, ptr %12, align 4, !tbaa !20
  %224 = fpext float %223 to double
  %225 = load float, ptr %17, align 4, !tbaa !20
  %226 = fpext float %225 to double
  invoke void (ptr, ...) %219(ptr noundef @.str.3, i64 noundef %222, double noundef %224, double noundef %226)
          to label %227 unwind label %146

227:                                              ; preds = %218
  %228 = getelementptr inbounds %class.Test, ptr %34, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !39
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %19, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 @_ZN3JPH5Color7sPurpleE, i64 4, i1 false), !tbaa.struct !40
  %230 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %231 = load double, ptr %230, align 16
  %232 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %233 = load double, ptr %232, align 8
  %234 = getelementptr inbounds %"class.JPH::Color", ptr %28, i32 0, i32 0
  %235 = getelementptr inbounds %union.anon.28, ptr %234, i32 0, i32 0
  %236 = load i32, ptr %235, align 4
  invoke void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %229, double %231, double %233, i32 %236, float noundef 0x3FB99999A0000000)
          to label %237 unwind label %146

237:                                              ; preds = %227
  %238 = getelementptr inbounds %class.Test, ptr %34, i32 0, i32 4
  %239 = load ptr, ptr %238, align 8, !tbaa !39
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %19, i64 16, i1 false), !tbaa.struct !23
  %240 = load float, ptr %17, align 4, !tbaa !20
  %241 = load ptr, ptr %20, align 8, !tbaa !5
  %242 = load i32, ptr %18, align 4, !tbaa !21
  %243 = sext i32 %242 to i64
  %244 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %241, i64 noundef %243)
          to label %245 unwind label %146

245:                                              ; preds = %237
  %246 = invoke { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %244)
          to label %247 unwind label %146

247:                                              ; preds = %245
  %248 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %249 = getelementptr inbounds %union.anon, ptr %248, i32 0, i32 0
  %250 = getelementptr inbounds { double, double }, ptr %249, i32 0, i32 0
  %251 = extractvalue { double, double } %246, 0
  store double %251, ptr %250, align 16
  %252 = getelementptr inbounds { double, double }, ptr %249, i32 0, i32 1
  %253 = extractvalue { double, double } %246, 1
  store double %253, ptr %252, align 8
  %254 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %255 = load double, ptr %254, align 16
  %256 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %257 = load double, ptr %256, align 8
  %258 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %240, double %255, double %257)
          to label %259 unwind label %146

259:                                              ; preds = %247
  %260 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %261 = getelementptr inbounds %union.anon, ptr %260, i32 0, i32 0
  %262 = getelementptr inbounds { double, double }, ptr %261, i32 0, i32 0
  %263 = extractvalue { double, double } %258, 0
  store double %263, ptr %262, align 16
  %264 = getelementptr inbounds { double, double }, ptr %261, i32 0, i32 1
  %265 = extractvalue { double, double } %258, 1
  store double %265, ptr %264, align 8
  %266 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %267 = load double, ptr %266, align 16
  %268 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %269 = load double, ptr %268, align 8
  %270 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %267, double %269)
          to label %271 unwind label %146

271:                                              ; preds = %259
  %272 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %273 = getelementptr inbounds %union.anon, ptr %272, i32 0, i32 0
  %274 = getelementptr inbounds { double, double }, ptr %273, i32 0, i32 0
  %275 = extractvalue { double, double } %270, 0
  store double %275, ptr %274, align 16
  %276 = getelementptr inbounds { double, double }, ptr %273, i32 0, i32 1
  %277 = extractvalue { double, double } %270, 1
  store double %277, ptr %276, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 @_ZN3JPH5Color7sPurpleE, i64 4, i1 false), !tbaa.struct !40
  %278 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %279 = load double, ptr %278, align 16
  %280 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %281 = load double, ptr %280, align 8
  %282 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %283 = load double, ptr %282, align 16
  %284 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %285 = load double, ptr %284, align 8
  %286 = getelementptr inbounds %"class.JPH::Color", ptr %33, i32 0, i32 0
  %287 = getelementptr inbounds %union.anon.28, ptr %286, i32 0, i32 0
  %288 = load i32, ptr %287, align 4
  invoke void @_Z11DrawArrowSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorEf(ptr noundef %239, double %279, double %281, double %283, double %285, i32 %288, float noundef 0x3F847AE140000000)
          to label %289 unwind label %146

289:                                              ; preds = %271
  br label %290

290:                                              ; preds = %289, %213
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4160, ptr %13) #9
  br label %295

291:                                              ; preds = %212, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %292

292:                                              ; preds = %291, %142
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %293

293:                                              ; preds = %292, %138
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #9
  br label %294

294:                                              ; preds = %293, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4160, ptr %13) #9
  br label %299

295:                                              ; preds = %290, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @_ZN3JPH8RefConstINS_15ConvexHullShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  store i32 0, ptr %10, align 4
  br label %296

296:                                              ; preds = %295, %65
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %7) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #9
  call void @_ZN3JPH23ConvexHullShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %6) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  %297 = load i32, ptr %10, align 4
  switch i32 %297, label %308 [
    i32 0, label %298
    i32 1, label %298
  ]

298:                                              ; preds = %296, %296
  ret void

299:                                              ; preds = %294, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @_ZN3JPH8RefConstINS_15ConvexHullShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br label %300

300:                                              ; preds = %299, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %301

301:                                              ; preds = %300, %70
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %7) #9
  br label %302

302:                                              ; preds = %301, %66
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #9
  call void @_ZN3JPH23ConvexHullShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %6) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  br label %303

303:                                              ; preds = %302
  %304 = load ptr, ptr %8, align 8
  %305 = load i32, ptr %9, align 4
  %306 = insertvalue { ptr, i32 } poison, ptr %304, 0
  %307 = insertvalue { ptr, i32 } %306, i32 %305, 1
  resume { ptr, i32 } %307

308:                                              ; preds = %296
  unreachable
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_INS_4Vec3ENS_12STLAllocatorIS1_EEEENS2_IS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

declare void @_ZNK3JPH23ConvexHullShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8, ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE7IsValidEv(ptr noundef nonnull align 8 dereferenceable(33)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(33)) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH10StaticCastINS_15ConvexHullShapeENS_5ShapeETnNSt9enable_ifIXoosr3stdE12is_base_of_vIT_T0_Esr3stdE12is_base_of_vIS5_S4_EEbE4typeELb1EEEPS4_RKNS_3RefIS5_EE(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33)) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH15ConvexHullShape15GetConvexRadiusEv(ptr noundef nonnull align 16 dereferenceable(272)) #5 align 2

declare noundef ptr @_ZNK3JPH15ConvexHullShape18GetSupportFunctionENS_11ConvexShape12ESupportModeERNS1_13SupportBufferENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(272), i32 noundef, ptr noundef nonnull align 16 dereferenceable(4160), double, double) unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH15AddConvexRadiusINS_11ConvexShape7SupportEEC2ERKS2_f(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), float noundef) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3JPH15ConvexHullShape9GetPlanesEv(ptr noundef nonnull align 16 dereferenceable(272)) #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH15AddConvexRadiusINS_11ConvexShape7SupportEE10GetSupportENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(12), double, double) #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef, double, double, i32, float noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11DrawArrowSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorEf(ptr noundef, double, double, double, double, i32, float noundef) #3

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) #7

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH23ConvexHullShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #2 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 = { 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 #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !15, i64 136}
!10 = !{!"_ZTS20ConvexHullShrinkTest", !11, i64 0, !19, i64 112, !15, i64 136}
!11 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !13, i64 56}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !14, i64 0}
!14 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !6, i64 48}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !15, i64 8}
!18 = !{!"float", !7, i64 0}
!19 = !{!"_ZTSN3JPH5ArrayINS0_INS_4Vec3ENS_12STLAllocatorIS1_EEEENS2_IS4_EEEE", !15, i64 0, !15, i64 8, !6, i64 16}
!20 = !{!18, !18, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{i64 0, i64 16, !24}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!28, !18, i64 108}
!28 = !{!"_ZTSN3JPH23ConvexHullShapeSettingsE", !29, i64 0, !38, i64 80, !18, i64 104, !18, i64 108, !18, i64 112}
!29 = !{!"_ZTSN3JPH19ConvexShapeSettingsE", !30, i64 0, !37, i64 64, !18, i64 72}
!30 = !{!"_ZTSN3JPH13ShapeSettingsE", !31, i64 0, !32, i64 8, !15, i64 16, !35, i64 24}
!31 = !{!"_ZTSN3JPH18SerializableObjectE"}
!32 = !{!"_ZTSN3JPH9RefTargetINS_13ShapeSettingsEEE", !33, i64 0}
!33 = !{!"_ZTSSt6atomicIjE", !34, i64 0}
!34 = !{!"_ZTSSt13__atomic_baseIjE", !22, i64 0}
!35 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEEE", !7, i64 0, !36, i64 32}
!36 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEE6EStateE", !7, i64 0}
!37 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !6, i64 0}
!38 = !{!"_ZTSN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEE", !15, i64 0, !15, i64 8, !6, i64 16}
!39 = !{!11, !6, i64 32}
!40 = !{i64 0, i64 4, !24}


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

%"class.JPH::Color" = type { %union.anon.28 }
%union.anon.28 = type { i32 }
%"class.JPH::ConvexHullShapeSettings" = type <{ %"class.JPH::ConvexShapeSettings.base", [4 x i8], %"class.JPH::Array.4", float, float, float, [4 x i8] }>
%"class.JPH::ConvexShapeSettings.base" = type <{ %"class.JPH::ShapeSettings", %"class.JPH::RefConst", float }>
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Result" = type <{ %union.anon.9, i8, [7 x i8] }>
%union.anon.9 = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.12 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.12 = type { i64, [8 x i8] }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Array.4" = type { i64, i64, ptr }
%"class.JPH::RefConst.13" = type { ptr }
%"class.JPH::ConvexShape::SupportBuffer" = type { [4160 x i8] }
%"struct.JPH::AddConvexRadius" = type <{ ptr, float, [4 x i8] }>
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }

@_ZN3JPH5TraceE = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZN3JPH5Color7sPurpleE = external local_unnamed_addr global %"class.JPH::Color", align 4

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20ConvexHullShrinkTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr nocapture noundef nonnull readnone align 16 dereferenceable(80) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.JPH::ConvexHullShapeSettings", align 8
  %4 = alloca %"class.JPH::Result", align 8
  %5 = alloca %"class.JPH::RefConst.13", align 8
  %6 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %7 = alloca %"struct.JPH::AddConvexRadius", align 8
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = getelementptr inbounds i8, ptr %0, i64 136
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 112
  %12 = tail call noundef i64 @_ZNK3JPH5ArrayINS0_INS_4Vec3ENS_12STLAllocatorIS1_EEEENS2_IS4_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %13 = icmp ult i64 %10, %12
  br i1 %13, label %14, label %17

14:                                               ; preds = %2
  %15 = load i64, ptr %9, align 8, !tbaa !5
  %16 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_INS_4Vec3ENS_12STLAllocatorIS1_EEEENS2_IS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %15)
  br label %19

17:                                               ; preds = %2
  %18 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_INS_4Vec3ENS_12STLAllocatorIS1_EEEENS2_IS4_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  br label %19

19:                                               ; preds = %17, %14
  %20 = phi ptr [ %16, %14 ], [ %18, %17 ]
  %21 = load i64, ptr %9, align 8, !tbaa !5
  %22 = add i64 %21, 1
  store i64 %22, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %3) #8
  call void @_ZN3JPH23ConvexHullShapeSettingsC2ERKNS_5ArrayINS_4Vec3ENS_12STLAllocatorIS2_EEEEfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(120) %3, ptr noundef nonnull align 8 dereferenceable(24) %20, float noundef 0x3FA99999A0000000, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #8
  invoke void @_ZNK3JPH23ConvexHullShapeSettings6CreateEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Result") align 8 %4, ptr noundef nonnull align 8 dereferenceable(120) %3)
          to label %23 unwind label %32

23:                                               ; preds = %19
  %24 = call noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE7IsValidEv(ptr noundef nonnull align 8 dereferenceable(33) %4)
  br i1 %24, label %36, label %25

25:                                               ; preds = %23
  %26 = load ptr, ptr @_ZN3JPH5TraceE, align 8, !tbaa !19
  %27 = load i64, ptr %9, align 8, !tbaa !5
  %28 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(33) %4)
          to label %29 unwind label %34

29:                                               ; preds = %25
  %30 = add i64 %27, -1
  %31 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  invoke void (ptr, ...) %26(ptr noundef nonnull @.str.2, i64 noundef %30, ptr noundef %31)
          to label %129 unwind label %34

32:                                               ; preds = %19
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %132

34:                                               ; preds = %29, %25
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %131

36:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %4)
          to label %38 unwind label %67

38:                                               ; preds = %36
  %39 = invoke noundef ptr @_ZN3JPH10StaticCastINS_15ConvexHullShapeENS_5ShapeETnNSt9enable_ifIXoosr3stdE12is_base_of_vIT_T0_Esr3stdE12is_base_of_vIS5_S4_EEbE4typeELb1EEEPS4_RKNS_3RefIS5_EE(ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %40 unwind label %67

40:                                               ; preds = %38
  invoke void @_ZN3JPH8RefConstINS_15ConvexHullShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %39)
          to label %41 unwind label %67

41:                                               ; preds = %40
  %42 = call noundef ptr @_ZNK3JPH8RefConstINS_15ConvexHullShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %43 = call noundef float @_ZNK3JPH15ConvexHullShape15GetConvexRadiusEv(ptr noundef nonnull align 16 dereferenceable(272) %42)
  %44 = fcmp ogt float %43, 0.000000e+00
  br i1 %44, label %45, label %128

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4160, ptr nonnull %6) #8
  %46 = call noundef ptr @_ZNK3JPH8RefConstINS_15ConvexHullShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %47 = invoke { double, double } @_ZN3JPH4Vec34sOneEv()
          to label %48 unwind label %69

48:                                               ; preds = %45
  %49 = extractvalue { double, double } %47, 0
  %50 = extractvalue { double, double } %47, 1
  %51 = invoke noundef ptr @_ZNK3JPH15ConvexHullShape18GetSupportFunctionENS_11ConvexShape12ESupportModeERNS1_13SupportBufferENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(272) %46, i32 noundef 0, ptr noundef nonnull align 16 dereferenceable(4160) %6, double %49, double %50)
          to label %52 unwind label %69

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  call void @_ZN3JPH15AddConvexRadiusINS_11ConvexShape7SupportEEC2ERKS2_f(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(8) %51, float noundef %43)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  %53 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %54 unwind label %71

54:                                               ; preds = %52
  %55 = extractvalue { double, double } %53, 0
  store double %55, ptr %8, align 16
  %56 = getelementptr inbounds i8, ptr %8, i64 8
  %57 = extractvalue { double, double } %53, 1
  store double %57, ptr %56, align 8
  %58 = call noundef ptr @_ZNK3JPH8RefConstINS_15ConvexHullShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %59 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3JPH15ConvexHullShape9GetPlanesEv(ptr noundef nonnull align 16 dereferenceable(272) %58)
  %60 = call noundef i64 @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %59)
  %61 = trunc i64 %60 to i32
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %96
  %63 = sext i32 %.151 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %54
  %.sroa.27.0.copyload = phi double [ %57, %54 ], [ %.sroa.210.0.copyload78, %._crit_edge.loopexit ]
  %.sroa.06.0.copyload = phi double [ %55, %54 ], [ %.sroa.09.0.copyload75, %._crit_edge.loopexit ]
  %.050.lcssa = phi i64 [ 0, %54 ], [ %63, %._crit_edge.loopexit ]
  %.048.lcssa = phi float [ 0xC7EFFFFFE0000000, %54 ], [ %.149, %._crit_edge.loopexit ]
  %64 = getelementptr inbounds i8, ptr %3, i64 108
  %65 = load float, ptr %64, align 4, !tbaa !20
  %66 = fcmp ogt float %.048.lcssa, %65
  br i1 %66, label %100, label %125

67:                                               ; preds = %40, %38, %36
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %130

69:                                               ; preds = %48, %45
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %127

71:                                               ; preds = %52
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %126

73:                                               ; preds = %122, %118, %114, %112, %109, %106, %100
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %126

.lr.ph:                                           ; preds = %54, %96
  %.sroa.210.0.copyload79 = phi double [ %.sroa.210.0.copyload78, %96 ], [ %57, %54 ]
  %.sroa.09.0.copyload76 = phi double [ %.sroa.09.0.copyload75, %96 ], [ %55, %54 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %96 ], [ 0, %54 ]
  %.04871 = phi float [ %.149, %96 ], [ 0xC7EFFFFFE0000000, %54 ]
  %.05070 = phi i32 [ %.151, %96 ], [ 0, %54 ]
  %75 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %indvars.iv)
          to label %76 unwind label %90

76:                                               ; preds = %.lr.ph
  %77 = invoke { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %75)
          to label %78 unwind label %92

78:                                               ; preds = %76
  %79 = extractvalue { double, double } %77, 0
  %80 = extractvalue { double, double } %77, 1
  %81 = invoke { double, double } @_ZNK3JPH15AddConvexRadiusINS_11ConvexShape7SupportEE10GetSupportENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(12) %7, double %79, double %80)
          to label %82 unwind label %92

82:                                               ; preds = %78
  %83 = extractvalue { double, double } %81, 0
  %84 = extractvalue { double, double } %81, 1
  %85 = invoke noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %75, double %83, double %84)
          to label %86 unwind label %94

86:                                               ; preds = %82
  %87 = fcmp ogt float %85, %.04871
  br i1 %87, label %88, label %96

88:                                               ; preds = %86
  store double %83, ptr %8, align 16
  store double %84, ptr %56, align 8, !tbaa !33
  %89 = trunc nuw nsw i64 %indvars.iv to i32
  br label %96

90:                                               ; preds = %.lr.ph
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %126

92:                                               ; preds = %78, %76
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %126

94:                                               ; preds = %82
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %126

96:                                               ; preds = %88, %86
  %.sroa.210.0.copyload78 = phi double [ %84, %88 ], [ %.sroa.210.0.copyload79, %86 ]
  %.sroa.09.0.copyload75 = phi double [ %83, %88 ], [ %.sroa.09.0.copyload76, %86 ]
  %.151 = phi i32 [ %89, %88 ], [ %.05070, %86 ]
  %.149 = phi float [ %85, %88 ], [ %.04871, %86 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %97 = call noundef i64 @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %59)
  %sext = shl i64 %97, 32
  %98 = ashr exact i64 %sext, 32
  %99 = icmp slt i64 %indvars.iv.next, %98
  br i1 %99, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !34

100:                                              ; preds = %._crit_edge
  %101 = load ptr, ptr @_ZN3JPH5TraceE, align 8, !tbaa !19
  %102 = load i64, ptr %9, align 8, !tbaa !5
  %103 = add i64 %102, -1
  %104 = fpext float %43 to double
  %105 = fpext float %.048.lcssa to double
  invoke void (ptr, ...) %101(ptr noundef nonnull @.str.3, i64 noundef %103, double noundef %104, double noundef %105)
          to label %106 unwind label %73

106:                                              ; preds = %100
  %107 = getelementptr inbounds i8, ptr %0, i64 32
  %108 = load ptr, ptr %107, align 8, !tbaa !36
  %.sroa.08.0.copyload = load i32, ptr @_ZN3JPH5Color7sPurpleE, align 4, !tbaa !33
  invoke void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %108, double %.sroa.06.0.copyload, double %.sroa.27.0.copyload, i32 %.sroa.08.0.copyload, float noundef 0x3FB99999A0000000)
          to label %109 unwind label %73

109:                                              ; preds = %106
  %110 = load ptr, ptr %107, align 8, !tbaa !36
  %111 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_5PlaneENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %.050.lcssa)
          to label %112 unwind label %73

112:                                              ; preds = %109
  %113 = invoke { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %111)
          to label %114 unwind label %73

114:                                              ; preds = %112
  %115 = extractvalue { double, double } %113, 0
  %116 = extractvalue { double, double } %113, 1
  %117 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %.048.lcssa, double %115, double %116)
          to label %118 unwind label %73

118:                                              ; preds = %114
  %119 = extractvalue { double, double } %117, 0
  %120 = extractvalue { double, double } %117, 1
  %121 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %119, double %120)
          to label %122 unwind label %73

122:                                              ; preds = %118
  %123 = extractvalue { double, double } %121, 0
  %124 = extractvalue { double, double } %121, 1
  %.sroa.0.0.copyload = load i32, ptr @_ZN3JPH5Color7sPurpleE, align 4, !tbaa !33
  invoke void @_Z11DrawArrowSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorEf(ptr noundef %110, double %.sroa.06.0.copyload, double %.sroa.27.0.copyload, double %123, double %124, i32 %.sroa.0.0.copyload, float noundef 0x3F847AE140000000)
          to label %125 unwind label %73

125:                                              ; preds = %122, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4160, ptr nonnull %6) #8
  br label %128

126:                                              ; preds = %73, %92, %94, %90, %71
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %72, %71 ], [ %74, %73 ], [ %91, %90 ], [ %95, %94 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  br label %127

127:                                              ; preds = %126, %69
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %126 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 4160, ptr nonnull %6) #8
  call void @_ZN3JPH8RefConstINS_15ConvexHullShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br label %130

128:                                              ; preds = %125, %41
  call void @_ZN3JPH8RefConstINS_15ConvexHullShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %129

129:                                              ; preds = %29, %128
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %4) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  call void @_ZN3JPH23ConvexHullShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %3) #8
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %3) #8
  ret void

130:                                              ; preds = %127, %67
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %127 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %131

131:                                              ; preds = %130, %34
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %130 ], [ %35, %34 ]
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %4) #8
  br label %132

132:                                              ; preds = %131, %32
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %131 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  call void @_ZN3JPH23ConvexHullShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %3) #8
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_INS_4Vec3ENS_12STLAllocatorIS1_EEEENS2_IS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

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

declare void @_ZNK3JPH23ConvexHullShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8, ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE7IsValidEv(ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE8GetErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH15ConvexHullShape15GetConvexRadiusEv(ptr noundef nonnull align 16 dereferenceable(272)) local_unnamed_addr #5 align 2

declare noundef ptr @_ZNK3JPH15ConvexHullShape18GetSupportFunctionENS_11ConvexShape12ESupportModeERNS1_13SupportBufferENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(272), i32 noundef, ptr noundef nonnull align 16 dereferenceable(4160), double, double) unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH15AddConvexRadiusINS_11ConvexShape7SupportEEC2ERKS2_f(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), float noundef) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3JPH15ConvexHullShape9GetPlanesEv(ptr noundef nonnull align 16 dereferenceable(272)) local_unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef, double, double, i32, float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11DrawArrowSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorEf(ptr noundef, double, double, double, double, i32, float noundef) local_unnamed_addr #3

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) local_unnamed_addr #7

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH23ConvexHullShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #2 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 = { 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 #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !14, i64 136}
!6 = !{!"_ZTS20ConvexHullShrinkTest", !7, i64 0, !18, i64 112, !14, i64 136}
!7 = !{!"_ZTS4Test", !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !11, i64 48, !12, i64 56}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !13, i64 0}
!13 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !8, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !8, i64 48}
!14 = !{!"long", !9, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !8, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !9, i64 0}
!18 = !{!"_ZTSN3JPH5ArrayINS0_INS_4Vec3ENS_12STLAllocatorIS1_EEEENS2_IS4_EEEE", !14, i64 0, !14, i64 8, !8, i64 16}
!19 = !{!8, !8, i64 0}
!20 = !{!21, !17, i64 108}
!21 = !{!"_ZTSN3JPH23ConvexHullShapeSettingsE", !22, i64 0, !32, i64 80, !17, i64 104, !17, i64 108, !17, i64 112}
!22 = !{!"_ZTSN3JPH19ConvexShapeSettingsE", !23, i64 0, !31, i64 64, !17, i64 72}
!23 = !{!"_ZTSN3JPH13ShapeSettingsE", !24, i64 0, !25, i64 8, !14, i64 16, !29, i64 24}
!24 = !{!"_ZTSN3JPH18SerializableObjectE"}
!25 = !{!"_ZTSN3JPH9RefTargetINS_13ShapeSettingsEEE", !26, i64 0}
!26 = !{!"_ZTSSt6atomicIjE", !27, i64 0}
!27 = !{!"_ZTSSt13__atomic_baseIjE", !28, i64 0}
!28 = !{!"int", !9, i64 0}
!29 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEEE", !9, i64 0, !30, i64 32}
!30 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEE6EStateE", !9, i64 0}
!31 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !8, i64 0}
!32 = !{!"_ZTSN3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEE", !14, i64 0, !14, i64 8, !8, i64 16}
!33 = !{!9, !9, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!7, !8, i64 32}


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