; LLVM IR from Lut1n/ImpGears :: src/OGLPlugin (RenderToCubeMap)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::shared_ptr.12" = type { %"class.std::__shared_ptr.13" }
%"class.std::__shared_ptr.13" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.45" = type { i8 }
%"class.imp::Vec4" = type { %"class.imp::Vec.24" }
%"class.imp::Vec.24" = type { %"class.imp::Object", [4 x float] }
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr.0" }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.25" = type { %"class.std::__shared_ptr.26" }
%"class.std::__shared_ptr.26" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = type { ptr, %"class.std::__shared_count" }
%"class.imp::Vec3" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x float] }>
%"class.imp::Vec" = type <{ %"class.imp::Object", [3 x float], [4 x i8] }>
%"class.imp::RenderToCubeMap" = type <{ %"class.imp::Object", ptr, %"class.std::shared_ptr.3", %"class.std::shared_ptr.6", %"class.std::shared_ptr", %"class.imp::Matrix4", %"class.std::shared_ptr.9", %"class.std::shared_ptr.12", [6 x %"class.imp::Vec3"], [6 x %"class.imp::Vec3"], [6 x %"class.std::shared_ptr.15"], %"class.imp::Vec2", float, [4 x i8] }>
%"class.std::shared_ptr.3" = type { %"class.std::__shared_ptr.4" }
%"class.std::__shared_ptr.4" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.imp::Matrix4" = type { %"class.imp::Matrix" }
%"class.imp::Matrix" = type { %"class.imp::Object", [16 x float] }
%"class.std::shared_ptr.9" = type { %"class.std::__shared_ptr.10" }
%"class.std::__shared_ptr.10" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.15" = type { %"class.std::__shared_ptr.16" }
%"class.std::__shared_ptr.16" = type { ptr, %"class.std::__shared_count" }
%"class.imp::Vec2" = type { %"class.imp::Vec.18" }
%"class.imp::Vec.18" = type { %"class.imp::Object", [2 x float] }
%"class.imp::GlRenderer" = type { %"class.imp::SceneRenderer.base", ptr, %"class.std::shared_ptr.51", %"class.std::shared_ptr.54", %"class.std::shared_ptr", %"class.std::shared_ptr", %"class.std::shared_ptr.57", %"class.std::shared_ptr.57", %"class.std::shared_ptr.25", %"class.std::shared_ptr.25", %"class.std::shared_ptr.60", %"class.std::shared_ptr.15", %"class.std::shared_ptr.15", %"class.std::map.63", %"class.std::shared_ptr.12" }
%"class.imp::SceneRenderer.base" = type <{ %"class.imp::Object", i8, [5 x i8], [2 x i8], %"class.std::shared_ptr.15", %"class.std::shared_ptr.48", i32, [4 x i8], %"class.imp::Vec4", i32, i32, i32, i32, float, float, i8 }>
%"class.std::shared_ptr.48" = type { %"class.std::__shared_ptr.49" }
%"class.std::__shared_ptr.49" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.51" = type { %"class.std::__shared_ptr.52" }
%"class.std::__shared_ptr.52" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.54" = type { %"class.std::__shared_ptr.55" }
%"class.std::__shared_ptr.55" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.57" = type { %"class.std::__shared_ptr.58" }
%"class.std::__shared_ptr.58" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.60" = type { %"class.std::__shared_ptr.61" }
%"class.std::__shared_ptr.61" = type { ptr, %"class.std::__shared_count" }
%"class.std::map.63" = type { %"class.std::_Rb_tree.64" }
%"class.std::_Rb_tree.64" = type { %"struct.std::_Rb_tree<std::shared_ptr<imp::Graph>, std::pair<const std::shared_ptr<imp::Graph>, std::shared_ptr<imp::RenderQueue>>, std::_Select1st<std::pair<const std::shared_ptr<imp::Graph>, std::shared_ptr<imp::RenderQueue>>>, std::less<std::shared_ptr<imp::Graph>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::shared_ptr<imp::Graph>, std::pair<const std::shared_ptr<imp::Graph>, std::shared_ptr<imp::RenderQueue>>, std::_Select1st<std::pair<const std::shared_ptr<imp::Graph>, std::shared_ptr<imp::RenderQueue>>>, std::less<std::shared_ptr<imp::Graph>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.imp::RenderQueue" = type { %"class.imp::Object", ptr, %"class.std::vector.72", %"struct.imp::StateBin", %"struct.imp::StateBin" }
%"class.std::vector.72" = type { %"struct.std::_Vector_base.73" }
%"struct.std::_Vector_base.73" = type { %"struct.std::_Vector_base<imp::LightNode *, std::allocator<imp::LightNode *>>::_Vector_impl" }
%"struct.std::_Vector_base<imp::LightNode *, std::allocator<imp::LightNode *>>::_Vector_impl" = type { %"struct.std::_Vector_base<imp::LightNode *, std::allocator<imp::LightNode *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<imp::LightNode *, std::allocator<imp::LightNode *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.imp::StateBin" = type <{ %"class.std::vector.77", i32, [4 x i8] }>
%"class.std::vector.77" = type { %"struct.std::_Vector_base.78" }
%"struct.std::_Vector_base.78" = type { %"struct.std::_Vector_base<imp::RenderState, std::allocator<imp::RenderState>>::_Vector_impl" }
%"struct.std::_Vector_base<imp::RenderState, std::allocator<imp::RenderState>>::_Vector_impl" = type { %"struct.std::_Vector_base<imp::RenderState, std::allocator<imp::RenderState>>::_Vector_impl_data" }
%"struct.std::_Vector_base<imp::RenderState, std::allocator<imp::RenderState>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [7 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp15RenderToCubeMap6renderERKSt10shared_ptrINS_5GraphEERKNS_4Vec3ENS_13SceneRenderer11RenderFrameES1_INS_14ReflexionModelEE(ptr noundef nonnull align 8 dereferenceable(812) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(36) %2, i32 noundef %3, ptr noundef %4) #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"class.std::shared_ptr.12", align 8
  %12 = alloca %"class.std::shared_ptr.12", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.45", align 1
  %17 = alloca %"class.imp::Vec4", align 8
  %18 = alloca %"class.std::shared_ptr.25", align 8
  %19 = alloca %"class.std::shared_ptr.6", align 8
  %20 = alloca %"class.std::shared_ptr.6", align 8
  %21 = alloca %"class.std::shared_ptr.6", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.imp::Vec3", align 8
  %24 = alloca %"class.imp::Vec", align 8
  %25 = alloca %"class.imp::Vec3", align 8
  %26 = alloca %"class.imp::Vec", align 8
  %27 = alloca %"class.std::shared_ptr.12", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %29 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 2
  %30 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5GraphELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %29) #5
  call void @_ZN3imp5Graph12getInitStateEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.12") align 8 %11, ptr noundef nonnull align 8 dereferenceable(72) %30)
  %31 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5StateELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5GraphELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %32) #5
  invoke void @_ZN3imp5Graph12getInitStateEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.12") align 8 %12, ptr noundef nonnull align 8 dereferenceable(72) %33)
          to label %34 unwind label %53

34:                                               ; preds = %5
  invoke void @_ZN3imp5State5cloneERKSt10shared_ptrIS0_ENS0_8CloneOptE(ptr noundef nonnull align 8 dereferenceable(306) %31, ptr noundef nonnull align 8 dereferenceable(16) %12, i32 noundef 1)
          to label %35 unwind label %57

35:                                               ; preds = %34
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  %36 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 7
  %37 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5StateELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %36) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %38 unwind label %62

38:                                               ; preds = %35
  %39 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 5
  invoke void @_ZN3imp5State10setUniformERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7Matrix4E(ptr noundef nonnull align 8 dereferenceable(306) %37, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(88) %39)
          to label %40 unwind label %66

40:                                               ; preds = %38
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  %41 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 7
  %42 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5StateELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %41) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #5
  %43 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 12
  %44 = load float, ptr %43, align 8, !tbaa !11
  %45 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 12
  %46 = load float, ptr %45, align 8, !tbaa !11
  call void @_ZN3imp4Vec4C2Effff(ptr noundef nonnull align 8 dereferenceable(40) %17, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %44, float noundef %46)
  invoke void @_ZN3imp5State11setViewportERKNS_4Vec4E(ptr noundef nonnull align 8 dereferenceable(306) %42, ptr noundef nonnull align 8 dereferenceable(40) %17)
          to label %47 unwind label %71

47:                                               ; preds = %40
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #5
  %48 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  br i1 %48, label %49, label %79

49:                                               ; preds = %47
  %50 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 7
  %51 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5StateELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %50) #5
  call void @_ZNSt10shared_ptrIN3imp14ReflexionModelEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  invoke void @_ZN3imp5State12setReflexionESt10shared_ptrINS_14ReflexionModelEE(ptr noundef nonnull align 8 dereferenceable(306) %51, ptr noundef %18)
          to label %52 unwind label %75

52:                                               ; preds = %49
  call void @_ZNSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  br label %79

53:                                               ; preds = %5
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %13, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %14, align 4
  br label %61

57:                                               ; preds = %34
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %13, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %14, align 4
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  br label %61

61:                                               ; preds = %57, %53
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %207

62:                                               ; preds = %35
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %13, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %14, align 4
  br label %70

66:                                               ; preds = %38
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %13, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %70

70:                                               ; preds = %66, %62
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  br label %207

71:                                               ; preds = %40
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %13, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %14, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #5
  br label %207

75:                                               ; preds = %49
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %13, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %14, align 4
  call void @_ZNSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  br label %207

79:                                               ; preds = %52, %47
  %80 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 2
  %81 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5GraphELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %80) #5
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5GraphELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %82) #5
  %84 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3imp5Graph7getRootEv(ptr noundef nonnull align 8 dereferenceable(72) %83)
  call void @_ZN3imp5Graph7setRootERKSt10shared_ptrINS_4NodeEE(ptr noundef nonnull align 8 dereferenceable(72) %81, ptr noundef nonnull align 8 dereferenceable(16) %84)
  %85 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 3
  %86 = call noundef zeroext i1 @_ZSteqIN3imp11RenderQueueEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %85, ptr null) #5
  br i1 %86, label %87, label %90

87:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  call void @_ZN3imp11RenderQueue6createIJEEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.6") align 8 %19)
  %88 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 3
  %89 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3imp11RenderQueueEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %88, ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  call void @_ZNSt12__shared_ptrIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  br label %90

90:                                               ; preds = %87, %79
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %91 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !32
  %93 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 2
  %94 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 3
  call void @_ZNSt10shared_ptrIN3imp11RenderQueueEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %94) #5
  invoke void @_ZN3imp10GlRenderer18applyRenderVisitorERKSt10shared_ptrINS_5GraphEES1_INS_11RenderQueueEE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.6") align 8 %20, ptr noundef nonnull align 8 dereferenceable(392) %92, ptr noundef nonnull align 8 dereferenceable(16) %93, ptr noundef %21)
          to label %95 unwind label %102

95:                                               ; preds = %90
  %96 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 3
  %97 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3imp11RenderQueueEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %96, ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  call void @_ZNSt12__shared_ptrIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  call void @_ZNSt12__shared_ptrIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !33
  br label %98

98:                                               ; preds = %180, %95
  %99 = load i32, ptr %22, align 4, !tbaa !33
  %100 = icmp slt i32 %99, 6
  br i1 %100, label %106, label %101

101:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %206

102:                                              ; preds = %90
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %13, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %14, align 4
  call void @_ZNSt12__shared_ptrIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  br label %207

106:                                              ; preds = %98
  %107 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 6
  %108 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %107) #5
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN3imp4Node11setPositionERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(544) %108, ptr noundef nonnull align 8 dereferenceable(36) %109)
  %110 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 6
  %111 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %110) #5
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN3imp6Camera19setAbsolutePositionERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752) %111, ptr noundef nonnull align 8 dereferenceable(36) %112)
  %113 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 6
  %114 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %113) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %24) #5
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 8
  %117 = load i32, ptr %22, align 4, !tbaa !33
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [6 x %"class.imp::Vec3"], ptr %116, i64 0, i64 %118
  call void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec") align 8 %24, ptr noundef nonnull align 8 dereferenceable(36) %115, ptr noundef nonnull align 8 dereferenceable(36) %119)
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %23, ptr noundef nonnull align 8 dereferenceable(36) %24, float noundef 1.000000e+00)
          to label %120 unwind label %183

120:                                              ; preds = %106
  invoke void @_ZN3imp6Camera9setTargetERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752) %114, ptr noundef nonnull align 8 dereferenceable(36) %23)
          to label %121 unwind label %187

121:                                              ; preds = %120
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %23) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %24) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #5
  %122 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 6
  %123 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %122) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %26) #5
  %124 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 9
  %125 = load i32, ptr %22, align 4, !tbaa !33
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [6 x %"class.imp::Vec3"], ptr %124, i64 0, i64 %126
  call void @_ZNK3imp3VecILi3EfEmlEf(ptr dead_on_unwind writable sret(%"class.imp::Vec") align 8 %26, ptr noundef nonnull align 8 dereferenceable(36) %127, float noundef -1.000000e+00)
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %25, ptr noundef nonnull align 8 dereferenceable(36) %26, float noundef 1.000000e+00)
          to label %128 unwind label %192

128:                                              ; preds = %121
  invoke void @_ZN3imp6Camera8setUpDirERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752) %123, ptr noundef nonnull align 8 dereferenceable(36) %25)
          to label %129 unwind label %196

129:                                              ; preds = %128
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %25) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #5
  %130 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 6
  %131 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %130) #5
  %132 = load ptr, ptr %131, align 8, !tbaa !35
  %133 = getelementptr inbounds ptr, ptr %132, i64 6
  %134 = load ptr, ptr %133, align 8
  call void %134(ptr noundef nonnull align 8 dereferenceable(752) %131)
  %135 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 1
  %136 = load ptr, ptr %135, align 8, !tbaa !32
  %137 = getelementptr inbounds %"class.imp::GlRenderer", ptr %136, i32 0, i32 1
  %138 = load ptr, ptr %137, align 8, !tbaa !37
  %139 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 10
  %140 = load i32, ptr %22, align 4, !tbaa !33
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [6 x %"class.std::shared_ptr.15"], ptr %139, i64 0, i64 %141
  %143 = load ptr, ptr %138, align 8, !tbaa !35
  %144 = getelementptr inbounds ptr, ptr %143, i64 15
  %145 = load ptr, ptr %144, align 8
  call void %145(ptr noundef nonnull align 8 dereferenceable(24) %138, ptr noundef nonnull align 8 dereferenceable(16) %142)
  %146 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 1
  %147 = load ptr, ptr %146, align 8, !tbaa !32
  %148 = getelementptr inbounds %"class.imp::GlRenderer", ptr %147, i32 0, i32 1
  %149 = load ptr, ptr %148, align 8, !tbaa !37
  %150 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 10
  %151 = load i32, ptr %22, align 4, !tbaa !33
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [6 x %"class.std::shared_ptr.15"], ptr %150, i64 0, i64 %152
  %154 = load ptr, ptr %149, align 8, !tbaa !35
  %155 = getelementptr inbounds ptr, ptr %154, i64 10
  %156 = load ptr, ptr %155, align 8
  call void %156(ptr noundef nonnull align 8 dereferenceable(24) %149, ptr noundef nonnull align 8 dereferenceable(16) %153)
  %157 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 10
  %158 = load i32, ptr %22, align 4, !tbaa !33
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [6 x %"class.std::shared_ptr.15"], ptr %157, i64 0, i64 %159
  %161 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp12RenderTargetELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %160) #5
  call void @_ZN3imp12RenderTarget6changeEv(ptr noundef nonnull align 8 dereferenceable(99) %161)
  %162 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 6
  %163 = call noundef ptr @_ZNKSt12__shared_ptrIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %162) #5
  %164 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 3
  %165 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %164) #5
  %166 = getelementptr inbounds %"class.imp::RenderQueue", ptr %165, i32 0, i32 1
  store ptr %163, ptr %166, align 8, !tbaa !66
  %167 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 1
  %168 = load ptr, ptr %167, align 8, !tbaa !32
  %169 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 3
  %170 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 7
  call void @_ZNSt10shared_ptrIN3imp5StateEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %170) #5
  %171 = load i32, ptr %9, align 4, !tbaa !9
  invoke void @_ZN3imp10GlRenderer9drawQueueERSt10shared_ptrINS_11RenderQueueEES1_INS_5StateEENS_13SceneRenderer11RenderFrameE(ptr noundef nonnull align 8 dereferenceable(392) %168, ptr noundef nonnull align 8 dereferenceable(16) %169, ptr noundef %27, i32 noundef %171)
          to label %172 unwind label %201

172:                                              ; preds = %129
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #5
  %173 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %28, i32 0, i32 1
  %174 = load ptr, ptr %173, align 8, !tbaa !32
  %175 = getelementptr inbounds %"class.imp::GlRenderer", ptr %174, i32 0, i32 1
  %176 = load ptr, ptr %175, align 8, !tbaa !37
  %177 = load ptr, ptr %176, align 8, !tbaa !35
  %178 = getelementptr inbounds ptr, ptr %177, i64 16
  %179 = load ptr, ptr %178, align 8
  call void %179(ptr noundef nonnull align 8 dereferenceable(24) %176)
  br label %180

180:                                              ; preds = %172
  %181 = load i32, ptr %22, align 4, !tbaa !33
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %22, align 4, !tbaa !33
  br label %98, !llvm.loop !77

183:                                              ; preds = %106
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %13, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %14, align 4
  br label %191

187:                                              ; preds = %120
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %13, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %14, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %23) #5
  br label %191

191:                                              ; preds = %187, %183
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %24) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #5
  br label %205

192:                                              ; preds = %121
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %13, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %14, align 4
  br label %200

196:                                              ; preds = %128
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %13, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %14, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %25) #5
  br label %200

200:                                              ; preds = %196, %192
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #5
  br label %205

201:                                              ; preds = %129
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %13, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %14, align 4
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #5
  br label %205

205:                                              ; preds = %201, %200, %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %207

206:                                              ; preds = %101
  ret void

207:                                              ; preds = %205, %102, %75, %71, %70, %61
  %208 = load ptr, ptr %13, align 8
  %209 = load i32, ptr %14, align 4
  %210 = insertvalue { ptr, i32 } poison, ptr %208, 0
  %211 = insertvalue { ptr, i32 } %210, i32 %209, 1
  resume { ptr, i32 } %211
}

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

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

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

declare void @_ZN3imp5State5cloneERKSt10shared_ptrIS0_ENS0_8CloneOptE(ptr noundef nonnull align 8 dereferenceable(306), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #3

declare void @_ZN3imp5State10setUniformERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7Matrix4E(ptr noundef nonnull align 8 dereferenceable(306), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(88)) #3

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

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

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

declare void @_ZN3imp5State11setViewportERKNS_4Vec4E(ptr noundef nonnull align 8 dereferenceable(306), ptr noundef nonnull align 8 dereferenceable(40)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec4C2Effff(ptr noundef nonnull align 8 dereferenceable(40), float noundef, float noundef, float noundef, float noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

declare void @_ZN3imp5State12setReflexionESt10shared_ptrINS_14ReflexionModelEE(ptr noundef nonnull align 8 dereferenceable(306), ptr noundef) #3

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

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

declare void @_ZN3imp5Graph7setRootERKSt10shared_ptrINS_4NodeEE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16)) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp11RenderQueue6createIJEEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.6") align 8) #2 align 2

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

declare void @_ZN3imp10GlRenderer18applyRenderVisitorERKSt10shared_ptrINS_5GraphEES1_INS_11RenderQueueEE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.6") align 8, ptr noundef nonnull align 8 dereferenceable(392), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #3

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

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

declare void @_ZN3imp4Node11setPositionERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(544), ptr noundef nonnull align 8 dereferenceable(36)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp6Camera19setAbsolutePositionERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752), ptr noundef nonnull align 8 dereferenceable(36)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp6Camera9setTargetERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752), ptr noundef nonnull align 8 dereferenceable(36)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36), float noundef) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp6Camera8setUpDirERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752), ptr noundef nonnull align 8 dereferenceable(36)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEmlEf(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec") align 8, ptr noundef nonnull align 8 dereferenceable(36), float noundef) #1 align 2

declare void @_ZN3imp12RenderTarget6changeEv(ptr noundef nonnull align 8 dereferenceable(99)) #3

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

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

declare void @_ZN3imp10GlRenderer9drawQueueERSt10shared_ptrINS_11RenderQueueEES1_INS_5StateEENS_13SceneRenderer11RenderFrameE(ptr noundef nonnull align 8 dereferenceable(392), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i32 noundef) #3

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN3imp13SceneRenderer11RenderFrameE", !7, i64 0}
!11 = !{!12, !31, i64 808}
!12 = !{!"_ZTSN3imp15RenderToCubeMapE", !13, i64 0, !6, i64 24, !17, i64 32, !19, i64 48, !21, i64 64, !23, i64 80, !25, i64 168, !27, i64 184, !7, i64 200, !7, i64 440, !7, i64 680, !29, i64 776, !31, i64 808}
!13 = !{!"_ZTSN3imp6ObjectE", !14, i64 8}
!14 = !{!"_ZTSSt10shared_ptrIN3imp6ObjectEE", !15, i64 0}
!15 = !{!"_ZTSSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!16 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!17 = !{!"_ZTSSt10shared_ptrIN3imp5GraphEE", !18, i64 0}
!18 = !{!"_ZTSSt12__shared_ptrIN3imp5GraphELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!19 = !{!"_ZTSSt10shared_ptrIN3imp11RenderQueueEE", !20, i64 0}
!20 = !{!"_ZTSSt12__shared_ptrIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!21 = !{!"_ZTSSt10shared_ptrIN3imp14CubeMapSamplerEE", !22, i64 0}
!22 = !{!"_ZTSSt12__shared_ptrIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!23 = !{!"_ZTSN3imp7Matrix4E", !24, i64 0}
!24 = !{!"_ZTSN3imp6MatrixILi4ELi4EfEE", !13, i64 0, !7, i64 24}
!25 = !{!"_ZTSSt10shared_ptrIN3imp6CameraEE", !26, i64 0}
!26 = !{!"_ZTSSt12__shared_ptrIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!27 = !{!"_ZTSSt10shared_ptrIN3imp5StateEE", !28, i64 0}
!28 = !{!"_ZTSSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!29 = !{!"_ZTSN3imp4Vec2E", !30, i64 0}
!30 = !{!"_ZTSN3imp3VecILi2EfEE", !13, i64 0, !7, i64 24}
!31 = !{!"float", !7, i64 0}
!32 = !{!12, !6, i64 24}
!33 = !{!34, !34, i64 0}
!34 = !{!"int", !7, i64 0}
!35 = !{!36, !36, i64 0}
!36 = !{!"vtable pointer", !8, i64 0}
!37 = !{!38, !6, i64 144}
!38 = !{!"_ZTSN3imp10GlRendererE", !39, i64 0, !6, i64 144, !47, i64 152, !49, i64 168, !21, i64 184, !21, i64 200, !51, i64 216, !51, i64 232, !53, i64 248, !53, i64 264, !55, i64 280, !41, i64 296, !41, i64 312, !57, i64 328, !27, i64 376}
!39 = !{!"_ZTSN3imp13SceneRendererE", !13, i64 0, !40, i64 24, !7, i64 25, !41, i64 32, !43, i64 48, !10, i64 64, !45, i64 72, !34, i64 112, !34, i64 116, !34, i64 120, !34, i64 124, !31, i64 128, !31, i64 132, !40, i64 136}
!40 = !{!"bool", !7, i64 0}
!41 = !{!"_ZTSSt10shared_ptrIN3imp12RenderTargetEE", !42, i64 0}
!42 = !{!"_ZTSSt12__shared_ptrIN3imp12RenderTargetELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!43 = !{!"_ZTSSt10shared_ptrIN3imp13RenderVisitorEE", !44, i64 0}
!44 = !{!"_ZTSSt12__shared_ptrIN3imp13RenderVisitorELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!45 = !{!"_ZTSN3imp4Vec4E", !46, i64 0}
!46 = !{!"_ZTSN3imp3VecILi4EfEE", !13, i64 0, !7, i64 24}
!47 = !{!"_ZTSSt10shared_ptrIN3imp8PipelineEE", !48, i64 0}
!48 = !{!"_ZTSSt12__shared_ptrIN3imp8PipelineELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!49 = !{!"_ZTSSt10shared_ptrIN3imp13LightingModelEE", !50, i64 0}
!50 = !{!"_ZTSSt12__shared_ptrIN3imp13LightingModelELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!51 = !{!"_ZTSSt10shared_ptrIN3imp15RenderToCubeMapEE", !52, i64 0}
!52 = !{!"_ZTSSt12__shared_ptrIN3imp15RenderToCubeMapELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!53 = !{!"_ZTSSt10shared_ptrIN3imp14ReflexionModelEE", !54, i64 0}
!54 = !{!"_ZTSSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!55 = !{!"_ZTSSt10shared_ptrIN3imp9CopyFrameEE", !56, i64 0}
!56 = !{!"_ZTSSt12__shared_ptrIN3imp9CopyFrameELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!57 = !{!"_ZTSSt3mapISt10shared_ptrIN3imp5GraphEES0_INS1_11RenderQueueEESt4lessIS3_ESaISt4pairIKS3_S5_EEE", !58, i64 0}
!58 = !{!"_ZTSSt8_Rb_treeISt10shared_ptrIN3imp5GraphEESt4pairIKS3_S0_INS1_11RenderQueueEEESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE", !59, i64 0}
!59 = !{!"_ZTSNSt8_Rb_treeISt10shared_ptrIN3imp5GraphEESt4pairIKS3_S0_INS1_11RenderQueueEEESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !60, i64 0, !62, i64 8}
!60 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt10shared_ptrIN3imp5GraphEEEE", !61, i64 0}
!61 = !{!"_ZTSSt4lessISt10shared_ptrIN3imp5GraphEEE"}
!62 = !{!"_ZTSSt15_Rb_tree_header", !63, i64 0, !65, i64 32}
!63 = !{!"_ZTSSt18_Rb_tree_node_base", !64, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!64 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!65 = !{!"long", !7, i64 0}
!66 = !{!67, !6, i64 24}
!67 = !{!"_ZTSN3imp11RenderQueueE", !13, i64 0, !6, i64 24, !68, i64 32, !72, i64 56, !72, i64 88}
!68 = !{!"_ZTSSt6vectorIPN3imp9LightNodeESaIS2_EE", !69, i64 0}
!69 = !{!"_ZTSSt12_Vector_baseIPN3imp9LightNodeESaIS2_EE", !70, i64 0}
!70 = !{!"_ZTSNSt12_Vector_baseIPN3imp9LightNodeESaIS2_EE12_Vector_implE", !71, i64 0}
!71 = !{!"_ZTSNSt12_Vector_baseIPN3imp9LightNodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!72 = !{!"_ZTSN3imp8StateBinE", !73, i64 0, !34, i64 24}
!73 = !{!"_ZTSSt6vectorIN3imp11RenderStateESaIS1_EE", !74, i64 0}
!74 = !{!"_ZTSSt12_Vector_baseIN3imp11RenderStateESaIS1_EE", !75, i64 0}
!75 = !{!"_ZTSNSt12_Vector_baseIN3imp11RenderStateESaIS1_EE12_Vector_implE", !76, i64 0}
!76 = !{!"_ZTSNSt12_Vector_baseIN3imp11RenderStateESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!77 = distinct !{!77, !78}
!78 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::shared_ptr.12" = type { %"class.std::__shared_ptr.13" }
%"class.std::__shared_ptr.13" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.45" = type { i8 }
%"class.imp::Vec4" = type { %"class.imp::Vec.24" }
%"class.imp::Vec.24" = type { %"class.imp::Object", [4 x float] }
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr.0" }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.25" = type { %"class.std::__shared_ptr.26" }
%"class.std::__shared_ptr.26" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = type { ptr, %"class.std::__shared_count" }
%"class.imp::Vec3" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x float] }>
%"class.imp::Vec" = type <{ %"class.imp::Object", [3 x float], [4 x i8] }>
%"class.std::shared_ptr.15" = type { %"class.std::__shared_ptr.16" }
%"class.std::__shared_ptr.16" = type { ptr, %"class.std::__shared_count" }

@.str = external hidden unnamed_addr constant [7 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp15RenderToCubeMap6renderERKSt10shared_ptrINS_5GraphEERKNS_4Vec3ENS_13SceneRenderer11RenderFrameES1_INS_14ReflexionModelEE(ptr noundef nonnull align 8 dereferenceable(812) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(36) %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::shared_ptr.12", align 8
  %7 = alloca %"class.std::shared_ptr.12", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator.45", align 1
  %10 = alloca %"class.imp::Vec4", align 8
  %11 = alloca %"class.std::shared_ptr.25", align 8
  %12 = alloca %"class.std::shared_ptr.6", align 8
  %13 = alloca %"class.std::shared_ptr.6", align 8
  %14 = alloca %"class.std::shared_ptr.6", align 8
  %15 = alloca %"class.imp::Vec3", align 8
  %16 = alloca %"class.imp::Vec", align 8
  %17 = alloca %"class.imp::Vec3", align 8
  %18 = alloca %"class.imp::Vec", align 8
  %19 = alloca %"class.std::shared_ptr.12", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  %21 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5GraphELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  call void @_ZN3imp5Graph12getInitStateEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.12") align 8 %6, ptr noundef nonnull align 8 dereferenceable(72) %21)
  %22 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5StateELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %23 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5GraphELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #5
  call void @_ZN3imp5Graph12getInitStateEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.12") align 8 %7, ptr noundef nonnull align 8 dereferenceable(72) %23)
  invoke void @_ZN3imp5State5cloneERKSt10shared_ptrIS0_ENS0_8CloneOptE(ptr noundef nonnull align 8 dereferenceable(306) %22, ptr noundef nonnull align 8 dereferenceable(16) %7, i32 noundef 1)
          to label %24 unwind label %38

24:                                               ; preds = %5
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  %25 = getelementptr inbounds i8, ptr %0, i64 184
  %26 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5StateELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %27 unwind label %40

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %0, i64 80
  invoke void @_ZN3imp5State10setUniformERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7Matrix4E(ptr noundef nonnull align 8 dereferenceable(306) %26, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(88) %28)
          to label %29 unwind label %42

29:                                               ; preds = %27
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  %30 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5StateELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #5
  %31 = getelementptr inbounds i8, ptr %0, i64 808
  %32 = load float, ptr %31, align 8, !tbaa !5
  call void @_ZN3imp4Vec4C2Effff(ptr noundef nonnull align 8 dereferenceable(40) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %32, float noundef %32)
  invoke void @_ZN3imp5State11setViewportERKNS_4Vec4E(ptr noundef nonnull align 8 dereferenceable(306) %30, ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %33 unwind label %45

33:                                               ; preds = %29
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #5
  %34 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  br i1 %34, label %35, label %49

35:                                               ; preds = %33
  %36 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5StateELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  call void @_ZNSt10shared_ptrIN3imp14ReflexionModelEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  invoke void @_ZN3imp5State12setReflexionESt10shared_ptrINS_14ReflexionModelEE(ptr noundef nonnull align 8 dereferenceable(306) %36, ptr noundef nonnull %11)
          to label %37 unwind label %47

37:                                               ; preds = %35
  call void @_ZNSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  br label %49

38:                                               ; preds = %5
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br label %113

40:                                               ; preds = %24
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %44

42:                                               ; preds = %27
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  br label %44

44:                                               ; preds = %42, %40
  %.pn = phi { ptr, i32 } [ %43, %42 ], [ %41, %40 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  br label %113

45:                                               ; preds = %29
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #5
  br label %113

47:                                               ; preds = %35
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  br label %113

49:                                               ; preds = %37, %33
  %50 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5GraphELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  %51 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5GraphELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #5
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3imp5Graph7getRootEv(ptr noundef nonnull align 8 dereferenceable(72) %51)
  call void @_ZN3imp5Graph7setRootERKSt10shared_ptrINS_4NodeEE(ptr noundef nonnull align 8 dereferenceable(72) %50, ptr noundef nonnull align 8 dereferenceable(16) %52)
  %53 = getelementptr inbounds i8, ptr %0, i64 48
  %54 = call noundef zeroext i1 @_ZSteqIN3imp11RenderQueueEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr null) #5
  br i1 %54, label %55, label %57

55:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  call void @_ZN3imp11RenderQueue6createIJEEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.6") align 8 %12)
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3imp11RenderQueueEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @_ZNSt12__shared_ptrIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br label %57

57:                                               ; preds = %55, %49
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  %58 = getelementptr inbounds i8, ptr %0, i64 24
  %59 = load ptr, ptr %58, align 8, !tbaa !29
  call void @_ZNSt10shared_ptrIN3imp11RenderQueueEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %53) #5
  invoke void @_ZN3imp10GlRenderer18applyRenderVisitorERKSt10shared_ptrINS_5GraphEES1_INS_11RenderQueueEE(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.6") align 8 %13, ptr noundef nonnull align 8 dereferenceable(392) %59, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull %14)
          to label %60 unwind label %67

60:                                               ; preds = %57
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3imp11RenderQueueEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @_ZNSt12__shared_ptrIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @_ZNSt12__shared_ptrIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  %62 = getelementptr inbounds i8, ptr %0, i64 168
  %63 = getelementptr inbounds i8, ptr %0, i64 200
  %64 = getelementptr inbounds i8, ptr %0, i64 440
  %65 = getelementptr inbounds i8, ptr %0, i64 680
  br label %69

66:                                               ; preds = %100
  ret void

67:                                               ; preds = %57
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  br label %113

69:                                               ; preds = %60, %100
  %indvars.iv = phi i64 [ 0, %60 ], [ %indvars.iv.next, %100 ]
  %70 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %62) #5
  call void @_ZN3imp4Node11setPositionERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(544) %70, ptr noundef nonnull align 8 dereferenceable(36) %2)
  %71 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %62) #5
  call void @_ZN3imp6Camera19setAbsolutePositionERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752) %71, ptr noundef nonnull align 8 dereferenceable(36) %2)
  %72 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %62) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %16) #5
  %73 = getelementptr inbounds [6 x %"class.imp::Vec3"], ptr %63, i64 0, i64 %indvars.iv
  call void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec") align 8 %16, ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef nonnull align 8 dereferenceable(36) %73)
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %15, ptr noundef nonnull align 8 dereferenceable(36) %16, float noundef 1.000000e+00)
          to label %74 unwind label %107

74:                                               ; preds = %69
  call void @_ZN3imp6Camera9setTargetERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752) %72, ptr noundef nonnull align 8 dereferenceable(36) %15)
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %15) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %16) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #5
  %75 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %62) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %18) #5
  %76 = getelementptr inbounds [6 x %"class.imp::Vec3"], ptr %64, i64 0, i64 %indvars.iv
  call void @_ZNK3imp3VecILi3EfEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec") align 8 %18, ptr noundef nonnull align 8 dereferenceable(36) %76, float noundef -1.000000e+00)
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %17, ptr noundef nonnull align 8 dereferenceable(36) %18, float noundef 1.000000e+00)
          to label %77 unwind label %109

77:                                               ; preds = %74
  call void @_ZN3imp6Camera8setUpDirERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752) %75, ptr noundef nonnull align 8 dereferenceable(36) %17)
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %17) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %18) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #5
  %78 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %62) #5
  %79 = load ptr, ptr %78, align 8, !tbaa !30
  %80 = getelementptr inbounds i8, ptr %79, i64 48
  %81 = load ptr, ptr %80, align 8
  call void %81(ptr noundef nonnull align 8 dereferenceable(752) %78)
  %82 = load ptr, ptr %58, align 8, !tbaa !29
  %83 = getelementptr inbounds i8, ptr %82, i64 144
  %84 = load ptr, ptr %83, align 8, !tbaa !32
  %85 = getelementptr inbounds [6 x %"class.std::shared_ptr.15"], ptr %65, i64 0, i64 %indvars.iv
  %86 = load ptr, ptr %84, align 8, !tbaa !30
  %87 = getelementptr inbounds i8, ptr %86, i64 120
  %88 = load ptr, ptr %87, align 8
  call void %88(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 8 dereferenceable(16) %85)
  %89 = load ptr, ptr %58, align 8, !tbaa !29
  %90 = getelementptr inbounds i8, ptr %89, i64 144
  %91 = load ptr, ptr %90, align 8, !tbaa !32
  %92 = load ptr, ptr %91, align 8, !tbaa !30
  %93 = getelementptr inbounds i8, ptr %92, i64 80
  %94 = load ptr, ptr %93, align 8
  call void %94(ptr noundef nonnull align 8 dereferenceable(24) %91, ptr noundef nonnull align 8 dereferenceable(16) %85)
  %95 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp12RenderTargetELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %85) #5
  call void @_ZN3imp12RenderTarget6changeEv(ptr noundef nonnull align 8 dereferenceable(99) %95)
  %96 = call noundef ptr @_ZNKSt12__shared_ptrIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %62) #5
  %97 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %53) #5
  %98 = getelementptr inbounds i8, ptr %97, i64 24
  store ptr %96, ptr %98, align 8, !tbaa !63
  %99 = load ptr, ptr %58, align 8, !tbaa !29
  call void @_ZNSt10shared_ptrIN3imp5StateEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %25) #5
  invoke void @_ZN3imp10GlRenderer9drawQueueERSt10shared_ptrINS_11RenderQueueEES1_INS_5StateEENS_13SceneRenderer11RenderFrameE(ptr noundef nonnull align 8 dereferenceable(392) %99, ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull %19, i32 noundef %3)
          to label %100 unwind label %111

100:                                              ; preds = %77
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  %101 = load ptr, ptr %58, align 8, !tbaa !29
  %102 = getelementptr inbounds i8, ptr %101, i64 144
  %103 = load ptr, ptr %102, align 8, !tbaa !32
  %104 = load ptr, ptr %103, align 8, !tbaa !30
  %105 = getelementptr inbounds i8, ptr %104, i64 128
  %106 = load ptr, ptr %105, align 8
  call void %106(ptr noundef nonnull align 8 dereferenceable(24) %103)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 6
  br i1 %exitcond.not, label %66, label %69, !llvm.loop !74

107:                                              ; preds = %69
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %16) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #5
  br label %113

109:                                              ; preds = %74
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %18) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #5
  br label %113

111:                                              ; preds = %77
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  br label %113

113:                                              ; preds = %107, %109, %111, %67, %47, %45, %44, %38
  %.pn20.pn = phi { ptr, i32 } [ %68, %67 ], [ %48, %47 ], [ %46, %45 ], [ %.pn, %44 ], [ %39, %38 ], [ %112, %111 ], [ %110, %109 ], [ %108, %107 ]
  resume { ptr, i32 } %.pn20.pn
}

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

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

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

declare void @_ZN3imp5State5cloneERKSt10shared_ptrIS0_ENS0_8CloneOptE(ptr noundef nonnull align 8 dereferenceable(306), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #3

declare void @_ZN3imp5State10setUniformERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7Matrix4E(ptr noundef nonnull align 8 dereferenceable(306), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #3

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

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

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

declare void @_ZN3imp5State11setViewportERKNS_4Vec4E(ptr noundef nonnull align 8 dereferenceable(306), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec4C2Effff(ptr noundef nonnull align 8 dereferenceable(40), float noundef, float noundef, float noundef, float noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

declare void @_ZN3imp5State12setReflexionESt10shared_ptrINS_14ReflexionModelEE(ptr noundef nonnull align 8 dereferenceable(306), ptr noundef) local_unnamed_addr #3

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

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

declare void @_ZN3imp5Graph7setRootERKSt10shared_ptrINS_4NodeEE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp11RenderQueue6createIJEEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.6") align 8) local_unnamed_addr #2 align 2

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

declare void @_ZN3imp10GlRenderer18applyRenderVisitorERKSt10shared_ptrINS_5GraphEES1_INS_11RenderQueueEE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.6") align 8, ptr noundef nonnull align 8 dereferenceable(392), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #3

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

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

declare void @_ZN3imp4Node11setPositionERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(544), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp6Camera19setAbsolutePositionERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp6Camera9setTargetERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36), float noundef) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp6Camera8setUpDirERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEmlEf(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec") align 8, ptr noundef nonnull align 8 dereferenceable(36), float noundef) local_unnamed_addr #1 align 2

declare void @_ZN3imp12RenderTarget6changeEv(ptr noundef nonnull align 8 dereferenceable(99)) local_unnamed_addr #3

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

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

declare void @_ZN3imp10GlRenderer9drawQueueERSt10shared_ptrINS_11RenderQueueEES1_INS_5StateEENS_13SceneRenderer11RenderFrameE(ptr noundef nonnull align 8 dereferenceable(392), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i32 noundef) local_unnamed_addr #3

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !28, i64 808}
!6 = !{!"_ZTSN3imp15RenderToCubeMapE", !7, i64 0, !10, i64 24, !14, i64 32, !16, i64 48, !18, i64 64, !20, i64 80, !22, i64 168, !24, i64 184, !11, i64 200, !11, i64 440, !11, i64 680, !26, i64 776, !28, i64 808}
!7 = !{!"_ZTSN3imp6ObjectE", !8, i64 8}
!8 = !{!"_ZTSSt10shared_ptrIN3imp6ObjectEE", !9, i64 0}
!9 = !{!"_ZTSSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0}
!14 = !{!"_ZTSSt10shared_ptrIN3imp5GraphEE", !15, i64 0}
!15 = !{!"_ZTSSt12__shared_ptrIN3imp5GraphELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!16 = !{!"_ZTSSt10shared_ptrIN3imp11RenderQueueEE", !17, i64 0}
!17 = !{!"_ZTSSt12__shared_ptrIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!18 = !{!"_ZTSSt10shared_ptrIN3imp14CubeMapSamplerEE", !19, i64 0}
!19 = !{!"_ZTSSt12__shared_ptrIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!20 = !{!"_ZTSN3imp7Matrix4E", !21, i64 0}
!21 = !{!"_ZTSN3imp6MatrixILi4ELi4EfEE", !7, i64 0, !11, i64 24}
!22 = !{!"_ZTSSt10shared_ptrIN3imp6CameraEE", !23, i64 0}
!23 = !{!"_ZTSSt12__shared_ptrIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!24 = !{!"_ZTSSt10shared_ptrIN3imp5StateEE", !25, i64 0}
!25 = !{!"_ZTSSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!26 = !{!"_ZTSN3imp4Vec2E", !27, i64 0}
!27 = !{!"_ZTSN3imp3VecILi2EfEE", !7, i64 0, !11, i64 24}
!28 = !{!"float", !11, i64 0}
!29 = !{!6, !10, i64 24}
!30 = !{!31, !31, i64 0}
!31 = !{!"vtable pointer", !12, i64 0}
!32 = !{!33, !10, i64 144}
!33 = !{!"_ZTSN3imp10GlRendererE", !34, i64 0, !10, i64 144, !44, i64 152, !46, i64 168, !18, i64 184, !18, i64 200, !48, i64 216, !48, i64 232, !50, i64 248, !50, i64 264, !52, i64 280, !36, i64 296, !36, i64 312, !54, i64 328, !24, i64 376}
!34 = !{!"_ZTSN3imp13SceneRendererE", !7, i64 0, !35, i64 24, !11, i64 25, !36, i64 32, !38, i64 48, !40, i64 64, !41, i64 72, !43, i64 112, !43, i64 116, !43, i64 120, !43, i64 124, !28, i64 128, !28, i64 132, !35, i64 136}
!35 = !{!"bool", !11, i64 0}
!36 = !{!"_ZTSSt10shared_ptrIN3imp12RenderTargetEE", !37, i64 0}
!37 = !{!"_ZTSSt12__shared_ptrIN3imp12RenderTargetELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!38 = !{!"_ZTSSt10shared_ptrIN3imp13RenderVisitorEE", !39, i64 0}
!39 = !{!"_ZTSSt12__shared_ptrIN3imp13RenderVisitorELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!40 = !{!"_ZTSN3imp13SceneRenderer11RenderFrameE", !11, i64 0}
!41 = !{!"_ZTSN3imp4Vec4E", !42, i64 0}
!42 = !{!"_ZTSN3imp3VecILi4EfEE", !7, i64 0, !11, i64 24}
!43 = !{!"int", !11, i64 0}
!44 = !{!"_ZTSSt10shared_ptrIN3imp8PipelineEE", !45, i64 0}
!45 = !{!"_ZTSSt12__shared_ptrIN3imp8PipelineELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!46 = !{!"_ZTSSt10shared_ptrIN3imp13LightingModelEE", !47, i64 0}
!47 = !{!"_ZTSSt12__shared_ptrIN3imp13LightingModelELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!48 = !{!"_ZTSSt10shared_ptrIN3imp15RenderToCubeMapEE", !49, i64 0}
!49 = !{!"_ZTSSt12__shared_ptrIN3imp15RenderToCubeMapELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!50 = !{!"_ZTSSt10shared_ptrIN3imp14ReflexionModelEE", !51, i64 0}
!51 = !{!"_ZTSSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!52 = !{!"_ZTSSt10shared_ptrIN3imp9CopyFrameEE", !53, i64 0}
!53 = !{!"_ZTSSt12__shared_ptrIN3imp9CopyFrameELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!54 = !{!"_ZTSSt3mapISt10shared_ptrIN3imp5GraphEES0_INS1_11RenderQueueEESt4lessIS3_ESaISt4pairIKS3_S5_EEE", !55, i64 0}
!55 = !{!"_ZTSSt8_Rb_treeISt10shared_ptrIN3imp5GraphEESt4pairIKS3_S0_INS1_11RenderQueueEEESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE", !56, i64 0}
!56 = !{!"_ZTSNSt8_Rb_treeISt10shared_ptrIN3imp5GraphEESt4pairIKS3_S0_INS1_11RenderQueueEEESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !57, i64 0, !59, i64 8}
!57 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt10shared_ptrIN3imp5GraphEEEE", !58, i64 0}
!58 = !{!"_ZTSSt4lessISt10shared_ptrIN3imp5GraphEEE"}
!59 = !{!"_ZTSSt15_Rb_tree_header", !60, i64 0, !62, i64 32}
!60 = !{!"_ZTSSt18_Rb_tree_node_base", !61, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!61 = !{!"_ZTSSt14_Rb_tree_color", !11, i64 0}
!62 = !{!"long", !11, i64 0}
!63 = !{!64, !10, i64 24}
!64 = !{!"_ZTSN3imp11RenderQueueE", !7, i64 0, !10, i64 24, !65, i64 32, !69, i64 56, !69, i64 88}
!65 = !{!"_ZTSSt6vectorIPN3imp9LightNodeESaIS2_EE", !66, i64 0}
!66 = !{!"_ZTSSt12_Vector_baseIPN3imp9LightNodeESaIS2_EE", !67, i64 0}
!67 = !{!"_ZTSNSt12_Vector_baseIPN3imp9LightNodeESaIS2_EE12_Vector_implE", !68, i64 0}
!68 = !{!"_ZTSNSt12_Vector_baseIPN3imp9LightNodeESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!69 = !{!"_ZTSN3imp8StateBinE", !70, i64 0, !43, i64 24}
!70 = !{!"_ZTSSt6vectorIN3imp11RenderStateESaIS1_EE", !71, i64 0}
!71 = !{!"_ZTSSt12_Vector_baseIN3imp11RenderStateESaIS1_EE", !72, i64 0}
!72 = !{!"_ZTSNSt12_Vector_baseIN3imp11RenderStateESaIS1_EE12_Vector_implE", !73, i64 0}
!73 = !{!"_ZTSNSt12_Vector_baseIN3imp11RenderStateESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!74 = distinct !{!74, !75}
!75 = !{!"llvm.loop.mustprogress"}


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