; LLVM IR from jrouwe/JoltPhysics :: TestFramework/Renderer (DebugRendererImp)

; 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::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Color" = type { %union.anon.0 }
%union.anon.0 = type { i32 }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::Float2" = type { float, float }
%"class.JPH::DebugRenderer::Triangle" = type { [3 x %"class.JPH::DebugRenderer::Vertex"] }
%"class.JPH::DebugRenderer::Vertex" = type { %"class.JPH::Float3", %"class.JPH::Float3", %"class.JPH::Float2", %"class.JPH::Color" }

; 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: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef) #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13DebugRenderer8TriangleC2ENS_4Vec3ES2_S2_NS_5ColorES2_S2_(ptr noundef nonnull align 4 dereferenceable(108) %0, double %1, double %2, double %3, double %4, double %5, double %6, i32 %7, double %8, double %9, ptr noundef byval(%"class.JPH::Vec3") align 16 %10) unnamed_addr #4 align 2 {
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Color", align 4
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca ptr, align 8
  %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 %"class.JPH::Float3", 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::Float2", align 4
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Float2", align 4
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Float2", align 4
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  store double %1, ptr %42, align 16
  %43 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  store double %2, ptr %43, align 8
  %44 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  store double %3, ptr %44, align 16
  %45 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  store double %4, ptr %45, align 8
  %46 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  store double %5, ptr %46, align 16
  %47 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  store double %6, ptr %47, align 8
  %48 = getelementptr inbounds %"class.JPH::Color", ptr %15, i32 0, i32 0
  %49 = getelementptr inbounds %union.anon.0, ptr %48, i32 0, i32 0
  store i32 %7, ptr %49, align 4
  %50 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  store double %8, ptr %50, align 16
  %51 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  store double %9, ptr %51, align 8
  store ptr %0, ptr %17, align 8, !tbaa !5
  %52 = load ptr, ptr %17, align 8
  %53 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %52, i32 0, i32 0
  %55 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %54, i64 0, i64 0
  %56 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %55, i32 0, i32 0
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef %56)
  %57 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %52, i32 0, i32 0
  %58 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %57, i64 0, i64 1
  %59 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %58, i32 0, i32 0
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %13, ptr noundef %59)
  %60 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %52, i32 0, i32 0
  %61 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %60, i64 0, i64 2
  %62 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %61, i32 0, i32 0
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef %62)
  %63 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %52, i32 0, i32 0
  %64 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %63, i64 0, i64 2
  %65 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %64, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 4 %15, i64 4, i1 false), !tbaa.struct !9
  %66 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %52, i32 0, i32 0
  %67 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %66, i64 0, i64 1
  %68 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %67, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %65, i64 4, i1 false), !tbaa.struct !9
  %69 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %52, i32 0, i32 0
  %70 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %69, i64 0, i64 0
  %71 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %70, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 4 %68, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !11
  %72 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %73 = load double, ptr %72, align 16
  %74 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %75 = load double, ptr %74, align 8
  %76 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %73, double %75)
  %77 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %78 = getelementptr inbounds %union.anon, ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 0
  %80 = extractvalue { double, double } %76, 0
  store double %80, ptr %79, align 16
  %81 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 1
  %82 = extractvalue { double, double } %76, 1
  store double %82, ptr %81, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !11
  %83 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %84 = load double, ptr %83, align 16
  %85 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %86 = load double, ptr %85, align 8
  %87 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %84, double %86)
  %88 = getelementptr inbounds %"class.JPH::Vec3", ptr %22, i32 0, i32 0
  %89 = getelementptr inbounds %union.anon, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds { double, double }, ptr %89, i32 0, i32 0
  %91 = extractvalue { double, double } %87, 0
  store double %91, ptr %90, align 16
  %92 = getelementptr inbounds { double, double }, ptr %89, i32 0, i32 1
  %93 = extractvalue { double, double } %87, 1
  store double %93, ptr %92, align 8
  %94 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %95 = load double, ptr %94, align 16
  %96 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %97 = load double, ptr %96, align 8
  %98 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %95, double %97)
  %99 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %100 = getelementptr inbounds %union.anon, ptr %99, i32 0, i32 0
  %101 = getelementptr inbounds { double, double }, ptr %100, i32 0, i32 0
  %102 = extractvalue { double, double } %98, 0
  store double %102, ptr %101, align 16
  %103 = getelementptr inbounds { double, double }, ptr %100, i32 0, i32 1
  %104 = extractvalue { double, double } %98, 1
  store double %104, ptr %103, align 8
  %105 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %19)
  %106 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %107 = getelementptr inbounds %union.anon, ptr %106, i32 0, i32 0
  %108 = getelementptr inbounds { double, double }, ptr %107, i32 0, i32 0
  %109 = extractvalue { double, double } %105, 0
  store double %109, ptr %108, align 16
  %110 = getelementptr inbounds { double, double }, ptr %107, i32 0, i32 1
  %111 = extractvalue { double, double } %105, 1
  store double %111, ptr %110, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #7
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %18, ptr noundef %24)
  %112 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %52, i32 0, i32 0
  %113 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %112, i64 0, i64 2
  %114 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %113, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %114, ptr align 4 %24, i64 12, i1 false), !tbaa.struct !12
  %115 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %52, i32 0, i32 0
  %116 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %115, i64 0, i64 1
  %117 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %116, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %117, ptr align 4 %114, i64 12, i1 false), !tbaa.struct !12
  %118 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %52, i32 0, i32 0
  %119 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %118, i64 0, i64 0
  %120 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %119, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %120, ptr align 4 %117, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !11
  %121 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %122 = load double, ptr %121, align 16
  %123 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %124 = load double, ptr %123, align 8
  %125 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %122, double %124)
  %126 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %127 = getelementptr inbounds %union.anon, ptr %126, i32 0, i32 0
  %128 = getelementptr inbounds { double, double }, ptr %127, i32 0, i32 0
  %129 = extractvalue { double, double } %125, 0
  store double %129, ptr %128, align 16
  %130 = getelementptr inbounds { double, double }, ptr %127, i32 0, i32 1
  %131 = extractvalue { double, double } %125, 1
  store double %131, ptr %130, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !11
  %132 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %133 = load double, ptr %132, align 16
  %134 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %135 = load double, ptr %134, align 8
  %136 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %133, double %135)
  %137 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %138 = getelementptr inbounds %union.anon, ptr %137, i32 0, i32 0
  %139 = getelementptr inbounds { double, double }, ptr %138, i32 0, i32 0
  %140 = extractvalue { double, double } %136, 0
  store double %140, ptr %139, align 16
  %141 = getelementptr inbounds { double, double }, ptr %138, i32 0, i32 1
  %142 = extractvalue { double, double } %136, 1
  store double %142, ptr %141, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !11
  %143 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %144 = load double, ptr %143, align 16
  %145 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %146 = load double, ptr %145, align 8
  %147 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %144, double %146)
  %148 = getelementptr inbounds %"class.JPH::Vec3", ptr %29, i32 0, i32 0
  %149 = getelementptr inbounds %union.anon, ptr %148, i32 0, i32 0
  %150 = getelementptr inbounds { double, double }, ptr %149, i32 0, i32 0
  %151 = extractvalue { double, double } %147, 0
  store double %151, ptr %150, align 16
  %152 = getelementptr inbounds { double, double }, ptr %149, i32 0, i32 1
  %153 = extractvalue { double, double } %147, 1
  store double %153, ptr %152, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !11
  %154 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %155 = load double, ptr %154, align 16
  %156 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %157 = load double, ptr %156, align 8
  %158 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %155, double %157)
  %159 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %160 = getelementptr inbounds %union.anon, ptr %159, i32 0, i32 0
  %161 = getelementptr inbounds { double, double }, ptr %160, i32 0, i32 0
  %162 = extractvalue { double, double } %158, 0
  store double %162, ptr %161, align 16
  %163 = getelementptr inbounds { double, double }, ptr %160, i32 0, i32 1
  %164 = extractvalue { double, double } %158, 1
  store double %164, ptr %163, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !11
  %165 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %166 = load double, ptr %165, align 16
  %167 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %168 = load double, ptr %167, align 8
  %169 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %166, double %168)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !11
  %170 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %171 = load double, ptr %170, align 16
  %172 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %173 = load double, ptr %172, align 8
  %174 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %31, double %171, double %173)
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %33, float noundef %169, float noundef %174)
  %175 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %52, i32 0, i32 0
  %176 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %175, i64 0, i64 0
  %177 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %176, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %177, ptr align 4 %33, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !11
  %178 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %179 = load double, ptr %178, align 16
  %180 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %181 = load double, ptr %180, align 8
  %182 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %179, double %181)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !11
  %183 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %184 = load double, ptr %183, align 16
  %185 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %186 = load double, ptr %185, align 8
  %187 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %31, double %184, double %186)
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %36, float noundef %182, float noundef %187)
  %188 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %52, i32 0, i32 0
  %189 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %188, i64 0, i64 1
  %190 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %189, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %190, ptr align 4 %36, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %29, i64 16, i1 false), !tbaa.struct !11
  %191 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %192 = load double, ptr %191, align 16
  %193 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %194 = load double, ptr %193, align 8
  %195 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %192, double %194)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %29, i64 16, i1 false), !tbaa.struct !11
  %196 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %197 = load double, ptr %196, align 16
  %198 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %199 = load double, ptr %198, align 8
  %200 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %31, double %197, double %199)
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %39, float noundef %195, float noundef %200)
  %201 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %52, i32 0, i32 0
  %202 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %201, i64 0, i64 2
  %203 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %202, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %203, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  ret void
}

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #6 align 2

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


; 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::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::Float2" = type { float, float }

; 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: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13DebugRenderer8TriangleC2ENS_4Vec3ES2_S2_NS_5ColorES2_S2_(ptr noundef nonnull align 4 dereferenceable(108) %0, double %1, double %2, double %3, double %4, double %5, double %6, i32 %7, double %8, double %9, ptr noundef byval(%"class.JPH::Vec3") align 16 %10) unnamed_addr #4 align 2 {
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Float3", align 4
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Float2", align 8
  %21 = alloca %"class.JPH::Float2", align 8
  %22 = alloca %"class.JPH::Float2", align 8
  store double %1, ptr %12, align 16
  %23 = getelementptr inbounds i8, ptr %12, i64 8
  store double %2, ptr %23, align 8
  store double %3, ptr %13, align 16
  %24 = getelementptr inbounds i8, ptr %13, i64 8
  store double %4, ptr %24, align 8
  store double %5, ptr %14, align 16
  %25 = getelementptr inbounds i8, ptr %14, i64 8
  store double %6, ptr %25, align 8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull %0)
  %26 = getelementptr inbounds i8, ptr %0, i64 36
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %13, ptr noundef nonnull %26)
  %27 = getelementptr inbounds i8, ptr %0, i64 72
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef nonnull %27)
  %28 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 %7, ptr %28, align 4, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %0, i64 68
  store i32 %7, ptr %29, align 4, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %7, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  %.sroa.028.0.copyload = load double, ptr %12, align 16
  %.sroa.229.0.copyload = load double, ptr %23, align 8, !tbaa !5
  %31 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %.sroa.028.0.copyload, double %.sroa.229.0.copyload)
  %32 = extractvalue { double, double } %31, 0
  store double %32, ptr %17, align 16
  %33 = getelementptr inbounds i8, ptr %17, i64 8
  %34 = extractvalue { double, double } %31, 1
  store double %34, ptr %33, align 8
  %.sroa.024.0.copyload = load double, ptr %12, align 16
  %.sroa.225.0.copyload = load double, ptr %23, align 8, !tbaa !5
  %35 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %.sroa.024.0.copyload, double %.sroa.225.0.copyload)
  %36 = extractvalue { double, double } %35, 0
  %37 = extractvalue { double, double } %35, 1
  %38 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %36, double %37)
  %39 = extractvalue { double, double } %38, 0
  store double %39, ptr %16, align 16
  %40 = getelementptr inbounds i8, ptr %16, i64 8
  %41 = extractvalue { double, double } %38, 1
  store double %41, ptr %40, align 8
  %42 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %43 = extractvalue { double, double } %42, 0
  store double %43, ptr %15, align 16
  %44 = getelementptr inbounds i8, ptr %15, i64 8
  %45 = extractvalue { double, double } %42, 1
  store double %45, ptr %44, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #7
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull %18)
  %46 = getelementptr inbounds i8, ptr %0, i64 84
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %46, ptr noundef nonnull align 4 dereferenceable(12) %18, i64 12, i1 false), !tbaa.struct !8
  %47 = getelementptr inbounds i8, ptr %0, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(12) %18, i64 12, i1 false)
  %48 = getelementptr inbounds i8, ptr %0, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %48, ptr noundef nonnull align 4 dereferenceable(12) %18, i64 12, i1 false)
  %49 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %8, double %9)
  %50 = extractvalue { double, double } %49, 0
  %51 = extractvalue { double, double } %49, 1
  %52 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %8, double %9)
  %53 = extractvalue { double, double } %52, 0
  %54 = extractvalue { double, double } %52, 1
  %55 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %8, double %9)
  %56 = extractvalue { double, double } %55, 0
  %57 = extractvalue { double, double } %55, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  %.sroa.011.0.copyload = load double, ptr %10, align 16
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  %.sroa.212.0.copyload = load double, ptr %.sroa.212.0..sroa_idx, align 8, !tbaa !5
  %58 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %.sroa.011.0.copyload, double %.sroa.212.0.copyload)
  %59 = extractvalue { double, double } %58, 0
  store double %59, ptr %19, align 16
  %60 = getelementptr inbounds i8, ptr %19, i64 8
  %61 = extractvalue { double, double } %58, 1
  store double %61, ptr %60, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %62 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %50, double %51)
  %63 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %50, double %51)
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %62, float noundef %63)
  %64 = getelementptr inbounds i8, ptr %0, i64 24
  %65 = load i64, ptr %20, align 8
  store i64 %65, ptr %64, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  %66 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %53, double %54)
  %67 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %53, double %54)
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %21, float noundef %66, float noundef %67)
  %68 = getelementptr inbounds i8, ptr %0, i64 60
  %69 = load i64, ptr %21, align 8
  store i64 %69, ptr %68, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %70 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %56, double %57)
  %71 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %56, double %57)
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %22, float noundef %70, float noundef %71)
  %72 = getelementptr inbounds i8, ptr %0, i64 96
  %73 = load i64, ptr %22, align 8
  store i64 %73, ptr %72, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  ret void
}

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #6 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !6, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass