; LLVM IR from ThePhysicsGuys/Physics3D :: application/layer (constraintLayer)

; 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.std::shared_ptr.1" = type { %"class.std::__shared_ptr.2" }
%"class.std::__shared_ptr.2" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.82" = type { %"class.std::__shared_ptr.83" }
%"class.std::__shared_ptr.83" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_lock" = type <{ ptr, i8, [7 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.131" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.137" = type { ptr }
%"class.P3D::Engine::Layer" = type <{ ptr, ptr, %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.P3D::Application::Screen" = type { %"class.P3D::Engine::Registry", ptr, ptr, %"struct.P3D::Vector", %"struct.P3D::Application::Camera", %"class.P3D::Engine::LayerStack", %"class.P3D::Application::EventHandler", %"class.Util::Properties", %"class.std::shared_ptr.79", ptr, ptr }
%"class.P3D::Engine::Registry" = type <{ %"class.std::set", %"class.std::vector.35", %"class.std::unordered_map.40", %"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.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = 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.40" = type { %"class.std::_Hashtable.41" }
%"class.std::_Hashtable.41" = 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" = type { %union.anon.63 }
%union.anon.63 = type { [2 x i32] }
%"struct.P3D::Application::Camera" = type { i8, double, double, %"struct.P3D::Vector.65", i8, double, double, %"struct.P3D::Vector.65", i8, i8, %"class.P3D::GlobalCFrame", double, double, i8, double, float, float, float, float, %"class.P3D::Matrix.68", %"class.P3D::Matrix.68", %"class.P3D::Matrix.68", %"class.P3D::Matrix.68", %"class.P3D::Matrix.68", ptr }
%"struct.P3D::Vector.65" = type { %union.anon.66 }
%union.anon.66 = 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.68" = type { [16 x float] }
%"class.P3D::Engine::LayerStack" = type <{ %"class.std::vector.69", i32, [4 x i8] }>
%"class.std::vector.69" = type { %"struct.std::_Vector_base.70" }
%"struct.std::_Vector_base.70" = 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::map" = type { %"class.std::_Rb_tree.74" }
%"class.std::_Rb_tree.74" = 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.79" = type { %"class.std::__shared_ptr.80" }
%"class.std::__shared_ptr.80" = type { ptr, %"class.std::__shared_count" }
%"class.P3D::WorldPrototype" = type { ptr, %"class.std::vector.85", %"class.std::vector.90", %"class.std::vector.95", %"class.std::vector.100", %"class.std::vector.105", %"class.std::vector.110", %"struct.P3D::ColissionBuffer", i64, i64, double }
%"class.std::vector.85" = type { %"struct.std::_Vector_base.86" }
%"struct.std::_Vector_base.86" = type { %"struct.std::_Vector_base<P3D::ColissionLayer, std::allocator<P3D::ColissionLayer>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::ColissionLayer, std::allocator<P3D::ColissionLayer>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::ColissionLayer, std::allocator<P3D::ColissionLayer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::ColissionLayer, std::allocator<P3D::ColissionLayer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.90" = type { %"struct.std::_Vector_base.91" }
%"struct.std::_Vector_base.91" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.95" = type { %"struct.std::_Vector_base.96" }
%"struct.std::_Vector_base.96" = type { %"struct.std::_Vector_base<P3D::MotorizedPhysical *, std::allocator<P3D::MotorizedPhysical *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::MotorizedPhysical *, std::allocator<P3D::MotorizedPhysical *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::MotorizedPhysical *, std::allocator<P3D::MotorizedPhysical *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::MotorizedPhysical *, std::allocator<P3D::MotorizedPhysical *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.100" = type { %"struct.std::_Vector_base.101" }
%"struct.std::_Vector_base.101" = type { %"struct.std::_Vector_base<P3D::ExternalForce *, std::allocator<P3D::ExternalForce *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::ExternalForce *, std::allocator<P3D::ExternalForce *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::ExternalForce *, std::allocator<P3D::ExternalForce *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::ExternalForce *, std::allocator<P3D::ExternalForce *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.105" = type { %"struct.std::_Vector_base.106" }
%"struct.std::_Vector_base.106" = type { %"struct.std::_Vector_base<P3D::ConstraintGroup, std::allocator<P3D::ConstraintGroup>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::ConstraintGroup, std::allocator<P3D::ConstraintGroup>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::ConstraintGroup, std::allocator<P3D::ConstraintGroup>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::ConstraintGroup, std::allocator<P3D::ConstraintGroup>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.110" = type { %"struct.std::_Vector_base.111" }
%"struct.std::_Vector_base.111" = type { %"struct.std::_Vector_base<P3D::SoftLink *, std::allocator<P3D::SoftLink *>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::SoftLink *, std::allocator<P3D::SoftLink *>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::SoftLink *, std::allocator<P3D::SoftLink *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::SoftLink *, std::allocator<P3D::SoftLink *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.P3D::ColissionBuffer" = type { %"class.std::vector.115", %"class.std::vector.115" }
%"class.std::vector.115" = type { %"struct.std::_Vector_base.116" }
%"struct.std::_Vector_base.116" = type { %"struct.std::_Vector_base<P3D::Colission, std::allocator<P3D::Colission>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Colission, std::allocator<P3D::Colission>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Colission, std::allocator<P3D::Colission>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Colission, std::allocator<P3D::Colission>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.P3D::ConstraintGroup" = type { %"class.std::vector.132" }
%"class.std::vector.132" = type { %"struct.std::_Vector_base.133" }
%"struct.std::_Vector_base.133" = type { %"struct.std::_Vector_base<P3D::PhysicalConstraint, std::allocator<P3D::PhysicalConstraint>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::PhysicalConstraint, std::allocator<P3D::PhysicalConstraint>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::PhysicalConstraint, std::allocator<P3D::PhysicalConstraint>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::PhysicalConstraint, std::allocator<P3D::PhysicalConstraint>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZN3P3D11Application7Shaders11basicShaderE = external global %"class.std::shared_ptr.1", align 8
@_ZN3P3D11Application7Shaders10maskShaderE = external global %"class.std::shared_ptr.82", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D11Application15ConstraintLayer8onRenderERNS_6Engine8RegistryImEE(ptr noundef nonnull align 8 dereferenceable(49) %0, ptr noundef nonnull align 8 dereferenceable(212) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::shared_lock", align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.137", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.137", align 8
  %21 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %23 = getelementptr inbounds %"class.P3D::Engine::Layer", ptr %22, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  store ptr %24, ptr %5, align 8, !tbaa !5
  call void @_ZN3P3D8Graphics8Renderer10beginSceneEv()
  call void @_ZN3P3D8Graphics8Renderer14enableBlendingEv()
  %25 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application11BasicShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders11basicShaderE) #5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %"class.P3D::Application::Screen", ptr %26, i32 0, i32 4
  %28 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %27, i32 0, i32 19
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.P3D::Application::Screen", ptr %29, i32 0, i32 4
  %31 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %30, i32 0, i32 21
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.P3D::Application::Screen", ptr %32, i32 0, i32 4
  %34 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %33, i32 0, i32 10
  %35 = getelementptr inbounds %"class.P3D::GlobalCFrame", ptr %34, i32 0, i32 0
  call void @_ZN3P3D11Application20ProjectionShaderBase16updateProjectionERKNS_6MatrixIfLm4ELm4EEES5_RKNS_16PositionTemplateINS_3FixILl32EEEEE(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(64) %28, ptr noundef nonnull align 4 dereferenceable(64) %31, ptr noundef nonnull align 8 dereferenceable(24) %35)
  %36 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders10maskShaderE) #5
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.P3D::Application::Screen", ptr %37, i32 0, i32 4
  %39 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %38, i32 0, i32 19
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.P3D::Application::Screen", ptr %40, i32 0, i32 4
  %42 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %41, i32 0, i32 21
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.P3D::Application::Screen", ptr %43, i32 0, i32 4
  %45 = getelementptr inbounds %"struct.P3D::Application::Camera", ptr %44, i32 0, i32 10
  %46 = getelementptr inbounds %"class.P3D::GlobalCFrame", ptr %45, i32 0, i32 0
  call void @_ZN3P3D11Application20ProjectionShaderBase16updateProjectionERKNS_6MatrixIfLm4ELm4EEES5_RKNS_16PositionTemplateINS_3FixILl32EEEEE(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(64) %39, ptr noundef nonnull align 4 dereferenceable(64) %42, ptr noundef nonnull align 8 dereferenceable(24) %46)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.P3D::Application::Screen", ptr %47, i32 0, i32 2
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  call void @_ZNSt11shared_lockIN3P3D16UpgradeableMutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(9) %6, ptr noundef nonnull align 8 dereferenceable(96) %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.P3D::Application::Screen", ptr %50, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !67
  %53 = getelementptr inbounds %"class.P3D::WorldPrototype", ptr %52, i32 0, i32 3
  store ptr %53, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = call ptr @_ZNSt6vectorIPN3P3D17MotorizedPhysicalESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #5
  %56 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %55, ptr %56, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = call ptr @_ZNSt6vectorIPN3P3D17MotorizedPhysicalESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #5
  %59 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %58, ptr %59, align 8
  br label %60

60:                                               ; preds = %68, %2
  %61 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3P3D17MotorizedPhysicalESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %61, label %63, label %62

62:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %74

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3P3D17MotorizedPhysicalESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  store ptr %65, ptr %10, align 8, !tbaa !5
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN3P3D11ApplicationL28recurseRenderHardConstraintsERKNS_8PhysicalE(ptr noundef nonnull align 8 dereferenceable(144) %66)
          to label %67 unwind label %70

67:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %68

68:                                               ; preds = %67
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3P3D17MotorizedPhysicalESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br label %60

70:                                               ; preds = %63
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %11, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %115

74:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.P3D::Application::Screen", ptr %75, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8, !tbaa !67
  %78 = getelementptr inbounds %"class.P3D::WorldPrototype", ptr %77, i32 0, i32 5
  store ptr %78, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = call ptr @_ZNSt6vectorIN3P3D15ConstraintGroupESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #5
  %81 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %14, i32 0, i32 0
  store ptr %80, ptr %81, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = call ptr @_ZNSt6vectorIN3P3D15ConstraintGroupESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #5
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %15, i32 0, i32 0
  store ptr %83, ptr %84, align 8
  br label %85

85:                                               ; preds = %112, %74
  %86 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3P3D15ConstraintGroupESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br i1 %86, label %88, label %87

87:                                               ; preds = %85
  store i32 4, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %114

88:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %89 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3P3D15ConstraintGroupESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  store ptr %89, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %90 = load ptr, ptr %17, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.P3D::ConstraintGroup", ptr %90, i32 0, i32 0
  store ptr %91, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %92 = load ptr, ptr %18, align 8, !tbaa !5
  %93 = call ptr @_ZNKSt6vectorIN3P3D18PhysicalConstraintESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #5
  %94 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.137", ptr %19, i32 0, i32 0
  store ptr %93, ptr %94, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = call ptr @_ZNKSt6vectorIN3P3D18PhysicalConstraintESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #5
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.137", ptr %20, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  br label %98

98:                                               ; preds = %105, %88
  %99 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3P3D18PhysicalConstraintESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  br i1 %99, label %101, label %100

100:                                              ; preds = %98
  store i32 6, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %111

101:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %102 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3P3D18PhysicalConstraintESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  store ptr %102, ptr %21, align 8, !tbaa !5
  %103 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZN3P3D11ApplicationL16renderConstraintERKNS_18PhysicalConstraintE(ptr noundef nonnull align 8 dereferenceable(24) %103)
          to label %104 unwind label %107

104:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %105

105:                                              ; preds = %104
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3P3D18PhysicalConstraintESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  br label %98

107:                                              ; preds = %101
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %11, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %115

111:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %112

112:                                              ; preds = %111
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3P3D15ConstraintGroupESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br label %85

114:                                              ; preds = %87
  call void @_ZNSt11shared_lockIN3P3D16UpgradeableMutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @_ZN3P3D8Graphics8Renderer8endSceneEv()
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void

115:                                              ; preds = %107, %70
  call void @_ZNSt11shared_lockIN3P3D16UpgradeableMutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %116

116:                                              ; preds = %115
  %117 = load ptr, ptr %11, align 8
  %118 = load i32, ptr %12, align 4
  %119 = insertvalue { ptr, i32 } poison, ptr %117, 0
  %120 = insertvalue { ptr, i32 } %119, i32 %118, 1
  resume { ptr, i32 } %120
}

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

declare void @_ZN3P3D8Graphics8Renderer10beginSceneEv() #2

declare void @_ZN3P3D8Graphics8Renderer14enableBlendingEv() #2

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

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

; 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)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11shared_lockIN3P3D16UpgradeableMutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3P3D17MotorizedPhysicalESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3P3D11ApplicationL28recurseRenderHardConstraintsERKNS_8PhysicalE(ptr noundef nonnull align 8 dereferenceable(144)) #0

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN3P3D15ConstraintGroupESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3P3D18PhysicalConstraintESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3P3D11ApplicationL16renderConstraintERKNS_18PhysicalConstraintE(ptr noundef nonnull align 8 dereferenceable(24)) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt11shared_lockIN3P3D16UpgradeableMutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(9)) unnamed_addr #3 align 2

declare void @_ZN3P3D8Graphics8Renderer8endSceneEv() #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTSN3P3D6Engine5LayerE", !6, i64 8, !11, i64 16, !7, i64 48}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !6, i64 224}
!15 = !{!"_ZTSN3P3D11Application6ScreenE", !16, i64 0, !6, i64 216, !6, i64 224, !41, i64 232, !42, i64 240, !52, i64 816, !57, i64 848, !58, i64 912, !64, i64 992, !6, i64 1008, !6, i64 1016}
!16 = !{!"_ZTSN3P3D6Engine8RegistryImEE", !17, i64 0, !25, i64 48, !29, i64 72, !34, i64 128, !40, i64 208}
!17 = !{!"_ZTSSt3setImN3P3D6Engine8RegistryImE14entity_compareESaImEE", !18, i64 0}
!18 = !{!"_ZTSSt8_Rb_treeImmSt9_IdentityImEN3P3D6Engine8RegistryImE14entity_compareESaImEE", !19, i64 0}
!19 = !{!"_ZTSNSt8_Rb_treeImmSt9_IdentityImEN3P3D6Engine8RegistryImE14entity_compareESaImEE13_Rb_tree_implIS6_Lb1EEE", !20, i64 0, !22, i64 8}
!20 = !{!"_ZTSSt20_Rb_tree_key_compareIN3P3D6Engine8RegistryImE14entity_compareEE", !21, i64 0}
!21 = !{!"_ZTSN3P3D6Engine8RegistryImE14entity_compareE"}
!22 = !{!"_ZTSSt15_Rb_tree_header", !23, i64 0, !13, i64 32}
!23 = !{!"_ZTSSt18_Rb_tree_node_base", !24, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!24 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!25 = !{!"_ZTSSt6vectorIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSSt13unordered_mapItNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashItESt8equal_toItESaISt4pairIKtS5_EEE", !30, i64 0}
!30 = !{!"_ZTSSt10_HashtableItSt4pairIKtNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS8_ENSt8__detail10_Select1stESt8equal_toItESt4hashItENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !13, i64 8, !31, i64 16, !13, i64 24, !32, i64 32, !6, i64 48}
!31 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!32 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !33, i64 0, !13, i64 8}
!33 = !{!"float", !7, i64 0}
!34 = !{!"_ZTSSt5queueIjSt5dequeIjSaIjEEE", !35, i64 0}
!35 = !{!"_ZTSSt5dequeIjSaIjEE", !36, i64 0}
!36 = !{!"_ZTSSt11_Deque_baseIjSaIjEE", !37, i64 0}
!37 = !{!"_ZTSNSt11_Deque_baseIjSaIjEE11_Deque_implE", !38, i64 0}
!38 = !{!"_ZTSNSt11_Deque_baseIjSaIjEE16_Deque_impl_dataE", !6, i64 0, !13, i64 8, !39, i64 16, !39, i64 48}
!39 = !{!"_ZTSSt15_Deque_iteratorIjRjPjE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!40 = !{!"int", !7, i64 0}
!41 = !{!"_ZTSN3P3D6VectorIiLm2EEE", !7, i64 0}
!42 = !{!"_ZTSN3P3D11Application6CameraE", !7, i64 0, !43, i64 8, !43, i64 16, !44, i64 24, !45, i64 48, !43, i64 56, !43, i64 64, !44, i64 72, !45, i64 96, !45, i64 97, !46, i64 104, !43, i64 200, !43, i64 208, !45, i64 216, !43, i64 224, !33, i64 232, !33, i64 236, !33, i64 240, !33, i64 244, !51, i64 248, !51, i64 312, !51, i64 376, !51, i64 440, !51, i64 504, !6, i64 568}
!43 = !{!"double", !7, i64 0}
!44 = !{!"_ZTSN3P3D6VectorIdLm3EEE", !7, i64 0}
!45 = !{!"bool", !7, i64 0}
!46 = !{!"_ZTSN3P3D12GlobalCFrameE", !47, i64 0, !49, i64 24}
!47 = !{!"_ZTSN3P3D16PositionTemplateINS_3FixILl32EEEEE", !48, i64 0, !48, i64 8, !48, i64 16}
!48 = !{!"_ZTSN3P3D3FixILl32EEE", !13, i64 0}
!49 = !{!"_ZTSN3P3D22MatrixRotationTemplateIdEE", !50, i64 0}
!50 = !{!"_ZTSN3P3D6MatrixIdLm3ELm3EEE", !7, i64 0}
!51 = !{!"_ZTSN3P3D6MatrixIfLm4ELm4EEE", !7, i64 0}
!52 = !{!"_ZTSN3P3D6Engine10LayerStackE", !53, i64 0, !40, i64 24}
!53 = !{!"_ZTSSt6vectorIPN3P3D6Engine5LayerESaIS3_EE", !54, i64 0}
!54 = !{!"_ZTSSt12_Vector_baseIPN3P3D6Engine5LayerESaIS3_EE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIPN3P3D6Engine5LayerESaIS3_EE12_Vector_implE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseIPN3P3D6Engine5LayerESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!57 = !{!"_ZTSN3P3D11Application12EventHandlerE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!58 = !{!"_ZTSN4Util10PropertiesE", !11, i64 0, !59, i64 32}
!59 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !60, i64 0}
!60 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !61, i64 0}
!61 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !62, i64 0, !22, i64 8}
!62 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !63, i64 0}
!63 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!64 = !{!"_ZTSSt10shared_ptrIN3P3D8Graphics11FrameBufferEE", !65, i64 0}
!65 = !{!"_ZTSSt12__shared_ptrIN3P3D8Graphics11FrameBufferELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !66, i64 8}
!66 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!67 = !{!15, !6, i64 216}


; 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.std::shared_ptr.1" = type { %"class.std::__shared_ptr.2" }
%"class.std::__shared_ptr.2" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.82" = type { %"class.std::__shared_ptr.83" }
%"class.std::__shared_ptr.83" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_lock" = type <{ ptr, i8, [7 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.131" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.137" = type { ptr }

@_ZN3P3D11Application7Shaders11basicShaderE = external global %"class.std::shared_ptr.1", align 8
@_ZN3P3D11Application7Shaders10maskShaderE = external global %"class.std::shared_ptr.82", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D11Application15ConstraintLayer8onRenderERNS_6Engine8RegistryImEE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(49) %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(212) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::shared_lock", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.137", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.137", align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  tail call void @_ZN3P3D8Graphics8Renderer10beginSceneEv()
  tail call void @_ZN3P3D8Graphics8Renderer14enableBlendingEv()
  %12 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application11BasicShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders11basicShaderE) #5
  %13 = getelementptr inbounds i8, ptr %11, i64 488
  %14 = getelementptr inbounds i8, ptr %11, i64 616
  %15 = getelementptr inbounds i8, ptr %11, i64 344
  tail call void @_ZN3P3D11Application20ProjectionShaderBase16updateProjectionERKNS_6MatrixIfLm4ELm4EEES5_RKNS_16PositionTemplateINS_3FixILl32EEEEE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef nonnull align 4 dereferenceable(64) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
  %16 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN3P3D11Application10MaskShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) @_ZN3P3D11Application7Shaders10maskShaderE) #5
  tail call void @_ZN3P3D11Application20ProjectionShaderBase16updateProjectionERKNS_6MatrixIfLm4ELm4EEES5_RKNS_16PositionTemplateINS_3FixILl32EEEEE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef nonnull align 4 dereferenceable(64) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  %17 = getelementptr inbounds i8, ptr %11, i64 224
  %18 = load ptr, ptr %17, align 8, !tbaa !13
  call void @_ZNSt11shared_lockIN3P3D16UpgradeableMutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(9) %3, ptr noundef nonnull align 8 dereferenceable(96) %18)
  %19 = getelementptr inbounds i8, ptr %11, i64 216
  %20 = load ptr, ptr %19, align 8, !tbaa !66
  %21 = getelementptr inbounds i8, ptr %20, i64 56
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %22 = call ptr @_ZNSt6vectorIPN3P3D17MotorizedPhysicalESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  store ptr %22, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %23 = call ptr @_ZNSt6vectorIPN3P3D17MotorizedPhysicalESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  store ptr %23, ptr %5, align 8
  %24 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3P3D17MotorizedPhysicalESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %24, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %32, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %25 = load ptr, ptr %19, align 8, !tbaa !66
  %26 = getelementptr inbounds i8, ptr %25, i64 104
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %27 = call ptr @_ZNSt6vectorIN3P3D15ConstraintGroupESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  store ptr %27, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %28 = call ptr @_ZNSt6vectorIN3P3D15ConstraintGroupESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  store ptr %28, ptr %7, align 8
  %29 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3P3D15ConstraintGroupESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %29, label %.lr.ph26, label %._crit_edge27

.lr.ph:                                           ; preds = %2, %32
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3P3D17MotorizedPhysicalESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %31 = load ptr, ptr %30, align 8, !tbaa !67
  invoke void @_ZN3P3D11ApplicationL28recurseRenderHardConstraintsERKNS_8PhysicalE(ptr noundef nonnull align 8 dereferenceable(144) %31)
          to label %32 unwind label %35

32:                                               ; preds = %.lr.ph
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3P3D17MotorizedPhysicalESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %34 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3P3D17MotorizedPhysicalESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %34, label %.lr.ph, label %._crit_edge

35:                                               ; preds = %.lr.ph
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %49

._crit_edge27:                                    ; preds = %._crit_edge24, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @_ZNSt11shared_lockIN3P3D16UpgradeableMutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  call void @_ZN3P3D8Graphics8Renderer8endSceneEv()
  ret void

.lr.ph26:                                         ; preds = %._crit_edge, %._crit_edge24
  %37 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3P3D15ConstraintGroupESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %38 = call ptr @_ZNKSt6vectorIN3P3D18PhysicalConstraintESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #5
  store ptr %38, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %39 = call ptr @_ZNKSt6vectorIN3P3D18PhysicalConstraintESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #5
  store ptr %39, ptr %9, align 8
  %40 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3P3D18PhysicalConstraintESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %40, label %.lr.ph23, label %._crit_edge24

._crit_edge24:                                    ; preds = %44, %.lr.ph26
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3P3D15ConstraintGroupESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %42 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3P3D15ConstraintGroupESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %42, label %.lr.ph26, label %._crit_edge27

.lr.ph23:                                         ; preds = %.lr.ph26, %44
  %43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3P3D18PhysicalConstraintESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  invoke void @_ZN3P3D11ApplicationL16renderConstraintERKNS_18PhysicalConstraintE(ptr noundef nonnull align 8 dereferenceable(24) %43)
          to label %44 unwind label %47

44:                                               ; preds = %.lr.ph23
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3P3D18PhysicalConstraintESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3P3D18PhysicalConstraintESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %46, label %.lr.ph23, label %._crit_edge24

47:                                               ; preds = %.lr.ph23
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %49

49:                                               ; preds = %47, %35
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %48, %47 ]
  call void @_ZNSt11shared_lockIN3P3D16UpgradeableMutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn
}

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

declare void @_ZN3P3D8Graphics8Renderer10beginSceneEv() local_unnamed_addr #2

declare void @_ZN3P3D8Graphics8Renderer14enableBlendingEv() local_unnamed_addr #2

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

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

; 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 #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11shared_lockIN3P3D16UpgradeableMutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3P3D17MotorizedPhysicalESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3P3D11ApplicationL28recurseRenderHardConstraintsERKNS_8PhysicalE(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN3P3D15ConstraintGroupESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3P3D18PhysicalConstraintESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3P3D11ApplicationL16renderConstraintERKNS_18PhysicalConstraintE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt11shared_lockIN3P3D16UpgradeableMutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(9)) unnamed_addr #3 align 2

declare void @_ZN3P3D8Graphics8Renderer8endSceneEv() local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"_ZTSN3P3D6Engine5LayerE", !7, i64 8, !10, i64 16, !8, i64 48}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !11, i64 0, !12, i64 8, !8, i64 16}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!14, !7, i64 224}
!14 = !{!"_ZTSN3P3D11Application6ScreenE", !15, i64 0, !7, i64 216, !7, i64 224, !40, i64 232, !41, i64 240, !51, i64 816, !56, i64 848, !57, i64 912, !63, i64 992, !7, i64 1008, !7, i64 1016}
!15 = !{!"_ZTSN3P3D6Engine8RegistryImEE", !16, i64 0, !24, i64 48, !28, i64 72, !33, i64 128, !39, i64 208}
!16 = !{!"_ZTSSt3setImN3P3D6Engine8RegistryImE14entity_compareESaImEE", !17, i64 0}
!17 = !{!"_ZTSSt8_Rb_treeImmSt9_IdentityImEN3P3D6Engine8RegistryImE14entity_compareESaImEE", !18, i64 0}
!18 = !{!"_ZTSNSt8_Rb_treeImmSt9_IdentityImEN3P3D6Engine8RegistryImE14entity_compareESaImEE13_Rb_tree_implIS6_Lb1EEE", !19, i64 0, !21, i64 8}
!19 = !{!"_ZTSSt20_Rb_tree_key_compareIN3P3D6Engine8RegistryImE14entity_compareEE", !20, i64 0}
!20 = !{!"_ZTSN3P3D6Engine8RegistryImE14entity_compareE"}
!21 = !{!"_ZTSSt15_Rb_tree_header", !22, i64 0, !12, i64 32}
!22 = !{!"_ZTSSt18_Rb_tree_node_base", !23, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!23 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!24 = !{!"_ZTSSt6vectorIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIPSt18unordered_multimapIjN3P3D13intrusive_ptrINS1_2RCEEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEESaISE_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!28 = !{!"_ZTSSt13unordered_mapItNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashItESt8equal_toItESaISt4pairIKtS5_EEE", !29, i64 0}
!29 = !{!"_ZTSSt10_HashtableItSt4pairIKtNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS8_ENSt8__detail10_Select1stESt8equal_toItESt4hashItENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE", !7, i64 0, !12, i64 8, !30, i64 16, !12, i64 24, !31, i64 32, !7, i64 48}
!30 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !7, i64 0}
!31 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !32, i64 0, !12, i64 8}
!32 = !{!"float", !8, i64 0}
!33 = !{!"_ZTSSt5queueIjSt5dequeIjSaIjEEE", !34, i64 0}
!34 = !{!"_ZTSSt5dequeIjSaIjEE", !35, i64 0}
!35 = !{!"_ZTSSt11_Deque_baseIjSaIjEE", !36, i64 0}
!36 = !{!"_ZTSNSt11_Deque_baseIjSaIjEE11_Deque_implE", !37, i64 0}
!37 = !{!"_ZTSNSt11_Deque_baseIjSaIjEE16_Deque_impl_dataE", !7, i64 0, !12, i64 8, !38, i64 16, !38, i64 48}
!38 = !{!"_ZTSSt15_Deque_iteratorIjRjPjE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!39 = !{!"int", !8, i64 0}
!40 = !{!"_ZTSN3P3D6VectorIiLm2EEE", !8, i64 0}
!41 = !{!"_ZTSN3P3D11Application6CameraE", !8, i64 0, !42, i64 8, !42, i64 16, !43, i64 24, !44, i64 48, !42, i64 56, !42, i64 64, !43, i64 72, !44, i64 96, !44, i64 97, !45, i64 104, !42, i64 200, !42, i64 208, !44, i64 216, !42, i64 224, !32, i64 232, !32, i64 236, !32, i64 240, !32, i64 244, !50, i64 248, !50, i64 312, !50, i64 376, !50, i64 440, !50, i64 504, !7, i64 568}
!42 = !{!"double", !8, i64 0}
!43 = !{!"_ZTSN3P3D6VectorIdLm3EEE", !8, i64 0}
!44 = !{!"bool", !8, i64 0}
!45 = !{!"_ZTSN3P3D12GlobalCFrameE", !46, i64 0, !48, i64 24}
!46 = !{!"_ZTSN3P3D16PositionTemplateINS_3FixILl32EEEEE", !47, i64 0, !47, i64 8, !47, i64 16}
!47 = !{!"_ZTSN3P3D3FixILl32EEE", !12, i64 0}
!48 = !{!"_ZTSN3P3D22MatrixRotationTemplateIdEE", !49, i64 0}
!49 = !{!"_ZTSN3P3D6MatrixIdLm3ELm3EEE", !8, i64 0}
!50 = !{!"_ZTSN3P3D6MatrixIfLm4ELm4EEE", !8, i64 0}
!51 = !{!"_ZTSN3P3D6Engine10LayerStackE", !52, i64 0, !39, i64 24}
!52 = !{!"_ZTSSt6vectorIPN3P3D6Engine5LayerESaIS3_EE", !53, i64 0}
!53 = !{!"_ZTSSt12_Vector_baseIPN3P3D6Engine5LayerESaIS3_EE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIPN3P3D6Engine5LayerESaIS3_EE12_Vector_implE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIPN3P3D6Engine5LayerESaIS3_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!56 = !{!"_ZTSN3P3D11Application12EventHandlerE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!57 = !{!"_ZTSN4Util10PropertiesE", !10, i64 0, !58, i64 32}
!58 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !59, i64 0}
!59 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !60, i64 0}
!60 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !61, i64 0, !21, i64 8}
!61 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !62, i64 0}
!62 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!63 = !{!"_ZTSSt10shared_ptrIN3P3D8Graphics11FrameBufferEE", !64, i64 0}
!64 = !{!"_ZTSSt12__shared_ptrIN3P3D8Graphics11FrameBufferELN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0, !65, i64 8}
!65 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0}
!66 = !{!14, !7, i64 216}
!67 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass