; 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.imp::Vec" = type <{ %"class.imp::Object", [3 x float], [4 x i8] }>
%"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_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.std::shared_ptr.25" = type { %"class.std::__shared_ptr.26" }
%"class.std::__shared_ptr.26" = 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.std::shared_ptr.12" = type { %"class.std::__shared_ptr.13" }
%"class.std::__shared_ptr.13" = type { ptr, %"class.std::__shared_count" }
%"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 }
%"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.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = 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 }

@.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 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 @_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)) #2

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

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

; 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

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

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

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

; 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 uwtable
define dso_local void @_ZN3imp15RenderToCubeMap6renderERSt10shared_ptrINS_11RenderQueueEERKNS_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) #3 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 ptr, align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator.45", align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.imp::Vec4", align 8
  %17 = alloca %"class.std::shared_ptr.25", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.imp::Vec3", align 8
  %20 = alloca %"class.imp::Vec", align 8
  %21 = alloca %"class.imp::Vec3", align 8
  %22 = alloca %"class.imp::Vec", align 8
  %23 = 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
  %24 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #4
  %27 = getelementptr inbounds %"class.imp::RenderQueue", ptr %26, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  store ptr %28, ptr %11, align 8, !tbaa !5
  %29 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 7
  %30 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5StateELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %29) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %31 unwind label %46

31:                                               ; preds = %5
  %32 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 5
  invoke void @_ZN3imp5State10setUniformERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7Matrix4E(ptr noundef nonnull align 8 dereferenceable(306) %30, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(88) %32)
          to label %33 unwind label %50

33:                                               ; preds = %31
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #4
  %34 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 7
  %35 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5StateELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %34) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #4
  %36 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 12
  %37 = load float, ptr %36, align 8, !tbaa !27
  %38 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 12
  %39 = load float, ptr %38, align 8, !tbaa !27
  call void @_ZN3imp4Vec4C2Effff(ptr noundef nonnull align 8 dereferenceable(40) %16, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %37, float noundef %39)
  invoke void @_ZN3imp5State11setViewportERKNS_4Vec4E(ptr noundef nonnull align 8 dereferenceable(306) %35, ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %40 unwind label %55

40:                                               ; preds = %33
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #4
  %41 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  br i1 %41, label %42, label %63

42:                                               ; preds = %40
  %43 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 7
  %44 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5StateELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %43) #4
  call void @_ZNSt10shared_ptrIN3imp14ReflexionModelEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  invoke void @_ZN3imp5State12setReflexionESt10shared_ptrINS_14ReflexionModelEE(ptr noundef nonnull align 8 dereferenceable(306) %44, ptr noundef %17)
          to label %45 unwind label %59

45:                                               ; preds = %42
  call void @_ZNSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #4
  br label %63

46:                                               ; preds = %5
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %14, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %15, align 4
  br label %54

50:                                               ; preds = %31
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %14, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #4
  br label %54

54:                                               ; preds = %50, %46
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #4
  br label %173

55:                                               ; preds = %33
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %14, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %15, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #4
  br label %173

59:                                               ; preds = %42
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %14, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %15, align 4
  call void @_ZNSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #4
  br label %173

63:                                               ; preds = %45, %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !44
  br label %64

64:                                               ; preds = %142, %63
  %65 = load i32, ptr %18, align 4, !tbaa !44
  %66 = icmp slt i32 %65, 6
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %168

68:                                               ; preds = %64
  %69 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 6
  %70 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %69) #4
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN3imp4Node11setPositionERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(544) %70, ptr noundef nonnull align 8 dereferenceable(36) %71)
  %72 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 6
  %73 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %72) #4
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN3imp6Camera19setAbsolutePositionERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752) %73, ptr noundef nonnull align 8 dereferenceable(36) %74)
  %75 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 6
  %76 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %75) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #4
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 8
  %79 = load i32, ptr %18, align 4, !tbaa !44
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [6 x %"class.imp::Vec3"], ptr %78, i64 0, i64 %80
  call void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec") align 8 %20, ptr noundef nonnull align 8 dereferenceable(36) %77, ptr noundef nonnull align 8 dereferenceable(36) %81)
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %19, ptr noundef nonnull align 8 dereferenceable(36) %20, float noundef 1.000000e+00)
          to label %82 unwind label %145

82:                                               ; preds = %68
  invoke void @_ZN3imp6Camera9setTargetERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752) %76, ptr noundef nonnull align 8 dereferenceable(36) %19)
          to label %83 unwind label %149

83:                                               ; preds = %82
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %20) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #4
  %84 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 6
  %85 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %84) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #4
  %86 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 9
  %87 = load i32, ptr %18, align 4, !tbaa !44
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [6 x %"class.imp::Vec3"], ptr %86, i64 0, i64 %88
  call void @_ZNK3imp3VecILi3EfEmlEf(ptr dead_on_unwind writable sret(%"class.imp::Vec") align 8 %22, ptr noundef nonnull align 8 dereferenceable(36) %89, float noundef -1.000000e+00)
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %21, ptr noundef nonnull align 8 dereferenceable(36) %22, float noundef 1.000000e+00)
          to label %90 unwind label %154

90:                                               ; preds = %83
  invoke void @_ZN3imp6Camera8setUpDirERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752) %85, ptr noundef nonnull align 8 dereferenceable(36) %21)
          to label %91 unwind label %158

91:                                               ; preds = %90
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %21) #4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %22) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #4
  %92 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 6
  %93 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %92) #4
  %94 = load ptr, ptr %93, align 8, !tbaa !45
  %95 = getelementptr inbounds ptr, ptr %94, i64 6
  %96 = load ptr, ptr %95, align 8
  call void %96(ptr noundef nonnull align 8 dereferenceable(752) %93)
  %97 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 6
  %98 = call noundef ptr @_ZNKSt12__shared_ptrIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %97) #4
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %99) #4
  %101 = getelementptr inbounds %"class.imp::RenderQueue", ptr %100, i32 0, i32 1
  store ptr %98, ptr %101, align 8, !tbaa !11
  %102 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8, !tbaa !47
  %104 = getelementptr inbounds %"class.imp::GlRenderer", ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !48
  %106 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 10
  %107 = load i32, ptr %18, align 4, !tbaa !44
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [6 x %"class.std::shared_ptr.15"], ptr %106, i64 0, i64 %108
  %110 = load ptr, ptr %105, align 8, !tbaa !45
  %111 = getelementptr inbounds ptr, ptr %110, i64 15
  %112 = load ptr, ptr %111, align 8
  call void %112(ptr noundef nonnull align 8 dereferenceable(24) %105, ptr noundef nonnull align 8 dereferenceable(16) %109)
  %113 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 1
  %114 = load ptr, ptr %113, align 8, !tbaa !47
  %115 = getelementptr inbounds %"class.imp::GlRenderer", ptr %114, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !48
  %117 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 10
  %118 = load i32, ptr %18, align 4, !tbaa !44
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [6 x %"class.std::shared_ptr.15"], ptr %117, i64 0, i64 %119
  %121 = load ptr, ptr %116, align 8, !tbaa !45
  %122 = getelementptr inbounds ptr, ptr %121, i64 10
  %123 = load ptr, ptr %122, align 8
  call void %123(ptr noundef nonnull align 8 dereferenceable(24) %116, ptr noundef nonnull align 8 dereferenceable(16) %120)
  %124 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 10
  %125 = load i32, ptr %18, align 4, !tbaa !44
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [6 x %"class.std::shared_ptr.15"], ptr %124, i64 0, i64 %126
  %128 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp12RenderTargetELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %127) #4
  call void @_ZN3imp12RenderTarget6changeEv(ptr noundef nonnull align 8 dereferenceable(99) %128)
  %129 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 1
  %130 = load ptr, ptr %129, align 8, !tbaa !47
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 7
  call void @_ZNSt10shared_ptrIN3imp5StateEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %132) #4
  %133 = load i32, ptr %9, align 4, !tbaa !9
  invoke void @_ZN3imp10GlRenderer9drawQueueERSt10shared_ptrINS_11RenderQueueEES1_INS_5StateEENS_13SceneRenderer11RenderFrameE(ptr noundef nonnull align 8 dereferenceable(392) %130, ptr noundef nonnull align 8 dereferenceable(16) %131, ptr noundef %23, i32 noundef %133)
          to label %134 unwind label %163

134:                                              ; preds = %91
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #4
  %135 = getelementptr inbounds %"class.imp::RenderToCubeMap", ptr %24, i32 0, i32 1
  %136 = load ptr, ptr %135, align 8, !tbaa !47
  %137 = getelementptr inbounds %"class.imp::GlRenderer", ptr %136, i32 0, i32 1
  %138 = load ptr, ptr %137, align 8, !tbaa !48
  %139 = load ptr, ptr %138, align 8, !tbaa !45
  %140 = getelementptr inbounds ptr, ptr %139, i64 16
  %141 = load ptr, ptr %140, align 8
  call void %141(ptr noundef nonnull align 8 dereferenceable(24) %138)
  br label %142

142:                                              ; preds = %134
  %143 = load i32, ptr %18, align 4, !tbaa !44
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %18, align 4, !tbaa !44
  br label %64, !llvm.loop !77

145:                                              ; preds = %68
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %14, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %15, align 4
  br label %153

149:                                              ; preds = %82
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %14, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %15, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #4
  br label %153

153:                                              ; preds = %149, %145
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %20) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #4
  br label %167

154:                                              ; preds = %83
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %14, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %15, align 4
  br label %162

158:                                              ; preds = %90
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %14, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %15, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %21) #4
  br label %162

162:                                              ; preds = %158, %154
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %22) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #4
  br label %167

163:                                              ; preds = %91
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %14, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %15, align 4
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #4
  br label %167

167:                                              ; preds = %163, %162, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %173

168:                                              ; preds = %67
  %169 = load ptr, ptr %11, align 8, !tbaa !5
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %170) #4
  %172 = getelementptr inbounds %"class.imp::RenderQueue", ptr %171, i32 0, i32 1
  store ptr %169, ptr %172, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  ret void

173:                                              ; preds = %167, %59, %55, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %174

174:                                              ; preds = %173
  %175 = load ptr, ptr %14, align 8
  %176 = load i32, ptr %15, align 4
  %177 = insertvalue { ptr, i32 } poison, ptr %175, 0
  %178 = insertvalue { ptr, i32 } %177, i32 %176, 1
  resume { ptr, i32 } %178
}

; 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

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 = { "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !6, i64 24}
!12 = !{!"_ZTSN3imp11RenderQueueE", !13, i64 0, !6, i64 24, !17, i64 32, !21, i64 56, !21, i64 88}
!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 = !{!"_ZTSSt6vectorIPN3imp9LightNodeESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIPN3imp9LightNodeESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN3imp9LightNodeESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN3imp9LightNodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSN3imp8StateBinE", !22, i64 0, !26, i64 24}
!22 = !{!"_ZTSSt6vectorIN3imp11RenderStateESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN3imp11RenderStateESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN3imp11RenderStateESaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN3imp11RenderStateESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"int", !7, i64 0}
!27 = !{!28, !43, i64 808}
!28 = !{!"_ZTSN3imp15RenderToCubeMapE", !13, i64 0, !6, i64 24, !29, i64 32, !31, i64 48, !33, i64 64, !35, i64 80, !37, i64 168, !39, i64 184, !7, i64 200, !7, i64 440, !7, i64 680, !41, i64 776, !43, i64 808}
!29 = !{!"_ZTSSt10shared_ptrIN3imp5GraphEE", !30, i64 0}
!30 = !{!"_ZTSSt12__shared_ptrIN3imp5GraphELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!31 = !{!"_ZTSSt10shared_ptrIN3imp11RenderQueueEE", !32, i64 0}
!32 = !{!"_ZTSSt12__shared_ptrIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!33 = !{!"_ZTSSt10shared_ptrIN3imp14CubeMapSamplerEE", !34, i64 0}
!34 = !{!"_ZTSSt12__shared_ptrIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!35 = !{!"_ZTSN3imp7Matrix4E", !36, i64 0}
!36 = !{!"_ZTSN3imp6MatrixILi4ELi4EfEE", !13, i64 0, !7, i64 24}
!37 = !{!"_ZTSSt10shared_ptrIN3imp6CameraEE", !38, i64 0}
!38 = !{!"_ZTSSt12__shared_ptrIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!39 = !{!"_ZTSSt10shared_ptrIN3imp5StateEE", !40, i64 0}
!40 = !{!"_ZTSSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!41 = !{!"_ZTSN3imp4Vec2E", !42, i64 0}
!42 = !{!"_ZTSN3imp3VecILi2EfEE", !13, i64 0, !7, i64 24}
!43 = !{!"float", !7, i64 0}
!44 = !{!26, !26, i64 0}
!45 = !{!46, !46, i64 0}
!46 = !{!"vtable pointer", !8, i64 0}
!47 = !{!28, !6, i64 24}
!48 = !{!49, !6, i64 144}
!49 = !{!"_ZTSN3imp10GlRendererE", !50, i64 0, !6, i64 144, !58, i64 152, !60, i64 168, !33, i64 184, !33, i64 200, !62, i64 216, !62, i64 232, !64, i64 248, !64, i64 264, !66, i64 280, !52, i64 296, !52, i64 312, !68, i64 328, !39, i64 376}
!50 = !{!"_ZTSN3imp13SceneRendererE", !13, i64 0, !51, i64 24, !7, i64 25, !52, i64 32, !54, i64 48, !10, i64 64, !56, i64 72, !26, i64 112, !26, i64 116, !26, i64 120, !26, i64 124, !43, i64 128, !43, i64 132, !51, i64 136}
!51 = !{!"bool", !7, i64 0}
!52 = !{!"_ZTSSt10shared_ptrIN3imp12RenderTargetEE", !53, i64 0}
!53 = !{!"_ZTSSt12__shared_ptrIN3imp12RenderTargetELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!54 = !{!"_ZTSSt10shared_ptrIN3imp13RenderVisitorEE", !55, i64 0}
!55 = !{!"_ZTSSt12__shared_ptrIN3imp13RenderVisitorELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!56 = !{!"_ZTSN3imp4Vec4E", !57, i64 0}
!57 = !{!"_ZTSN3imp3VecILi4EfEE", !13, i64 0, !7, i64 24}
!58 = !{!"_ZTSSt10shared_ptrIN3imp8PipelineEE", !59, i64 0}
!59 = !{!"_ZTSSt12__shared_ptrIN3imp8PipelineELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!60 = !{!"_ZTSSt10shared_ptrIN3imp13LightingModelEE", !61, i64 0}
!61 = !{!"_ZTSSt12__shared_ptrIN3imp13LightingModelELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!62 = !{!"_ZTSSt10shared_ptrIN3imp15RenderToCubeMapEE", !63, i64 0}
!63 = !{!"_ZTSSt12__shared_ptrIN3imp15RenderToCubeMapELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!64 = !{!"_ZTSSt10shared_ptrIN3imp14ReflexionModelEE", !65, i64 0}
!65 = !{!"_ZTSSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!66 = !{!"_ZTSSt10shared_ptrIN3imp9CopyFrameEE", !67, i64 0}
!67 = !{!"_ZTSSt12__shared_ptrIN3imp9CopyFrameELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!68 = !{!"_ZTSSt3mapISt10shared_ptrIN3imp5GraphEES0_INS1_11RenderQueueEESt4lessIS3_ESaISt4pairIKS3_S5_EEE", !69, i64 0}
!69 = !{!"_ZTSSt8_Rb_treeISt10shared_ptrIN3imp5GraphEESt4pairIKS3_S0_INS1_11RenderQueueEEESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE", !70, i64 0}
!70 = !{!"_ZTSNSt8_Rb_treeISt10shared_ptrIN3imp5GraphEESt4pairIKS3_S0_INS1_11RenderQueueEEESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !71, i64 0, !73, i64 8}
!71 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt10shared_ptrIN3imp5GraphEEEE", !72, i64 0}
!72 = !{!"_ZTSSt4lessISt10shared_ptrIN3imp5GraphEEE"}
!73 = !{!"_ZTSSt15_Rb_tree_header", !74, i64 0, !76, i64 32}
!74 = !{!"_ZTSSt18_Rb_tree_node_base", !75, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!75 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!76 = !{!"long", !7, i64 0}
!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.imp::Vec" = type <{ %"class.imp::Object", [3 x float], [4 x i8] }>
%"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_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.std::shared_ptr.25" = type { %"class.std::__shared_ptr.26" }
%"class.std::__shared_ptr.26" = 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.std::shared_ptr.12" = type { %"class.std::__shared_ptr.13" }
%"class.std::__shared_ptr.13" = 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" }

@.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 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 @_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 #2

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

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

; 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

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

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

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

; 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 uwtable
define dso_local void @_ZN3imp15RenderToCubeMap6renderERSt10shared_ptrINS_11RenderQueueEERKNS_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 #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.45", align 1
  %8 = alloca %"class.imp::Vec4", align 8
  %9 = alloca %"class.std::shared_ptr.25", align 8
  %10 = alloca %"class.imp::Vec3", align 8
  %11 = alloca %"class.imp::Vec", align 8
  %12 = alloca %"class.imp::Vec3", align 8
  %13 = alloca %"class.imp::Vec", align 8
  %14 = alloca %"class.std::shared_ptr.12", align 8
  %15 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %16 = getelementptr inbounds i8, ptr %15, i64 24
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 184
  %19 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5StateELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %20 unwind label %31

20:                                               ; preds = %5
  %21 = getelementptr inbounds i8, ptr %0, i64 80
  invoke void @_ZN3imp5State10setUniformERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7Matrix4E(ptr noundef nonnull align 8 dereferenceable(306) %19, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(88) %21)
          to label %22 unwind label %33

22:                                               ; preds = %20
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  %23 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5StateELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #4
  %24 = getelementptr inbounds i8, ptr %0, i64 808
  %25 = load float, ptr %24, align 8, !tbaa !24
  call void @_ZN3imp4Vec4C2Effff(ptr noundef nonnull align 8 dereferenceable(40) %8, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %25, float noundef %25)
  invoke void @_ZN3imp5State11setViewportERKNS_4Vec4E(ptr noundef nonnull align 8 dereferenceable(306) %23, ptr noundef nonnull align 8 dereferenceable(40) %8)
          to label %26 unwind label %36

26:                                               ; preds = %22
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #4
  %27 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  br i1 %27, label %28, label %40

28:                                               ; preds = %26
  %29 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5StateELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  call void @_ZNSt10shared_ptrIN3imp14ReflexionModelEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  invoke void @_ZN3imp5State12setReflexionESt10shared_ptrINS_14ReflexionModelEE(ptr noundef nonnull align 8 dereferenceable(306) %29, ptr noundef nonnull %9)
          to label %30 unwind label %38

30:                                               ; preds = %28
  call void @_ZNSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  br label %40

31:                                               ; preds = %5
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %35

33:                                               ; preds = %20
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  br label %35

35:                                               ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  br label %93

36:                                               ; preds = %22
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #4
  br label %93

38:                                               ; preds = %28
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  br label %93

40:                                               ; preds = %30, %26
  %41 = getelementptr inbounds i8, ptr %0, i64 168
  %42 = getelementptr inbounds i8, ptr %0, i64 200
  %43 = getelementptr inbounds i8, ptr %0, i64 440
  %44 = getelementptr inbounds i8, ptr %0, i64 24
  %45 = getelementptr inbounds i8, ptr %0, i64 680
  br label %49

46:                                               ; preds = %80
  %47 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %48 = getelementptr inbounds i8, ptr %47, i64 24
  store ptr %17, ptr %48, align 8, !tbaa !5
  ret void

49:                                               ; preds = %40, %80
  %indvars.iv = phi i64 [ 0, %40 ], [ %indvars.iv.next, %80 ]
  %50 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %41) #4
  call void @_ZN3imp4Node11setPositionERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(544) %50, ptr noundef nonnull align 8 dereferenceable(36) %2)
  %51 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %41) #4
  call void @_ZN3imp6Camera19setAbsolutePositionERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752) %51, ptr noundef nonnull align 8 dereferenceable(36) %2)
  %52 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %41) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #4
  %53 = getelementptr inbounds [6 x %"class.imp::Vec3"], ptr %42, i64 0, i64 %indvars.iv
  call void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec") align 8 %11, ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef nonnull align 8 dereferenceable(36) %53)
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %10, ptr noundef nonnull align 8 dereferenceable(36) %11, float noundef 1.000000e+00)
          to label %54 unwind label %87

54:                                               ; preds = %49
  call void @_ZN3imp6Camera9setTargetERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752) %52, ptr noundef nonnull align 8 dereferenceable(36) %10)
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #4
  %55 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %41) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #4
  %56 = getelementptr inbounds [6 x %"class.imp::Vec3"], ptr %43, i64 0, i64 %indvars.iv
  call void @_ZNK3imp3VecILi3EfEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec") align 8 %13, ptr noundef nonnull align 8 dereferenceable(36) %56, float noundef -1.000000e+00)
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %12, ptr noundef nonnull align 8 dereferenceable(36) %13, float noundef 1.000000e+00)
          to label %57 unwind label %89

57:                                               ; preds = %54
  call void @_ZN3imp6Camera8setUpDirERKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(752) %55, ptr noundef nonnull align 8 dereferenceable(36) %12)
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #4
  %58 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %41) #4
  %59 = load ptr, ptr %58, align 8, !tbaa !41
  %60 = getelementptr inbounds i8, ptr %59, i64 48
  %61 = load ptr, ptr %60, align 8
  call void %61(ptr noundef nonnull align 8 dereferenceable(752) %58)
  %62 = call noundef ptr @_ZNKSt12__shared_ptrIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %41) #4
  %63 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %64 = getelementptr inbounds i8, ptr %63, i64 24
  store ptr %62, ptr %64, align 8, !tbaa !5
  %65 = load ptr, ptr %44, align 8, !tbaa !43
  %66 = getelementptr inbounds i8, ptr %65, i64 144
  %67 = load ptr, ptr %66, align 8, !tbaa !44
  %68 = getelementptr inbounds [6 x %"class.std::shared_ptr.15"], ptr %45, i64 0, i64 %indvars.iv
  %69 = load ptr, ptr %67, align 8, !tbaa !41
  %70 = getelementptr inbounds i8, ptr %69, i64 120
  %71 = load ptr, ptr %70, align 8
  call void %71(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 8 dereferenceable(16) %68)
  %72 = load ptr, ptr %44, align 8, !tbaa !43
  %73 = getelementptr inbounds i8, ptr %72, i64 144
  %74 = load ptr, ptr %73, align 8, !tbaa !44
  %75 = load ptr, ptr %74, align 8, !tbaa !41
  %76 = getelementptr inbounds i8, ptr %75, i64 80
  %77 = load ptr, ptr %76, align 8
  call void %77(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 8 dereferenceable(16) %68)
  %78 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp12RenderTargetELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %68) #4
  call void @_ZN3imp12RenderTarget6changeEv(ptr noundef nonnull align 8 dereferenceable(99) %78)
  %79 = load ptr, ptr %44, align 8, !tbaa !43
  call void @_ZNSt10shared_ptrIN3imp5StateEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  invoke void @_ZN3imp10GlRenderer9drawQueueERSt10shared_ptrINS_11RenderQueueEES1_INS_5StateEENS_13SceneRenderer11RenderFrameE(ptr noundef nonnull align 8 dereferenceable(392) %79, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull %14, i32 noundef %3)
          to label %80 unwind label %91

80:                                               ; preds = %57
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  %81 = load ptr, ptr %44, align 8, !tbaa !43
  %82 = getelementptr inbounds i8, ptr %81, i64 144
  %83 = load ptr, ptr %82, align 8, !tbaa !44
  %84 = load ptr, ptr %83, align 8, !tbaa !41
  %85 = getelementptr inbounds i8, ptr %84, i64 128
  %86 = load ptr, ptr %85, align 8
  call void %86(ptr noundef nonnull align 8 dereferenceable(24) %83)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 6
  br i1 %exitcond.not, label %46, label %49, !llvm.loop !74

87:                                               ; preds = %49
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #4
  br label %93

89:                                               ; preds = %54
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #4
  br label %93

91:                                               ; preds = %57
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  br label %93

93:                                               ; preds = %87, %89, %91, %38, %36, %35
  %.pn23.pn = phi { ptr, i32 } [ %39, %38 ], [ %37, %36 ], [ %.pn, %35 ], [ %92, %91 ], [ %90, %89 ], [ %88, %87 ]
  resume { ptr, i32 } %.pn23.pn
}

; 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

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 = { "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !10, i64 24}
!6 = !{!"_ZTSN3imp11RenderQueueE", !7, i64 0, !10, i64 24, !14, i64 32, !18, i64 56, !18, i64 88}
!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 = !{!"_ZTSSt6vectorIPN3imp9LightNodeESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIPN3imp9LightNodeESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN3imp9LightNodeESaIS2_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN3imp9LightNodeESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!18 = !{!"_ZTSN3imp8StateBinE", !19, i64 0, !23, i64 24}
!19 = !{!"_ZTSSt6vectorIN3imp11RenderStateESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN3imp11RenderStateESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN3imp11RenderStateESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN3imp11RenderStateESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!23 = !{!"int", !11, i64 0}
!24 = !{!25, !40, i64 808}
!25 = !{!"_ZTSN3imp15RenderToCubeMapE", !7, i64 0, !10, i64 24, !26, i64 32, !28, i64 48, !30, i64 64, !32, i64 80, !34, i64 168, !36, i64 184, !11, i64 200, !11, i64 440, !11, i64 680, !38, i64 776, !40, i64 808}
!26 = !{!"_ZTSSt10shared_ptrIN3imp5GraphEE", !27, i64 0}
!27 = !{!"_ZTSSt12__shared_ptrIN3imp5GraphELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!28 = !{!"_ZTSSt10shared_ptrIN3imp11RenderQueueEE", !29, i64 0}
!29 = !{!"_ZTSSt12__shared_ptrIN3imp11RenderQueueELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!30 = !{!"_ZTSSt10shared_ptrIN3imp14CubeMapSamplerEE", !31, i64 0}
!31 = !{!"_ZTSSt12__shared_ptrIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!32 = !{!"_ZTSN3imp7Matrix4E", !33, i64 0}
!33 = !{!"_ZTSN3imp6MatrixILi4ELi4EfEE", !7, i64 0, !11, i64 24}
!34 = !{!"_ZTSSt10shared_ptrIN3imp6CameraEE", !35, i64 0}
!35 = !{!"_ZTSSt12__shared_ptrIN3imp6CameraELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!36 = !{!"_ZTSSt10shared_ptrIN3imp5StateEE", !37, i64 0}
!37 = !{!"_ZTSSt12__shared_ptrIN3imp5StateELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!38 = !{!"_ZTSN3imp4Vec2E", !39, i64 0}
!39 = !{!"_ZTSN3imp3VecILi2EfEE", !7, i64 0, !11, i64 24}
!40 = !{!"float", !11, i64 0}
!41 = !{!42, !42, i64 0}
!42 = !{!"vtable pointer", !12, i64 0}
!43 = !{!25, !10, i64 24}
!44 = !{!45, !10, i64 144}
!45 = !{!"_ZTSN3imp10GlRendererE", !46, i64 0, !10, i64 144, !55, i64 152, !57, i64 168, !30, i64 184, !30, i64 200, !59, i64 216, !59, i64 232, !61, i64 248, !61, i64 264, !63, i64 280, !48, i64 296, !48, i64 312, !65, i64 328, !36, i64 376}
!46 = !{!"_ZTSN3imp13SceneRendererE", !7, i64 0, !47, i64 24, !11, i64 25, !48, i64 32, !50, i64 48, !52, i64 64, !53, i64 72, !23, i64 112, !23, i64 116, !23, i64 120, !23, i64 124, !40, i64 128, !40, i64 132, !47, i64 136}
!47 = !{!"bool", !11, i64 0}
!48 = !{!"_ZTSSt10shared_ptrIN3imp12RenderTargetEE", !49, i64 0}
!49 = !{!"_ZTSSt12__shared_ptrIN3imp12RenderTargetELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!50 = !{!"_ZTSSt10shared_ptrIN3imp13RenderVisitorEE", !51, i64 0}
!51 = !{!"_ZTSSt12__shared_ptrIN3imp13RenderVisitorELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!52 = !{!"_ZTSN3imp13SceneRenderer11RenderFrameE", !11, i64 0}
!53 = !{!"_ZTSN3imp4Vec4E", !54, i64 0}
!54 = !{!"_ZTSN3imp3VecILi4EfEE", !7, i64 0, !11, i64 24}
!55 = !{!"_ZTSSt10shared_ptrIN3imp8PipelineEE", !56, i64 0}
!56 = !{!"_ZTSSt12__shared_ptrIN3imp8PipelineELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!57 = !{!"_ZTSSt10shared_ptrIN3imp13LightingModelEE", !58, i64 0}
!58 = !{!"_ZTSSt12__shared_ptrIN3imp13LightingModelELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!59 = !{!"_ZTSSt10shared_ptrIN3imp15RenderToCubeMapEE", !60, i64 0}
!60 = !{!"_ZTSSt12__shared_ptrIN3imp15RenderToCubeMapELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!61 = !{!"_ZTSSt10shared_ptrIN3imp14ReflexionModelEE", !62, i64 0}
!62 = !{!"_ZTSSt12__shared_ptrIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!63 = !{!"_ZTSSt10shared_ptrIN3imp9CopyFrameEE", !64, i64 0}
!64 = !{!"_ZTSSt12__shared_ptrIN3imp9CopyFrameELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!65 = !{!"_ZTSSt3mapISt10shared_ptrIN3imp5GraphEES0_INS1_11RenderQueueEESt4lessIS3_ESaISt4pairIKS3_S5_EEE", !66, i64 0}
!66 = !{!"_ZTSSt8_Rb_treeISt10shared_ptrIN3imp5GraphEESt4pairIKS3_S0_INS1_11RenderQueueEEESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE", !67, i64 0}
!67 = !{!"_ZTSNSt8_Rb_treeISt10shared_ptrIN3imp5GraphEESt4pairIKS3_S0_INS1_11RenderQueueEEESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !68, i64 0, !70, i64 8}
!68 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt10shared_ptrIN3imp5GraphEEEE", !69, i64 0}
!69 = !{!"_ZTSSt4lessISt10shared_ptrIN3imp5GraphEEE"}
!70 = !{!"_ZTSSt15_Rb_tree_header", !71, i64 0, !73, i64 32}
!71 = !{!"_ZTSSt18_Rb_tree_node_base", !72, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!72 = !{!"_ZTSSt14_Rb_tree_color", !11, i64 0}
!73 = !{!"long", !11, i64 0}
!74 = distinct !{!74, !75}
!75 = !{!"llvm.loop.mustprogress"}


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