; 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
@_ZN3JPH5Color6sGreenE = 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

; 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 @_ZN16ClosestPointTest7TestTriEN3JPH4Vec3ES1_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) #2 align 2 {
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca ptr, align 8
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca i32, align 4
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Color", align 4
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Color", align 4
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Color", align 4
  %37 = alloca %"class.JPH::Vec3", align 16
  %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::Color", align 4
  %43 = alloca %"class.JPH::Vec3", align 16
  %44 = alloca %"class.JPH::Color", align 4
  %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::Color", align 4
  %49 = alloca %"class.JPH::Vec3", align 16
  %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::Vec3", align 16
  %54 = alloca %"class.JPH::Vec3", align 16
  %55 = alloca float, align 4
  %56 = alloca float, align 4
  %57 = alloca float, 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::Vec3", align 16
  %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::Vec3", align 16
  %66 = alloca %"class.JPH::Vec3", align 16
  %67 = alloca %"class.JPH::Vec3", align 16
  %68 = alloca %"class.JPH::Vec3", align 16
  %69 = alloca %"class.JPH::Color", align 4
  %70 = alloca %"class.JPH::Vec3", align 16
  %71 = alloca %"class.std::basic_string_view", align 8
  %72 = alloca %"class.JPH::Color", align 4
  %73 = alloca %"class.JPH::Vec3", align 16
  %74 = alloca %"class.std::basic_string_view", align 8
  %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 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  store double %1, ptr %79, align 16
  %80 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  store double %2, ptr %80, align 8
  %81 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  store double %3, ptr %81, align 16
  %82 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  store double %4, ptr %82, align 8
  %83 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  store double %5, ptr %83, align 16
  %84 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  store double %6, ptr %84, align 8
  %85 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  store double %7, ptr %85, align 16
  %86 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  store double %8, ptr %86, align 8
  store ptr %0, ptr %14, align 8, !tbaa !5
  %87 = load ptr, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !9
  %88 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %89 = load double, ptr %88, align 16
  %90 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %91 = load double, ptr %90, align 8
  %92 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %89, double %91)
  %93 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %94 = getelementptr inbounds %union.anon, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 0
  %96 = extractvalue { double, double } %92, 0
  store double %96, ptr %95, align 16
  %97 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 1
  %98 = extractvalue { double, double } %92, 1
  store double %98, ptr %97, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !9
  %99 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %100 = load double, ptr %99, align 16
  %101 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %102 = load double, ptr %101, align 8
  %103 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %100, double %102)
  %104 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %105 = getelementptr inbounds %union.anon, ptr %104, i32 0, i32 0
  %106 = getelementptr inbounds { double, double }, ptr %105, i32 0, i32 0
  %107 = extractvalue { double, double } %103, 0
  store double %107, ptr %106, align 16
  %108 = getelementptr inbounds { double, double }, ptr %105, i32 0, i32 1
  %109 = extractvalue { double, double } %103, 1
  store double %109, ptr %108, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !9
  %110 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %111 = load double, ptr %110, align 16
  %112 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %113 = load double, ptr %112, align 8
  %114 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %111, double %113)
  %115 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %116 = getelementptr inbounds %union.anon, ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds { double, double }, ptr %116, i32 0, i32 0
  %118 = extractvalue { double, double } %114, 0
  store double %118, ptr %117, align 16
  %119 = getelementptr inbounds { double, double }, ptr %116, i32 0, i32 1
  %120 = extractvalue { double, double } %114, 1
  store double %120, ptr %119, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %19, i64 16, i1 false), !tbaa.struct !9
  %121 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %122 = load double, ptr %121, align 16
  %123 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %124 = load double, ptr %123, align 8
  %125 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %126 = load double, ptr %125, align 16
  %127 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %128 = load double, ptr %127, align 8
  %129 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %130 = load double, ptr %129, align 16
  %131 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %132 = load double, ptr %131, align 8
  %133 = call { double, double } @_ZN3JPH12ClosestPoint25GetClosestPointOnTriangleILb0EEENS_4Vec3ES2_S2_S2_Rj(double %122, double %124, double %126, double %128, double %130, double %132, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %134 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %135 = getelementptr inbounds %union.anon, ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds { double, double }, ptr %135, i32 0, i32 0
  %137 = extractvalue { double, double } %133, 0
  store double %137, ptr %136, align 16
  %138 = getelementptr inbounds { double, double }, ptr %135, i32 0, i32 1
  %139 = extractvalue { double, double } %133, 1
  store double %139, ptr %138, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !9
  %140 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %141 = load double, ptr %140, align 16
  %142 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %143 = load double, ptr %142, align 8
  %144 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %23, double %141, double %143)
  %145 = getelementptr inbounds %"class.JPH::Vec3", ptr %22, i32 0, i32 0
  %146 = getelementptr inbounds %union.anon, ptr %145, i32 0, i32 0
  %147 = getelementptr inbounds { double, double }, ptr %146, i32 0, i32 0
  %148 = extractvalue { double, double } %144, 0
  store double %148, ptr %147, align 16
  %149 = getelementptr inbounds { double, double }, ptr %146, i32 0, i32 1
  %150 = extractvalue { double, double } %144, 1
  store double %150, ptr %149, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  %151 = getelementptr inbounds %class.Test, ptr %87, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %153 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %154 = load double, ptr %153, align 16
  %155 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %156 = load double, ptr %155, align 8
  %157 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %158 = load double, ptr %157, align 16
  %159 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %160 = load double, ptr %159, align 8
  %161 = getelementptr inbounds %"class.JPH::Color", ptr %30, i32 0, i32 0
  %162 = getelementptr inbounds %union.anon.4, ptr %161, i32 0, i32 0
  %163 = load i32, ptr %162, align 4
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %152, double %154, double %156, double %158, double %160, i32 %163)
  %164 = getelementptr inbounds %class.Test, ptr %87, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %166 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %167 = load double, ptr %166, align 16
  %168 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %169 = load double, ptr %168, align 8
  %170 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %171 = load double, ptr %170, align 16
  %172 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %173 = load double, ptr %172, align 8
  %174 = getelementptr inbounds %"class.JPH::Color", ptr %33, i32 0, i32 0
  %175 = getelementptr inbounds %union.anon.4, ptr %174, i32 0, i32 0
  %176 = load i32, ptr %175, align 4
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %165, double %167, double %169, double %171, double %173, i32 %176)
  %177 = getelementptr inbounds %class.Test, ptr %87, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %179 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %180 = load double, ptr %179, align 16
  %181 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %182 = load double, ptr %181, align 8
  %183 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %184 = load double, ptr %183, align 16
  %185 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %186 = load double, ptr %185, align 8
  %187 = getelementptr inbounds %"class.JPH::Color", ptr %36, i32 0, i32 0
  %188 = getelementptr inbounds %union.anon.4, ptr %187, i32 0, i32 0
  %189 = load i32, ptr %188, align 4
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %178, double %180, double %182, double %184, double %186, i32 %189)
  %190 = getelementptr inbounds %class.Test, ptr %87, i32 0, i32 4
  %191 = load ptr, ptr %190, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !9
  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 %13, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 @_ZN3JPH5Color5sGreyE, i64 4, i1 false), !tbaa.struct !20
  %192 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %193 = load double, ptr %192, align 16
  %194 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %195 = load double, ptr %194, align 8
  %196 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %197 = load double, ptr %196, align 16
  %198 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %199 = load double, ptr %198, align 8
  %200 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %201 = load double, ptr %200, align 16
  %202 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %203 = load double, ptr %202, align 8
  %204 = getelementptr inbounds %"class.JPH::Color", ptr %40, i32 0, i32 0
  %205 = getelementptr inbounds %union.anon.4, ptr %204, i32 0, i32 0
  %206 = load i32, ptr %205, align 4
  call void @_Z14DrawTriangleSPPN3JPH13DebugRendererENS_4Vec3ES2_S2_NS_5ColorE(ptr noundef %191, double %193, double %195, double %197, double %199, double %201, double %203, i32 %206)
  %207 = getelementptr inbounds %class.Test, ptr %87, i32 0, i32 4
  %208 = load ptr, ptr %207, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %22, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 @_ZN3JPH5Color4sRedE, i64 4, i1 false), !tbaa.struct !20
  %209 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %210 = load double, ptr %209, align 16
  %211 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %212 = load double, ptr %211, align 8
  %213 = getelementptr inbounds %"class.JPH::Color", ptr %42, i32 0, i32 0
  %214 = getelementptr inbounds %union.anon.4, ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 4
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %208, double %210, double %212, i32 %215, float noundef 0x3FB99999A0000000)
  %216 = load i32, ptr %21, align 4, !tbaa !21
  %217 = and i32 %216, 1
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %229

219:                                              ; preds = %9
  %220 = getelementptr inbounds %class.Test, ptr %87, i32 0, i32 4
  %221 = load ptr, ptr %220, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 @_ZN3JPH5Color7sYellowE, i64 4, i1 false), !tbaa.struct !20
  %222 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %223 = load double, ptr %222, align 16
  %224 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %225 = load double, ptr %224, align 8
  %226 = getelementptr inbounds %"class.JPH::Color", ptr %44, i32 0, i32 0
  %227 = getelementptr inbounds %union.anon.4, ptr %226, i32 0, i32 0
  %228 = load i32, ptr %227, align 4
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %221, double %223, double %225, i32 %228, float noundef 5.000000e-01)
  br label %229

229:                                              ; preds = %219, %9
  %230 = load i32, ptr %21, align 4, !tbaa !21
  %231 = and i32 %230, 2
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %243

233:                                              ; preds = %229
  %234 = getelementptr inbounds %class.Test, ptr %87, i32 0, i32 4
  %235 = load ptr, ptr %234, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 @_ZN3JPH5Color7sYellowE, i64 4, i1 false), !tbaa.struct !20
  %236 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %237 = load double, ptr %236, align 16
  %238 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %239 = load double, ptr %238, align 8
  %240 = getelementptr inbounds %"class.JPH::Color", ptr %46, i32 0, i32 0
  %241 = getelementptr inbounds %union.anon.4, ptr %240, i32 0, i32 0
  %242 = load i32, ptr %241, align 4
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %235, double %237, double %239, i32 %242, float noundef 5.000000e-01)
  br label %243

243:                                              ; preds = %233, %229
  %244 = load i32, ptr %21, align 4, !tbaa !21
  %245 = and i32 %244, 4
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %247, label %257

247:                                              ; preds = %243
  %248 = getelementptr inbounds %class.Test, ptr %87, i32 0, i32 4
  %249 = load ptr, ptr %248, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %47, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 @_ZN3JPH5Color7sYellowE, i64 4, i1 false), !tbaa.struct !20
  %250 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %251 = load double, ptr %250, align 16
  %252 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %253 = load double, ptr %252, align 8
  %254 = getelementptr inbounds %"class.JPH::Color", ptr %48, i32 0, i32 0
  %255 = getelementptr inbounds %union.anon.4, ptr %254, i32 0, i32 0
  %256 = load i32, ptr %255, align 4
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %249, double %251, double %253, i32 %256, float noundef 5.000000e-01)
  br label %257

257:                                              ; preds = %247, %243
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %50, ptr align 16 %22, i64 16, i1 false), !tbaa.struct !9
  %258 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %259 = load double, ptr %258, align 16
  %260 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %261 = load double, ptr %260, align 8
  %262 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %259, double %261)
  %263 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %264 = getelementptr inbounds %union.anon, ptr %263, i32 0, i32 0
  %265 = getelementptr inbounds { double, double }, ptr %264, i32 0, i32 0
  %266 = extractvalue { double, double } %262, 0
  store double %266, ptr %265, align 16
  %267 = getelementptr inbounds { double, double }, ptr %264, i32 0, i32 1
  %268 = extractvalue { double, double } %262, 1
  store double %268, ptr %267, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %52, ptr align 16 %22, i64 16, i1 false), !tbaa.struct !9
  %269 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %270 = load double, ptr %269, align 16
  %271 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %272 = load double, ptr %271, align 8
  %273 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %270, double %272)
  %274 = getelementptr inbounds %"class.JPH::Vec3", ptr %51, i32 0, i32 0
  %275 = getelementptr inbounds %union.anon, ptr %274, i32 0, i32 0
  %276 = getelementptr inbounds { double, double }, ptr %275, i32 0, i32 0
  %277 = extractvalue { double, double } %273, 0
  store double %277, ptr %276, align 16
  %278 = getelementptr inbounds { double, double }, ptr %275, i32 0, i32 1
  %279 = extractvalue { double, double } %273, 1
  store double %279, ptr %278, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %54, ptr align 16 %22, i64 16, i1 false), !tbaa.struct !9
  %280 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %281 = load double, ptr %280, align 16
  %282 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %283 = load double, ptr %282, align 8
  %284 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %281, double %283)
  %285 = getelementptr inbounds %"class.JPH::Vec3", ptr %53, i32 0, i32 0
  %286 = getelementptr inbounds %union.anon, ptr %285, i32 0, i32 0
  %287 = getelementptr inbounds { double, double }, ptr %286, i32 0, i32 0
  %288 = extractvalue { double, double } %284, 0
  store double %288, ptr %287, align 16
  %289 = getelementptr inbounds { double, double }, ptr %286, i32 0, i32 1
  %290 = extractvalue { double, double } %284, 1
  store double %290, ptr %289, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %58, ptr align 16 %49, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %59, ptr align 16 %51, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %60, ptr align 16 %53, i64 16, i1 false), !tbaa.struct !9
  %291 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %292 = load double, ptr %291, align 16
  %293 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %294 = load double, ptr %293, align 8
  %295 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 0
  %296 = load double, ptr %295, align 16
  %297 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 1
  %298 = load double, ptr %297, align 8
  %299 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 0
  %300 = load double, ptr %299, align 16
  %301 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 1
  %302 = load double, ptr %301, align 8
  %303 = call noundef zeroext i1 @_ZN3JPH12ClosestPoint25GetBaryCentricCoordinatesENS_4Vec3ES1_S1_RfS2_S2_(double %292, double %294, double %296, double %298, double %300, double %302, ptr noundef nonnull align 4 dereferenceable(4) %55, ptr noundef nonnull align 4 dereferenceable(4) %56, ptr noundef nonnull align 4 dereferenceable(4) %57)
  %304 = getelementptr inbounds %class.Test, ptr %87, i32 0, i32 4
  %305 = load ptr, ptr %304, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %62) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %63) #6
  %306 = load float, ptr %55, align 4, !tbaa !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %64, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !9
  %307 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %308 = load double, ptr %307, align 16
  %309 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %310 = load double, ptr %309, align 8
  %311 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %306, double %308, double %310)
  %312 = getelementptr inbounds %"class.JPH::Vec3", ptr %63, i32 0, i32 0
  %313 = getelementptr inbounds %union.anon, ptr %312, i32 0, i32 0
  %314 = getelementptr inbounds { double, double }, ptr %313, i32 0, i32 0
  %315 = extractvalue { double, double } %311, 0
  store double %315, ptr %314, align 16
  %316 = getelementptr inbounds { double, double }, ptr %313, i32 0, i32 1
  %317 = extractvalue { double, double } %311, 1
  store double %317, ptr %316, align 8
  %318 = load float, ptr %56, align 4, !tbaa !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %66, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !9
  %319 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 0
  %320 = load double, ptr %319, align 16
  %321 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 1
  %322 = load double, ptr %321, align 8
  %323 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %318, double %320, double %322)
  %324 = getelementptr inbounds %"class.JPH::Vec3", ptr %65, i32 0, i32 0
  %325 = getelementptr inbounds %union.anon, ptr %324, i32 0, i32 0
  %326 = getelementptr inbounds { double, double }, ptr %325, i32 0, i32 0
  %327 = extractvalue { double, double } %323, 0
  store double %327, ptr %326, align 16
  %328 = getelementptr inbounds { double, double }, ptr %325, i32 0, i32 1
  %329 = extractvalue { double, double } %323, 1
  store double %329, ptr %328, align 8
  %330 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 0
  %331 = load double, ptr %330, align 16
  %332 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 1
  %333 = load double, ptr %332, align 8
  %334 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %63, double %331, double %333)
  %335 = getelementptr inbounds %"class.JPH::Vec3", ptr %62, i32 0, i32 0
  %336 = getelementptr inbounds %union.anon, ptr %335, i32 0, i32 0
  %337 = getelementptr inbounds { double, double }, ptr %336, i32 0, i32 0
  %338 = extractvalue { double, double } %334, 0
  store double %338, ptr %337, align 16
  %339 = getelementptr inbounds { double, double }, ptr %336, i32 0, i32 1
  %340 = extractvalue { double, double } %334, 1
  store double %340, ptr %339, align 8
  %341 = load float, ptr %57, align 4, !tbaa !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %68, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !9
  %342 = getelementptr inbounds { double, double }, ptr %68, i32 0, i32 0
  %343 = load double, ptr %342, align 16
  %344 = getelementptr inbounds { double, double }, ptr %68, i32 0, i32 1
  %345 = load double, ptr %344, align 8
  %346 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %341, double %343, double %345)
  %347 = getelementptr inbounds %"class.JPH::Vec3", ptr %67, i32 0, i32 0
  %348 = getelementptr inbounds %union.anon, ptr %347, i32 0, i32 0
  %349 = getelementptr inbounds { double, double }, ptr %348, i32 0, i32 0
  %350 = extractvalue { double, double } %346, 0
  store double %350, ptr %349, align 16
  %351 = getelementptr inbounds { double, double }, ptr %348, i32 0, i32 1
  %352 = extractvalue { double, double } %346, 1
  store double %352, ptr %351, align 8
  %353 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %354 = load double, ptr %353, align 16
  %355 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %356 = load double, ptr %355, align 8
  %357 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %62, double %354, double %356)
  %358 = getelementptr inbounds %"class.JPH::Vec3", ptr %61, i32 0, i32 0
  %359 = getelementptr inbounds %union.anon, ptr %358, i32 0, i32 0
  %360 = getelementptr inbounds { double, double }, ptr %359, i32 0, i32 0
  %361 = extractvalue { double, double } %357, 0
  store double %361, ptr %360, align 16
  %362 = getelementptr inbounds { double, double }, ptr %359, i32 0, i32 1
  %363 = extractvalue { double, double } %357, 1
  store double %363, ptr %362, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 4 @_ZN3JPH5Color6sGreenE, i64 4, i1 false), !tbaa.struct !20
  %364 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %365 = load double, ptr %364, align 16
  %366 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %367 = load double, ptr %366, align 8
  %368 = getelementptr inbounds %"class.JPH::Color", ptr %69, 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 @_Z16DrawWireSphereSPPN3JPH13DebugRendererENS_4Vec3EfNS_5ColorEi(ptr noundef %305, double %365, double %367, float noundef 0x3FA99999A0000000, i32 %370, i32 noundef 3)
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #6
  %371 = getelementptr inbounds %class.Test, ptr %87, i32 0, i32 4
  %372 = load ptr, ptr %371, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %70, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %71) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %71, ptr noundef @.str.1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %373 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 0
  %374 = load double, ptr %373, align 16
  %375 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 1
  %376 = load double, ptr %375, align 8
  %377 = getelementptr inbounds %"class.JPH::Color", ptr %72, i32 0, i32 0
  %378 = getelementptr inbounds %union.anon.4, ptr %377, i32 0, i32 0
  %379 = load i32, ptr %378, align 4
  call void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef %372, double %374, double %376, ptr noundef nonnull align 8 dereferenceable(16) %71, i32 %379, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #6
  %380 = getelementptr inbounds %class.Test, ptr %87, i32 0, i32 4
  %381 = load ptr, ptr %380, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %73, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %74) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %74, ptr noundef @.str.2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %382 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 0
  %383 = load double, ptr %382, align 16
  %384 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 1
  %385 = load double, ptr %384, align 8
  %386 = getelementptr inbounds %"class.JPH::Color", ptr %75, i32 0, i32 0
  %387 = getelementptr inbounds %union.anon.4, ptr %386, i32 0, i32 0
  %388 = load i32, ptr %387, align 4
  call void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef %381, double %383, double %385, ptr noundef nonnull align 8 dereferenceable(16) %74, i32 %388, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr %74) #6
  %389 = getelementptr inbounds %class.Test, ptr %87, i32 0, i32 4
  %390 = load ptr, ptr %389, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %76, ptr align 16 %13, 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.3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !20
  %391 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 0
  %392 = load double, ptr %391, align 16
  %393 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 1
  %394 = load double, ptr %393, align 8
  %395 = getelementptr inbounds %"class.JPH::Color", ptr %78, i32 0, i32 0
  %396 = getelementptr inbounds %union.anon.4, ptr %395, i32 0, i32 0
  %397 = load i32, ptr %396, align 4
  call void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef %390, double %392, double %394, ptr noundef nonnull align 8 dereferenceable(16) %77, i32 %397, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr %77) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #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 @_Z16DrawWireSphereSPPN3JPH13DebugRendererENS_4Vec3EfNS_5ColorEi(ptr noundef, double, double, float noundef, i32, i32 noundef) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) #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) #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 { double, double } @_ZN3JPH12ClosestPoint25GetClosestPointOnTriangleILb0EEENS_4Vec3ES2_S2_S2_Rj(double, double, double, double, double, double, ptr noundef nonnull align 4 dereferenceable(4)) #4

; 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 noundef zeroext i1 @_ZN3JPH12ClosestPoint25GetBaryCentricCoordinatesENS_4Vec3ES1_S1_RfS2_S2_(double, double, double, double, double, double, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), 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}
!23 = !{!19, !19, 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
@_ZN3JPH5Color6sGreenE = 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

; 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 @_ZN16ClosestPointTest7TestTriEN3JPH4Vec3ES1_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) local_unnamed_addr #1 align 2 {
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca i32, align 4
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.std::basic_string_view", align 8
  %21 = alloca %"class.std::basic_string_view", align 8
  %22 = alloca %"class.std::basic_string_view", align 8
  store double %3, ptr %10, align 16
  %23 = getelementptr inbounds i8, ptr %10, i64 8
  store double %4, ptr %23, align 8
  store double %5, ptr %11, align 16
  %24 = getelementptr inbounds i8, ptr %11, i64 8
  store double %6, ptr %24, align 8
  store double %7, ptr %12, align 16
  %25 = getelementptr inbounds i8, ptr %12, i64 8
  store double %8, ptr %25, align 8
  %26 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, 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) %11, 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) %12, 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 %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  %35 = call { double, double } @_ZN3JPH12ClosestPoint25GetClosestPointOnTriangleILb0EEENS_4Vec3ES2_S2_S2_Rj(double %27, double %28, double %30, double %31, double %33, double %34, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %36 = extractvalue { double, double } %35, 0
  store double %36, ptr %14, align 16
  %37 = getelementptr inbounds i8, ptr %14, 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) %14, 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 %14) #5
  %42 = getelementptr inbounds i8, ptr %0, i64 32
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.070.0.copyload = load double, ptr %10, align 16
  %.sroa.271.0.copyload = load double, ptr %23, align 8, !tbaa !17
  %.sroa.068.0.copyload = load double, ptr %11, align 16
  %.sroa.269.0.copyload = load double, ptr %24, align 8, !tbaa !17
  %.sroa.067.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %43, double %.sroa.070.0.copyload, double %.sroa.271.0.copyload, double %.sroa.068.0.copyload, double %.sroa.269.0.copyload, i32 %.sroa.067.0.copyload)
  %44 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.065.0.copyload = load double, ptr %10, align 16
  %.sroa.266.0.copyload = load double, ptr %23, align 8, !tbaa !17
  %.sroa.063.0.copyload = load double, ptr %12, align 16
  %.sroa.264.0.copyload = load double, ptr %25, align 8, !tbaa !17
  %.sroa.062.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %44, double %.sroa.065.0.copyload, double %.sroa.266.0.copyload, double %.sroa.063.0.copyload, double %.sroa.264.0.copyload, i32 %.sroa.062.0.copyload)
  %45 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.060.0.copyload = load double, ptr %11, align 16
  %.sroa.261.0.copyload = load double, ptr %24, align 8, !tbaa !17
  %.sroa.058.0.copyload = load double, ptr %12, align 16
  %.sroa.259.0.copyload = load double, ptr %25, align 8, !tbaa !17
  %.sroa.057.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %45, double %.sroa.060.0.copyload, double %.sroa.261.0.copyload, double %.sroa.058.0.copyload, double %.sroa.259.0.copyload, i32 %.sroa.057.0.copyload)
  %46 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.055.0.copyload = load double, ptr %10, align 16
  %.sroa.256.0.copyload = load double, ptr %23, align 8, !tbaa !17
  %.sroa.053.0.copyload = load double, ptr %11, align 16
  %.sroa.254.0.copyload = load double, ptr %24, align 8, !tbaa !17
  %.sroa.051.0.copyload = load double, ptr %12, align 16
  %.sroa.252.0.copyload = load double, ptr %25, align 8, !tbaa !17
  %.sroa.050.0.copyload = load i32, ptr @_ZN3JPH5Color5sGreyE, align 4, !tbaa !17
  call void @_Z14DrawTriangleSPPN3JPH13DebugRendererENS_4Vec3ES2_S2_NS_5ColorE(ptr noundef %46, double %.sroa.055.0.copyload, double %.sroa.256.0.copyload, double %.sroa.053.0.copyload, double %.sroa.254.0.copyload, double %.sroa.051.0.copyload, double %.sroa.252.0.copyload, i32 %.sroa.050.0.copyload)
  %47 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.047.0.copyload = load i32, ptr @_ZN3JPH5Color4sRedE, align 4, !tbaa !17
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %47, double %40, double %41, i32 %.sroa.047.0.copyload, float noundef 0x3FB99999A0000000)
  %48 = load i32, ptr %13, align 4, !tbaa !18
  %49 = and i32 %48, 1
  %.not = icmp eq i32 %49, 0
  br i1 %.not, label %52, label %50

50:                                               ; preds = %9
  %51 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.045.0.copyload = load double, ptr %10, align 16
  %.sroa.246.0.copyload = load double, ptr %23, align 8, !tbaa !17
  %.sroa.044.0.copyload = load i32, ptr @_ZN3JPH5Color7sYellowE, align 4, !tbaa !17
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %51, double %.sroa.045.0.copyload, double %.sroa.246.0.copyload, i32 %.sroa.044.0.copyload, float noundef 5.000000e-01)
  %.pre = load i32, ptr %13, align 4, !tbaa !18
  br label %52

52:                                               ; preds = %50, %9
  %53 = phi i32 [ %.pre, %50 ], [ %48, %9 ]
  %54 = and i32 %53, 2
  %.not94 = icmp eq i32 %54, 0
  br i1 %.not94, label %57, label %55

55:                                               ; preds = %52
  %56 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.042.0.copyload = load double, ptr %11, align 16
  %.sroa.243.0.copyload = load double, ptr %24, align 8, !tbaa !17
  %.sroa.041.0.copyload = load i32, ptr @_ZN3JPH5Color7sYellowE, align 4, !tbaa !17
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %56, double %.sroa.042.0.copyload, double %.sroa.243.0.copyload, i32 %.sroa.041.0.copyload, float noundef 5.000000e-01)
  %.pre96 = load i32, ptr %13, align 4, !tbaa !18
  br label %57

57:                                               ; preds = %55, %52
  %58 = phi i32 [ %.pre96, %55 ], [ %53, %52 ]
  %59 = and i32 %58, 4
  %.not95 = icmp eq i32 %59, 0
  br i1 %.not95, label %62, label %60

60:                                               ; preds = %57
  %61 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.039.0.copyload = load double, ptr %12, align 16
  %.sroa.240.0.copyload = load double, ptr %25, align 8, !tbaa !17
  %.sroa.038.0.copyload = load i32, ptr @_ZN3JPH5Color7sYellowE, align 4, !tbaa !17
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %61, double %.sroa.039.0.copyload, double %.sroa.240.0.copyload, i32 %.sroa.038.0.copyload, float noundef 5.000000e-01)
  br label %62

62:                                               ; preds = %60, %57
  %63 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %40, double %41)
  %64 = extractvalue { double, double } %63, 0
  %65 = extractvalue { double, double } %63, 1
  %66 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %40, double %41)
  %67 = extractvalue { double, double } %66, 0
  %68 = extractvalue { double, double } %66, 1
  %69 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %40, double %41)
  %70 = extractvalue { double, double } %69, 0
  %71 = extractvalue { double, double } %69, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  %72 = call noundef zeroext i1 @_ZN3JPH12ClosestPoint25GetBaryCentricCoordinatesENS_4Vec3ES1_S1_RfS2_S2_(double %64, double %65, double %67, double %68, double %70, double %71, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %73 = load ptr, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  %74 = load float, ptr %15, align 4, !tbaa !20
  %.sroa.017.0.copyload = load double, ptr %10, align 16
  %.sroa.218.0.copyload = load double, ptr %23, align 8, !tbaa !17
  %75 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %74, double %.sroa.017.0.copyload, double %.sroa.218.0.copyload)
  %76 = extractvalue { double, double } %75, 0
  store double %76, ptr %19, align 16
  %77 = getelementptr inbounds i8, ptr %19, i64 8
  %78 = extractvalue { double, double } %75, 1
  store double %78, ptr %77, align 8
  %79 = load float, ptr %16, align 4, !tbaa !20
  %.sroa.013.0.copyload = load double, ptr %11, align 16
  %.sroa.214.0.copyload = load double, ptr %24, align 8, !tbaa !17
  %80 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %79, double %.sroa.013.0.copyload, double %.sroa.214.0.copyload)
  %81 = extractvalue { double, double } %80, 0
  %82 = extractvalue { double, double } %80, 1
  %83 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %81, double %82)
  %84 = extractvalue { double, double } %83, 0
  store double %84, ptr %18, align 16
  %85 = getelementptr inbounds i8, ptr %18, i64 8
  %86 = extractvalue { double, double } %83, 1
  store double %86, ptr %85, align 8
  %87 = load float, ptr %17, align 4, !tbaa !20
  %.sroa.09.0.copyload = load double, ptr %12, align 16
  %.sroa.210.0.copyload = load double, ptr %25, align 8, !tbaa !17
  %88 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %87, double %.sroa.09.0.copyload, double %.sroa.210.0.copyload)
  %89 = extractvalue { double, double } %88, 0
  %90 = extractvalue { double, double } %88, 1
  %91 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %89, double %90)
  %92 = extractvalue { double, double } %91, 0
  %93 = extractvalue { double, double } %91, 1
  %.sroa.08.0.copyload = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !17
  call void @_Z16DrawWireSphereSPPN3JPH13DebugRendererENS_4Vec3EfNS_5ColorEi(ptr noundef %73, double %92, double %93, float noundef 0x3FA99999A0000000, i32 %.sroa.08.0.copyload, i32 noundef 3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  %94 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.06.0.copyload = load double, ptr %10, align 16
  %.sroa.27.0.copyload = load double, ptr %23, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef @.str.1) #5
  %.sroa.05.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef %94, double %.sroa.06.0.copyload, double %.sroa.27.0.copyload, ptr noundef nonnull align 8 dereferenceable(16) %20, i32 %.sroa.05.0.copyload, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #5
  %95 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.03.0.copyload = load double, ptr %11, align 16
  %.sroa.24.0.copyload = load double, ptr %24, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef @.str.2) #5
  %.sroa.02.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef %95, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload, ptr noundef nonnull align 8 dereferenceable(16) %21, i32 %.sroa.02.0.copyload, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #5
  %96 = load ptr, ptr %42, align 8, !tbaa !5
  %.sroa.01.0.copyload = load double, ptr %12, align 16
  %.sroa.2.0.copyload = load double, ptr %25, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef @.str.3) #5
  %.sroa.0.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !17
  call void @_Z12DrawText3DSPPN3JPH13DebugRendererENS_4Vec3ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorEf(ptr noundef %96, double %.sroa.01.0.copyload, double %.sroa.2.0.copyload, ptr noundef nonnull align 8 dereferenceable(16) %22, i32 %.sroa.0.0.copyload, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #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 @_Z16DrawWireSphereSPPN3JPH13DebugRendererENS_4Vec3EfNS_5ColorEi(ptr noundef, double, double, float noundef, i32, i32 noundef) local_unnamed_addr #3

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

; 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 { double, double } @_ZN3JPH12ClosestPoint25GetClosestPointOnTriangleILb0EEENS_4Vec3ES2_S2_S2_Rj(double, double, double, double, double, double, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; 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 noundef zeroext i1 @_ZN3JPH12ClosestPoint25GetBaryCentricCoordinatesENS_4Vec3ES1_S1_RfS2_S2_(double, double, double, double, double, double, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), 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}
!20 = !{!16, !16, i64 0}


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