; LLVM IR from Razakhel/RaZ :: src/RaZ/Render/RenderSystem.ll (ZN3Raz12RenderSystem10initializeEv)

; 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::__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::allocator.21" = type { i8 }
%"class.Raz::RenderSystem" = type { %"class.Raz::System", i32, i32, %"class.std::unique_ptr", ptr, %"class.Raz::RenderGraph", %"class.Raz::UniformBuffer", %"class.Raz::UniformBuffer", %"class.Raz::UniformBuffer", %"class.Raz::UniformBuffer", %"class.std::optional.100", ptr }
%"class.Raz::System" = type { ptr, %"class.std::vector", %"class.Raz::Bitset" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Raz::Entity *, std::allocator<Raz::Entity *>>::_Vector_impl" }
%"struct.std::_Vector_base<Raz::Entity *, std::allocator<Raz::Entity *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Raz::Entity *, std::allocator<Raz::Entity *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Raz::Entity *, std::allocator<Raz::Entity *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Raz::Bitset" = type { %"class.std::vector.5" }
%"class.std::vector.5" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.10" }
%"struct.std::_Head_base.10" = type { ptr }
%"class.Raz::RenderGraph" = type { %"class.Raz::Graph", %"class.Raz::RenderPass", %"class.std::vector.75", %"class.std::unordered_set.80", ptr }
%"class.Raz::Graph" = type { %"class.std::vector.11" }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<std::unique_ptr<Raz::RenderPass>, std::allocator<std::unique_ptr<Raz::RenderPass>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<Raz::RenderPass>, std::allocator<std::unique_ptr<Raz::RenderPass>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<Raz::RenderPass>, std::allocator<std::unique_ptr<Raz::RenderPass>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<Raz::RenderPass>, std::allocator<std::unique_ptr<Raz::RenderPass>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Raz::RenderPass" = type <{ %"class.Raz::GraphNode", i8, [7 x i8], %"class.std::__cxx11::basic_string", %"class.Raz::RenderShaderProgram", %"class.Raz::Framebuffer", %"class.Raz::RenderTimer", [4 x i8] }>
%"class.Raz::GraphNode" = type { ptr, %"class.std::vector.16", %"class.std::vector.16" }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<Raz::RenderPass *, std::allocator<Raz::RenderPass *>>::_Vector_impl" }
%"struct.std::_Vector_base<Raz::RenderPass *, std::allocator<Raz::RenderPass *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Raz::RenderPass *, std::allocator<Raz::RenderPass *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Raz::RenderPass *, std::allocator<Raz::RenderPass *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Raz::RenderShaderProgram" = type { %"class.Raz::ShaderProgram", %"class.Raz::VertexShader", %"class.std::optional", %"class.std::optional.49", %"class.std::optional.59", %"class.Raz::FragmentShader" }
%"class.Raz::ShaderProgram" = type { ptr, %"class.Raz::OwnerValue", %"class.std::unordered_map", %"class.std::vector.37", %"class.std::vector.42" }
%"class.Raz::OwnerValue" = type { i32 }
%"class.std::unordered_map" = type { %"class.std::_Hashtable.24" }
%"class.std::_Hashtable.24" = 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::vector.37" = type { %"struct.std::_Vector_base.38" }
%"struct.std::_Vector_base.38" = type { %"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Raz::VertexShader" = type { %"class.Raz::Shader" }
%"class.Raz::Shader" = type { ptr, %"class.Raz::OwnerValue", %"class.Raz::FilePath" }
%"class.Raz::FilePath" = type { %"class.std::__cxx11::basic_string" }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<Raz::TessellationControlShader>::_Storage", i8 }>
%"union.std::_Optional_payload_base<Raz::TessellationControlShader>::_Storage" = type { %"class.Raz::TessellationControlShader" }
%"class.Raz::TessellationControlShader" = type { %"class.Raz::Shader" }
%"class.std::optional.49" = type { %"struct.std::_Optional_base.50" }
%"struct.std::_Optional_base.50" = type { %"struct.std::_Optional_payload.52" }
%"struct.std::_Optional_payload.52" = type { %"struct.std::_Optional_payload.base.56", [7 x i8] }
%"struct.std::_Optional_payload.base.56" = type { %"struct.std::_Optional_payload_base.base.55" }
%"struct.std::_Optional_payload_base.base.55" = type <{ %"union.std::_Optional_payload_base<Raz::TessellationEvaluationShader>::_Storage", i8 }>
%"union.std::_Optional_payload_base<Raz::TessellationEvaluationShader>::_Storage" = type { %"class.Raz::TessellationEvaluationShader" }
%"class.Raz::TessellationEvaluationShader" = type { %"class.Raz::Shader" }
%"class.std::optional.59" = type { %"struct.std::_Optional_base.60" }
%"struct.std::_Optional_base.60" = type { %"struct.std::_Optional_payload.62" }
%"struct.std::_Optional_payload.62" = type { %"struct.std::_Optional_payload.base.66", [7 x i8] }
%"struct.std::_Optional_payload.base.66" = type { %"struct.std::_Optional_payload_base.base.65" }
%"struct.std::_Optional_payload_base.base.65" = type <{ %"union.std::_Optional_payload_base<Raz::GeometryShader>::_Storage", i8 }>
%"union.std::_Optional_payload_base<Raz::GeometryShader>::_Storage" = type { %"class.Raz::GeometryShader" }
%"class.Raz::GeometryShader" = type { %"class.Raz::Shader" }
%"class.Raz::FragmentShader" = type { %"class.Raz::Shader" }
%"class.Raz::Framebuffer" = type { %"class.Raz::OwnerValue", %"class.std::shared_ptr", %"class.std::vector.69" }
%"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::vector.69" = type { %"struct.std::_Vector_base.70" }
%"struct.std::_Vector_base.70" = type { %"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture2D>, unsigned int>, std::allocator<std::pair<std::shared_ptr<Raz::Texture2D>, unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture2D>, unsigned int>, std::allocator<std::pair<std::shared_ptr<Raz::Texture2D>, unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture2D>, unsigned int>, std::allocator<std::pair<std::shared_ptr<Raz::Texture2D>, unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture2D>, unsigned int>, std::allocator<std::pair<std::shared_ptr<Raz::Texture2D>, unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Raz::RenderTimer" = type { %"class.Raz::OwnerValue.74" }
%"class.Raz::OwnerValue.74" = type { i32 }
%"class.std::vector.75" = type { %"struct.std::_Vector_base.76" }
%"struct.std::_Vector_base.76" = type { %"struct.std::_Vector_base<std::unique_ptr<Raz::RenderProcess>, std::allocator<std::unique_ptr<Raz::RenderProcess>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<Raz::RenderProcess>, std::allocator<std::unique_ptr<Raz::RenderProcess>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<Raz::RenderProcess>, std::allocator<std::unique_ptr<Raz::RenderProcess>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<Raz::RenderProcess>, std::allocator<std::unique_ptr<Raz::RenderProcess>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_set.80" = type { %"class.std::_Hashtable.81" }
%"class.std::_Hashtable.81" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.Raz::UniformBuffer" = type { %"class.Raz::OwnerValue" }
%"class.std::optional.100" = type { %"struct.std::_Optional_base.101" }
%"struct.std::_Optional_base.101" = type { %"struct.std::_Optional_payload.103" }
%"struct.std::_Optional_payload.103" = type { %"struct.std::_Optional_payload.base.107", [3 x i8] }
%"struct.std::_Optional_payload.base.107" = type { %"struct.std::_Optional_payload_base.base.106" }
%"struct.std::_Optional_payload_base.base.106" = type <{ %"union.std::_Optional_payload_base<Raz::Cubemap>::_Storage", i8 }>
%"union.std::_Optional_payload_base<Raz::Cubemap>::_Storage" = type { %"class.Raz::Cubemap" }
%"class.Raz::Cubemap" = type { %"class.Raz::OwnerValue" }

@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; 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 @_ZN3Raz12RenderSystem10initializeEv(ptr noundef nonnull align 8 dereferenceable(776) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca i1, align 1
  %5 = alloca %"class.std::allocator.21", align 1
  %6 = alloca i1, align 1
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i1, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  call void @_ZN3Raz6System18registerComponentsIJNS_6CameraENS_5LightENS_12MeshRendererEEEEvv(ptr noundef nonnull align 8 dereferenceable(72) %11)
  call void @_ZN3Raz8Renderer10initializeEv()
  call void @_ZN3Raz8Renderer6enableENS_10CapabilityE(i32 noundef 2884)
  call void @_ZN3Raz8Renderer6enableENS_10CapabilityE(i32 noundef 3042)
  call void @_ZN3Raz8Renderer6enableENS_10CapabilityE(i32 noundef 2929)
  call void @_ZN3Raz8Renderer6enableENS_10CapabilityE(i32 noundef 2960)
  call void @_ZN3Raz8Renderer6enableENS_10CapabilityE(i32 noundef 34895)
  %12 = call noundef zeroext i1 @_ZN3Raz8Renderer12checkVersionEii(i32 noundef 4, i32 noundef 5) #4
  store i1 false, ptr %4, align 1
  store i1 false, ptr %6, align 1
  store i1 false, ptr %7, align 1
  store i1 false, ptr %10, align 1
  br i1 %12, label %17, label %13

13:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #4
  store i1 true, ptr %4, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  store i1 true, ptr %6, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  store i1 true, ptr %7, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %14 unwind label %32

14:                                               ; preds = %13
  store i1 true, ptr %10, align 1
  %15 = invoke noundef zeroext i1 @_ZN3Raz8Renderer20isExtensionSupportedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %16 unwind label %36

16:                                               ; preds = %14
  br label %17

17:                                               ; preds = %16, %1
  %18 = phi i1 [ true, %1 ], [ %15, %16 ]
  %19 = load i1, ptr %10, align 1
  br i1 %19, label %20, label %21

20:                                               ; preds = %17
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  br label %21

21:                                               ; preds = %20, %17
  %22 = load i1, ptr %7, align 1
  br i1 %22, label %23, label %24

23:                                               ; preds = %21
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  br label %24

24:                                               ; preds = %23, %21
  %25 = load i1, ptr %6, align 1
  br i1 %25, label %26, label %27

26:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  br label %27

27:                                               ; preds = %26, %24
  %28 = load i1, ptr %4, align 1
  br i1 %28, label %29, label %30

29:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #4
  br label %30

30:                                               ; preds = %29, %27
  br i1 %18, label %31, label %53

31:                                               ; preds = %30
  call void @_ZN3Raz8Renderer14setClipControlENS_10ClipOriginENS_9ClipDepthE(i32 noundef 36001, i32 noundef 37727)
  br label %53

32:                                               ; preds = %13
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %8, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %9, align 4
  br label %43

36:                                               ; preds = %14
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %8, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %9, align 4
  %40 = load i1, ptr %10, align 1
  br i1 %40, label %41, label %42

41:                                               ; preds = %36
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  br label %42

42:                                               ; preds = %41, %36
  br label %43

43:                                               ; preds = %42, %32
  %44 = load i1, ptr %7, align 1
  br i1 %44, label %45, label %46

45:                                               ; preds = %43
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  br label %46

46:                                               ; preds = %45, %43
  %47 = load i1, ptr %6, align 1
  br i1 %47, label %48, label %49

48:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  br label %49

49:                                               ; preds = %48, %46
  %50 = load i1, ptr %4, align 1
  br i1 %50, label %51, label %52

51:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #4
  br label %52

52:                                               ; preds = %51, %49
  br label %65

53:                                               ; preds = %31, %30
  %54 = call noundef zeroext i1 @_ZN3Raz8Renderer12checkVersionEii(i32 noundef 4, i32 noundef 3) #4
  br i1 %54, label %55, label %64

55:                                               ; preds = %53
  %56 = getelementptr inbounds %"class.Raz::RenderSystem", ptr %11, i32 0, i32 6
  %57 = call noundef i32 @_ZNK3Raz13UniformBuffer8getIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %56)
  call void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33504, i32 noundef %57, ptr noundef @.str.5)
  %58 = getelementptr inbounds %"class.Raz::RenderSystem", ptr %11, i32 0, i32 7
  %59 = call noundef i32 @_ZNK3Raz13UniformBuffer8getIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %58)
  call void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33504, i32 noundef %59, ptr noundef @.str.6)
  %60 = getelementptr inbounds %"class.Raz::RenderSystem", ptr %11, i32 0, i32 8
  %61 = call noundef i32 @_ZNK3Raz13UniformBuffer8getIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %60)
  call void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33504, i32 noundef %61, ptr noundef @.str.7)
  %62 = getelementptr inbounds %"class.Raz::RenderSystem", ptr %11, i32 0, i32 9
  %63 = call noundef i32 @_ZNK3Raz13UniformBuffer8getIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %62)
  call void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33504, i32 noundef %63, ptr noundef @.str.8)
  br label %64

64:                                               ; preds = %55, %53
  ret void

65:                                               ; preds = %52
  %66 = load ptr, ptr %8, align 8
  %67 = load i32, ptr %9, align 4
  %68 = insertvalue { ptr, i32 } poison, ptr %66, 0
  %69 = insertvalue { ptr, i32 } %68, i32 %67, 1
  resume { ptr, i32 } %69
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz6System18registerComponentsIJNS_6CameraENS_5LightENS_12MeshRendererEEEEvv(ptr noundef nonnull align 8 dereferenceable(72)) #2 align 2

declare void @_ZN3Raz8Renderer10initializeEv() #3

declare void @_ZN3Raz8Renderer6enableENS_10CapabilityE(i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3Raz8Renderer12checkVersionEii(i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3Raz8Renderer20isExtensionSupportedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

declare void @_ZN3Raz8Renderer14setClipControlENS_10ClipOriginENS_9ClipDepthE(i32 noundef, i32 noundef) #3

declare void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3Raz13UniformBuffer8getIndexEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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


; 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::__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::allocator.21" = type { i8 }

@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; 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 @_ZN3Raz12RenderSystem10initializeEv(ptr noundef nonnull align 8 dereferenceable(776) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::allocator.21", align 1
  tail call void @_ZN3Raz6System18registerComponentsIJNS_6CameraENS_5LightENS_12MeshRendererEEEEvv(ptr noundef nonnull align 8 dereferenceable(72) %0)
  tail call void @_ZN3Raz8Renderer10initializeEv()
  tail call void @_ZN3Raz8Renderer6enableENS_10CapabilityE(i32 noundef 2884)
  tail call void @_ZN3Raz8Renderer6enableENS_10CapabilityE(i32 noundef 3042)
  tail call void @_ZN3Raz8Renderer6enableENS_10CapabilityE(i32 noundef 2929)
  tail call void @_ZN3Raz8Renderer6enableENS_10CapabilityE(i32 noundef 2960)
  tail call void @_ZN3Raz8Renderer6enableENS_10CapabilityE(i32 noundef 34895)
  %4 = tail call noundef zeroext i1 @_ZN3Raz8Renderer12checkVersionEii(i32 noundef 4, i32 noundef 5) #4
  br i1 %4, label %.critedge17.thread, label %5

5:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %6 unwind label %8

6:                                                ; preds = %5
  %7 = invoke noundef zeroext i1 @_ZN3Raz8Renderer20isExtensionSupportedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %.critedge17 unwind label %10

.critedge17:                                      ; preds = %6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  br i1 %7, label %.critedge17.thread, label %13

.critedge17.thread:                               ; preds = %1, %.critedge17
  call void @_ZN3Raz8Renderer14setClipControlENS_10ClipOriginENS_9ClipDepthE(i32 noundef 36001, i32 noundef 37727)
  br label %13

8:                                                ; preds = %5
  %9 = landingpad { ptr, i32 }
          cleanup
  br label %12

10:                                               ; preds = %6
  %11 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #4
  br label %12

12:                                               ; preds = %8, %10
  %.pn = phi { ptr, i32 } [ %11, %10 ], [ %9, %8 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn

13:                                               ; preds = %.critedge17.thread, %.critedge17
  %14 = call noundef zeroext i1 @_ZN3Raz8Renderer12checkVersionEii(i32 noundef 4, i32 noundef 3) #4
  br i1 %14, label %15, label %24

15:                                               ; preds = %13
  %16 = getelementptr inbounds i8, ptr %0, i64 744
  %17 = call noundef i32 @_ZNK3Raz13UniformBuffer8getIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %16)
  call void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33504, i32 noundef %17, ptr noundef nonnull @.str.5)
  %18 = getelementptr inbounds i8, ptr %0, i64 748
  %19 = call noundef i32 @_ZNK3Raz13UniformBuffer8getIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33504, i32 noundef %19, ptr noundef nonnull @.str.6)
  %20 = getelementptr inbounds i8, ptr %0, i64 752
  %21 = call noundef i32 @_ZNK3Raz13UniformBuffer8getIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33504, i32 noundef %21, ptr noundef nonnull @.str.7)
  %22 = getelementptr inbounds i8, ptr %0, i64 756
  %23 = call noundef i32 @_ZNK3Raz13UniformBuffer8getIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33504, i32 noundef %23, ptr noundef nonnull @.str.8)
  br label %24

24:                                               ; preds = %15, %13
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz6System18registerComponentsIJNS_6CameraENS_5LightENS_12MeshRendererEEEEvv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #2 align 2

declare void @_ZN3Raz8Renderer10initializeEv() local_unnamed_addr #3

declare void @_ZN3Raz8Renderer6enableENS_10CapabilityE(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3Raz8Renderer12checkVersionEii(i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3Raz8Renderer20isExtensionSupportedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

declare void @_ZN3Raz8Renderer14setClipControlENS_10ClipOriginENS_9ClipDepthE(i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass