; LLVM IR from ThePhysicsGuys/Physics3D :: application/picker/tools/pathTool.ll (ZN3P3D11Application8PathTool8onRenderEv)

; 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.P3D::Application::Screen" = type { %"class.P3D::Engine::Registry", ptr, ptr, %"struct.P3D::Vector.22", %"struct.P3D::Application::Camera", %"class.P3D::Engine::LayerStack", %"class.P3D::Application::EventHandler", %"class.Util::Properties", %"class.std::shared_ptr", ptr, ptr }
%"class.P3D::Engine::Registry" = type <{ %"class.std::set", %"class.std::vector.9", %"class.std::unordered_map", %"class.std::queue", i32, [4 x i8] }>
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, P3D::Engine::Registry<unsigned long>::entity_compare>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, P3D::Engine::Registry<unsigned long>::entity_compare>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.P3D::Vector.22" = type { %union.anon.23 }
%union.anon.23 = type { [2 x i32] }
%"struct.P3D::Application::Camera" = type { i8, double, double, %"struct.P3D::Vector", i8, double, double, %"struct.P3D::Vector", i8, i8, %"class.P3D::GlobalCFrame", double, double, i8, double, float, float, float, float, %"class.P3D::Matrix.25", %"class.P3D::Matrix.25", %"class.P3D::Matrix.25", %"class.P3D::Matrix.25", %"class.P3D::Matrix.25", ptr }
%"struct.P3D::Vector" = type { %union.anon.5 }
%union.anon.5 = type { [3 x double] }
%"class.P3D::GlobalCFrame" = type { %"struct.P3D::PositionTemplate", %"class.P3D::MatrixRotationTemplate" }
%"struct.P3D::PositionTemplate" = type { %"struct.P3D::Fix", %"struct.P3D::Fix", %"struct.P3D::Fix" }
%"struct.P3D::Fix" = type { i64 }
%"class.P3D::MatrixRotationTemplate" = type { %"class.P3D::Matrix" }
%"class.P3D::Matrix" = type { [9 x double] }
%"class.P3D::Matrix.25" = type { [16 x float] }
%"class.P3D::Engine::LayerStack" = type <{ %"class.std::vector.26", i32, [4 x i8] }>
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.P3D::Application::EventHandler" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.Util::Properties" = type { %"class.std::__cxx11::basic_string", %"class.std::map" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree.31" }
%"class.std::_Rb_tree.31" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.36" = type { %"class.std::__shared_ptr.37" }
%"class.std::__shared_ptr.37" = type { ptr, %"class.std::__shared_count" }
%"struct.P3D::Graphics::ColorTemplate" = type { %union.anon.84 }
%union.anon.84 = type { %struct.anon.85 }
%struct.anon.85 = type { float, float, float, float }
%"struct.P3D::Graphics::Comp::Mesh" = type <{ %"struct.P3D::RC", i64, i32, i8, [3 x i8] }>
%"struct.P3D::RC" = type { ptr, i64 }
%"class.P3D::Matrix.86" = type { [16 x double] }
%"struct.P3D::Vector.87" = type { %union.anon.88 }
%union.anon.88 = type { [3 x float] }
%"class.P3D::DiagonalMatrix" = type { [3 x double] }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.P3D::Application::PathTool" = type { %"class.P3D::Engine::StateTool.base", i8, double, %"class.std::vector" }
%"class.P3D::Engine::StateTool.base" = type <{ %"class.P3D::Engine::Tool", i8 }>
%"class.P3D::Engine::Tool" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P3D::Vector<double, 3>, std::allocator<P3D::Vector<double, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Vector<double, 3>, std::allocator<P3D::Vector<double, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Vector<double, 3>, std::allocator<P3D::Vector<double, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Vector<double, 3>, std::allocator<P3D::Vector<double, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZN3P3D11ApplicationL9deltaLineE = external hidden global { { { ptr } } }, align 8
@_ZN3P3D11Application6screenE = external global %"class.P3D::Application::Screen", align 8
@_ZN3P3D11Application7Shaders10maskShaderE = external global %"class.std::shared_ptr.36", align 8
@_ZN3P3D8Graphics6ColorsL3REDE = external hidden constant %"struct.P3D::Graphics::ColorTemplate", align 4
@constinit = external hidden constant [3 x double], align 8
@_ZN3P3D8Graphics12MeshRegistry6sphereE = external global %"struct.P3D::Graphics::Comp::Mesh", align 8

; 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 @_ZN3P3D11Application8PathTool8onRenderEv(ptr noundef nonnull align 8 dereferenceable(48) %0) unnamed_addr #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca double, align 8
  %5 = alloca %"struct.P3D::Vector", align 8
  %6 = alloca %"struct.P3D::Vector", align 8
  %7 = alloca %"struct.P3D::Vector", align 8
  %8 = alloca %"struct.P3D::Vector", align 8
  %9 = alloca %"struct.P3D::PositionTemplate", align 8
  %10 = alloca %"struct.P3D::PositionTemplate", align 8
  %11 = alloca %"struct.P3D::Vector", align 8
  %12 = alloca %"class.P3D::Matrix.25", align 4
  %13 = alloca %"class.P3D::Matrix.86", align 8
  %14 = alloca %"class.P3D::GlobalCFrame", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.P3D::Vector", align 8
  %17 = alloca %"struct.P3D::Vector", align 8
  %18 = alloca %"struct.P3D::Vector", align 8
  %19 = alloca %"struct.P3D::Vector", align 8
  %20 = alloca %"struct.P3D::Vector", align 8
  %21 = alloca %"struct.P3D::Vector", align 8
  %22 = alloca %"struct.P3D::Vector", align 8
  %23 = alloca i32, align 4
  %24 = alloca %"struct.P3D::Vector", align 8
  %25 = alloca %"struct.P3D::Vector", align 8
  %26 = alloca %"struct.P3D::Vector", align 8
  %27 = alloca i32, align 4
  %28 = alloca %"struct.P3D::Vector.87", align 4
  %29 = alloca %"struct.P3D::Vector", align 8
  %30 = alloca %"struct.P3D::Vector", align 8
  %31 = alloca { <2 x float>, float }, align 8
  %32 = alloca %"struct.P3D::Vector.87", align 4
  %33 = alloca %"struct.P3D::Vector", align 8
  %34 = alloca %"struct.P3D::Vector", align 8
  %35 = alloca { <2 x float>, float }, align 8
  %36 = alloca { <2 x float>, float }, align 4
  %37 = alloca { <2 x float>, float }, align 4
  %38 = alloca %"struct.P3D::Vector.87", align 4
  %39 = alloca %"struct.P3D::Vector", align 8
  %40 = alloca %"struct.P3D::Vector", align 8
  %41 = alloca { <2 x float>, float }, align 8
  %42 = alloca %"struct.P3D::Vector.87", align 4
  %43 = alloca %"struct.P3D::Vector", align 8
  %44 = alloca %"struct.P3D::Vector", align 8
  %45 = alloca { <2 x float>, float }, align 8
  %46 = alloca { <2 x float>, float }, align 4
  %47 = alloca { <2 x float>, float }, align 4
  %48 = alloca i64, align 8
  %49 = alloca %"class.P3D::Matrix.25", align 4
  %50 = alloca %"class.P3D::Matrix.86", align 8
  %51 = alloca %"class.P3D::GlobalCFrame", align 8
  %52 = alloca %"struct.P3D::PositionTemplate", align 8
  %53 = alloca %"class.P3D::DiagonalMatrix", align 8
  %54 = alloca %"class.std::initializer_list", align 8
  %55 = alloca [3 x double], align 8
  %56 = alloca %"class.P3D::Matrix.25", align 4
  %57 = alloca %"class.P3D::Matrix.86", align 8
  %58 = alloca %"class.P3D::GlobalCFrame", align 8
  %59 = alloca %"struct.P3D::Vector.87", align 4
  %60 = alloca { <2 x float>, float }, align 8
  %61 = alloca %"struct.P3D::Vector.87", align 4
  %62 = alloca { <2 x float>, float }, align 8
  %63 = alloca { <2 x float>, float }, align 4
  %64 = alloca { <2 x float>, float }, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %65 = load ptr, ptr %2, align 8
  call void @_ZN3P3D8Graphics8Renderer15enableDepthTestEv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 20, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store double 1.000000e+00, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  call void @_ZNK3P3D11Application6Camera17getRightDirectionEv(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %5, ptr noundef nonnull align 8 dereferenceable(576) getelementptr inbounds (%"class.P3D::Application::Screen", ptr @_ZN3P3D11Application6screenE, i32 0, i32 4))
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #8
  call void @_ZNK3P3D11Application6Camera14getUpDirectionEv(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %6, ptr noundef nonnull align 8 dereferenceable(576) getelementptr inbounds (%"class.P3D::Application::Screen", ptr @_ZN3P3D11Application6screenE, i32 0, i32 4))
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  call void @_ZNK3P3D11Application6Camera19getForwardDirectionEv(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(576) getelementptr inbounds (%"class.P3D::Application::Screen", ptr @_ZN3P3D11Application6screenE, i32 0, i32 4))
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  call void @_ZNK3P3D12GlobalCFrame11getPositionEv(ptr dead_on_unwind writable sret(%"struct.P3D::PositionTemplate") align 8 %10, ptr noundef nonnull align 8 dereferenceable(96) getelementptr inbounds (%"struct.P3D::Application::Camera", ptr getelementptr inbounds (%"class.P3D::Application::Screen", ptr @_ZN3P3D11Application6screenE, i32 0, i32 4), i32 0, i32 10))
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  %66 = getelementptr inbounds %"class.P3D::Application::PathTool", ptr %65, i32 0, i32 2
  call void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %66) #8
  call void @_ZN3P3DplINS_3FixILl32EEEdEENS_16PositionTemplateIT_EERKS5_RKNS_6VectorIT0_Lm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::PositionTemplate") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @_ZN3P3D18castPositionToVec3ERKNS_16PositionTemplateINS_3FixILl32EEEEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  %67 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders10maskShaderE) #8
  call void @_ZN3P3D11Application10MaskShader11updateColorERKNS_8Graphics13ColorTemplateIfEE(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull align 4 dereferenceable(16) @_ZN3P3D8Graphics6ColorsL3REDE)
  %68 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders10maskShaderE) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 96, ptr %14) #8
  call void @_ZN3P3D12GlobalCFrameC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %14)
  call void @_ZNK3P3D12GlobalCFrame6asMat4Ev(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.86") align 8 %13, ptr noundef nonnull align 8 dereferenceable(96) %14)
  call void @_ZN3P3D6MatrixIfLm4ELm4EEC2IdEERKNS0_IT_Lm4ELm4EEE(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 8 dereferenceable(128) %13)
  call void @_ZN3P3D11Application22StandardMeshShaderBase11updateModelERKNS_6MatrixIfLm4ELm4EEE(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(64) %12)
  call void @llvm.lifetime.end.p0(i64 96, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %69 = load i32, ptr %3, align 4, !tbaa !9
  %70 = sub nsw i32 0, %69
  %71 = sdiv i32 %70, 2
  store i32 %71, ptr %15, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %117, %1
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = load i32, ptr %3, align 4, !tbaa !9
  %75 = sdiv i32 %74, 2
  %76 = icmp sle i32 %73, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %120

78:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #8
  call void @_ZN3P3DmlIdiLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %15) #8
  call void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #8
  call void @_ZN3P3DmlIdiLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %15) #8
  call void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  call void @_ZN3P3DmlIdiLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %22, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 2, ptr %23, align 4, !tbaa !9
  call void @_ZN3P3DdvIdiLm3EEENS_6VectorIDTdvixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(4) %23) #8
  call void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #8
  call void @_ZN3P3DmlIdiLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %26, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 2, ptr %27, align 4, !tbaa !9
  call void @_ZN3P3DdvIdiLm3EEENS_6VectorIDTdvixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 4 dereferenceable(4) %27) #8
  call void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  %79 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics13LinePrimitiveESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3P3D11ApplicationL9deltaLineE) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #8
  call void @_ZN3P3DmiIddLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %30, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %29, ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %80 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  %81 = getelementptr inbounds %"struct.P3D::Vector.87", ptr %28, i32 0, i32 0
  %82 = getelementptr inbounds %union.anon.88, ptr %81, i32 0, i32 0
  store { <2 x float>, float } %80, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 8 %31, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #8
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %34, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %33, ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %83 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  %84 = getelementptr inbounds %"struct.P3D::Vector.87", ptr %32, i32 0, i32 0
  %85 = getelementptr inbounds %union.anon.88, ptr %84, i32 0, i32 0
  store { <2 x float>, float } %83, ptr %35, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %85, ptr align 8 %35, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %28, i64 12, i1 false)
  %86 = getelementptr inbounds { <2 x float>, float }, ptr %36, i32 0, i32 0
  %87 = load <2 x float>, ptr %86, align 4
  %88 = getelementptr inbounds { <2 x float>, float }, ptr %36, i32 0, i32 1
  %89 = load float, ptr %88, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %32, i64 12, i1 false)
  %90 = getelementptr inbounds { <2 x float>, float }, ptr %37, i32 0, i32 0
  %91 = load <2 x float>, ptr %90, align 4
  %92 = getelementptr inbounds { <2 x float>, float }, ptr %37, i32 0, i32 1
  %93 = load float, ptr %92, align 4
  call void @_ZN3P3D8Graphics13LinePrimitive6resizeENS_6VectorIfLm3EEES3_(ptr noundef nonnull align 8 dereferenceable(24) %79, <2 x float> %87, float %89, <2 x float> %91, float %93)
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  %94 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics13LinePrimitiveESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3P3D11ApplicationL9deltaLineE) #8
  %95 = load ptr, ptr %94, align 8, !tbaa !13
  %96 = getelementptr inbounds ptr, ptr %95, i64 0
  %97 = load ptr, ptr %96, align 8
  call void %97(ptr noundef nonnull align 8 dereferenceable(24) %94)
  %98 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics13LinePrimitiveESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3P3D11ApplicationL9deltaLineE) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %40) #8
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %40, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @_ZN3P3DmiIddLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %39, ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  %99 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #8
  %100 = getelementptr inbounds %"struct.P3D::Vector.87", ptr %38, i32 0, i32 0
  %101 = getelementptr inbounds %union.anon.88, ptr %100, i32 0, i32 0
  store { <2 x float>, float } %99, ptr %41, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %101, ptr align 8 %41, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %44) #8
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %44, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %43, ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  %102 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  %103 = getelementptr inbounds %"struct.P3D::Vector.87", ptr %42, i32 0, i32 0
  %104 = getelementptr inbounds %union.anon.88, ptr %103, i32 0, i32 0
  store { <2 x float>, float } %102, ptr %45, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %104, ptr align 8 %45, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %38, i64 12, i1 false)
  %105 = getelementptr inbounds { <2 x float>, float }, ptr %46, i32 0, i32 0
  %106 = load <2 x float>, ptr %105, align 4
  %107 = getelementptr inbounds { <2 x float>, float }, ptr %46, i32 0, i32 1
  %108 = load float, ptr %107, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %42, i64 12, i1 false)
  %109 = getelementptr inbounds { <2 x float>, float }, ptr %47, i32 0, i32 0
  %110 = load <2 x float>, ptr %109, align 4
  %111 = getelementptr inbounds { <2 x float>, float }, ptr %47, i32 0, i32 1
  %112 = load float, ptr %111, align 4
  call void @_ZN3P3D8Graphics13LinePrimitive6resizeENS_6VectorIfLm3EEES3_(ptr noundef nonnull align 8 dereferenceable(24) %98, <2 x float> %106, float %108, <2 x float> %110, float %112)
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #8
  %113 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics13LinePrimitiveESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3P3D11ApplicationL9deltaLineE) #8
  %114 = load ptr, ptr %113, align 8, !tbaa !13
  %115 = getelementptr inbounds ptr, ptr %114, i64 0
  %116 = load ptr, ptr %115, align 8
  call void %116(ptr noundef nonnull align 8 dereferenceable(24) %113)
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  br label %117

117:                                              ; preds = %78
  %118 = load i32, ptr %15, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %15, align 4, !tbaa !9
  br label %72, !llvm.loop !15

120:                                              ; preds = %77
  %121 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders10maskShaderE) #8
  call void @_ZN3P3D11Application10MaskShader11updateColorERKNS_8Graphics13ColorTemplateIfEE(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef nonnull align 4 dereferenceable(16) @_ZN3P3D8Graphics6ColorsL3REDE)
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  store i64 0, ptr %48, align 8, !tbaa !17
  br label %122

122:                                              ; preds = %170, %120
  %123 = load i64, ptr %48, align 8, !tbaa !17
  %124 = getelementptr inbounds %"class.P3D::Application::PathTool", ptr %65, i32 0, i32 3
  %125 = call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIdLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %124) #8
  %126 = icmp ult i64 %123, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  br label %173

128:                                              ; preds = %122
  %129 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders10maskShaderE) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %49) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr %50) #8
  call void @llvm.lifetime.start.p0(i64 96, ptr %51) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %52) #8
  %130 = getelementptr inbounds %"class.P3D::Application::PathTool", ptr %65, i32 0, i32 3
  %131 = load i64, ptr %48, align 8, !tbaa !17
  %132 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3P3D6VectorIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %131) #8
  call void @_ZN3P3D18castVec3ToPositionERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::PositionTemplate") align 8 %52, ptr noundef nonnull align 8 dereferenceable(24) %132) #8
  call void @_ZN3P3D12GlobalCFrameC2ERKNS_16PositionTemplateINS_3FixILl32EEEEE(ptr noundef nonnull align 8 dereferenceable(96) %51, ptr noundef nonnull align 8 dereferenceable(24) %52)
  call void @llvm.lifetime.start.p0(i64 24, ptr %53) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %55) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 @constinit, i64 24, i1 false), !tbaa.struct !19
  %133 = getelementptr inbounds %"class.std::initializer_list", ptr %54, i32 0, i32 0
  store ptr %55, ptr %133, align 8, !tbaa !21
  %134 = getelementptr inbounds %"class.std::initializer_list", ptr %54, i32 0, i32 1
  store i64 3, ptr %134, align 8, !tbaa !23
  call void @_ZN3P3D14DiagonalMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(16) %54)
  call void @_ZNK3P3D12GlobalCFrame18asMat4WithPreScaleERKNS_14DiagonalMatrixIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.86") align 8 %50, ptr noundef nonnull align 8 dereferenceable(96) %51, ptr noundef nonnull align 8 dereferenceable(24) %53)
  call void @_ZN3P3D6MatrixIfLm4ELm4EEC2IdEERKNS0_IT_Lm4ELm4EEE(ptr noundef nonnull align 4 dereferenceable(64) %49, ptr noundef nonnull align 8 dereferenceable(128) %50)
  call void @_ZN3P3D11Application22StandardMeshShaderBase11updateModelERKNS_6MatrixIfLm4ELm4EEE(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef nonnull align 4 dereferenceable(64) %49)
  call void @llvm.lifetime.end.p0(i64 24, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %49) #8
  %135 = call noundef ptr @_ZN3P3D8Graphics12MeshRegistry3getERKNS0_4Comp4MeshE(ptr noundef nonnull align 8 dereferenceable(29) @_ZN3P3D8Graphics12MeshRegistry6sphereE)
  %136 = load ptr, ptr %135, align 8, !tbaa !13
  %137 = getelementptr inbounds ptr, ptr %136, i64 0
  %138 = load ptr, ptr %137, align 8
  call void %138(ptr noundef nonnull align 8 dereferenceable(96) %135)
  %139 = load i64, ptr %48, align 8, !tbaa !17
  %140 = icmp ugt i64 %139, 0
  br i1 %140, label %141, label %169

141:                                              ; preds = %128
  %142 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders10maskShaderE) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %56) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr %57) #8
  call void @llvm.lifetime.start.p0(i64 96, ptr %58) #8
  call void @_ZN3P3D12GlobalCFrameC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %58)
  call void @_ZNK3P3D12GlobalCFrame6asMat4Ev(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.86") align 8 %57, ptr noundef nonnull align 8 dereferenceable(96) %58)
  call void @_ZN3P3D6MatrixIfLm4ELm4EEC2IdEERKNS0_IT_Lm4ELm4EEE(ptr noundef nonnull align 4 dereferenceable(64) %56, ptr noundef nonnull align 8 dereferenceable(128) %57)
  call void @_ZN3P3D11Application22StandardMeshShaderBase11updateModelERKNS_6MatrixIfLm4ELm4EEE(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef nonnull align 4 dereferenceable(64) %56)
  call void @llvm.lifetime.end.p0(i64 96, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %56) #8
  %143 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics13LinePrimitiveESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3P3D11ApplicationL9deltaLineE) #8
  %144 = getelementptr inbounds %"class.P3D::Application::PathTool", ptr %65, i32 0, i32 3
  %145 = load i64, ptr %48, align 8, !tbaa !17
  %146 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3P3D6VectorIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %145) #8
  %147 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %146) #8
  %148 = getelementptr inbounds %"struct.P3D::Vector.87", ptr %59, i32 0, i32 0
  %149 = getelementptr inbounds %union.anon.88, ptr %148, i32 0, i32 0
  store { <2 x float>, float } %147, ptr %60, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %149, ptr align 8 %60, i64 12, i1 false)
  %150 = getelementptr inbounds %"class.P3D::Application::PathTool", ptr %65, i32 0, i32 3
  %151 = load i64, ptr %48, align 8, !tbaa !17
  %152 = sub i64 %151, 1
  %153 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3P3D6VectorIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %152) #8
  %154 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %153) #8
  %155 = getelementptr inbounds %"struct.P3D::Vector.87", ptr %61, i32 0, i32 0
  %156 = getelementptr inbounds %union.anon.88, ptr %155, i32 0, i32 0
  store { <2 x float>, float } %154, ptr %62, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %156, ptr align 8 %62, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 4 %59, i64 12, i1 false)
  %157 = getelementptr inbounds { <2 x float>, float }, ptr %63, i32 0, i32 0
  %158 = load <2 x float>, ptr %157, align 4
  %159 = getelementptr inbounds { <2 x float>, float }, ptr %63, i32 0, i32 1
  %160 = load float, ptr %159, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 4 %61, i64 12, i1 false)
  %161 = getelementptr inbounds { <2 x float>, float }, ptr %64, i32 0, i32 0
  %162 = load <2 x float>, ptr %161, align 4
  %163 = getelementptr inbounds { <2 x float>, float }, ptr %64, i32 0, i32 1
  %164 = load float, ptr %163, align 4
  call void @_ZN3P3D8Graphics13LinePrimitive6resizeENS_6VectorIfLm3EEES3_(ptr noundef nonnull align 8 dereferenceable(24) %143, <2 x float> %158, float %160, <2 x float> %162, float %164)
  %165 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics13LinePrimitiveESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3P3D11ApplicationL9deltaLineE) #8
  %166 = load ptr, ptr %165, align 8, !tbaa !13
  %167 = getelementptr inbounds ptr, ptr %166, i64 0
  %168 = load ptr, ptr %167, align 8
  call void %168(ptr noundef nonnull align 8 dereferenceable(24) %165)
  br label %169

169:                                              ; preds = %141, %128
  br label %170

170:                                              ; preds = %169
  %171 = load i64, ptr %48, align 8, !tbaa !17
  %172 = add i64 %171, 1
  store i64 %172, ptr %48, align 8, !tbaa !17
  br label %122, !llvm.loop !24

173:                                              ; preds = %127
  call void @_ZN3P3D8Graphics8Renderer16disableDepthTestEv()
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  ret void
}

declare void @_ZN3P3D8Graphics8Renderer15enableDepthTestEv() #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3P3D11Application6Camera17getRightDirectionEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(576)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3P3D11Application6Camera14getUpDirectionEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(576)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3P3D11Application6Camera19getForwardDirectionEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(576)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D18castPositionToVec3ERKNS_16PositionTemplateINS_3FixILl32EEEEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DplINS_3FixILl32EEEdEENS_16PositionTemplateIT_EERKS5_RKNS_6VectorIT0_Lm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::PositionTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK3P3D12GlobalCFrame11getPositionEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::PositionTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(96)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #4 align 2

declare void @_ZN3P3D11Application10MaskShader11updateColorERKNS_8Graphics13ColorTemplateIfEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16)) #2

declare void @_ZN3P3D11Application22StandardMeshShaderBase11updateModelERKNS_6MatrixIfLm4ELm4EEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(64)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D12GlobalCFrameC2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D12GlobalCFrame6asMat4Ev(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix.86") align 8, ptr noundef nonnull align 8 dereferenceable(96)) #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DmlIdiLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DdvIdiLm3EEENS_6VectorIDTdvixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics13LinePrimitive6resizeENS_6VectorIfLm3EEES3_(ptr noundef nonnull align 8 dereferenceable(24), <2 x float>, float, <2 x float>, float) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DmiIddLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 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) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D18castVec3ToPositionERKNS_6VectorIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::PositionTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D12GlobalCFrameC2ERKNS_16PositionTemplateINS_3FixILl32EEEEE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D12GlobalCFrame18asMat4WithPreScaleERKNS_14DiagonalMatrixIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix.86") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

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

declare noundef ptr @_ZN3P3D8Graphics12MeshRegistry3getERKNS0_4Comp4MeshE(ptr noundef nonnull align 8 dereferenceable(29)) #2

declare void @_ZN3P3D8Graphics8Renderer16disableDepthTestEv() #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{i64 0, i64 24, !20}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSSt16initializer_listIdE", !6, i64 0, !18, i64 8}
!23 = !{!22, !18, i64 8}
!24 = distinct !{!24, !16}


; 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.P3D::Application::Screen" = type { %"class.P3D::Engine::Registry", ptr, ptr, %"struct.P3D::Vector.22", %"struct.P3D::Application::Camera", %"class.P3D::Engine::LayerStack", %"class.P3D::Application::EventHandler", %"class.Util::Properties", %"class.std::shared_ptr", ptr, ptr }
%"class.P3D::Engine::Registry" = type <{ %"class.std::set", %"class.std::vector.9", %"class.std::unordered_map", %"class.std::queue", i32, [4 x i8] }>
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, P3D::Engine::Registry<unsigned long>::entity_compare>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, P3D::Engine::Registry<unsigned long>::entity_compare>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *, std::allocator<std::unordered_multimap<unsigned int, P3D::intrusive_ptr<P3D::RC>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.P3D::Vector.22" = type { %union.anon.23 }
%union.anon.23 = type { [2 x i32] }
%"struct.P3D::Application::Camera" = type { i8, double, double, %"struct.P3D::Vector", i8, double, double, %"struct.P3D::Vector", i8, i8, %"class.P3D::GlobalCFrame", double, double, i8, double, float, float, float, float, %"class.P3D::Matrix.25", %"class.P3D::Matrix.25", %"class.P3D::Matrix.25", %"class.P3D::Matrix.25", %"class.P3D::Matrix.25", ptr }
%"struct.P3D::Vector" = type { %union.anon.5 }
%union.anon.5 = type { [3 x double] }
%"class.P3D::GlobalCFrame" = type { %"struct.P3D::PositionTemplate", %"class.P3D::MatrixRotationTemplate" }
%"struct.P3D::PositionTemplate" = type { %"struct.P3D::Fix", %"struct.P3D::Fix", %"struct.P3D::Fix" }
%"struct.P3D::Fix" = type { i64 }
%"class.P3D::MatrixRotationTemplate" = type { %"class.P3D::Matrix" }
%"class.P3D::Matrix" = type { [9 x double] }
%"class.P3D::Matrix.25" = type { [16 x float] }
%"class.P3D::Engine::LayerStack" = type <{ %"class.std::vector.26", i32, [4 x i8] }>
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Engine::Layer *, std::allocator<P3D::Engine::Layer *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.P3D::Application::EventHandler" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.Util::Properties" = type { %"class.std::__cxx11::basic_string", %"class.std::map" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree.31" }
%"class.std::_Rb_tree.31" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.36" = type { %"class.std::__shared_ptr.37" }
%"class.std::__shared_ptr.37" = type { ptr, %"class.std::__shared_count" }
%"struct.P3D::Graphics::ColorTemplate" = type { %union.anon.84 }
%union.anon.84 = type { %struct.anon.85 }
%struct.anon.85 = type { float, float, float, float }
%"struct.P3D::Graphics::Comp::Mesh" = type <{ %"struct.P3D::RC", i64, i32, i8, [3 x i8] }>
%"struct.P3D::RC" = type { ptr, i64 }
%"class.P3D::Matrix.86" = type { [16 x double] }
%"class.P3D::DiagonalMatrix" = type { [3 x double] }
%"class.std::initializer_list" = type { ptr, i64 }

@_ZN3P3D11ApplicationL9deltaLineE = external hidden global { { { ptr } } }, align 8
@_ZN3P3D11Application6screenE = external global %"class.P3D::Application::Screen", align 8
@_ZN3P3D11Application7Shaders10maskShaderE = external global %"class.std::shared_ptr.36", align 8
@_ZN3P3D8Graphics6ColorsL3REDE = external hidden constant %"struct.P3D::Graphics::ColorTemplate", align 4
@constinit = external hidden local_unnamed_addr constant [3 x double], align 8
@_ZN3P3D8Graphics12MeshRegistry6sphereE = external global %"struct.P3D::Graphics::Comp::Mesh", align 8

; 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 @_ZN3P3D11Application8PathTool8onRenderEv(ptr noundef nonnull align 8 dereferenceable(48) %0) unnamed_addr #1 align 2 {
.lr.ph.preheader:
  %1 = alloca i32, align 4
  %2 = alloca double, align 8
  %3 = alloca %"struct.P3D::Vector", align 8
  %4 = alloca %"struct.P3D::Vector", align 8
  %5 = alloca %"struct.P3D::Vector", align 8
  %6 = alloca %"struct.P3D::Vector", align 8
  %7 = alloca %"struct.P3D::PositionTemplate", align 8
  %8 = alloca %"struct.P3D::PositionTemplate", align 8
  %9 = alloca %"struct.P3D::Vector", align 8
  %10 = alloca %"class.P3D::Matrix.25", align 4
  %11 = alloca %"class.P3D::Matrix.86", align 8
  %12 = alloca %"class.P3D::GlobalCFrame", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.P3D::Vector", align 8
  %15 = alloca %"struct.P3D::Vector", align 8
  %16 = alloca %"struct.P3D::Vector", align 8
  %17 = alloca %"struct.P3D::Vector", align 8
  %18 = alloca %"struct.P3D::Vector", align 8
  %19 = alloca %"struct.P3D::Vector", align 8
  %20 = alloca %"struct.P3D::Vector", align 8
  %21 = alloca i32, align 4
  %22 = alloca %"struct.P3D::Vector", align 8
  %23 = alloca %"struct.P3D::Vector", align 8
  %24 = alloca %"struct.P3D::Vector", align 8
  %25 = alloca i32, align 4
  %26 = alloca %"struct.P3D::Vector", align 8
  %27 = alloca %"struct.P3D::Vector", align 8
  %28 = alloca %"struct.P3D::Vector", align 8
  %29 = alloca %"struct.P3D::Vector", align 8
  %30 = alloca %"struct.P3D::Vector", align 8
  %31 = alloca %"struct.P3D::Vector", align 8
  %32 = alloca %"struct.P3D::Vector", align 8
  %33 = alloca %"struct.P3D::Vector", align 8
  %34 = alloca %"class.P3D::Matrix.25", align 4
  %35 = alloca %"class.P3D::Matrix.86", align 8
  %36 = alloca %"class.P3D::GlobalCFrame", align 8
  %37 = alloca %"struct.P3D::PositionTemplate", align 8
  %38 = alloca %"class.P3D::DiagonalMatrix", align 8
  %39 = alloca %"class.std::initializer_list", align 8
  %40 = alloca [3 x double], align 8
  %41 = alloca %"class.P3D::Matrix.25", align 4
  %42 = alloca %"class.P3D::Matrix.86", align 8
  %43 = alloca %"class.P3D::GlobalCFrame", align 8
  tail call void @_ZN3P3D8Graphics8Renderer15enableDepthTestEv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  store i32 20, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  store double 1.000000e+00, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_ZNK3P3D11Application6Camera17getRightDirectionEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %3, ptr noundef nonnull align 8 dereferenceable(576) getelementptr inbounds (i8, ptr @_ZN3P3D11Application6screenE, i64 240))
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNK3P3D11Application6Camera14getUpDirectionEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %4, ptr noundef nonnull align 8 dereferenceable(576) getelementptr inbounds (i8, ptr @_ZN3P3D11Application6screenE, i64 240))
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @_ZNK3P3D11Application6Camera19getForwardDirectionEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %5, ptr noundef nonnull align 8 dereferenceable(576) getelementptr inbounds (i8, ptr @_ZN3P3D11Application6screenE, i64 240))
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNK3P3D12GlobalCFrame11getPositionEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::PositionTemplate") align 8 %8, ptr noundef nonnull align 8 dereferenceable(96) getelementptr inbounds (i8, ptr @_ZN3P3D11Application6screenE, i64 344))
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  %44 = getelementptr inbounds i8, ptr %0, i64 16
  call void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  call void @_ZN3P3DplINS_3FixILl32EEEdEENS_16PositionTemplateIT_EERKS5_RKNS_6VectorIT0_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::PositionTemplate") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @_ZN3P3D18castPositionToVec3ERKNS_16PositionTemplateINS_3FixILl32EEEEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  %45 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders10maskShaderE) #8
  call void @_ZN3P3D11Application10MaskShader11updateColorERKNS_8Graphics13ColorTemplateIfEE(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 4 dereferenceable(16) @_ZN3P3D8Graphics6ColorsL3REDE)
  %46 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders10maskShaderE) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %12) #8
  call void @_ZN3P3D12GlobalCFrameC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %12)
  call void @_ZNK3P3D12GlobalCFrame6asMat4Ev(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.86") align 8 %11, ptr noundef nonnull align 8 dereferenceable(96) %12)
  call void @_ZN3P3D6MatrixIfLm4ELm4EEC2IdEERKNS0_IT_Lm4ELm4EEE(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 8 dereferenceable(128) %11)
  call void @_ZN3P3D11Application22StandardMeshShaderBase11updateModelERKNS_6MatrixIfLm4ELm4EEE(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 4 dereferenceable(64) %10)
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  store i32 -10, ptr %13, align 4, !tbaa !5
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  %47 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders10maskShaderE) #8
  call void @_ZN3P3D11Application10MaskShader11updateColorERKNS_8Graphics13ColorTemplateIfEE(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 4 dereferenceable(16) @_ZN3P3D8Graphics6ColorsL3REDE)
  %48 = getelementptr inbounds i8, ptr %0, i64 24
  %49 = call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIdLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #8
  %.not = icmp eq i64 %49, 0
  br i1 %.not, label %._crit_edge55, label %50

50:                                               ; preds = %._crit_edge
  %51 = getelementptr inbounds i8, ptr %39, i64 8
  %52 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders10maskShaderE) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %34) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %35) #8
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %36) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %37) #8
  %53 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3P3D6VectorIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 0) #8
  call void @_ZN3P3D18castVec3ToPositionERKNS_6VectorIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::PositionTemplate") align 8 %37, ptr noundef nonnull align 8 dereferenceable(24) %53) #8
  call void @_ZN3P3D12GlobalCFrameC2ERKNS_16PositionTemplateINS_3FixILl32EEEEE(ptr noundef nonnull align 8 dereferenceable(96) %36, ptr noundef nonnull align 8 dereferenceable(24) %37)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %38) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %39) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %40) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(24) @constinit, i64 24, i1 false), !tbaa.struct !11
  store ptr %40, ptr %39, align 8, !tbaa !13
  store i64 3, ptr %51, align 8, !tbaa !17
  call void @_ZN3P3D14DiagonalMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(16) %39)
  call void @_ZNK3P3D12GlobalCFrame18asMat4WithPreScaleERKNS_14DiagonalMatrixIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.86") align 8 %35, ptr noundef nonnull align 8 dereferenceable(96) %36, ptr noundef nonnull align 8 dereferenceable(24) %38)
  call void @_ZN3P3D6MatrixIfLm4ELm4EEC2IdEERKNS0_IT_Lm4ELm4EEE(ptr noundef nonnull align 4 dereferenceable(64) %34, ptr noundef nonnull align 8 dereferenceable(128) %35)
  call void @_ZN3P3D11Application22StandardMeshShaderBase11updateModelERKNS_6MatrixIfLm4ELm4EEE(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 4 dereferenceable(64) %34)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %40) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %39) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %38) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %37) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %36) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %35) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %34) #8
  %54 = call noundef ptr @_ZN3P3D8Graphics12MeshRegistry3getERKNS0_4Comp4MeshE(ptr noundef nonnull align 8 dereferenceable(29) @_ZN3P3D8Graphics12MeshRegistry6sphereE)
  %55 = load ptr, ptr %54, align 8, !tbaa !18
  %56 = load ptr, ptr %55, align 8
  call void %56(ptr noundef nonnull align 8 dereferenceable(96) %54)
  %57 = call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIdLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #8
  %58 = icmp ugt i64 %57, 1
  br i1 %58, label %.peel.next, label %._crit_edge55

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #8
  call void @_ZN3P3DmlIdiLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %13) #8
  call void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #8
  call void @_ZN3P3DmlIdiLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %13) #8
  call void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #8
  call void @_ZN3P3DmlIdiLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #8
  store i32 2, ptr %21, align 4, !tbaa !5
  call void @_ZN3P3DdvIdiLm3EEENS_6VectorIDTdvixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(4) %21) #8
  call void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %24) #8
  call void @_ZN3P3DmlIdiLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #8
  store i32 2, ptr %25, align 4, !tbaa !5
  call void @_ZN3P3DdvIdiLm3EEENS_6VectorIDTdvixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 4 dereferenceable(4) %25) #8
  call void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %22, ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #8
  %59 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics13LinePrimitiveESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3P3D11ApplicationL9deltaLineE) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %26) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %27) #8
  call void @_ZN3P3DmiIddLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %27, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %26, ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %60 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  %.fca.0.extract44 = extractvalue { <2 x float>, float } %60, 0
  %.fca.1.extract45 = extractvalue { <2 x float>, float } %60, 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %29) #8
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %29, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %61 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  %.fca.0.extract38 = extractvalue { <2 x float>, float } %61, 0
  %.fca.1.extract39 = extractvalue { <2 x float>, float } %61, 1
  call void @_ZN3P3D8Graphics13LinePrimitive6resizeENS_6VectorIfLm3EEES3_(ptr noundef nonnull align 8 dereferenceable(24) %59, <2 x float> %.fca.0.extract44, float %.fca.1.extract45, <2 x float> %.fca.0.extract38, float %.fca.1.extract39)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #8
  %62 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics13LinePrimitiveESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3P3D11ApplicationL9deltaLineE) #8
  %63 = load ptr, ptr %62, align 8, !tbaa !18
  %64 = load ptr, ptr %63, align 8
  call void %64(ptr noundef nonnull align 8 dereferenceable(24) %62)
  %65 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics13LinePrimitiveESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3P3D11ApplicationL9deltaLineE) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %30) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #8
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %31, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @_ZN3P3DmiIddLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %30, ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  %66 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  %.fca.0.extract28 = extractvalue { <2 x float>, float } %66, 0
  %.fca.1.extract29 = extractvalue { <2 x float>, float } %66, 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %32) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %33) #8
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %33, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %32, ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  %67 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  %.fca.0.extract22 = extractvalue { <2 x float>, float } %67, 0
  %.fca.1.extract23 = extractvalue { <2 x float>, float } %67, 1
  call void @_ZN3P3D8Graphics13LinePrimitive6resizeENS_6VectorIfLm3EEES3_(ptr noundef nonnull align 8 dereferenceable(24) %65, <2 x float> %.fca.0.extract28, float %.fca.1.extract29, <2 x float> %.fca.0.extract22, float %.fca.1.extract23)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %33) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %32) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #8
  %68 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics13LinePrimitiveESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3P3D11ApplicationL9deltaLineE) #8
  %69 = load ptr, ptr %68, align 8, !tbaa !18
  %70 = load ptr, ptr %69, align 8
  call void %70(ptr noundef nonnull align 8 dereferenceable(24) %68)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %13, align 4, !tbaa !5
  %73 = load i32, ptr %1, align 4, !tbaa !5
  %74 = sdiv i32 %73, 2
  %.not.not = icmp slt i32 %71, %74
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !20

._crit_edge55:                                    ; preds = %.peel.next, %50, %._crit_edge
  call void @_ZN3P3D8Graphics8Renderer16disableDepthTestEv()
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret void

.peel.next:                                       ; preds = %50, %.peel.next
  %.052 = phi i64 [ %90, %.peel.next ], [ 1, %50 ]
  %75 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders10maskShaderE) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %34) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %35) #8
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %36) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %37) #8
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3P3D6VectorIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %.052) #8
  call void @_ZN3P3D18castVec3ToPositionERKNS_6VectorIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::PositionTemplate") align 8 %37, ptr noundef nonnull align 8 dereferenceable(24) %76) #8
  call void @_ZN3P3D12GlobalCFrameC2ERKNS_16PositionTemplateINS_3FixILl32EEEEE(ptr noundef nonnull align 8 dereferenceable(96) %36, ptr noundef nonnull align 8 dereferenceable(24) %37)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %38) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %39) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %40) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(24) @constinit, i64 24, i1 false), !tbaa.struct !11
  store ptr %40, ptr %39, align 8, !tbaa !13
  store i64 3, ptr %51, align 8, !tbaa !17
  call void @_ZN3P3D14DiagonalMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(16) %39)
  call void @_ZNK3P3D12GlobalCFrame18asMat4WithPreScaleERKNS_14DiagonalMatrixIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.86") align 8 %35, ptr noundef nonnull align 8 dereferenceable(96) %36, ptr noundef nonnull align 8 dereferenceable(24) %38)
  call void @_ZN3P3D6MatrixIfLm4ELm4EEC2IdEERKNS0_IT_Lm4ELm4EEE(ptr noundef nonnull align 4 dereferenceable(64) %34, ptr noundef nonnull align 8 dereferenceable(128) %35)
  call void @_ZN3P3D11Application22StandardMeshShaderBase11updateModelERKNS_6MatrixIfLm4ELm4EEE(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef nonnull align 4 dereferenceable(64) %34)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %40) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %39) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %38) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %37) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %36) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %35) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %34) #8
  %77 = call noundef ptr @_ZN3P3D8Graphics12MeshRegistry3getERKNS0_4Comp4MeshE(ptr noundef nonnull align 8 dereferenceable(29) @_ZN3P3D8Graphics12MeshRegistry6sphereE)
  %78 = load ptr, ptr %77, align 8, !tbaa !18
  %79 = load ptr, ptr %78, align 8
  call void %79(ptr noundef nonnull align 8 dereferenceable(96) %77)
  %80 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders10maskShaderE) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %41) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %42) #8
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %43) #8
  call void @_ZN3P3D12GlobalCFrameC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %43)
  call void @_ZNK3P3D12GlobalCFrame6asMat4Ev(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.86") align 8 %42, ptr noundef nonnull align 8 dereferenceable(96) %43)
  call void @_ZN3P3D6MatrixIfLm4ELm4EEC2IdEERKNS0_IT_Lm4ELm4EEE(ptr noundef nonnull align 4 dereferenceable(64) %41, ptr noundef nonnull align 8 dereferenceable(128) %42)
  call void @_ZN3P3D11Application22StandardMeshShaderBase11updateModelERKNS_6MatrixIfLm4ELm4EEE(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull align 4 dereferenceable(64) %41)
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %43) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %42) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %41) #8
  %81 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics13LinePrimitiveESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3P3D11ApplicationL9deltaLineE) #8
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3P3D6VectorIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %.052) #8
  %83 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #8
  %.fca.0.extract7 = extractvalue { <2 x float>, float } %83, 0
  %.fca.1.extract8 = extractvalue { <2 x float>, float } %83, 1
  %84 = add i64 %.052, -1
  %85 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3P3D6VectorIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %84) #8
  %86 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #8
  %.fca.0.extract = extractvalue { <2 x float>, float } %86, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %86, 1
  call void @_ZN3P3D8Graphics13LinePrimitive6resizeENS_6VectorIfLm3EEES3_(ptr noundef nonnull align 8 dereferenceable(24) %81, <2 x float> %.fca.0.extract7, float %.fca.1.extract8, <2 x float> %.fca.0.extract, float %.fca.1.extract)
  %87 = call noundef ptr @_ZNKSt10unique_ptrIN3P3D8Graphics13LinePrimitiveESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3P3D11ApplicationL9deltaLineE) #8
  %88 = load ptr, ptr %87, align 8, !tbaa !18
  %89 = load ptr, ptr %88, align 8
  call void %89(ptr noundef nonnull align 8 dereferenceable(24) %87)
  %90 = add nuw i64 %.052, 1
  %91 = call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIdLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #8
  %92 = icmp ult i64 %90, %91
  br i1 %92, label %.peel.next, label %._crit_edge55, !llvm.loop !22
}

declare void @_ZN3P3D8Graphics8Renderer15enableDepthTestEv() local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3P3D11Application6Camera17getRightDirectionEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(576)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3P3D11Application6Camera14getUpDirectionEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(576)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3P3D11Application6Camera19getForwardDirectionEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(576)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D18castPositionToVec3ERKNS_16PositionTemplateINS_3FixILl32EEEEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DplINS_3FixILl32EEEdEENS_16PositionTemplateIT_EERKS5_RKNS_6VectorIT0_Lm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::PositionTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK3P3D12GlobalCFrame11getPositionEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::PositionTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4 align 2

declare void @_ZN3P3D11Application10MaskShader11updateColorERKNS_8Graphics13ColorTemplateIfEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2

declare void @_ZN3P3D11Application22StandardMeshShaderBase11updateModelERKNS_6MatrixIfLm4ELm4EEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D12GlobalCFrameC2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D12GlobalCFrame6asMat4Ev(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix.86") align 8, ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DmlIdiLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DdvIdiLm3EEENS_6VectorIDTdvixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics13LinePrimitive6resizeENS_6VectorIfLm3EEES3_(ptr noundef nonnull align 8 dereferenceable(24), <2 x float>, float, <2 x float>, float) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DmiIddLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 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) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D18castVec3ToPositionERKNS_6VectorIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::PositionTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D12GlobalCFrameC2ERKNS_16PositionTemplateINS_3FixILl32EEEEE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D12GlobalCFrame18asMat4WithPreScaleERKNS_14DiagonalMatrixIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix.86") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

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

declare noundef ptr @_ZN3P3D8Graphics12MeshRegistry3getERKNS0_4Comp4MeshE(ptr noundef nonnull align 8 dereferenceable(29)) local_unnamed_addr #2

declare void @_ZN3P3D8Graphics8Renderer16disableDepthTestEv() local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{i64 0, i64 24, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSSt16initializer_listIdE", !15, i64 0, !16, i64 8}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!14, !16, i64 8}
!18 = !{!19, !19, i64 0}
!19 = !{!"vtable pointer", !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21, !23}
!23 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass