; 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: mustprogress uwtable
define dso_local void @_ZN3JPH13DebugRenderer8TriangleC2ENS_4Vec3ES2_S2_NS_5ColorE(ptr noundef nonnull align 4 dereferenceable(108) %0, double %1, double %2, double %3, double %4, double %5, double %6, i32 %7) unnamed_addr #1 align 2 {
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Color", align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca float, align 4
  %20 = alloca %"class.JPH::Float3", align 4
  %21 = alloca %"class.JPH::Float2", align 4
  %22 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  store double %1, ptr %22, align 16
  %23 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  store double %2, ptr %23, align 8
  %24 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  store double %3, ptr %24, align 16
  %25 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  store double %4, ptr %25, align 8
  %26 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  store double %5, ptr %26, align 16
  %27 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  store double %6, ptr %27, align 8
  %28 = getelementptr inbounds %"class.JPH::Color", ptr %12, i32 0, i32 0
  %29 = getelementptr inbounds %union.anon.0, ptr %28, i32 0, i32 0
  store i32 %7, ptr %29, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  %30 = load ptr, ptr %13, align 8
  %31 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %30, i32 0, i32 0
  %32 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %30, i32 0, i32 0
  %33 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %32, i64 0, i64 0
  %34 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %33, i32 0, i32 0
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef %34)
  %35 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %30, i32 0, i32 0
  %36 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %35, i64 0, i64 1
  %37 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %36, i32 0, i32 0
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %10, ptr noundef %37)
  %38 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %30, i32 0, i32 0
  %39 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %38, i64 0, i64 2
  %40 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %39, i32 0, i32 0
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef %40)
  %41 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %30, i32 0, i32 0
  %42 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %41, i64 0, i64 2
  %43 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %42, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %12, i64 4, i1 false), !tbaa.struct !9
  %44 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %30, i32 0, i32 0
  %45 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %44, i64 0, i64 1
  %46 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %45, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %43, i64 4, i1 false), !tbaa.struct !9
  %47 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %30, i32 0, i32 0
  %48 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %47, i64 0, i64 0
  %49 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %48, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %46, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  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 %9, i64 16, i1 false), !tbaa.struct !11
  %50 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %51 = load double, ptr %50, align 16
  %52 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %53 = load double, ptr %52, align 8
  %54 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %51, double %53)
  %55 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %56 = getelementptr inbounds %union.anon, ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %58 = extractvalue { double, double } %54, 0
  store double %58, ptr %57, align 16
  %59 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %60 = extractvalue { double, double } %54, 1
  store double %60, ptr %59, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !11
  %61 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %62 = load double, ptr %61, align 16
  %63 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %64 = load double, ptr %63, align 8
  %65 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %62, double %64)
  %66 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %67 = getelementptr inbounds %union.anon, ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %69 = extractvalue { double, double } %65, 0
  store double %69, ptr %68, align 16
  %70 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %71 = extractvalue { double, double } %65, 1
  store double %71, ptr %70, align 8
  %72 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %73 = load double, ptr %72, align 16
  %74 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %75 = load double, ptr %74, align 8
  %76 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %73, double %75)
  %77 = getelementptr inbounds %"class.JPH::Vec3", ptr %14, 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.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %83 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %14)
  store float %83, ptr %19, align 4, !tbaa !12
  %84 = load float, ptr %19, align 4, !tbaa !12
  %85 = fcmp ogt float %84, 0.000000e+00
  br i1 %85, label %86, label %89

86:                                               ; preds = %8
  %87 = load float, ptr %19, align 4, !tbaa !12
  %88 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef %87)
  br label %89

89:                                               ; preds = %86, %8
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #6
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef %20)
  %90 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %30, i32 0, i32 0
  %91 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %90, i64 0, i64 2
  %92 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %91, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %92, ptr align 4 %20, i64 12, i1 false), !tbaa.struct !14
  %93 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %30, i32 0, i32 0
  %94 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %93, i64 0, i64 1
  %95 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %94, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %95, ptr align 4 %92, i64 12, i1 false), !tbaa.struct !14
  %96 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %30, i32 0, i32 0
  %97 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %96, i64 0, i64 0
  %98 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %97, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %98, ptr align 4 %95, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %21, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %99 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %30, i32 0, i32 0
  %100 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %99, i64 0, i64 2
  %101 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %100, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %101, ptr align 4 %21, i64 8, i1 false), !tbaa.struct !15
  %102 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %30, i32 0, i32 0
  %103 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %102, i64 0, i64 1
  %104 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %103, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %104, ptr align 4 %101, i64 8, i1 false), !tbaa.struct !15
  %105 = getelementptr inbounds %"class.JPH::DebugRenderer::Triangle", ptr %30, i32 0, i32 0
  %106 = getelementptr inbounds [3 x %"class.JPH::DebugRenderer::Vertex"], ptr %105, i64 0, i64 0
  %107 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %106, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %107, ptr align 4 %104, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  ret void
}

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16)) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #2 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 #5 align 2

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


; 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: mustprogress uwtable
define dso_local void @_ZN3JPH13DebugRenderer8TriangleC2ENS_4Vec3ES2_S2_NS_5ColorE(ptr noundef nonnull align 4 dereferenceable(108) %0, double %1, double %2, double %3, double %4, double %5, double %6, i32 %7) unnamed_addr #1 align 2 {
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Float3", align 4
  %15 = alloca %"class.JPH::Float2", align 8
  store double %1, ptr %9, align 16
  %16 = getelementptr inbounds i8, ptr %9, i64 8
  store double %2, ptr %16, align 8
  store double %3, ptr %10, align 16
  %17 = getelementptr inbounds i8, ptr %10, i64 8
  store double %4, ptr %17, align 8
  store double %5, ptr %11, align 16
  %18 = getelementptr inbounds i8, ptr %11, i64 8
  store double %6, ptr %18, align 8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull %0)
  %19 = getelementptr inbounds i8, ptr %0, i64 36
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %10, ptr noundef nonnull %19)
  %20 = getelementptr inbounds i8, ptr %0, i64 72
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull %20)
  %21 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 %7, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %0, i64 68
  store i32 %7, ptr %22, align 4, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %7, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  %.sroa.04.0.copyload = load double, ptr %9, align 16
  %.sroa.25.0.copyload = load double, ptr %16, align 8, !tbaa !5
  %24 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %.sroa.04.0.copyload, double %.sroa.25.0.copyload)
  %25 = extractvalue { double, double } %24, 0
  store double %25, ptr %13, align 16
  %26 = getelementptr inbounds i8, ptr %13, i64 8
  %27 = extractvalue { double, double } %24, 1
  store double %27, ptr %26, align 8
  %.sroa.0.0.copyload = load double, ptr %9, align 16
  %.sroa.2.0.copyload = load double, ptr %16, align 8, !tbaa !5
  %28 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %29 = extractvalue { double, double } %28, 0
  %30 = extractvalue { double, double } %28, 1
  %31 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %29, double %30)
  %32 = extractvalue { double, double } %31, 0
  store double %32, ptr %12, align 16
  %33 = getelementptr inbounds i8, ptr %12, i64 8
  %34 = extractvalue { double, double } %31, 1
  store double %34, ptr %33, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  %35 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  %36 = fcmp ogt float %35, 0.000000e+00
  br i1 %36, label %37, label %39

37:                                               ; preds = %8
  %38 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef %35)
  br label %39

39:                                               ; preds = %37, %8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #6
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull %14)
  %40 = getelementptr inbounds i8, ptr %0, i64 84
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(12) %14, i64 12, i1 false), !tbaa.struct !8
  %41 = getelementptr inbounds i8, ptr %0, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(12) %14, i64 12, i1 false)
  %42 = getelementptr inbounds i8, ptr %0, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %42, ptr noundef nonnull align 4 dereferenceable(12) %14, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %43 = getelementptr inbounds i8, ptr %0, i64 96
  %44 = load i64, ptr %15, align 8
  store i64 %44, ptr %43, align 4
  %45 = getelementptr inbounds i8, ptr %0, i64 60
  store i64 %44, ptr %45, align 4
  %46 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %44, ptr %46, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  ret void
}

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

; 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 } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) local_unnamed_addr #2 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 #5 align 2

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