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

; 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.4 }
%union.anon.4 = type { i32 }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.std::basic_string_view" = type { i64, ptr }
%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 }

@_ZN3JPH5Color6sWhiteE = external global %"class.JPH::Color", align 4
@_ZN3JPH5Color4sRedE = external global %"class.JPH::Color", align 4
@_ZN3JPH5Color7sYellowE = external global %"class.JPH::Color", align 4
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZN3JPH5Color5sGreyE = external global %"class.JPH::Color", align 4
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

; 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) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16ClosestPointTest9TestTetraEN3JPH4Vec3ES1_S1_S1_S1_(ptr noundef nonnull align 8 dereferenceable(112) %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, ptr noundef byval(%"class.JPH::Vec3") align 16 %9) #2 align 2 {
  %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 ptr, align 8
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca i32, align 4
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Color", align 4
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Color", align 4
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Color", align 4
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca %"class.JPH::Color", align 4
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::Vec3", align 16
  %46 = alloca %"class.JPH::Color", align 4
  %47 = alloca %"class.JPH::Vec3", align 16
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca %"class.JPH::Color", align 4
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca %"class.JPH::Vec3", align 16
  %53 = alloca %"class.JPH::Color", align 4
  %54 = alloca %"class.JPH::Vec3", align 16
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca %"class.JPH::Color", align 4
  %58 = alloca %"class.JPH::Vec3", align 16
  %59 = alloca %"class.JPH::Vec3", align 16
  %60 = alloca %"class.JPH::Vec3", align 16
  %61 = alloca %"class.JPH::Color", align 4
  %62 = alloca %"class.JPH::Vec3", align 16
  %63 = alloca %"class.JPH::Vec3", align 16
  %64 = alloca %"class.JPH::Vec3", align 16
  %65 = alloca %"class.JPH::Color", align 4
  %66 = alloca %"class.JPH::Vec3", align 16
  %67 = alloca %"class.JPH::Color", align 4
  %68 = alloca %"class.JPH::Vec3", align 16
  %69 = alloca %"class.JPH::Color", align 4
  %70 = alloca %"class.JPH::Vec3", align 16
  %71 = alloca %"class.JPH::Color", align 4
  %72 = alloca %"class.JPH::Vec3", align 16
  %73 = alloca %"class.JPH::Color", align 4
  %74 = alloca %"class.JPH::Vec3", align 16
  %75 = alloca %"class.JPH::Color", align 4
  %76 = alloca %"class.JPH::Vec3", align 16
  %77 = alloca %"class.std::basic_string_view", align 8
  %78 = alloca %"class.JPH::Color", align 4
  %79 = alloca %"class.JPH::Vec3", align 16
  %80 = alloca %"class.std::basic_string_view", align 8
  %81 = alloca %"class.JPH::Color", align 4
  %82 = alloca %"class.JPH::Vec3", align 16
  %83 = alloca %"class.std::basic_string_view", align 8
  %84 = alloca %"class.JPH::Color", align 4
  %85 = alloca %"class.JPH::Vec3", align 16
  %86 = alloca %"class.std::basic_string_view", align 8
  %87 = alloca %"class.JPH::Color", align 4
  %88 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  store double %1, ptr %88, align 16
  %89 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  store double %2, ptr %89, align 8
  %90 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  store double %3, ptr %90, align 16
  %91 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  store double %4, ptr %91, align 8
  %92 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  store double %5, ptr %92, align 16
  %93 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  store double %6, ptr %93, align 8
  %94 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  store double %7, ptr %94, align 16
  %95 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  store double %8, ptr %95, align 8
  store ptr %0, ptr %15, align 8, !tbaa !5
  %96 = load ptr, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !9
  %97 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %98 = load double, ptr %97, align 16
  %99 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %100 = load double, ptr %99, align 8
  %101 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %98, double %100)
  %102 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %103 = getelementptr inbounds %union.anon, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds { double, double }, ptr %103, i32 0, i32 0
  %105 = extractvalue { double, double } %101, 0
  store double %105, ptr %104, align 16
  %106 = getelementptr inbounds { double, double }, ptr %103, i32 0, i32 1
  %107 = extractvalue { double, double } %101, 1
  store double %107, ptr %106, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !9
  %108 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %109 = load double, ptr %108, align 16
  %110 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %111 = load double, ptr %110, align 8
  %112 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %109, double %111)
  %113 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %114 = getelementptr inbounds %union.anon, ptr %113, i32 0, i32 0
  %115 = getelementptr inbounds { double, double }, ptr %114, i32 0, i32 0
  %116 = extractvalue { double, double } %112, 0
  store double %116, ptr %115, align 16
  %117 = getelementptr inbounds { double, double }, ptr %114, i32 0, i32 1
  %118 = extractvalue { double, double } %112, 1
  store double %118, ptr %117, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !9
  %119 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %120 = load double, ptr %119, align 16
  %121 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %122 = load double, ptr %121, align 8
  %123 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %120, double %122)
  %124 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %125 = getelementptr inbounds %union.anon, ptr %124, i32 0, i32 0
  %126 = getelementptr inbounds { double, double }, ptr %125, i32 0, i32 0
  %127 = extractvalue { double, double } %123, 0
  store double %127, ptr %126, align 16
  %128 = getelementptr inbounds { double, double }, ptr %125, i32 0, i32 1
  %129 = extractvalue { double, double } %123, 1
  store double %129, ptr %128, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !9
  %130 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %131 = load double, ptr %130, align 16
  %132 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %133 = load double, ptr %132, align 8
  %134 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %131, double %133)
  %135 = getelementptr inbounds %"class.JPH::Vec3", ptr %22, i32 0, i32 0
  %136 = getelementptr inbounds %union.anon, ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds { double, double }, ptr %136, i32 0, i32 0
  %138 = extractvalue { double, double } %134, 0
  store double %138, ptr %137, align 16
  %139 = getelementptr inbounds { double, double }, ptr %136, i32 0, i32 1
  %140 = extractvalue { double, double } %134, 1
  store double %140, ptr %139, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %18, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %22, i64 16, i1 false), !tbaa.struct !9
  %141 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %142 = load double, ptr %141, align 16
  %143 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %144 = load double, ptr %143, align 8
  %145 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %146 = load double, ptr %145, align 16
  %147 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %148 = load double, ptr %147, align 8
  %149 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %150 = load double, ptr %149, align 16
  %151 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %152 = load double, ptr %151, align 8
  %153 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %154 = load double, ptr %153, align 16
  %155 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %156 = load double, ptr %155, align 8
  %157 = call { double, double } @_ZN3JPH12ClosestPoint28GetClosestPointOnTetrahedronILb0EEENS_4Vec3ES2_S2_S2_S2_Rj(double %142, double %144, double %146, double %148, double %150, double %152, double %154, double %156, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %158 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %159 = getelementptr inbounds %union.anon, ptr %158, i32 0, i32 0
  %160 = getelementptr inbounds { double, double }, ptr %159, i32 0, i32 0
  %161 = extractvalue { double, double } %157, 0
  store double %161, ptr %160, align 16
  %162 = getelementptr inbounds { double, double }, ptr %159, i32 0, i32 1
  %163 = extractvalue { double, double } %157, 1
  store double %163, ptr %162, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !9
  %164 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %165 = load double, ptr %164, align 16
  %166 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %167 = load double, ptr %166, align 8
  %168 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %26, double %165, double %167)
  %169 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %170 = getelementptr inbounds %union.anon, ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds { double, double }, ptr %170, i32 0, i32 0
  %172 = extractvalue { double, double } %168, 0
  store double %172, ptr %171, align 16
  %173 = getelementptr inbounds { double, double }, ptr %170, i32 0, i32 1
  %174 = extractvalue { double, double } %168, 1
  store double %174, ptr %173, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  %175 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %176 = load ptr, ptr %175, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %177 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %178 = load double, ptr %177, align 16
  %179 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %180 = load double, ptr %179, align 8
  %181 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %182 = load double, ptr %181, align 16
  %183 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %184 = load double, ptr %183, align 8
  %185 = getelementptr inbounds %"class.JPH::Color", ptr %34, i32 0, i32 0
  %186 = getelementptr inbounds %union.anon.4, ptr %185, i32 0, i32 0
  %187 = load i32, ptr %186, align 4
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %176, double %178, double %180, double %182, double %184, i32 %187)
  %188 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %190 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %191 = load double, ptr %190, align 16
  %192 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %193 = load double, ptr %192, align 8
  %194 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %195 = load double, ptr %194, align 16
  %196 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %197 = load double, ptr %196, align 8
  %198 = getelementptr inbounds %"class.JPH::Color", ptr %37, i32 0, i32 0
  %199 = getelementptr inbounds %union.anon.4, ptr %198, i32 0, i32 0
  %200 = load i32, ptr %199, align 4
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %189, double %191, double %193, double %195, double %197, i32 %200)
  %201 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %202 = load ptr, ptr %201, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %203 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %204 = load double, ptr %203, align 16
  %205 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %206 = load double, ptr %205, align 8
  %207 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %208 = load double, ptr %207, align 16
  %209 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %210 = load double, ptr %209, align 8
  %211 = getelementptr inbounds %"class.JPH::Color", ptr %40, i32 0, i32 0
  %212 = getelementptr inbounds %union.anon.4, ptr %211, i32 0, i32 0
  %213 = load i32, ptr %212, align 4
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %202, double %204, double %206, double %208, double %210, i32 %213)
  %214 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %215 = load ptr, ptr %214, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %216 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %217 = load double, ptr %216, align 16
  %218 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %219 = load double, ptr %218, align 8
  %220 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %221 = load double, ptr %220, align 16
  %222 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %223 = load double, ptr %222, align 8
  %224 = getelementptr inbounds %"class.JPH::Color", ptr %43, i32 0, i32 0
  %225 = getelementptr inbounds %union.anon.4, ptr %224, i32 0, i32 0
  %226 = load i32, ptr %225, align 4
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %215, double %217, double %219, double %221, double %223, i32 %226)
  %227 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %228 = load ptr, ptr %227, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %44, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %229 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %230 = load double, ptr %229, align 16
  %231 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %232 = load double, ptr %231, align 8
  %233 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %234 = load double, ptr %233, align 16
  %235 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %236 = load double, ptr %235, align 8
  %237 = getelementptr inbounds %"class.JPH::Color", ptr %46, i32 0, i32 0
  %238 = getelementptr inbounds %union.anon.4, ptr %237, i32 0, i32 0
  %239 = load i32, ptr %238, align 4
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %228, double %230, double %232, double %234, double %236, i32 %239)
  %240 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %241 = load ptr, ptr %240, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %47, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %48, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %242 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %243 = load double, ptr %242, align 16
  %244 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %245 = load double, ptr %244, align 8
  %246 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %247 = load double, ptr %246, align 16
  %248 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %249 = load double, ptr %248, align 8
  %250 = getelementptr inbounds %"class.JPH::Color", ptr %49, i32 0, i32 0
  %251 = getelementptr inbounds %union.anon.4, ptr %250, i32 0, i32 0
  %252 = load i32, ptr %251, align 4
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %241, double %243, double %245, double %247, double %249, i32 %252)
  %253 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %254 = load ptr, ptr %253, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %50, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %51, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %52, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 @_ZN3JPH5Color5sGreyE, i64 4, i1 false), !tbaa.struct !20
  %255 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %256 = load double, ptr %255, align 16
  %257 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %258 = load double, ptr %257, align 8
  %259 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %260 = load double, ptr %259, align 16
  %261 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %262 = load double, ptr %261, align 8
  %263 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %264 = load double, ptr %263, align 16
  %265 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %266 = load double, ptr %265, align 8
  %267 = getelementptr inbounds %"class.JPH::Color", ptr %53, i32 0, i32 0
  %268 = getelementptr inbounds %union.anon.4, ptr %267, i32 0, i32 0
  %269 = load i32, ptr %268, align 4
  call void @_Z14DrawTriangleSPPN3JPH13DebugRendererENS_4Vec3ES2_S2_NS_5ColorE(ptr noundef %254, double %256, double %258, double %260, double %262, double %264, double %266, i32 %269)
  %270 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %271 = load ptr, ptr %270, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %54, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %55, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %56, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %57, ptr align 4 @_ZN3JPH5Color5sGreyE, i64 4, i1 false), !tbaa.struct !20
  %272 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %273 = load double, ptr %272, align 16
  %274 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %275 = load double, ptr %274, align 8
  %276 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %277 = load double, ptr %276, align 16
  %278 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %279 = load double, ptr %278, align 8
  %280 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %281 = load double, ptr %280, align 16
  %282 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %283 = load double, ptr %282, align 8
  %284 = getelementptr inbounds %"class.JPH::Color", ptr %57, i32 0, i32 0
  %285 = getelementptr inbounds %union.anon.4, ptr %284, i32 0, i32 0
  %286 = load i32, ptr %285, align 4
  call void @_Z14DrawTriangleSPPN3JPH13DebugRendererENS_4Vec3ES2_S2_NS_5ColorE(ptr noundef %271, double %273, double %275, double %277, double %279, double %281, double %283, i32 %286)
  %287 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %288 = load ptr, ptr %287, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %58, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %59, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %60, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 4 @_ZN3JPH5Color5sGreyE, i64 4, i1 false), !tbaa.struct !20
  %289 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %290 = load double, ptr %289, align 16
  %291 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %292 = load double, ptr %291, align 8
  %293 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 0
  %294 = load double, ptr %293, align 16
  %295 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 1
  %296 = load double, ptr %295, align 8
  %297 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 0
  %298 = load double, ptr %297, align 16
  %299 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 1
  %300 = load double, ptr %299, align 8
  %301 = getelementptr inbounds %"class.JPH::Color", ptr %61, i32 0, i32 0
  %302 = getelementptr inbounds %union.anon.4, ptr %301, i32 0, i32 0
  %303 = load i32, ptr %302, align 4
  call void @_Z14DrawTriangleSPPN3JPH13DebugRendererENS_4Vec3ES2_S2_NS_5ColorE(ptr noundef %288, double %290, double %292, double %294, double %296, double %298, double %300, i32 %303)
  %304 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %305 = load ptr, ptr %304, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %62, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %63, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %64, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 4 @_ZN3JPH5Color5sGreyE, i64 4, i1 false), !tbaa.struct !20
  %306 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %307 = load double, ptr %306, align 16
  %308 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %309 = load double, ptr %308, align 8
  %310 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %311 = load double, ptr %310, align 16
  %312 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %313 = load double, ptr %312, align 8
  %314 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %315 = load double, ptr %314, align 16
  %316 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %317 = load double, ptr %316, align 8
  %318 = getelementptr inbounds %"class.JPH::Color", ptr %65, i32 0, i32 0
  %319 = getelementptr inbounds %union.anon.4, ptr %318, i32 0, i32 0
  %320 = load i32, ptr %319, align 4
  call void @_Z14DrawTriangleSPPN3JPH13DebugRendererENS_4Vec3ES2_S2_NS_5ColorE(ptr noundef %305, double %307, double %309, double %311, double %313, double %315, double %317, i32 %320)
  %321 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %322 = load ptr, ptr %321, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %66, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %67, ptr align 4 @_ZN3JPH5Color4sRedE, i64 4, i1 false), !tbaa.struct !20
  %323 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 0
  %324 = load double, ptr %323, align 16
  %325 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 1
  %326 = load double, ptr %325, align 8
  %327 = getelementptr inbounds %"class.JPH::Color", ptr %67, i32 0, i32 0
  %328 = getelementptr inbounds %union.anon.4, ptr %327, i32 0, i32 0
  %329 = load i32, ptr %328, align 4
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %322, double %324, double %326, i32 %329, float noundef 0x3FB99999A0000000)
  %330 = load i32, ptr %24, align 4, !tbaa !21
  %331 = and i32 %330, 1
  %332 = icmp ne i32 %331, 0
  br i1 %332, label %333, label %343

333:                                              ; preds = %10
  %334 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %335 = load ptr, ptr %334, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %68, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 4 @_ZN3JPH5Color7sYellowE, i64 4, i1 false), !tbaa.struct !20
  %336 = getelementptr inbounds { double, double }, ptr %68, i32 0, i32 0
  %337 = load double, ptr %336, align 16
  %338 = getelementptr inbounds { double, double }, ptr %68, i32 0, i32 1
  %339 = load double, ptr %338, align 8
  %340 = getelementptr inbounds %"class.JPH::Color", ptr %69, i32 0, i32 0
  %341 = getelementptr inbounds %union.anon.4, ptr %340, i32 0, i32 0
  %342 = load i32, ptr %341, align 4
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %335, double %337, double %339, i32 %342, float noundef 5.000000e-01)
  br label %343

343:                                              ; preds = %333, %10
  %344 = load i32, ptr %24, align 4, !tbaa !21
  %345 = and i32 %344, 2
  %346 = icmp ne i32 %345, 0
  br i1 %346, label %347, label %357

347:                                              ; preds = %343
  %348 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %349 = load ptr, ptr %348, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %70, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 4 @_ZN3JPH5Color7sYellowE, i64 4, i1 false), !tbaa.struct !20
  %350 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 0
  %351 = load double, ptr %350, align 16
  %352 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 1
  %353 = load double, ptr %352, align 8
  %354 = getelementptr inbounds %"class.JPH::Color", ptr %71, i32 0, i32 0
  %355 = getelementptr inbounds %union.anon.4, ptr %354, i32 0, i32 0
  %356 = load i32, ptr %355, align 4
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %349, double %351, double %353, i32 %356, float noundef 5.000000e-01)
  br label %357

357:                                              ; preds = %347, %343
  %358 = load i32, ptr %24, align 4, !tbaa !21
  %359 = and i32 %358, 4
  %360 = icmp ne i32 %359, 0
  br i1 %360, label %361, label %371

361:                                              ; preds = %357
  %362 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %363 = load ptr, ptr %362, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %72, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 @_ZN3JPH5Color7sYellowE, i64 4, i1 false), !tbaa.struct !20
  %364 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 0
  %365 = load double, ptr %364, align 16
  %366 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 1
  %367 = load double, ptr %366, align 8
  %368 = getelementptr inbounds %"class.JPH::Color", ptr %73, i32 0, i32 0
  %369 = getelementptr inbounds %union.anon.4, ptr %368, i32 0, i32 0
  %370 = load i32, ptr %369, align 4
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %363, double %365, double %367, i32 %370, float noundef 5.000000e-01)
  br label %371

371:                                              ; preds = %361, %357
  %372 = load i32, ptr %24, align 4, !tbaa !21
  %373 = and i32 %372, 8
  %374 = icmp ne i32 %373, 0
  br i1 %374, label %375, label %385

375:                                              ; preds = %371
  %376 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %377 = load ptr, ptr %376, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %74, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 4 @_ZN3JPH5Color7sYellowE, i64 4, i1 false), !tbaa.struct !20
  %378 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 0
  %379 = load double, ptr %378, align 16
  %380 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 1
  %381 = load double, ptr %380, align 8
  %382 = getelementptr inbounds %"class.JPH::Color", ptr %75, i32 0, i32 0
  %383 = getelementptr inbounds %union.anon.4, ptr %382, i32 0, i32 0
  %384 = load i32, ptr %383, align 4
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %377, double %379, double %381, i32 %384, float noundef 5.000000e-01)
  br label %385

385:                                              ; preds = %375, %371
  %386 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %387 = load ptr, ptr %386, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %76, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %77) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %77, ptr noundef @.str.1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %388 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 0
  %389 = load double, ptr %388, align 16
  %390 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 1
  %391 = load double, ptr %390, align 8
  %392 = getelementptr inbounds %"class.JPH::Color", ptr %78, i32 0, i32 0
  %393 = getelementptr inbounds %union.anon.4, ptr %392, i32 0, i32 0
  %394 = load i32, ptr %393, align 4
  call void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef %387, double %389, double %391, ptr noundef nonnull align 8 dereferenceable(16) %77, i32 %394, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr %77) #6
  %395 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %396 = load ptr, ptr %395, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %79, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %80) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %80, ptr noundef @.str.2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %81, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %397 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 0
  %398 = load double, ptr %397, align 16
  %399 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 1
  %400 = load double, ptr %399, align 8
  %401 = getelementptr inbounds %"class.JPH::Color", ptr %81, i32 0, i32 0
  %402 = getelementptr inbounds %union.anon.4, ptr %401, i32 0, i32 0
  %403 = load i32, ptr %402, align 4
  call void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef %396, double %398, double %400, ptr noundef nonnull align 8 dereferenceable(16) %80, i32 %403, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr %80) #6
  %404 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %405 = load ptr, ptr %404, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %82, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %83) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %83, ptr noundef @.str.3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %84, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %406 = getelementptr inbounds { double, double }, ptr %82, i32 0, i32 0
  %407 = load double, ptr %406, align 16
  %408 = getelementptr inbounds { double, double }, ptr %82, i32 0, i32 1
  %409 = load double, ptr %408, align 8
  %410 = getelementptr inbounds %"class.JPH::Color", ptr %84, i32 0, i32 0
  %411 = getelementptr inbounds %union.anon.4, ptr %410, i32 0, i32 0
  %412 = load i32, ptr %411, align 4
  call void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef %405, double %407, double %409, ptr noundef nonnull align 8 dereferenceable(16) %83, i32 %412, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr %83) #6
  %413 = getelementptr inbounds %class.Test, ptr %96, i32 0, i32 4
  %414 = load ptr, ptr %413, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %85, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %86) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %86, ptr noundef @.str.4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %87, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %415 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 0
  %416 = load double, ptr %415, align 16
  %417 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 1
  %418 = load double, ptr %417, align 8
  %419 = getelementptr inbounds %"class.JPH::Color", ptr %87, i32 0, i32 0
  %420 = getelementptr inbounds %union.anon.4, ptr %419, i32 0, i32 0
  %421 = load i32, ptr %420, align 4
  call void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef %414, double %416, double %418, ptr noundef nonnull align 8 dereferenceable(16) %86, i32 %421, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr %86) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef, double, double, double, double, i32) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef, double, double, ptr noundef nonnull align 8 dereferenceable(16), i32, float noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14DrawTriangleSPPN3JPH13DebugRendererENS_4Vec3ES2_S2_NS_5ColorE(ptr noundef, double, double, double, double, double, double, i32) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH12ClosestPoint28GetClosestPointOnTetrahedronILb0EEENS_4Vec3ES2_S2_S2_S2_Rj(double, double, double, double, double, double, double, double, ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !6, i64 32}
!12 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !14, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !15, i64 0}
!15 = !{!"_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, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !6, i64 48}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!18 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !19, i64 0, !16, i64 8}
!19 = !{!"float", !7, i64 0}
!20 = !{i64 0, i64 4, !10}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !7, i64 0}


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

%"class.JPH::Color" = type { %union.anon.4 }
%union.anon.4 = type { i32 }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.std::basic_string_view" = type { i64, ptr }

@_ZN3JPH5Color6sWhiteE = external local_unnamed_addr global %"class.JPH::Color", align 4
@_ZN3JPH5Color4sRedE = external local_unnamed_addr global %"class.JPH::Color", align 4
@_ZN3JPH5Color7sYellowE = external local_unnamed_addr global %"class.JPH::Color", align 4
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZN3JPH5Color5sGreyE = external local_unnamed_addr global %"class.JPH::Color", align 4
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16ClosestPointTest9TestTetraEN3JPH4Vec3ES1_S1_S1_S1_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(112) %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, ptr noundef byval(%"class.JPH::Vec3") align 16 %9) local_unnamed_addr #1 align 2 {
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca i32, align 4
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.std::basic_string_view", align 8
  %17 = alloca %"class.std::basic_string_view", align 8
  %18 = alloca %"class.std::basic_string_view", align 8
  %19 = alloca %"class.std::basic_string_view", align 8
  store double %3, ptr %11, align 16
  %20 = getelementptr inbounds i8, ptr %11, i64 8
  store double %4, ptr %20, align 8
  store double %5, ptr %12, align 16
  %21 = getelementptr inbounds i8, ptr %12, i64 8
  store double %6, ptr %21, align 8
  store double %7, ptr %13, align 16
  %22 = getelementptr inbounds i8, ptr %13, i64 8
  store double %8, ptr %22, align 8
  %23 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %1, double %2)
  %24 = extractvalue { double, double } %23, 0
  %25 = extractvalue { double, double } %23, 1
  %26 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %1, double %2)
  %27 = extractvalue { double, double } %26, 0
  %28 = extractvalue { double, double } %26, 1
  %29 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %1, double %2)
  %30 = extractvalue { double, double } %29, 0
  %31 = extractvalue { double, double } %29, 1
  %32 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %1, double %2)
  %33 = extractvalue { double, double } %32, 0
  %34 = extractvalue { double, double } %32, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #5
  %35 = call { double, double } @_ZN3JPH12ClosestPoint28GetClosestPointOnTetrahedronILb0EEENS_4Vec3ES2_S2_S2_S2_Rj(double %24, double %25, double %27, double %28, double %30, double %31, double %33, double %34, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %36 = extractvalue { double, double } %35, 0
  store double %36, ptr %15, align 16
  %37 = getelementptr inbounds i8, ptr %15, i64 8
  %38 = extractvalue { double, double } %35, 1
  store double %38, ptr %37, align 8
  %39 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %1, double %2)
  %40 = extractvalue { double, double } %39, 0
  %41 = extractvalue { double, double } %39, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  %42 = getelementptr inbounds i8, ptr %0, i64 32
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.082.0.copyload = load double, ptr %11, align 16
  %.sroa.283.0.copyload = load double, ptr %20, align 8, !tbaa !17
  %.sroa.080.0.copyload = load double, ptr %12, align 16
  %.sroa.281.0.copyload = load double, ptr %21, align 8, !tbaa !17
  %.sroa.079.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %43, double %.sroa.082.0.copyload, double %.sroa.283.0.copyload, double %.sroa.080.0.copyload, double %.sroa.281.0.copyload, i32 %.sroa.079.0.copyload)
  %44 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.077.0.copyload = load double, ptr %11, align 16
  %.sroa.278.0.copyload = load double, ptr %20, align 8, !tbaa !17
  %.sroa.075.0.copyload = load double, ptr %13, align 16
  %.sroa.276.0.copyload = load double, ptr %22, align 8, !tbaa !17
  %.sroa.074.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %44, double %.sroa.077.0.copyload, double %.sroa.278.0.copyload, double %.sroa.075.0.copyload, double %.sroa.276.0.copyload, i32 %.sroa.074.0.copyload)
  %45 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.072.0.copyload = load double, ptr %11, align 16
  %.sroa.273.0.copyload = load double, ptr %20, align 8, !tbaa !17
  %.sroa.070.0.copyload = load double, ptr %9, align 16
  %.sroa.271.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %.sroa.271.0.copyload = load double, ptr %.sroa.271.0..sroa_idx, align 8, !tbaa !17
  %.sroa.069.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %45, double %.sroa.072.0.copyload, double %.sroa.273.0.copyload, double %.sroa.070.0.copyload, double %.sroa.271.0.copyload, i32 %.sroa.069.0.copyload)
  %46 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.067.0.copyload = load double, ptr %12, align 16
  %.sroa.268.0.copyload = load double, ptr %21, align 8, !tbaa !17
  %.sroa.065.0.copyload = load double, ptr %13, align 16
  %.sroa.266.0.copyload = load double, ptr %22, align 8, !tbaa !17
  %.sroa.064.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %46, double %.sroa.067.0.copyload, double %.sroa.268.0.copyload, double %.sroa.065.0.copyload, double %.sroa.266.0.copyload, i32 %.sroa.064.0.copyload)
  %47 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.062.0.copyload = load double, ptr %12, align 16
  %.sroa.263.0.copyload = load double, ptr %21, align 8, !tbaa !17
  %.sroa.060.0.copyload = load double, ptr %9, align 16
  %.sroa.261.0.copyload = load double, ptr %.sroa.271.0..sroa_idx, align 8, !tbaa !17
  %.sroa.059.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %47, double %.sroa.062.0.copyload, double %.sroa.263.0.copyload, double %.sroa.060.0.copyload, double %.sroa.261.0.copyload, i32 %.sroa.059.0.copyload)
  %48 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.057.0.copyload = load double, ptr %13, align 16
  %.sroa.258.0.copyload = load double, ptr %22, align 8, !tbaa !17
  %.sroa.055.0.copyload = load double, ptr %9, align 16
  %.sroa.256.0.copyload = load double, ptr %.sroa.271.0..sroa_idx, align 8, !tbaa !17
  %.sroa.054.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %48, double %.sroa.057.0.copyload, double %.sroa.258.0.copyload, double %.sroa.055.0.copyload, double %.sroa.256.0.copyload, i32 %.sroa.054.0.copyload)
  %49 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.052.0.copyload = load double, ptr %11, align 16
  %.sroa.253.0.copyload = load double, ptr %20, align 8, !tbaa !17
  %.sroa.050.0.copyload = load double, ptr %13, align 16
  %.sroa.251.0.copyload = load double, ptr %22, align 8, !tbaa !17
  %.sroa.048.0.copyload = load double, ptr %12, align 16
  %.sroa.249.0.copyload = load double, ptr %21, align 8, !tbaa !17
  %.sroa.047.0.copyload = load i32, ptr @_ZN3JPH5Color5sGreyE, align 4, !tbaa !17
  call void @_Z14DrawTriangleSPPN3JPH13DebugRendererENS_4Vec3ES2_S2_NS_5ColorE(ptr noundef %49, double %.sroa.052.0.copyload, double %.sroa.253.0.copyload, double %.sroa.050.0.copyload, double %.sroa.251.0.copyload, double %.sroa.048.0.copyload, double %.sroa.249.0.copyload, i32 %.sroa.047.0.copyload)
  %50 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.045.0.copyload = load double, ptr %11, align 16
  %.sroa.246.0.copyload = load double, ptr %20, align 8, !tbaa !17
  %.sroa.043.0.copyload = load double, ptr %9, align 16
  %.sroa.244.0.copyload = load double, ptr %.sroa.271.0..sroa_idx, align 8, !tbaa !17
  %.sroa.041.0.copyload = load double, ptr %13, align 16
  %.sroa.242.0.copyload = load double, ptr %22, align 8, !tbaa !17
  %.sroa.040.0.copyload = load i32, ptr @_ZN3JPH5Color5sGreyE, align 4, !tbaa !17
  call void @_Z14DrawTriangleSPPN3JPH13DebugRendererENS_4Vec3ES2_S2_NS_5ColorE(ptr noundef %50, double %.sroa.045.0.copyload, double %.sroa.246.0.copyload, double %.sroa.043.0.copyload, double %.sroa.244.0.copyload, double %.sroa.041.0.copyload, double %.sroa.242.0.copyload, i32 %.sroa.040.0.copyload)
  %51 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.038.0.copyload = load double, ptr %11, align 16
  %.sroa.239.0.copyload = load double, ptr %20, align 8, !tbaa !17
  %.sroa.036.0.copyload = load double, ptr %12, align 16
  %.sroa.237.0.copyload = load double, ptr %21, align 8, !tbaa !17
  %.sroa.034.0.copyload = load double, ptr %9, align 16
  %.sroa.235.0.copyload = load double, ptr %.sroa.271.0..sroa_idx, align 8, !tbaa !17
  %.sroa.033.0.copyload = load i32, ptr @_ZN3JPH5Color5sGreyE, align 4, !tbaa !17
  call void @_Z14DrawTriangleSPPN3JPH13DebugRendererENS_4Vec3ES2_S2_NS_5ColorE(ptr noundef %51, double %.sroa.038.0.copyload, double %.sroa.239.0.copyload, double %.sroa.036.0.copyload, double %.sroa.237.0.copyload, double %.sroa.034.0.copyload, double %.sroa.235.0.copyload, i32 %.sroa.033.0.copyload)
  %52 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.031.0.copyload = load double, ptr %12, align 16
  %.sroa.232.0.copyload = load double, ptr %21, align 8, !tbaa !17
  %.sroa.029.0.copyload = load double, ptr %13, align 16
  %.sroa.230.0.copyload = load double, ptr %22, align 8, !tbaa !17
  %.sroa.027.0.copyload = load double, ptr %9, align 16
  %.sroa.228.0.copyload = load double, ptr %.sroa.271.0..sroa_idx, align 8, !tbaa !17
  %.sroa.026.0.copyload = load i32, ptr @_ZN3JPH5Color5sGreyE, align 4, !tbaa !17
  call void @_Z14DrawTriangleSPPN3JPH13DebugRendererENS_4Vec3ES2_S2_NS_5ColorE(ptr noundef %52, double %.sroa.031.0.copyload, double %.sroa.232.0.copyload, double %.sroa.029.0.copyload, double %.sroa.230.0.copyload, double %.sroa.027.0.copyload, double %.sroa.228.0.copyload, i32 %.sroa.026.0.copyload)
  %53 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.023.0.copyload = load i32, ptr @_ZN3JPH5Color4sRedE, align 4, !tbaa !17
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %53, double %40, double %41, i32 %.sroa.023.0.copyload, float noundef 0x3FB99999A0000000)
  %54 = load i32, ptr %14, align 4, !tbaa !18
  %55 = and i32 %54, 1
  %.not = icmp eq i32 %55, 0
  br i1 %.not, label %58, label %56

56:                                               ; preds = %10
  %57 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.021.0.copyload = load double, ptr %11, align 16
  %.sroa.222.0.copyload = load double, ptr %20, align 8, !tbaa !17
  %.sroa.020.0.copyload = load i32, ptr @_ZN3JPH5Color7sYellowE, align 4, !tbaa !17
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %57, double %.sroa.021.0.copyload, double %.sroa.222.0.copyload, i32 %.sroa.020.0.copyload, float noundef 5.000000e-01)
  %.pre = load i32, ptr %14, align 4, !tbaa !18
  br label %58

58:                                               ; preds = %56, %10
  %59 = phi i32 [ %.pre, %56 ], [ %54, %10 ]
  %60 = and i32 %59, 2
  %.not112 = icmp eq i32 %60, 0
  br i1 %.not112, label %63, label %61

61:                                               ; preds = %58
  %62 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.018.0.copyload = load double, ptr %12, align 16
  %.sroa.219.0.copyload = load double, ptr %21, align 8, !tbaa !17
  %.sroa.017.0.copyload = load i32, ptr @_ZN3JPH5Color7sYellowE, align 4, !tbaa !17
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %62, double %.sroa.018.0.copyload, double %.sroa.219.0.copyload, i32 %.sroa.017.0.copyload, float noundef 5.000000e-01)
  %.pre115 = load i32, ptr %14, align 4, !tbaa !18
  br label %63

63:                                               ; preds = %61, %58
  %64 = phi i32 [ %.pre115, %61 ], [ %59, %58 ]
  %65 = and i32 %64, 4
  %.not113 = icmp eq i32 %65, 0
  br i1 %.not113, label %68, label %66

66:                                               ; preds = %63
  %67 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.015.0.copyload = load double, ptr %13, align 16
  %.sroa.216.0.copyload = load double, ptr %22, align 8, !tbaa !17
  %.sroa.014.0.copyload = load i32, ptr @_ZN3JPH5Color7sYellowE, align 4, !tbaa !17
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %67, double %.sroa.015.0.copyload, double %.sroa.216.0.copyload, i32 %.sroa.014.0.copyload, float noundef 5.000000e-01)
  %.pre116 = load i32, ptr %14, align 4, !tbaa !18
  br label %68

68:                                               ; preds = %66, %63
  %69 = phi i32 [ %.pre116, %66 ], [ %64, %63 ]
  %70 = and i32 %69, 8
  %.not114 = icmp eq i32 %70, 0
  br i1 %.not114, label %73, label %71

71:                                               ; preds = %68
  %72 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.012.0.copyload = load double, ptr %9, align 16
  %.sroa.213.0.copyload = load double, ptr %.sroa.271.0..sroa_idx, align 8, !tbaa !17
  %.sroa.011.0.copyload = load i32, ptr @_ZN3JPH5Color7sYellowE, align 4, !tbaa !17
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %72, double %.sroa.012.0.copyload, double %.sroa.213.0.copyload, i32 %.sroa.011.0.copyload, float noundef 5.000000e-01)
  br label %73

73:                                               ; preds = %71, %68
  %74 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.09.0.copyload = load double, ptr %11, align 16
  %.sroa.210.0.copyload = load double, ptr %20, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef @.str.1) #5
  %.sroa.08.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef %74, double %.sroa.09.0.copyload, double %.sroa.210.0.copyload, ptr noundef nonnull align 8 dereferenceable(16) %16, i32 %.sroa.08.0.copyload, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  %75 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.06.0.copyload = load double, ptr %12, align 16
  %.sroa.27.0.copyload = load double, ptr %21, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef @.str.2) #5
  %.sroa.05.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef %75, double %.sroa.06.0.copyload, double %.sroa.27.0.copyload, ptr noundef nonnull align 8 dereferenceable(16) %17, i32 %.sroa.05.0.copyload, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  %76 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.03.0.copyload = load double, ptr %13, align 16
  %.sroa.24.0.copyload = load double, ptr %22, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef @.str.3) #5
  %.sroa.02.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef %76, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload, ptr noundef nonnull align 8 dereferenceable(16) %18, i32 %.sroa.02.0.copyload, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  %77 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.01.0.copyload = load double, ptr %9, align 16
  %.sroa.2.0.copyload = load double, ptr %.sroa.271.0..sroa_idx, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef @.str.4) #5
  %.sroa.0.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef %77, double %.sroa.01.0.copyload, double %.sroa.2.0.copyload, ptr noundef nonnull align 8 dereferenceable(16) %19, i32 %.sroa.0.0.copyload, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  ret void
}

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

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

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

; 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 @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef, double, double, ptr noundef nonnull align 8 dereferenceable(16), i32, float noundef) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH12ClosestPoint28GetClosestPointOnTetrahedronILb0EEENS_4Vec3ES2_S2_S2_S2_Rj(double, double, double, double, double, double, double, double, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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 = { 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 #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 = { 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 #5 = { 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, !7, i64 32}
!6 = !{!"_ZTS4Test", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !11, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !12, i64 0}
!12 = !{!"_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", !7, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !7, i64 48}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !16, i64 0, !13, i64 8}
!16 = !{!"float", !8, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass