; LLVM IR from Razakhel/RaZ :: src/RaZ/Render/BloomRenderProcess.ll (ZN3Raz18BloomRenderProcessC2ERNS_11RenderGraphE)

; 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::basic_string_view" = type { i64, ptr }
%"class.Raz::FragmentShader" = type { %"class.Raz::Shader" }
%"class.Raz::Shader" = type { ptr, %"class.Raz::OwnerValue", %"class.Raz::FilePath" }
%"class.Raz::OwnerValue" = type { i32 }
%"class.Raz::FilePath" = type { %"class.std::__cxx11::basic_string" }
%"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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.94" = type { %"class.std::__shared_ptr.95" }
%"class.std::__shared_ptr.95" = type { ptr, %"class.std::__shared_count" }
%"class.std::allocator.15" = type { i8 }
%"class.Raz::BloomRenderProcess" = type { %"class.Raz::RenderProcess", ptr, %"class.std::vector", %"class.std::vector.5", %"class.std::vector", %"class.std::vector.5", ptr }
%"class.Raz::RenderProcess" = type { ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::weak_ptr<Raz::Texture2D>, std::allocator<std::weak_ptr<Raz::Texture2D>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::weak_ptr<Raz::Texture2D>, std::allocator<std::weak_ptr<Raz::Texture2D>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::weak_ptr<Raz::Texture2D>, std::allocator<std::weak_ptr<Raz::Texture2D>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::weak_ptr<Raz::Texture2D>, std::allocator<std::weak_ptr<Raz::Texture2D>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTVN3Raz18BloomRenderProcessE = external dso_local unnamed_addr constant { [12 x ptr] }, align 8
@_ZN3Raz12_GLOBAL__N_115thresholdSourceE = external hidden constant %"class.std::basic_string_view", align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZN3Raz12_GLOBAL__N_115downscaleSourceE = external hidden constant %"class.std::basic_string_view", align 8
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@_ZN3Raz12_GLOBAL__N_113upscaleSourceE = external hidden constant %"class.std::basic_string_view", align 8
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZN3Raz12_GLOBAL__N_111finalSourceE = external hidden constant %"class.std::basic_string_view", align 8
@.str.21 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [36 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Raz18BloomRenderProcessC2ERNS_11RenderGraphE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(648) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.Raz::FragmentShader", align 8
  %6 = alloca %"class.std::basic_string_view", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::shared_ptr", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::shared_ptr", align 8
  %13 = alloca i64, align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.Raz::FragmentShader", align 8
  %17 = alloca %"class.std::basic_string_view", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::shared_ptr.94", align 8
  %20 = alloca %"class.std::shared_ptr", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator.15", align 1
  %23 = alloca %"class.std::shared_ptr", align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::shared_ptr", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca i64, align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca ptr, align 8
  %35 = alloca %"class.Raz::FragmentShader", align 8
  %36 = alloca %"class.std::basic_string_view", align 8
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca i64, align 8
  %39 = alloca %"class.std::shared_ptr.94", align 8
  %40 = alloca %"class.std::shared_ptr", align 8
  %41 = alloca %"class.std::__cxx11::basic_string", align 8
  %42 = alloca %"class.std::allocator.15", align 1
  %43 = alloca %"class.std::shared_ptr.94", align 8
  %44 = alloca %"class.std::shared_ptr", align 8
  %45 = alloca %"class.std::__cxx11::basic_string", align 8
  %46 = alloca %"class.std::allocator.15", align 1
  %47 = alloca %"class.std::shared_ptr", align 8
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca %"class.std::shared_ptr", align 8
  %51 = alloca %"class.std::__cxx11::basic_string", align 8
  %52 = alloca %"class.std::__cxx11::basic_string", align 8
  %53 = alloca %"class.std::__cxx11::basic_string", align 8
  %54 = alloca %"class.std::__cxx11::basic_string", align 8
  %55 = alloca %"class.std::__cxx11::basic_string", align 8
  %56 = alloca %"class.Raz::FragmentShader", align 8
  %57 = alloca %"class.std::basic_string_view", align 8
  %58 = alloca %"class.std::shared_ptr.94", align 8
  %59 = alloca %"class.std::shared_ptr", align 8
  %60 = alloca %"class.std::__cxx11::basic_string", align 8
  %61 = alloca %"class.std::allocator.15", align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %62 = load ptr, ptr %3, align 8
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3Raz13RenderProcessC2ERNS_11RenderGraphE(ptr noundef nonnull align 8 dereferenceable(16) %62, ptr noundef nonnull align 8 dereferenceable(648) %63)
  store ptr getelementptr inbounds inrange(-16, 80) ({ [12 x ptr] }, ptr @_ZTVN3Raz18BloomRenderProcessE, i32 0, i32 0, i32 2), ptr %62, align 8, !tbaa !9
  %64 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 1
  store ptr null, ptr %64, align 8, !tbaa !11
  %65 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 2
  call void @llvm.memset.p0.i64(ptr align 8 %65, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %65) #8
  %66 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 3
  call void @llvm.memset.p0.i64(ptr align 8 %66, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %66) #8
  %67 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 4
  call void @llvm.memset.p0.i64(ptr align 8 %67, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %67) #8
  %68 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 5
  call void @llvm.memset.p0.i64(ptr align 8 %68, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %68) #8
  %69 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 6
  store ptr null, ptr %69, align 8, !tbaa !22
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 @_ZN3Raz12_GLOBAL__N_115thresholdSourceE, i64 16, i1 false), !tbaa.struct !23
  %71 = getelementptr inbounds { i64, ptr }, ptr %6, i32 0, i32 0
  %72 = load i64, ptr %71, align 8
  %73 = getelementptr inbounds { i64, ptr }, ptr %6, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8
  invoke void @_ZN3Raz14FragmentShader14loadFromSourceESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind writable sret(%"class.Raz::FragmentShader") align 8 %5, i64 %72, ptr %74)
          to label %75 unwind label %117

75:                                               ; preds = %2
  %76 = invoke noundef nonnull align 8 dereferenceable(536) ptr @_ZN3Raz5GraphINS_10RenderPassEE7addNodeIJNS_14FragmentShaderERA19_KcEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 1 dereferenceable(19) @.str)
          to label %77 unwind label %121

77:                                               ; preds = %75
  %78 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 1
  store ptr %76, ptr %78, align 8, !tbaa !11
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #8
  invoke void @_ZNK3Raz18BloomRenderProcess17setThresholdValueEf(ptr noundef nonnull align 8 dereferenceable(128) %62, float noundef 7.500000e-01)
          to label %79 unwind label %126

79:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 2, ptr %10, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 1, ptr %11, align 4, !tbaa !28
  invoke void @_ZN3Raz9Texture2D6createIJNS_17TextureColorspaceENS_15TextureDataTypeEEEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %80 unwind label %130

80:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  %81 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !11
  call void @_ZNSt10shared_ptrIN3Raz9Texture2DEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  invoke void @_ZN3Raz10RenderPass20addWriteColorTextureESt10shared_ptrINS_9Texture2DEEj(ptr noundef nonnull align 8 dereferenceable(536) %82, ptr noundef %12, i32 noundef 0)
          to label %83 unwind label %134

83:                                               ; preds = %80
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  %84 = call noundef zeroext i1 @_ZN3Raz8Renderer12checkVersionEii(i32 noundef 4, i32 noundef 3) #8
  br i1 %84, label %85, label %142

85:                                               ; preds = %83
  %86 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 1
  %87 = load ptr, ptr %86, align 8, !tbaa !11
  %88 = invoke noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %87)
          to label %89 unwind label %138

89:                                               ; preds = %85
  %90 = invoke noundef i32 @_ZNK3Raz13ShaderProgram8getIndexEv(ptr noundef nonnull align 8 dereferenceable(120) %88)
          to label %91 unwind label %138

91:                                               ; preds = %89
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33506, i32 noundef %90, ptr noundef @.str.1)
          to label %92 unwind label %138

92:                                               ; preds = %91
  %93 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = invoke noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %94)
          to label %96 unwind label %138

96:                                               ; preds = %92
  %97 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram15getVertexShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %95) #8
  %98 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %97) #8
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33505, i32 noundef %98, ptr noundef @.str.2)
          to label %99 unwind label %138

99:                                               ; preds = %96
  %100 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !11
  %102 = invoke noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %101)
          to label %103 unwind label %138

103:                                              ; preds = %99
  %104 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram17getFragmentShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %102) #8
  %105 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %104) #8
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33505, i32 noundef %105, ptr noundef @.str.3)
          to label %106 unwind label %138

106:                                              ; preds = %103
  %107 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !11
  %109 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz10RenderPass14getFramebufferEv(ptr noundef nonnull align 8 dereferenceable(536) %108)
          to label %110 unwind label %138

110:                                              ; preds = %106
  %111 = call noundef i32 @_ZNK3Raz11Framebuffer8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %109) #8
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 36160, i32 noundef %111, ptr noundef @.str.4)
          to label %112 unwind label %138

112:                                              ; preds = %110
  %113 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  %114 = invoke noundef i32 @_ZNK3Raz7Texture8getIndexEv(ptr noundef nonnull align 8 dereferenceable(24) %113)
          to label %115 unwind label %138

115:                                              ; preds = %112
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 5890, i32 noundef %114, ptr noundef @.str.5)
          to label %116 unwind label %138

116:                                              ; preds = %115
  br label %142

117:                                              ; preds = %2
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %7, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %8, align 4
  br label %125

121:                                              ; preds = %75
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %7, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %8, align 4
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  br label %125

125:                                              ; preds = %121, %117
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #8
  br label %612

126:                                              ; preds = %77
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %7, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %8, align 4
  br label %612

130:                                              ; preds = %79
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %7, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %611

134:                                              ; preds = %80
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %7, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %8, align 4
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  br label %610

138:                                              ; preds = %604, %598, %576, %572, %569, %565, %564, %562, %558, %543, %329, %327, %144, %142, %115, %112, %110, %106, %103, %99, %96, %92, %91, %89, %85
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %7, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %8, align 4
  br label %610

142:                                              ; preds = %116, %83
  %143 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 2
  invoke void @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %143, i64 noundef 5)
          to label %144 unwind label %138

144:                                              ; preds = %142
  %145 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 3
  invoke void @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %145, i64 noundef 5)
          to label %146 unwind label %138

146:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  store i64 0, ptr %13, align 8, !tbaa !24
  br label %147

147:                                              ; preds = %320, %146
  %148 = load i64, ptr %13, align 8, !tbaa !24
  %149 = icmp ult i64 %148, 5
  br i1 %149, label %151, label %150

150:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %327

151:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  %152 = load i64, ptr %13, align 8, !tbaa !24
  invoke void @_ZNSt7__cxx119to_stringEm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, i64 noundef %152)
          to label %153 unwind label %235

153:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 @_ZN3Raz12_GLOBAL__N_115downscaleSourceE, i64 16, i1 false), !tbaa.struct !23
  %155 = getelementptr inbounds { i64, ptr }, ptr %17, i32 0, i32 0
  %156 = load i64, ptr %155, align 8
  %157 = getelementptr inbounds { i64, ptr }, ptr %17, i32 0, i32 1
  %158 = load ptr, ptr %157, align 8
  invoke void @_ZN3Raz14FragmentShader14loadFromSourceESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind writable sret(%"class.Raz::FragmentShader") align 8 %16, i64 %156, ptr %158)
          to label %159 unwind label %239

159:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef @.str.6, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %160 unwind label %243

160:                                              ; preds = %159
  %161 = invoke noundef nonnull align 8 dereferenceable(536) ptr @_ZN3Raz5GraphINS_10RenderPassEE7addNodeIJNS_14FragmentShaderENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %154, ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %162 unwind label %247

162:                                              ; preds = %160
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #8
  store ptr %161, ptr %15, align 8, !tbaa !5
  %163 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %164 = load i64, ptr %13, align 8, !tbaa !24
  %165 = icmp eq i64 %164, 0
  br i1 %165, label %166, label %167

166:                                              ; preds = %162
  call void @_ZNSt10shared_ptrIN3Raz9Texture2DEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  br label %172

167:                                              ; preds = %162
  %168 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 3
  %169 = load i64, ptr %13, align 8, !tbaa !24
  %170 = sub i64 %169, 1
  %171 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %168, i64 noundef %170) #8
  call void @_ZNKSt8weak_ptrIN3Raz9Texture2DEE4lockEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %171) #8
  br label %172

172:                                              ; preds = %167, %166
  call void @_ZNSt10shared_ptrIN3Raz7TextureEEC2INS0_9Texture2DEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %173 unwind label %253

173:                                              ; preds = %172
  invoke void @_ZN3Raz10RenderPass14addReadTextureESt10shared_ptrINS_7TextureEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(536) %163, ptr noundef %19, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %174 unwind label %257

174:                                              ; preds = %173
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 2, ptr %24, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 1, ptr %25, align 4, !tbaa !28
  invoke void @_ZN3Raz9Texture2D6createIJNS_17TextureColorspaceENS_15TextureDataTypeEEEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %23, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %175 unwind label %262

175:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZNSt10shared_ptrIN3Raz9Texture2DEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  invoke void @_ZN3Raz10RenderPass20addWriteColorTextureESt10shared_ptrINS_9Texture2DEEj(ptr noundef nonnull align 8 dereferenceable(536) %176, ptr noundef %26, i32 noundef 0)
          to label %177 unwind label %266

177:                                              ; preds = %175
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #8
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 2
  %180 = load i64, ptr %13, align 8, !tbaa !24
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %180) #8
  store ptr %178, ptr %181, align 8, !tbaa !5
  %182 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 3
  %183 = load i64, ptr %13, align 8, !tbaa !24
  %184 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %182, i64 noundef %183) #8
  %185 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8weak_ptrIN3Raz9Texture2DEEaSIS1_EENSt9enable_ifIXsr13is_assignableIRSt10__weak_ptrIS1_LN9__gnu_cxx12_Lock_policyE2EERKSt10shared_ptrIT_EEE5valueERS2_E4typeESE_(ptr noundef nonnull align 8 dereferenceable(16) %184, ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  %186 = load ptr, ptr %15, align 8, !tbaa !5
  %187 = load i64, ptr %13, align 8, !tbaa !24
  %188 = icmp eq i64 %187, 0
  br i1 %188, label %189, label %192

189:                                              ; preds = %177
  %190 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 1
  %191 = load ptr, ptr %190, align 8, !tbaa !11
  br label %198

192:                                              ; preds = %177
  %193 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 2
  %194 = load i64, ptr %13, align 8, !tbaa !24
  %195 = sub i64 %194, 1
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %193, i64 noundef %195) #8
  %197 = load ptr, ptr %196, align 8, !tbaa !5
  br label %198

198:                                              ; preds = %192, %189
  %199 = phi ptr [ %191, %189 ], [ %197, %192 ]
  invoke void @_ZN3Raz9GraphNodeINS_10RenderPassEE10addParentsIJEEEvRS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(56) %186, ptr noundef nonnull align 8 dereferenceable(56) %199)
          to label %200 unwind label %270

200:                                              ; preds = %198
  %201 = call noundef zeroext i1 @_ZN3Raz8Renderer12checkVersionEii(i32 noundef 4, i32 noundef 3) #8
  br i1 %201, label %202, label %319

202:                                              ; preds = %200
  %203 = load ptr, ptr %15, align 8, !tbaa !5
  %204 = invoke noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %203)
          to label %205 unwind label %270

205:                                              ; preds = %202
  %206 = invoke noundef i32 @_ZNK3Raz13ShaderProgram8getIndexEv(ptr noundef nonnull align 8 dereferenceable(120) %204)
          to label %207 unwind label %270

207:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %27, ptr noundef @.str.8, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %208 unwind label %274

208:                                              ; preds = %207
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 33506, i32 noundef %206, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %209 unwind label %278

209:                                              ; preds = %208
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #8
  %210 = load ptr, ptr %15, align 8, !tbaa !5
  %211 = invoke noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %210)
          to label %212 unwind label %270

212:                                              ; preds = %209
  %213 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram15getVertexShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %211) #8
  %214 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %213) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef @.str.9, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %215 unwind label %283

215:                                              ; preds = %212
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 33505, i32 noundef %214, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %216 unwind label %287

216:                                              ; preds = %215
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #8
  %217 = load ptr, ptr %15, align 8, !tbaa !5
  %218 = invoke noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %217)
          to label %219 unwind label %270

219:                                              ; preds = %216
  %220 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram17getFragmentShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %218) #8
  %221 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %220) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef @.str.10, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %222 unwind label %292

222:                                              ; preds = %219
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 33505, i32 noundef %221, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %223 unwind label %296

223:                                              ; preds = %222
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #8
  %224 = load ptr, ptr %15, align 8, !tbaa !5
  %225 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz10RenderPass14getFramebufferEv(ptr noundef nonnull align 8 dereferenceable(536) %224)
          to label %226 unwind label %270

226:                                              ; preds = %223
  %227 = call noundef i32 @_ZNK3Raz11Framebuffer8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %225) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %30, ptr noundef @.str.11, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %228 unwind label %301

228:                                              ; preds = %226
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 36160, i32 noundef %227, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %229 unwind label %305

229:                                              ; preds = %228
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #8
  %230 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  %231 = invoke noundef i32 @_ZNK3Raz7Texture8getIndexEv(ptr noundef nonnull align 8 dereferenceable(24) %230)
          to label %232 unwind label %270

232:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %31, ptr noundef @.str.12, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %233 unwind label %310

233:                                              ; preds = %232
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 5890, i32 noundef %231, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %234 unwind label %314

234:                                              ; preds = %233
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #8
  br label %319

235:                                              ; preds = %151
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %7, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %8, align 4
  br label %326

239:                                              ; preds = %153
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %7, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %8, align 4
  br label %252

243:                                              ; preds = %159
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %7, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %8, align 4
  br label %251

247:                                              ; preds = %160
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %7, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  br label %251

251:                                              ; preds = %247, %243
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #8
  br label %252

252:                                              ; preds = %251, %239
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #8
  br label %325

253:                                              ; preds = %172
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %7, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %8, align 4
  br label %261

257:                                              ; preds = %173
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %7, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  br label %261

261:                                              ; preds = %257, %253
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  br label %325

262:                                              ; preds = %174
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %7, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %324

266:                                              ; preds = %175
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %7, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %8, align 4
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #8
  br label %323

270:                                              ; preds = %229, %223, %216, %209, %205, %202, %198
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %7, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %8, align 4
  br label %323

274:                                              ; preds = %207
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %7, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %8, align 4
  br label %282

278:                                              ; preds = %208
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %7, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #8
  br label %282

282:                                              ; preds = %278, %274
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #8
  br label %323

283:                                              ; preds = %212
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %7, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %8, align 4
  br label %291

287:                                              ; preds = %215
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %7, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  br label %291

291:                                              ; preds = %287, %283
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #8
  br label %323

292:                                              ; preds = %219
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %7, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %8, align 4
  br label %300

296:                                              ; preds = %222
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %7, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #8
  br label %300

300:                                              ; preds = %296, %292
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #8
  br label %323

301:                                              ; preds = %226
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %7, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %8, align 4
  br label %309

305:                                              ; preds = %228
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %7, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #8
  br label %309

309:                                              ; preds = %305, %301
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #8
  br label %323

310:                                              ; preds = %232
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %7, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %8, align 4
  br label %318

314:                                              ; preds = %233
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %7, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #8
  br label %318

318:                                              ; preds = %314, %310
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #8
  br label %323

319:                                              ; preds = %234, %200
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br label %320

320:                                              ; preds = %319
  %321 = load i64, ptr %13, align 8, !tbaa !24
  %322 = add i64 %321, 1
  store i64 %322, ptr %13, align 8, !tbaa !24
  br label %147, !llvm.loop !30

323:                                              ; preds = %318, %309, %300, %291, %282, %270, %266
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  br label %324

324:                                              ; preds = %323, %262
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  br label %325

325:                                              ; preds = %324, %261, %252
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  br label %326

326:                                              ; preds = %325, %235
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %610

327:                                              ; preds = %150
  %328 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 4
  invoke void @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %328, i64 noundef 4)
          to label %329 unwind label %138

329:                                              ; preds = %327
  %330 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 5
  invoke void @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %330, i64 noundef 4)
          to label %331 unwind label %138

331:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  store i64 0, ptr %32, align 8, !tbaa !24
  br label %332

332:                                              ; preds = %527, %331
  %333 = load i64, ptr %32, align 8, !tbaa !24
  %334 = icmp ult i64 %333, 4
  br i1 %334, label %336, label %335

335:                                              ; preds = %332
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %535

336:                                              ; preds = %332
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #8
  %337 = load i64, ptr %32, align 8, !tbaa !24
  invoke void @_ZNSt7__cxx119to_stringEm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %33, i64 noundef %337)
          to label %338 unwind label %433

338:                                              ; preds = %336
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %339 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %35) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 8 @_ZN3Raz12_GLOBAL__N_113upscaleSourceE, i64 16, i1 false), !tbaa.struct !23
  %340 = getelementptr inbounds { i64, ptr }, ptr %36, i32 0, i32 0
  %341 = load i64, ptr %340, align 8
  %342 = getelementptr inbounds { i64, ptr }, ptr %36, i32 0, i32 1
  %343 = load ptr, ptr %342, align 8
  invoke void @_ZN3Raz14FragmentShader14loadFromSourceESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind writable sret(%"class.Raz::FragmentShader") align 8 %35, i64 %341, ptr %343)
          to label %344 unwind label %437

344:                                              ; preds = %338
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %37, ptr noundef @.str.13, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %345 unwind label %441

345:                                              ; preds = %344
  %346 = invoke noundef nonnull align 8 dereferenceable(536) ptr @_ZN3Raz5GraphINS_10RenderPassEE7addNodeIJNS_14FragmentShaderENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %339, ptr noundef nonnull align 8 dereferenceable(48) %35, ptr noundef nonnull align 8 dereferenceable(32) %37)
          to label %347 unwind label %445

347:                                              ; preds = %345
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #8
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %35) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %35) #8
  store ptr %346, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %348 = load i64, ptr %32, align 8, !tbaa !24
  %349 = sub i64 5, %348
  %350 = sub i64 %349, 2
  store i64 %350, ptr %38, align 8, !tbaa !24
  %351 = load ptr, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #8
  %352 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 3
  %353 = load i64, ptr %38, align 8, !tbaa !24
  %354 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %352, i64 noundef %353) #8
  call void @_ZNKSt8weak_ptrIN3Raz9Texture2DEE4lockEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %40, ptr noundef nonnull align 8 dereferenceable(16) %354) #8
  call void @_ZNSt10shared_ptrIN3Raz7TextureEEC2INS0_9Texture2DEvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(16) %40) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %41) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %42) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef @.str.14, ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %355 unwind label %451

355:                                              ; preds = %347
  invoke void @_ZN3Raz10RenderPass14addReadTextureESt10shared_ptrINS_7TextureEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(536) %351, ptr noundef %39, ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %356 unwind label %455

356:                                              ; preds = %355
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #8
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %39) #8
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %40) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  %357 = load ptr, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #8
  %358 = load i64, ptr %32, align 8, !tbaa !24
  %359 = icmp eq i64 %358, 0
  br i1 %359, label %360, label %363

360:                                              ; preds = %356
  %361 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 3
  %362 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %361) #8
  br label %368

363:                                              ; preds = %356
  %364 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 5
  %365 = load i64, ptr %32, align 8, !tbaa !24
  %366 = sub i64 %365, 1
  %367 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %364, i64 noundef %366) #8
  br label %368

368:                                              ; preds = %363, %360
  %369 = phi ptr [ %362, %360 ], [ %367, %363 ]
  call void @_ZNKSt8weak_ptrIN3Raz9Texture2DEE4lockEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %44, ptr noundef nonnull align 8 dereferenceable(16) %369) #8
  call void @_ZNSt10shared_ptrIN3Raz7TextureEEC2INS0_9Texture2DEvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 8 dereferenceable(16) %44) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %45) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef @.str.15, ptr noundef nonnull align 1 dereferenceable(1) %46)
          to label %370 unwind label %460

370:                                              ; preds = %368
  invoke void @_ZN3Raz10RenderPass14addReadTextureESt10shared_ptrINS_7TextureEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(536) %357, ptr noundef %43, ptr noundef nonnull align 8 dereferenceable(32) %45)
          to label %371 unwind label %464

371:                                              ; preds = %370
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %45) #8
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %43) #8
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %44) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #8
  store i32 2, ptr %48, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  store i32 1, ptr %49, align 4, !tbaa !28
  invoke void @_ZN3Raz9Texture2D6createIJNS_17TextureColorspaceENS_15TextureDataTypeEEEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %47, ptr noundef nonnull align 4 dereferenceable(4) %48, ptr noundef nonnull align 4 dereferenceable(4) %49)
          to label %372 unwind label %469

372:                                              ; preds = %371
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  %373 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZNSt10shared_ptrIN3Raz9Texture2DEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(16) %47) #8
  invoke void @_ZN3Raz10RenderPass20addWriteColorTextureESt10shared_ptrINS_9Texture2DEEj(ptr noundef nonnull align 8 dereferenceable(536) %373, ptr noundef %50, i32 noundef 0)
          to label %374 unwind label %473

374:                                              ; preds = %372
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %50) #8
  %375 = load ptr, ptr %34, align 8, !tbaa !5
  %376 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 4
  %377 = load i64, ptr %32, align 8, !tbaa !24
  %378 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %376, i64 noundef %377) #8
  store ptr %375, ptr %378, align 8, !tbaa !5
  %379 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 5
  %380 = load i64, ptr %32, align 8, !tbaa !24
  %381 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %379, i64 noundef %380) #8
  %382 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8weak_ptrIN3Raz9Texture2DEEaSIS1_EENSt9enable_ifIXsr13is_assignableIRSt10__weak_ptrIS1_LN9__gnu_cxx12_Lock_policyE2EERKSt10shared_ptrIT_EEE5valueERS2_E4typeESE_(ptr noundef nonnull align 8 dereferenceable(16) %381, ptr noundef nonnull align 8 dereferenceable(16) %47) #8
  %383 = load ptr, ptr %34, align 8, !tbaa !5
  %384 = load i64, ptr %32, align 8, !tbaa !24
  %385 = icmp eq i64 %384, 0
  br i1 %385, label %386, label %390

386:                                              ; preds = %374
  %387 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 2
  %388 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %387) #8
  %389 = load ptr, ptr %388, align 8, !tbaa !5
  br label %396

390:                                              ; preds = %374
  %391 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 4
  %392 = load i64, ptr %32, align 8, !tbaa !24
  %393 = sub i64 %392, 1
  %394 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %391, i64 noundef %393) #8
  %395 = load ptr, ptr %394, align 8, !tbaa !5
  br label %396

396:                                              ; preds = %390, %386
  %397 = phi ptr [ %389, %386 ], [ %395, %390 ]
  invoke void @_ZN3Raz9GraphNodeINS_10RenderPassEE10addParentsIJEEEvRS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(56) %383, ptr noundef nonnull align 8 dereferenceable(56) %397)
          to label %398 unwind label %477

398:                                              ; preds = %396
  %399 = call noundef zeroext i1 @_ZN3Raz8Renderer12checkVersionEii(i32 noundef 4, i32 noundef 3) #8
  br i1 %399, label %400, label %526

400:                                              ; preds = %398
  %401 = load ptr, ptr %34, align 8, !tbaa !5
  %402 = invoke noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %401)
          to label %403 unwind label %477

403:                                              ; preds = %400
  %404 = invoke noundef i32 @_ZNK3Raz13ShaderProgram8getIndexEv(ptr noundef nonnull align 8 dereferenceable(120) %402)
          to label %405 unwind label %477

405:                                              ; preds = %403
  call void @llvm.lifetime.start.p0(i64 32, ptr %51) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %51, ptr noundef @.str.16, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %406 unwind label %481

406:                                              ; preds = %405
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 33506, i32 noundef %404, ptr noundef nonnull align 8 dereferenceable(32) %51)
          to label %407 unwind label %485

407:                                              ; preds = %406
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %51) #8
  %408 = load ptr, ptr %34, align 8, !tbaa !5
  %409 = invoke noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %408)
          to label %410 unwind label %477

410:                                              ; preds = %407
  %411 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram15getVertexShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %409) #8
  %412 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %411) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %52) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %52, ptr noundef @.str.17, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %413 unwind label %490

413:                                              ; preds = %410
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 33505, i32 noundef %412, ptr noundef nonnull align 8 dereferenceable(32) %52)
          to label %414 unwind label %494

414:                                              ; preds = %413
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %52) #8
  %415 = load ptr, ptr %34, align 8, !tbaa !5
  %416 = invoke noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %415)
          to label %417 unwind label %477

417:                                              ; preds = %414
  %418 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram17getFragmentShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %416) #8
  %419 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %418) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %53) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %53, ptr noundef @.str.18, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %420 unwind label %499

420:                                              ; preds = %417
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 33505, i32 noundef %419, ptr noundef nonnull align 8 dereferenceable(32) %53)
          to label %421 unwind label %503

421:                                              ; preds = %420
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %53) #8
  %422 = load ptr, ptr %34, align 8, !tbaa !5
  %423 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz10RenderPass14getFramebufferEv(ptr noundef nonnull align 8 dereferenceable(536) %422)
          to label %424 unwind label %477

424:                                              ; preds = %421
  %425 = call noundef i32 @_ZNK3Raz11Framebuffer8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %423) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %54) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %54, ptr noundef @.str.19, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %426 unwind label %508

426:                                              ; preds = %424
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 36160, i32 noundef %425, ptr noundef nonnull align 8 dereferenceable(32) %54)
          to label %427 unwind label %512

427:                                              ; preds = %426
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %54) #8
  %428 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %47) #8
  %429 = invoke noundef i32 @_ZNK3Raz7Texture8getIndexEv(ptr noundef nonnull align 8 dereferenceable(24) %428)
          to label %430 unwind label %477

430:                                              ; preds = %427
  call void @llvm.lifetime.start.p0(i64 32, ptr %55) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %55, ptr noundef @.str.20, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %431 unwind label %517

431:                                              ; preds = %430
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 5890, i32 noundef %429, ptr noundef nonnull align 8 dereferenceable(32) %55)
          to label %432 unwind label %521

432:                                              ; preds = %431
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #8
  br label %526

433:                                              ; preds = %336
  %434 = landingpad { ptr, i32 }
          cleanup
  %435 = extractvalue { ptr, i32 } %434, 0
  store ptr %435, ptr %7, align 8
  %436 = extractvalue { ptr, i32 } %434, 1
  store i32 %436, ptr %8, align 4
  br label %534

437:                                              ; preds = %338
  %438 = landingpad { ptr, i32 }
          cleanup
  %439 = extractvalue { ptr, i32 } %438, 0
  store ptr %439, ptr %7, align 8
  %440 = extractvalue { ptr, i32 } %438, 1
  store i32 %440, ptr %8, align 4
  br label %450

441:                                              ; preds = %344
  %442 = landingpad { ptr, i32 }
          cleanup
  %443 = extractvalue { ptr, i32 } %442, 0
  store ptr %443, ptr %7, align 8
  %444 = extractvalue { ptr, i32 } %442, 1
  store i32 %444, ptr %8, align 4
  br label %449

445:                                              ; preds = %345
  %446 = landingpad { ptr, i32 }
          cleanup
  %447 = extractvalue { ptr, i32 } %446, 0
  store ptr %447, ptr %7, align 8
  %448 = extractvalue { ptr, i32 } %446, 1
  store i32 %448, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #8
  br label %449

449:                                              ; preds = %445, %441
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #8
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %35) #8
  br label %450

450:                                              ; preds = %449, %437
  call void @llvm.lifetime.end.p0(i64 48, ptr %35) #8
  br label %533

451:                                              ; preds = %347
  %452 = landingpad { ptr, i32 }
          cleanup
  %453 = extractvalue { ptr, i32 } %452, 0
  store ptr %453, ptr %7, align 8
  %454 = extractvalue { ptr, i32 } %452, 1
  store i32 %454, ptr %8, align 4
  br label %459

455:                                              ; preds = %355
  %456 = landingpad { ptr, i32 }
          cleanup
  %457 = extractvalue { ptr, i32 } %456, 0
  store ptr %457, ptr %7, align 8
  %458 = extractvalue { ptr, i32 } %456, 1
  store i32 %458, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #8
  br label %459

459:                                              ; preds = %455, %451
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #8
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %39) #8
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %40) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  br label %532

460:                                              ; preds = %368
  %461 = landingpad { ptr, i32 }
          cleanup
  %462 = extractvalue { ptr, i32 } %461, 0
  store ptr %462, ptr %7, align 8
  %463 = extractvalue { ptr, i32 } %461, 1
  store i32 %463, ptr %8, align 4
  br label %468

464:                                              ; preds = %370
  %465 = landingpad { ptr, i32 }
          cleanup
  %466 = extractvalue { ptr, i32 } %465, 0
  store ptr %466, ptr %7, align 8
  %467 = extractvalue { ptr, i32 } %465, 1
  store i32 %467, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #8
  br label %468

468:                                              ; preds = %464, %460
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %45) #8
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %43) #8
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %44) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #8
  br label %532

469:                                              ; preds = %371
  %470 = landingpad { ptr, i32 }
          cleanup
  %471 = extractvalue { ptr, i32 } %470, 0
  store ptr %471, ptr %7, align 8
  %472 = extractvalue { ptr, i32 } %470, 1
  store i32 %472, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  br label %531

473:                                              ; preds = %372
  %474 = landingpad { ptr, i32 }
          cleanup
  %475 = extractvalue { ptr, i32 } %474, 0
  store ptr %475, ptr %7, align 8
  %476 = extractvalue { ptr, i32 } %474, 1
  store i32 %476, ptr %8, align 4
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %50) #8
  br label %530

477:                                              ; preds = %427, %421, %414, %407, %403, %400, %396
  %478 = landingpad { ptr, i32 }
          cleanup
  %479 = extractvalue { ptr, i32 } %478, 0
  store ptr %479, ptr %7, align 8
  %480 = extractvalue { ptr, i32 } %478, 1
  store i32 %480, ptr %8, align 4
  br label %530

481:                                              ; preds = %405
  %482 = landingpad { ptr, i32 }
          cleanup
  %483 = extractvalue { ptr, i32 } %482, 0
  store ptr %483, ptr %7, align 8
  %484 = extractvalue { ptr, i32 } %482, 1
  store i32 %484, ptr %8, align 4
  br label %489

485:                                              ; preds = %406
  %486 = landingpad { ptr, i32 }
          cleanup
  %487 = extractvalue { ptr, i32 } %486, 0
  store ptr %487, ptr %7, align 8
  %488 = extractvalue { ptr, i32 } %486, 1
  store i32 %488, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #8
  br label %489

489:                                              ; preds = %485, %481
  call void @llvm.lifetime.end.p0(i64 32, ptr %51) #8
  br label %530

490:                                              ; preds = %410
  %491 = landingpad { ptr, i32 }
          cleanup
  %492 = extractvalue { ptr, i32 } %491, 0
  store ptr %492, ptr %7, align 8
  %493 = extractvalue { ptr, i32 } %491, 1
  store i32 %493, ptr %8, align 4
  br label %498

494:                                              ; preds = %413
  %495 = landingpad { ptr, i32 }
          cleanup
  %496 = extractvalue { ptr, i32 } %495, 0
  store ptr %496, ptr %7, align 8
  %497 = extractvalue { ptr, i32 } %495, 1
  store i32 %497, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #8
  br label %498

498:                                              ; preds = %494, %490
  call void @llvm.lifetime.end.p0(i64 32, ptr %52) #8
  br label %530

499:                                              ; preds = %417
  %500 = landingpad { ptr, i32 }
          cleanup
  %501 = extractvalue { ptr, i32 } %500, 0
  store ptr %501, ptr %7, align 8
  %502 = extractvalue { ptr, i32 } %500, 1
  store i32 %502, ptr %8, align 4
  br label %507

503:                                              ; preds = %420
  %504 = landingpad { ptr, i32 }
          cleanup
  %505 = extractvalue { ptr, i32 } %504, 0
  store ptr %505, ptr %7, align 8
  %506 = extractvalue { ptr, i32 } %504, 1
  store i32 %506, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #8
  br label %507

507:                                              ; preds = %503, %499
  call void @llvm.lifetime.end.p0(i64 32, ptr %53) #8
  br label %530

508:                                              ; preds = %424
  %509 = landingpad { ptr, i32 }
          cleanup
  %510 = extractvalue { ptr, i32 } %509, 0
  store ptr %510, ptr %7, align 8
  %511 = extractvalue { ptr, i32 } %509, 1
  store i32 %511, ptr %8, align 4
  br label %516

512:                                              ; preds = %426
  %513 = landingpad { ptr, i32 }
          cleanup
  %514 = extractvalue { ptr, i32 } %513, 0
  store ptr %514, ptr %7, align 8
  %515 = extractvalue { ptr, i32 } %513, 1
  store i32 %515, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #8
  br label %516

516:                                              ; preds = %512, %508
  call void @llvm.lifetime.end.p0(i64 32, ptr %54) #8
  br label %530

517:                                              ; preds = %430
  %518 = landingpad { ptr, i32 }
          cleanup
  %519 = extractvalue { ptr, i32 } %518, 0
  store ptr %519, ptr %7, align 8
  %520 = extractvalue { ptr, i32 } %518, 1
  store i32 %520, ptr %8, align 4
  br label %525

521:                                              ; preds = %431
  %522 = landingpad { ptr, i32 }
          cleanup
  %523 = extractvalue { ptr, i32 } %522, 0
  store ptr %523, ptr %7, align 8
  %524 = extractvalue { ptr, i32 } %522, 1
  store i32 %524, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #8
  br label %525

525:                                              ; preds = %521, %517
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #8
  br label %530

526:                                              ; preds = %432, %398
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %47) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #8
  br label %527

527:                                              ; preds = %526
  %528 = load i64, ptr %32, align 8, !tbaa !24
  %529 = add i64 %528, 1
  store i64 %529, ptr %32, align 8, !tbaa !24
  br label %332, !llvm.loop !32

530:                                              ; preds = %525, %516, %507, %498, %489, %477, %473
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %47) #8
  br label %531

531:                                              ; preds = %530, %469
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #8
  br label %532

532:                                              ; preds = %531, %468, %459
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  br label %533

533:                                              ; preds = %532, %450
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #8
  br label %534

534:                                              ; preds = %533, %433
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %610

535:                                              ; preds = %335
  %536 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %56) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %57, ptr align 8 @_ZN3Raz12_GLOBAL__N_111finalSourceE, i64 16, i1 false), !tbaa.struct !23
  %537 = getelementptr inbounds { i64, ptr }, ptr %57, i32 0, i32 0
  %538 = load i64, ptr %537, align 8
  %539 = getelementptr inbounds { i64, ptr }, ptr %57, i32 0, i32 1
  %540 = load ptr, ptr %539, align 8
  invoke void @_ZN3Raz14FragmentShader14loadFromSourceESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind writable sret(%"class.Raz::FragmentShader") align 8 %56, i64 %538, ptr %540)
          to label %541 unwind label %580

541:                                              ; preds = %535
  %542 = invoke noundef nonnull align 8 dereferenceable(536) ptr @_ZN3Raz5GraphINS_10RenderPassEE7addNodeIJNS_14FragmentShaderERA17_KcEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %536, ptr noundef nonnull align 8 dereferenceable(48) %56, ptr noundef nonnull align 1 dereferenceable(17) @.str.21)
          to label %543 unwind label %584

543:                                              ; preds = %541
  %544 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 6
  store ptr %542, ptr %544, align 8, !tbaa !22
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %56) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %56) #8
  %545 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 6
  %546 = load ptr, ptr %545, align 8, !tbaa !22
  %547 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 4
  %548 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %547) #8
  %549 = load ptr, ptr %548, align 8, !tbaa !5
  invoke void @_ZN3Raz9GraphNodeINS_10RenderPassEE10addParentsIJEEEvRS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(56) %546, ptr noundef nonnull align 8 dereferenceable(56) %549)
          to label %550 unwind label %138

550:                                              ; preds = %543
  %551 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 6
  %552 = load ptr, ptr %551, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #8
  %553 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 5
  %554 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %553) #8
  call void @_ZNKSt8weak_ptrIN3Raz9Texture2DEE4lockEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %59, ptr noundef nonnull align 8 dereferenceable(16) %554) #8
  call void @_ZNSt10shared_ptrIN3Raz7TextureEEC2INS0_9Texture2DEvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 8 dereferenceable(16) %59) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %60) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %61) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %61) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %60, ptr noundef @.str.22, ptr noundef nonnull align 1 dereferenceable(1) %61)
          to label %555 unwind label %589

555:                                              ; preds = %550
  invoke void @_ZN3Raz10RenderPass14addReadTextureESt10shared_ptrINS_7TextureEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(536) %552, ptr noundef %58, ptr noundef nonnull align 8 dereferenceable(32) %60)
          to label %556 unwind label %593

556:                                              ; preds = %555
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %60) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %61) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %60) #8
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %58) #8
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %59) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #8
  %557 = call noundef zeroext i1 @_ZN3Raz8Renderer12checkVersionEii(i32 noundef 4, i32 noundef 3) #8
  br i1 %557, label %558, label %598

558:                                              ; preds = %556
  %559 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 6
  %560 = load ptr, ptr %559, align 8, !tbaa !22
  %561 = invoke noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %560)
          to label %562 unwind label %138

562:                                              ; preds = %558
  %563 = invoke noundef i32 @_ZNK3Raz13ShaderProgram8getIndexEv(ptr noundef nonnull align 8 dereferenceable(120) %561)
          to label %564 unwind label %138

564:                                              ; preds = %562
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33506, i32 noundef %563, ptr noundef @.str.23)
          to label %565 unwind label %138

565:                                              ; preds = %564
  %566 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 6
  %567 = load ptr, ptr %566, align 8, !tbaa !22
  %568 = invoke noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %567)
          to label %569 unwind label %138

569:                                              ; preds = %565
  %570 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram15getVertexShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %568) #8
  %571 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %570) #8
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33505, i32 noundef %571, ptr noundef @.str.24)
          to label %572 unwind label %138

572:                                              ; preds = %569
  %573 = getelementptr inbounds %"class.Raz::BloomRenderProcess", ptr %62, i32 0, i32 6
  %574 = load ptr, ptr %573, align 8, !tbaa !22
  %575 = invoke noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %574)
          to label %576 unwind label %138

576:                                              ; preds = %572
  %577 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram17getFragmentShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %575) #8
  %578 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %577) #8
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33505, i32 noundef %578, ptr noundef @.str.25)
          to label %579 unwind label %138

579:                                              ; preds = %576
  br label %598

580:                                              ; preds = %535
  %581 = landingpad { ptr, i32 }
          cleanup
  %582 = extractvalue { ptr, i32 } %581, 0
  store ptr %582, ptr %7, align 8
  %583 = extractvalue { ptr, i32 } %581, 1
  store i32 %583, ptr %8, align 4
  br label %588

584:                                              ; preds = %541
  %585 = landingpad { ptr, i32 }
          cleanup
  %586 = extractvalue { ptr, i32 } %585, 0
  store ptr %586, ptr %7, align 8
  %587 = extractvalue { ptr, i32 } %585, 1
  store i32 %587, ptr %8, align 4
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %56) #8
  br label %588

588:                                              ; preds = %584, %580
  call void @llvm.lifetime.end.p0(i64 48, ptr %56) #8
  br label %610

589:                                              ; preds = %550
  %590 = landingpad { ptr, i32 }
          cleanup
  %591 = extractvalue { ptr, i32 } %590, 0
  store ptr %591, ptr %7, align 8
  %592 = extractvalue { ptr, i32 } %590, 1
  store i32 %592, ptr %8, align 4
  br label %597

593:                                              ; preds = %555
  %594 = landingpad { ptr, i32 }
          cleanup
  %595 = extractvalue { ptr, i32 } %594, 0
  store ptr %595, ptr %7, align 8
  %596 = extractvalue { ptr, i32 } %594, 1
  store i32 %596, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %60) #8
  br label %597

597:                                              ; preds = %593, %589
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %61) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %60) #8
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %58) #8
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %59) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #8
  br label %610

598:                                              ; preds = %579, %556
  %599 = load ptr, ptr %4, align 8, !tbaa !5
  %600 = invoke noundef zeroext i1 @_ZNK3Raz11RenderGraph7isValidEv(ptr noundef nonnull align 8 dereferenceable(648) %599)
          to label %601 unwind label %138

601:                                              ; preds = %598
  br i1 %600, label %609, label %602

602:                                              ; preds = %601
  %603 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %603, ptr noundef @.str.26)
          to label %604 unwind label %605

604:                                              ; preds = %602
  invoke void @__cxa_throw(ptr %603, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
          to label %618 unwind label %138

605:                                              ; preds = %602
  %606 = landingpad { ptr, i32 }
          cleanup
  %607 = extractvalue { ptr, i32 } %606, 0
  store ptr %607, ptr %7, align 8
  %608 = extractvalue { ptr, i32 } %606, 1
  store i32 %608, ptr %8, align 4
  call void @__cxa_free_exception(ptr %603) #8
  br label %610

609:                                              ; preds = %601
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  ret void

610:                                              ; preds = %605, %597, %588, %534, %326, %138, %134
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  br label %611

611:                                              ; preds = %610, %130
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  br label %612

612:                                              ; preds = %611, %126, %125
  call void @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %68) #8
  call void @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %67) #8
  call void @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %66) #8
  call void @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %65) #8
  call void @_ZN3Raz13RenderProcessD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %62) #8
  br label %613

613:                                              ; preds = %612
  %614 = load ptr, ptr %7, align 8
  %615 = load i32, ptr %8, align 4
  %616 = insertvalue { ptr, i32 } poison, ptr %614, 0
  %617 = insertvalue { ptr, i32 } %616, i32 %615, 1
  resume { ptr, i32 } %617

618:                                              ; preds = %604
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Raz13RenderProcessC2ERNS_11RenderGraphE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(648)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(536) ptr @_ZN3Raz5GraphINS_10RenderPassEE7addNodeIJNS_14FragmentShaderERA19_KcEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(19)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz14FragmentShader14loadFromSourceESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind noalias writable sret(%"class.Raz::FragmentShader") align 8, i64, ptr) #1 align 2

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

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) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Raz18BloomRenderProcess17setThresholdValueEf(ptr noundef nonnull align 8 dereferenceable(128), float noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz9Texture2D6createIJNS_17TextureColorspaceENS_15TextureDataTypeEEEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz10RenderPass20addWriteColorTextureESt10shared_ptrINS_9Texture2DEEj(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3Raz9Texture2DEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3Raz13ShaderProgram8getIndexEv(ptr noundef nonnull align 8 dereferenceable(120)) #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i64 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(536) ptr @_ZN3Raz5GraphINS_10RenderPassEE7addNodeIJNS_14FragmentShaderENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #1

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

declare void @_ZN3Raz10RenderPass14addReadTextureESt10shared_ptrINS_7TextureEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt8weak_ptrIN3Raz9Texture2DEE4lockEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3Raz7TextureEEC2INS0_9Texture2DEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #1 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3Raz7TextureEEC2INS0_9Texture2DEvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(536) ptr @_ZN3Raz5GraphINS_10RenderPassEE7addNodeIJNS_14FragmentShaderERA17_KcEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(17)) #1 align 2

declare noundef zeroext i1 @_ZNK3Raz11RenderGraph7isValidEv(ptr noundef nonnull align 8 dereferenceable(648)) #5

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #5

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"_ZTSN3Raz18BloomRenderProcessE", !13, i64 0, !6, i64 16, !14, i64 24, !18, i64 48, !14, i64 72, !18, i64 96, !6, i64 120}
!13 = !{!"_ZTSN3Raz13RenderProcessE", !6, i64 8}
!14 = !{!"_ZTSSt6vectorIPN3Raz10RenderPassESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIPN3Raz10RenderPassESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN3Raz10RenderPassESaIS2_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN3Raz10RenderPassESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!12, !6, i64 120}
!23 = !{i64 0, i64 8, !24, i64 8, i64 8, !5}
!24 = !{!25, !25, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"_ZTSN3Raz17TextureColorspaceE", !7, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"_ZTSN3Raz15TextureDataTypeE", !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}


; 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::basic_string_view" = type { i64, ptr }
%"class.Raz::FragmentShader" = type { %"class.Raz::Shader" }
%"class.Raz::Shader" = type { ptr, %"class.Raz::OwnerValue", %"class.Raz::FilePath" }
%"class.Raz::OwnerValue" = type { i32 }
%"class.Raz::FilePath" = type { %"class.std::__cxx11::basic_string" }
%"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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.94" = type { %"class.std::__shared_ptr.95" }
%"class.std::__shared_ptr.95" = type { ptr, %"class.std::__shared_count" }
%"class.std::allocator.15" = type { i8 }

@_ZTVN3Raz18BloomRenderProcessE = external dso_local unnamed_addr constant { [12 x ptr] }, align 8
@_ZN3Raz12_GLOBAL__N_115thresholdSourceE = external hidden local_unnamed_addr constant %"class.std::basic_string_view", align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZN3Raz12_GLOBAL__N_115downscaleSourceE = external hidden local_unnamed_addr constant %"class.std::basic_string_view", align 8
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@_ZN3Raz12_GLOBAL__N_113upscaleSourceE = external hidden local_unnamed_addr constant %"class.std::basic_string_view", align 8
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZN3Raz12_GLOBAL__N_111finalSourceE = external hidden local_unnamed_addr constant %"class.std::basic_string_view", align 8
@.str.21 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [36 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Raz18BloomRenderProcessC2ERNS_11RenderGraphE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(648) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.Raz::FragmentShader", align 8
  %4 = alloca %"class.std::shared_ptr", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::shared_ptr", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.Raz::FragmentShader", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::shared_ptr.94", align 8
  %12 = alloca %"class.std::shared_ptr", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator.15", align 1
  %15 = alloca %"class.std::shared_ptr", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::shared_ptr", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.Raz::FragmentShader", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::shared_ptr.94", align 8
  %28 = alloca %"class.std::shared_ptr", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator.15", align 1
  %31 = alloca %"class.std::shared_ptr.94", align 8
  %32 = alloca %"class.std::shared_ptr", align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator.15", align 1
  %35 = alloca %"class.std::shared_ptr", align 8
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca %"class.std::shared_ptr", align 8
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca %"class.std::__cxx11::basic_string", align 8
  %41 = alloca %"class.std::__cxx11::basic_string", align 8
  %42 = alloca %"class.std::__cxx11::basic_string", align 8
  %43 = alloca %"class.std::__cxx11::basic_string", align 8
  %44 = alloca %"class.Raz::FragmentShader", align 8
  %45 = alloca %"class.std::shared_ptr.94", align 8
  %46 = alloca %"class.std::shared_ptr", align 8
  %47 = alloca %"class.std::__cxx11::basic_string", align 8
  %48 = alloca %"class.std::allocator.15", align 1
  tail call void @_ZN3Raz13RenderProcessC2ERNS_11RenderGraphE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(648) %1)
  store ptr getelementptr inbounds inrange(-16, 80) (i8, ptr @_ZTVN3Raz18BloomRenderProcessE, i64 16), ptr %0, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %0, i64 16
  %50 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %49, i8 0, i64 32, i1 false)
  tail call void @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #7
  %51 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %51, i8 0, i64 24, i1 false)
  tail call void @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %52 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %52, i8 0, i64 24, i1 false)
  tail call void @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %52) #7
  %53 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %53, i8 0, i64 24, i1 false)
  tail call void @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #7
  %54 = getelementptr inbounds i8, ptr %0, i64 120
  store ptr null, ptr %54, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #7
  %.sroa.042.0.copyload = load i64, ptr @_ZN3Raz12_GLOBAL__N_115thresholdSourceE, align 8, !tbaa !21
  %.sroa.243.0.copyload = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN3Raz12_GLOBAL__N_115thresholdSourceE, i64 8), align 8, !tbaa !23
  invoke void @_ZN3Raz14FragmentShader14loadFromSourceESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind nonnull writable sret(%"class.Raz::FragmentShader") align 8 %3, i64 %.sroa.042.0.copyload, ptr %.sroa.243.0.copyload)
          to label %55 unwind label %85

55:                                               ; preds = %2
  %56 = invoke noundef nonnull align 8 dereferenceable(536) ptr @_ZN3Raz5GraphINS_10RenderPassEE7addNodeIJNS_14FragmentShaderERA19_KcEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 1 dereferenceable(19) @.str)
          to label %57 unwind label %87

57:                                               ; preds = %55
  store ptr %56, ptr %49, align 8, !tbaa !24
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  invoke void @_ZNK3Raz18BloomRenderProcess17setThresholdValueEf(ptr noundef nonnull align 8 dereferenceable(128) %0, float noundef 7.500000e-01)
          to label %58 unwind label %90

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 2, ptr %5, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 1, ptr %6, align 4, !tbaa !27
  invoke void @_ZN3Raz9Texture2D6createIJNS_17TextureColorspaceENS_15TextureDataTypeEEEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %59 unwind label %92

59:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %60 = load ptr, ptr %49, align 8, !tbaa !24
  call void @_ZNSt10shared_ptrIN3Raz9Texture2DEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  invoke void @_ZN3Raz10RenderPass20addWriteColorTextureESt10shared_ptrINS_9Texture2DEEj(ptr noundef nonnull align 8 dereferenceable(536) %60, ptr noundef nonnull %7, i32 noundef 0)
          to label %61 unwind label %94

61:                                               ; preds = %59
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  %62 = call noundef zeroext i1 @_ZN3Raz8Renderer12checkVersionEii(i32 noundef 4, i32 noundef 3) #7
  br i1 %62, label %63, label %98

63:                                               ; preds = %61
  %64 = load ptr, ptr %49, align 8, !tbaa !24
  %65 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %64)
  %66 = invoke noundef i32 @_ZNK3Raz13ShaderProgram8getIndexEv(ptr noundef nonnull align 8 dereferenceable(120) %65)
          to label %67 unwind label %96

67:                                               ; preds = %63
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33506, i32 noundef %66, ptr noundef nonnull @.str.1)
          to label %68 unwind label %96

68:                                               ; preds = %67
  %69 = load ptr, ptr %49, align 8, !tbaa !24
  %70 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %69)
  %71 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram15getVertexShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %70) #7
  %72 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %71) #7
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33505, i32 noundef %72, ptr noundef nonnull @.str.2)
          to label %73 unwind label %96

73:                                               ; preds = %68
  %74 = load ptr, ptr %49, align 8, !tbaa !24
  %75 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %74)
  %76 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram17getFragmentShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %75) #7
  %77 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %76) #7
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33505, i32 noundef %77, ptr noundef nonnull @.str.3)
          to label %78 unwind label %96

78:                                               ; preds = %73
  %79 = load ptr, ptr %49, align 8, !tbaa !24
  %80 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz10RenderPass14getFramebufferEv(ptr noundef nonnull align 8 dereferenceable(536) %79)
  %81 = call noundef i32 @_ZNK3Raz11Framebuffer8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %80) #7
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 36160, i32 noundef %81, ptr noundef nonnull @.str.4)
          to label %82 unwind label %96

82:                                               ; preds = %78
  %83 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  %84 = call noundef i32 @_ZNK3Raz7Texture8getIndexEv(ptr noundef nonnull align 8 dereferenceable(24) %83)
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 5890, i32 noundef %84, ptr noundef nonnull @.str.5)
          to label %98 unwind label %96

85:                                               ; preds = %2
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %89

87:                                               ; preds = %55
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  br label %89

89:                                               ; preds = %87, %85
  %.pn = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  br label %368

90:                                               ; preds = %57
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %368

92:                                               ; preds = %58
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %367

94:                                               ; preds = %59
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  br label %366

96:                                               ; preds = %362, %357, %342, %337, %336, %332, %322, %203, %100, %99, %98, %82, %78, %73, %68, %67, %63
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %366

98:                                               ; preds = %82, %61
  invoke void @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef 5)
          to label %99 unwind label %96

99:                                               ; preds = %98
  invoke void @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef 5)
          to label %.preheader135 unwind label %96

.preheader135:                                    ; preds = %99
  %.sroa.021.0.copyload = load i64, ptr @_ZN3Raz12_GLOBAL__N_115downscaleSourceE, align 8
  %.sroa.222.0.copyload = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN3Raz12_GLOBAL__N_115downscaleSourceE, i64 8), align 8
  br label %101

100:                                              ; preds = %197
  invoke void @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef 4)
          to label %203 unwind label %96

101:                                              ; preds = %.preheader135, %197
  %.083136 = phi i64 [ 0, %.preheader135 ], [ %198, %197 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  invoke void @_ZNSt7__cxx119to_stringEm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, i64 noundef %.083136)
          to label %102 unwind label %151

102:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #7
  invoke void @_ZN3Raz14FragmentShader14loadFromSourceESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind nonnull writable sret(%"class.Raz::FragmentShader") align 8 %9, i64 %.sroa.021.0.copyload, ptr %.sroa.222.0.copyload)
          to label %103 unwind label %153

103:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull @.str.6, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %104 unwind label %155

104:                                              ; preds = %103
  %105 = invoke noundef nonnull align 8 dereferenceable(536) ptr @_ZN3Raz5GraphINS_10RenderPassEE7addNodeIJNS_14FragmentShaderENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %106 unwind label %157

106:                                              ; preds = %104
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  %107 = icmp eq i64 %.083136, 0
  br i1 %107, label %108, label %109

108:                                              ; preds = %106
  call void @_ZNSt10shared_ptrIN3Raz9Texture2DEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  br label %112

109:                                              ; preds = %106
  %110 = add nsw i64 %.083136, -1
  %111 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %110) #7
  call void @_ZNKSt8weak_ptrIN3Raz9Texture2DEE4lockEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %111) #7
  br label %112

112:                                              ; preds = %109, %108
  call void @_ZNSt10shared_ptrIN3Raz7TextureEEC2INS0_9Texture2DEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %113 unwind label %161

113:                                              ; preds = %112
  invoke void @_ZN3Raz10RenderPass14addReadTextureESt10shared_ptrINS_7TextureEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(536) %105, ptr noundef nonnull %11, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %114 unwind label %163

114:                                              ; preds = %113
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #7
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  store i32 2, ptr %16, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  store i32 1, ptr %17, align 4, !tbaa !27
  invoke void @_ZN3Raz9Texture2D6createIJNS_17TextureColorspaceENS_15TextureDataTypeEEEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %115 unwind label %166

115:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @_ZNSt10shared_ptrIN3Raz9Texture2DEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  invoke void @_ZN3Raz10RenderPass20addWriteColorTextureESt10shared_ptrINS_9Texture2DEEj(ptr noundef nonnull align 8 dereferenceable(536) %105, ptr noundef nonnull %18, i32 noundef 0)
          to label %116 unwind label %168

116:                                              ; preds = %115
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %.083136) #7
  store ptr %105, ptr %117, align 8, !tbaa !23
  %118 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %.083136) #7
  %119 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8weak_ptrIN3Raz9Texture2DEEaSIS1_EENSt9enable_ifIXsr13is_assignableIRSt10__weak_ptrIS1_LN9__gnu_cxx12_Lock_policyE2EERKSt10shared_ptrIT_EEE5valueERS2_E4typeESE_(ptr noundef nonnull align 8 dereferenceable(16) %118, ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  br i1 %107, label %123, label %120

120:                                              ; preds = %116
  %121 = add nsw i64 %.083136, -1
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %121) #7
  br label %123

123:                                              ; preds = %116, %120
  %.in117 = phi ptr [ %122, %120 ], [ %49, %116 ]
  %124 = load ptr, ptr %.in117, align 8, !tbaa !23
  invoke void @_ZN3Raz9GraphNodeINS_10RenderPassEE10addParentsIJEEEvRS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(56) %105, ptr noundef nonnull align 8 dereferenceable(56) %124)
          to label %125 unwind label %170

125:                                              ; preds = %123
  %126 = call noundef zeroext i1 @_ZN3Raz8Renderer12checkVersionEii(i32 noundef 4, i32 noundef 3) #7
  br i1 %126, label %127, label %197

127:                                              ; preds = %125
  %128 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %105)
  %129 = invoke noundef i32 @_ZNK3Raz13ShaderProgram8getIndexEv(ptr noundef nonnull align 8 dereferenceable(120) %128)
          to label %130 unwind label %170

130:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull @.str.8, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %131 unwind label %172

131:                                              ; preds = %130
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 33506, i32 noundef %129, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %132 unwind label %174

132:                                              ; preds = %131
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #7
  %133 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %105)
  %134 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram15getVertexShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %133) #7
  %135 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %134) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull @.str.9, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %136 unwind label %177

136:                                              ; preds = %132
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 33505, i32 noundef %135, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %137 unwind label %179

137:                                              ; preds = %136
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #7
  %138 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %105)
  %139 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram17getFragmentShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %138) #7
  %140 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %139) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull @.str.10, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %141 unwind label %182

141:                                              ; preds = %137
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 33505, i32 noundef %140, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %142 unwind label %184

142:                                              ; preds = %141
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #7
  %143 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz10RenderPass14getFramebufferEv(ptr noundef nonnull align 8 dereferenceable(536) %105)
  %144 = call noundef i32 @_ZNK3Raz11Framebuffer8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %143) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull @.str.11, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %145 unwind label %187

145:                                              ; preds = %142
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 36160, i32 noundef %144, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %146 unwind label %189

146:                                              ; preds = %145
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #7
  %147 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  %148 = call noundef i32 @_ZNK3Raz7Texture8getIndexEv(ptr noundef nonnull align 8 dereferenceable(24) %147)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull @.str.12, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %149 unwind label %192

149:                                              ; preds = %146
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 5890, i32 noundef %148, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %150 unwind label %194

150:                                              ; preds = %149
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #7
  br label %197

151:                                              ; preds = %101
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %202

153:                                              ; preds = %102
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %160

155:                                              ; preds = %103
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %159

157:                                              ; preds = %104
  %158 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %159

159:                                              ; preds = %157, %155
  %.pn112 = phi { ptr, i32 } [ %158, %157 ], [ %156, %155 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  br label %160

160:                                              ; preds = %159, %153
  %.pn112.pn = phi { ptr, i32 } [ %.pn112, %159 ], [ %154, %153 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #7
  br label %201

161:                                              ; preds = %112
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %165

163:                                              ; preds = %113
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  br label %165

165:                                              ; preds = %163, %161
  %.pn115 = phi { ptr, i32 } [ %164, %163 ], [ %162, %161 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #7
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  br label %201

166:                                              ; preds = %114
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  br label %200

168:                                              ; preds = %115
  %169 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  br label %199

170:                                              ; preds = %127, %123
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %199

172:                                              ; preds = %130
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %176

174:                                              ; preds = %131
  %175 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %176

176:                                              ; preds = %174, %172
  %.pn118 = phi { ptr, i32 } [ %175, %174 ], [ %173, %172 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #7
  br label %199

177:                                              ; preds = %132
  %178 = landingpad { ptr, i32 }
          cleanup
  br label %181

179:                                              ; preds = %136
  %180 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  br label %181

181:                                              ; preds = %179, %177
  %.pn120 = phi { ptr, i32 } [ %180, %179 ], [ %178, %177 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #7
  br label %199

182:                                              ; preds = %137
  %183 = landingpad { ptr, i32 }
          cleanup
  br label %186

184:                                              ; preds = %141
  %185 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  br label %186

186:                                              ; preds = %184, %182
  %.pn122 = phi { ptr, i32 } [ %185, %184 ], [ %183, %182 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #7
  br label %199

187:                                              ; preds = %142
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %191

189:                                              ; preds = %145
  %190 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  br label %191

191:                                              ; preds = %189, %187
  %.pn124 = phi { ptr, i32 } [ %190, %189 ], [ %188, %187 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #7
  br label %199

192:                                              ; preds = %146
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %196

194:                                              ; preds = %149
  %195 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  br label %196

196:                                              ; preds = %194, %192
  %.pn126 = phi { ptr, i32 } [ %195, %194 ], [ %193, %192 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #7
  br label %199

197:                                              ; preds = %150, %125
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  %198 = add nuw nsw i64 %.083136, 1
  %exitcond.not = icmp eq i64 %198, 5
  br i1 %exitcond.not, label %100, label %101, !llvm.loop !29

199:                                              ; preds = %196, %191, %186, %181, %176, %170, %168
  %.pn126.pn = phi { ptr, i32 } [ %.pn126, %196 ], [ %.pn124, %191 ], [ %.pn122, %186 ], [ %.pn120, %181 ], [ %.pn118, %176 ], [ %171, %170 ], [ %169, %168 ]
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  br label %200

200:                                              ; preds = %199, %166
  %.pn126.pn.pn = phi { ptr, i32 } [ %.pn126.pn, %199 ], [ %167, %166 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  br label %201

201:                                              ; preds = %200, %165, %160
  %.pn126.pn.pn.pn = phi { ptr, i32 } [ %.pn126.pn.pn, %200 ], [ %.pn115, %165 ], [ %.pn112.pn, %160 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %202

202:                                              ; preds = %201, %151
  %.pn126.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn126.pn.pn.pn, %201 ], [ %152, %151 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %366

203:                                              ; preds = %100
  invoke void @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef 4)
          to label %.preheader unwind label %96

.preheader:                                       ; preds = %203
  %.sroa.01.0.copyload = load i64, ptr @_ZN3Raz12_GLOBAL__N_113upscaleSourceE, align 8
  %.sroa.22.0.copyload = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN3Raz12_GLOBAL__N_113upscaleSourceE, i64 8), align 8
  br label %205

204:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %44) #7
  %.sroa.0.0.copyload = load i64, ptr @_ZN3Raz12_GLOBAL__N_111finalSourceE, align 8, !tbaa !21
  %.sroa.2.0.copyload = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN3Raz12_GLOBAL__N_111finalSourceE, i64 8), align 8, !tbaa !23
  invoke void @_ZN3Raz14FragmentShader14loadFromSourceESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind nonnull writable sret(%"class.Raz::FragmentShader") align 8 %44, i64 %.sroa.0.0.copyload, ptr %.sroa.2.0.copyload)
          to label %320 unwind label %347

205:                                              ; preds = %.preheader, %314
  %.084137 = phi i64 [ 0, %.preheader ], [ %315, %314 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #7
  invoke void @_ZNSt7__cxx119to_stringEm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %24, i64 noundef %.084137)
          to label %206 unwind label %263

206:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %25) #7
  invoke void @_ZN3Raz14FragmentShader14loadFromSourceESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind nonnull writable sret(%"class.Raz::FragmentShader") align 8 %25, i64 %.sroa.01.0.copyload, ptr %.sroa.22.0.copyload)
          to label %207 unwind label %265

207:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull @.str.13, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %208 unwind label %267

208:                                              ; preds = %207
  %209 = invoke noundef nonnull align 8 dereferenceable(536) ptr @_ZN3Raz5GraphINS_10RenderPassEE7addNodeIJNS_14FragmentShaderENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(48) %25, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %210 unwind label %269

210:                                              ; preds = %208
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #7
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %25) #7
  %211 = sub nuw nsw i64 3, %.084137
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #7
  %212 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %211) #7
  call void @_ZNKSt8weak_ptrIN3Raz9Texture2DEE4lockEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %28, ptr noundef nonnull align 8 dereferenceable(16) %212) #7
  call void @_ZNSt10shared_ptrIN3Raz7TextureEEC2INS0_9Texture2DEvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %28) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %29) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %30) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull @.str.14, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %213 unwind label %273

213:                                              ; preds = %210
  invoke void @_ZN3Raz10RenderPass14addReadTextureESt10shared_ptrINS_7TextureEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(536) %209, ptr noundef nonnull %27, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %214 unwind label %275

214:                                              ; preds = %213
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #7
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #7
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #7
  %215 = icmp eq i64 %.084137, 0
  br i1 %215, label %216, label %218

216:                                              ; preds = %214
  %217 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  br label %221

218:                                              ; preds = %214
  %219 = add nsw i64 %.084137, -1
  %220 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %219) #7
  br label %221

221:                                              ; preds = %218, %216
  %222 = phi ptr [ %217, %216 ], [ %220, %218 ]
  call void @_ZNKSt8weak_ptrIN3Raz9Texture2DEE4lockEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %32, ptr noundef nonnull align 8 dereferenceable(16) %222) #7
  call void @_ZNSt10shared_ptrIN3Raz7TextureEEC2INS0_9Texture2DEvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %32) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %33) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %34) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull @.str.15, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %223 unwind label %278

223:                                              ; preds = %221
  invoke void @_ZN3Raz10RenderPass14addReadTextureESt10shared_ptrINS_7TextureEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(536) %209, ptr noundef nonnull %31, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %224 unwind label %280

224:                                              ; preds = %223
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #7
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %35) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #7
  store i32 2, ptr %36, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #7
  store i32 1, ptr %37, align 4, !tbaa !27
  invoke void @_ZN3Raz9Texture2D6createIJNS_17TextureColorspaceENS_15TextureDataTypeEEEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %35, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %225 unwind label %283

225:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #7
  call void @_ZNSt10shared_ptrIN3Raz9Texture2DEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %35) #7
  invoke void @_ZN3Raz10RenderPass20addWriteColorTextureESt10shared_ptrINS_9Texture2DEEj(ptr noundef nonnull align 8 dereferenceable(536) %209, ptr noundef nonnull %38, i32 noundef 0)
          to label %226 unwind label %285

226:                                              ; preds = %225
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38) #7
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %.084137) #7
  store ptr %209, ptr %227, align 8, !tbaa !23
  %228 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %.084137) #7
  %229 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8weak_ptrIN3Raz9Texture2DEEaSIS1_EENSt9enable_ifIXsr13is_assignableIRSt10__weak_ptrIS1_LN9__gnu_cxx12_Lock_policyE2EERKSt10shared_ptrIT_EEE5valueERS2_E4typeESE_(ptr noundef nonnull align 8 dereferenceable(16) %228, ptr noundef nonnull align 8 dereferenceable(16) %35) #7
  br i1 %215, label %230, label %232

230:                                              ; preds = %226
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #7
  br label %235

232:                                              ; preds = %226
  %233 = add nsw i64 %.084137, -1
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %233) #7
  br label %235

235:                                              ; preds = %232, %230
  %.in = phi ptr [ %231, %230 ], [ %234, %232 ]
  %236 = load ptr, ptr %.in, align 8, !tbaa !23
  invoke void @_ZN3Raz9GraphNodeINS_10RenderPassEE10addParentsIJEEEvRS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(56) %209, ptr noundef nonnull align 8 dereferenceable(56) %236)
          to label %237 unwind label %287

237:                                              ; preds = %235
  %238 = call noundef zeroext i1 @_ZN3Raz8Renderer12checkVersionEii(i32 noundef 4, i32 noundef 3) #7
  br i1 %238, label %239, label %314

239:                                              ; preds = %237
  %240 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %209)
  %241 = invoke noundef i32 @_ZNK3Raz13ShaderProgram8getIndexEv(ptr noundef nonnull align 8 dereferenceable(120) %240)
          to label %242 unwind label %287

242:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %39) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %39, ptr noundef nonnull @.str.16, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %243 unwind label %289

243:                                              ; preds = %242
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 33506, i32 noundef %241, ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %244 unwind label %291

244:                                              ; preds = %243
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %39) #7
  %245 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %209)
  %246 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram15getVertexShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %245) #7
  %247 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %246) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %40) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %40, ptr noundef nonnull @.str.17, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %248 unwind label %294

248:                                              ; preds = %244
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 33505, i32 noundef %247, ptr noundef nonnull align 8 dereferenceable(32) %40)
          to label %249 unwind label %296

249:                                              ; preds = %248
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #7
  %250 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %209)
  %251 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram17getFragmentShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %250) #7
  %252 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %251) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %41) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %41, ptr noundef nonnull @.str.18, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %253 unwind label %299

253:                                              ; preds = %249
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 33505, i32 noundef %252, ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %254 unwind label %301

254:                                              ; preds = %253
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %41) #7
  %255 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz10RenderPass14getFramebufferEv(ptr noundef nonnull align 8 dereferenceable(536) %209)
  %256 = call noundef i32 @_ZNK3Raz11Framebuffer8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %255) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %42) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %42, ptr noundef nonnull @.str.19, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %257 unwind label %304

257:                                              ; preds = %254
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 36160, i32 noundef %256, ptr noundef nonnull align 8 dereferenceable(32) %42)
          to label %258 unwind label %306

258:                                              ; preds = %257
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %42) #7
  %259 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %35) #7
  %260 = call noundef i32 @_ZNK3Raz7Texture8getIndexEv(ptr noundef nonnull align 8 dereferenceable(24) %259)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %43) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %43, ptr noundef nonnull @.str.20, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %261 unwind label %309

261:                                              ; preds = %258
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 5890, i32 noundef %260, ptr noundef nonnull align 8 dereferenceable(32) %43)
          to label %262 unwind label %311

262:                                              ; preds = %261
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %43) #7
  br label %314

263:                                              ; preds = %205
  %264 = landingpad { ptr, i32 }
          cleanup
  br label %319

265:                                              ; preds = %206
  %266 = landingpad { ptr, i32 }
          cleanup
  br label %272

267:                                              ; preds = %207
  %268 = landingpad { ptr, i32 }
          cleanup
  br label %271

269:                                              ; preds = %208
  %270 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  br label %271

271:                                              ; preds = %269, %267
  %.pn90 = phi { ptr, i32 } [ %270, %269 ], [ %268, %267 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #7
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  br label %272

272:                                              ; preds = %271, %265
  %.pn90.pn = phi { ptr, i32 } [ %.pn90, %271 ], [ %266, %265 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %25) #7
  br label %318

273:                                              ; preds = %210
  %274 = landingpad { ptr, i32 }
          cleanup
  br label %277

275:                                              ; preds = %213
  %276 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  br label %277

277:                                              ; preds = %275, %273
  %.pn93 = phi { ptr, i32 } [ %276, %275 ], [ %274, %273 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #7
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #7
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #7
  br label %318

278:                                              ; preds = %221
  %279 = landingpad { ptr, i32 }
          cleanup
  br label %282

280:                                              ; preds = %223
  %281 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #7
  br label %282

282:                                              ; preds = %280, %278
  %.pn95 = phi { ptr, i32 } [ %281, %280 ], [ %279, %278 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #7
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #7
  br label %318

283:                                              ; preds = %224
  %284 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #7
  br label %317

285:                                              ; preds = %225
  %286 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38) #7
  br label %316

287:                                              ; preds = %239, %235
  %288 = landingpad { ptr, i32 }
          cleanup
  br label %316

289:                                              ; preds = %242
  %290 = landingpad { ptr, i32 }
          cleanup
  br label %293

291:                                              ; preds = %243
  %292 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  br label %293

293:                                              ; preds = %291, %289
  %.pn97 = phi { ptr, i32 } [ %292, %291 ], [ %290, %289 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %39) #7
  br label %316

294:                                              ; preds = %244
  %295 = landingpad { ptr, i32 }
          cleanup
  br label %298

296:                                              ; preds = %248
  %297 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #7
  br label %298

298:                                              ; preds = %296, %294
  %.pn99 = phi { ptr, i32 } [ %297, %296 ], [ %295, %294 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #7
  br label %316

299:                                              ; preds = %249
  %300 = landingpad { ptr, i32 }
          cleanup
  br label %303

301:                                              ; preds = %253
  %302 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #7
  br label %303

303:                                              ; preds = %301, %299
  %.pn101 = phi { ptr, i32 } [ %302, %301 ], [ %300, %299 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %41) #7
  br label %316

304:                                              ; preds = %254
  %305 = landingpad { ptr, i32 }
          cleanup
  br label %308

306:                                              ; preds = %257
  %307 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #7
  br label %308

308:                                              ; preds = %306, %304
  %.pn103 = phi { ptr, i32 } [ %307, %306 ], [ %305, %304 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %42) #7
  br label %316

309:                                              ; preds = %258
  %310 = landingpad { ptr, i32 }
          cleanup
  br label %313

311:                                              ; preds = %261
  %312 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  br label %313

313:                                              ; preds = %311, %309
  %.pn105 = phi { ptr, i32 } [ %312, %311 ], [ %310, %309 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %43) #7
  br label %316

314:                                              ; preds = %262, %237
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #7
  %315 = add nuw nsw i64 %.084137, 1
  %exitcond138.not = icmp eq i64 %315, 4
  br i1 %exitcond138.not, label %204, label %205, !llvm.loop !31

316:                                              ; preds = %313, %308, %303, %298, %293, %287, %285
  %.pn105.pn = phi { ptr, i32 } [ %.pn105, %313 ], [ %.pn103, %308 ], [ %.pn101, %303 ], [ %.pn99, %298 ], [ %.pn97, %293 ], [ %288, %287 ], [ %286, %285 ]
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #7
  br label %317

317:                                              ; preds = %316, %283
  %.pn105.pn.pn = phi { ptr, i32 } [ %.pn105.pn, %316 ], [ %284, %283 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #7
  br label %318

318:                                              ; preds = %277, %282, %317, %272
  %.pn105.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn90.pn, %272 ], [ %.pn105.pn.pn, %317 ], [ %.pn95, %282 ], [ %.pn93, %277 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  br label %319

319:                                              ; preds = %318, %263
  %.pn105.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn105.pn.pn.pn.pn, %318 ], [ %264, %263 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #7
  br label %366

320:                                              ; preds = %204
  %321 = invoke noundef nonnull align 8 dereferenceable(536) ptr @_ZN3Raz5GraphINS_10RenderPassEE7addNodeIJNS_14FragmentShaderERA17_KcEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(48) %44, ptr noundef nonnull align 1 dereferenceable(17) @.str.21)
          to label %322 unwind label %349

322:                                              ; preds = %320
  store ptr %321, ptr %54, align 8, !tbaa !8
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %44) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %44) #7
  %323 = load ptr, ptr %54, align 8, !tbaa !8
  %324 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #7
  %325 = load ptr, ptr %324, align 8, !tbaa !23
  invoke void @_ZN3Raz9GraphNodeINS_10RenderPassEE10addParentsIJEEEvRS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(56) %323, ptr noundef nonnull align 8 dereferenceable(56) %325)
          to label %326 unwind label %96

326:                                              ; preds = %322
  %327 = load ptr, ptr %54, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %46) #7
  %328 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #7
  call void @_ZNKSt8weak_ptrIN3Raz9Texture2DEE4lockEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %46, ptr noundef nonnull align 8 dereferenceable(16) %328) #7
  call void @_ZNSt10shared_ptrIN3Raz7TextureEEC2INS0_9Texture2DEvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %46) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %47) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %48) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull @.str.22, ptr noundef nonnull align 1 dereferenceable(1) %48)
          to label %329 unwind label %352

329:                                              ; preds = %326
  invoke void @_ZN3Raz10RenderPass14addReadTextureESt10shared_ptrINS_7TextureEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(536) %327, ptr noundef nonnull %45, ptr noundef nonnull align 8 dereferenceable(32) %47)
          to label %330 unwind label %354

330:                                              ; preds = %329
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %48) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %47) #7
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %45) #7
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %46) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %46) #7
  %331 = call noundef zeroext i1 @_ZN3Raz8Renderer12checkVersionEii(i32 noundef 4, i32 noundef 3) #7
  br i1 %331, label %332, label %357

332:                                              ; preds = %330
  %333 = load ptr, ptr %54, align 8, !tbaa !8
  %334 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %333)
  %335 = invoke noundef i32 @_ZNK3Raz13ShaderProgram8getIndexEv(ptr noundef nonnull align 8 dereferenceable(120) %334)
          to label %336 unwind label %96

336:                                              ; preds = %332
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33506, i32 noundef %335, ptr noundef nonnull @.str.23)
          to label %337 unwind label %96

337:                                              ; preds = %336
  %338 = load ptr, ptr %54, align 8, !tbaa !8
  %339 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %338)
  %340 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram15getVertexShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %339) #7
  %341 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %340) #7
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33505, i32 noundef %341, ptr noundef nonnull @.str.24)
          to label %342 unwind label %96

342:                                              ; preds = %337
  %343 = load ptr, ptr %54, align 8, !tbaa !8
  %344 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZN3Raz10RenderPass10getProgramEv(ptr noundef nonnull align 8 dereferenceable(536) %343)
  %345 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK3Raz19RenderShaderProgram17getFragmentShaderEv(ptr noundef nonnull align 8 dereferenceable(384) %344) #7
  %346 = call noundef i32 @_ZNK3Raz6Shader8getIndexEv(ptr noundef nonnull align 8 dereferenceable(48) %345) #7
  invoke void @_ZN3Raz8Renderer8setLabelENS_16RenderObjectTypeEjPKc(i32 noundef 33505, i32 noundef %346, ptr noundef nonnull @.str.25)
          to label %357 unwind label %96

347:                                              ; preds = %204
  %348 = landingpad { ptr, i32 }
          cleanup
  br label %351

349:                                              ; preds = %320
  %350 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3Raz6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %44) #7
  br label %351

351:                                              ; preds = %349, %347
  %.pn86 = phi { ptr, i32 } [ %350, %349 ], [ %348, %347 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %44) #7
  br label %366

352:                                              ; preds = %326
  %353 = landingpad { ptr, i32 }
          cleanup
  br label %356

354:                                              ; preds = %329
  %355 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #7
  br label %356

356:                                              ; preds = %354, %352
  %.pn88 = phi { ptr, i32 } [ %355, %354 ], [ %353, %352 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %48) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %47) #7
  call void @_ZNSt12__shared_ptrIN3Raz7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %45) #7
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %46) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %46) #7
  br label %366

357:                                              ; preds = %342, %330
  %358 = invoke noundef zeroext i1 @_ZNK3Raz11RenderGraph7isValidEv(ptr noundef nonnull align 8 dereferenceable(648) %1)
          to label %359 unwind label %96

359:                                              ; preds = %357
  br i1 %358, label %365, label %360

360:                                              ; preds = %359
  %361 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %361, ptr noundef nonnull @.str.26)
          to label %362 unwind label %363

362:                                              ; preds = %360
  invoke void @__cxa_throw(ptr nonnull %361, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
          to label %369 unwind label %96

363:                                              ; preds = %360
  %364 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %361) #7
  br label %366

365:                                              ; preds = %359
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  ret void

366:                                              ; preds = %363, %356, %351, %319, %202, %96, %94
  %.pn126.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn126.pn.pn.pn.pn, %202 ], [ %.pn105.pn.pn.pn.pn.pn, %319 ], [ %97, %96 ], [ %364, %363 ], [ %.pn88, %356 ], [ %.pn86, %351 ], [ %95, %94 ]
  call void @_ZNSt12__shared_ptrIN3Raz9Texture2DELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  br label %367

367:                                              ; preds = %366, %92
  %.pn126.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn126.pn.pn.pn.pn.pn, %366 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  br label %368

368:                                              ; preds = %367, %90, %89
  %.pn126.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn126.pn.pn.pn.pn.pn.pn, %367 ], [ %91, %90 ], [ %.pn, %89 ]
  call void @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #7
  call void @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %52) #7
  call void @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  call void @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #7
  call void @_ZN3Raz13RenderProcessD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #7
  resume { ptr, i32 } %.pn126.pn.pn.pn.pn.pn.pn.pn

369:                                              ; preds = %362
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Raz13RenderProcessC2ERNS_11RenderGraphE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(648)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(536) ptr @_ZN3Raz5GraphINS_10RenderPassEE7addNodeIJNS_14FragmentShaderERA19_KcEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(19)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz14FragmentShader14loadFromSourceESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind noalias writable sret(%"class.Raz::FragmentShader") align 8, i64, ptr) local_unnamed_addr #1 align 2

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) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Raz18BloomRenderProcess17setThresholdValueEf(ptr noundef nonnull align 8 dereferenceable(128), float noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz9Texture2D6createIJNS_17TextureColorspaceENS_15TextureDataTypeEEEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz10RenderPass20addWriteColorTextureESt10shared_ptrINS_9Texture2DEEj(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3Raz9Texture2DEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3Raz13ShaderProgram8getIndexEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPN3Raz10RenderPassESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(536) ptr @_ZN3Raz5GraphINS_10RenderPassEE7addNodeIJNS_14FragmentShaderENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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

declare void @_ZN3Raz10RenderPass14addReadTextureESt10shared_ptrINS_7TextureEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt8weak_ptrIN3Raz9Texture2DEE4lockEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3Raz7TextureEEC2INS0_9Texture2DEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz9GraphNodeINS_10RenderPassEE10addParentsIJEEEvRS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3Raz7TextureEEC2INS0_9Texture2DEvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(536) ptr @_ZN3Raz5GraphINS_10RenderPassEE7addNodeIJNS_14FragmentShaderERA17_KcEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(17)) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNK3Raz11RenderGraph7isValidEv(ptr noundef nonnull align 8 dereferenceable(648)) local_unnamed_addr #4

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #4

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

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

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

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 120}
!9 = !{!"_ZTSN3Raz18BloomRenderProcessE", !10, i64 0, !11, i64 16, !13, i64 24, !17, i64 48, !13, i64 72, !17, i64 96, !11, i64 120}
!10 = !{!"_ZTSN3Raz13RenderProcessE", !11, i64 8}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIPN3Raz10RenderPassESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIPN3Raz10RenderPassESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN3Raz10RenderPassESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN3Raz10RenderPassESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!17 = !{!"_ZTSSt6vectorISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt8weak_ptrIN3Raz9Texture2DEESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!21 = !{!22, !22, i64 0}
!22 = !{!"long", !12, i64 0}
!23 = !{!11, !11, i64 0}
!24 = !{!9, !11, i64 16}
!25 = !{!26, !26, i64 0}
!26 = !{!"_ZTSN3Raz17TextureColorspaceE", !12, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"_ZTSN3Raz15TextureDataTypeE", !12, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass