; LLVM IR from paroj/gltut :: Tut 12 Dynamic Range/HDRLighting.ll (Z7displayv)

; 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"

%struct.UnlitProgData = type { i32, i32, i32, i32 }
%class.LightManager = type { %"class.Framework::Timer", %"class.Framework::TimedLinearInterpolator", %"class.Framework::TimedLinearInterpolator", %"class.Framework::TimedLinearInterpolator", %"class.Framework::TimedLinearInterpolator.8", %"class.std::vector.15", %"class.std::vector.20", %"class.std::vector.25", %"class.std::map" }
%"class.Framework::Timer" = type { i32, float, i8, i8, float, float }
%"class.Framework::TimedLinearInterpolator" = type { %"class.Framework::WeightedLinearInterpolator" }
%"class.Framework::WeightedLinearInterpolator" = type { %"class.std::vector.3" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data, std::allocator<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data>>::_Vector_impl" }
%"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data, std::allocator<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data>>::_Vector_impl" = type { %"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data, std::allocator<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data, std::allocator<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Framework::TimedLinearInterpolator.8" = type { %"class.Framework::WeightedLinearInterpolator.9" }
%"class.Framework::WeightedLinearInterpolator.9" = type { %"class.std::vector.10" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<float>::Data, std::allocator<Framework::WeightedLinearInterpolator<float>::Data>>::_Vector_impl" }
%"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<float>::Data, std::allocator<Framework::WeightedLinearInterpolator<float>::Data>>::_Vector_impl" = type { %"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<float>::Data, std::allocator<Framework::WeightedLinearInterpolator<float>::Data>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<float>::Data, std::allocator<Framework::WeightedLinearInterpolator<float>::Data>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>, std::allocator<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>>>::_Vector_impl" }
%"struct.std::_Vector_base<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>, std::allocator<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>, std::allocator<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>, std::allocator<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<glm::detail::tvec4<float>, std::allocator<glm::detail::tvec4<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::detail::tvec4<float>, std::allocator<glm::detail::tvec4<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::detail::tvec4<float>, std::allocator<glm::detail::tvec4<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::detail::tvec4<float>, std::allocator<glm::detail::tvec4<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<Framework::Timer, std::allocator<Framework::Timer>>::_Vector_impl" }
%"struct.std::_Vector_base<Framework::Timer, std::allocator<Framework::Timer>>::_Vector_impl" = type { %"struct.std::_Vector_base<Framework::Timer, std::allocator<Framework::Timer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Framework::Timer, std::allocator<Framework::Timer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Framework::Timer>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Framework::Timer>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Framework::Timer>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Framework::Timer>>, std::less<std::__cxx11::basic_string<char>>>::_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.glutil::ViewPole" = type <{ %"class.glutil::ViewProvider", %"struct.glutil::ViewData", %"struct.glutil::ViewScale", %"struct.glutil::ViewData", i32, i8, i8, [2 x i8], i32, float, %"struct.glm::detail::tvec2", %"struct.glm::detail::tquat", [4 x i8] }>
%"class.glutil::ViewProvider" = type { ptr }
%"struct.glutil::ViewScale" = type { float, float, float, float, float, float, float }
%"struct.glutil::ViewData" = type { %"struct.glm::detail::tvec3", %"struct.glm::detail::tquat", float, float }
%"struct.glm::detail::tvec3" = type { %union.anon.33 }
%union.anon.33 = type { %struct.anon }
%struct.anon = type { float, float, float }
%"struct.glm::detail::tvec2" = type { %union.anon.36 }
%union.anon.36 = type { %struct.anon.37 }
%struct.anon.37 = type { i32, i32 }
%"struct.glm::detail::tquat" = type { float, float, float, float }
%"struct.glm::detail::tvec4" = type { %union.anon.40 }
%union.anon.40 = type { %struct.anon.41 }
%struct.anon.41 = type { float, float, float, float }
%"class.glutil::MatrixStack" = type { %"class.std::stack", %"struct.glm::detail::tmat4x4" }
%"class.std::stack" = type { %"class.std::vector.46" }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.glm::detail::tmat4x4" = type { [4 x %"struct.glm::detail::tvec4"] }
%struct.LightBlockHDR = type { %"struct.glm::detail::tvec4", float, float, [2 x float], [4 x %struct.PerLight] }
%struct.PerLight = type { %"struct.glm::detail::tvec4", %"struct.glm::detail::tvec4" }
%"class.glutil::PushStack" = 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.0" = type { i8 }

@g_Unlit = external dso_local global %struct.UnlitProgData, align 4
@g_lights = external dso_local global %class.LightManager, align 8
@g_viewPole = external dso_local global %"class.glutil::ViewPole", align 8
@g_lightUniformBuffer = external dso_local global i32, align 4
@g_pScene = external dso_local global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [6 x i8], align 1
@_funcptr_glEnable = external global ptr, align 8
@_funcptr_glDepthMask = external global ptr, align 8
@_funcptr_glBindBuffer = external global ptr, align 8
@g_bDrawCameraPos = external dso_local global i8, align 1
@g_bDrawLights = external dso_local global i8, align 1
@_funcptr_glClearColor = external global ptr, align 8
@_funcptr_glClearDepth = external global ptr, align 8
@_funcptr_glClear = external global ptr, align 8
@_funcptr_glBufferSubData = external global ptr, align 8
@_funcptr_glUseProgram = external global ptr, align 8
@_funcptr_glUniformMatrix4fv = external global ptr, align 8
@_funcptr_glUniform4fv = external global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [5 x i8], align 1
@_funcptr_glDisable = external global ptr, align 8
@_funcptr_glUniform4f = external global ptr, align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7displayv() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.glm::detail::tvec4", align 4
  %2 = alloca %"class.glutil::MatrixStack", align 8
  %3 = alloca %"struct.glm::detail::tmat4x4", align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %struct.LightBlockHDR, align 4
  %8 = alloca %"class.glutil::PushStack", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator.0", align 1
  %11 = alloca %"class.glutil::PushStack", align 8
  %12 = alloca %"class.glutil::PushStack", align 8
  %13 = alloca %"struct.glm::detail::tvec3", align 4
  %14 = alloca %"struct.glm::detail::tvec4", align 4
  %15 = alloca %"struct.glm::detail::tvec3", align 4
  %16 = alloca float, align 4
  %17 = alloca %"struct.glm::detail::tvec4", align 4
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator.0", align 1
  %20 = alloca i32, align 4
  %21 = alloca %"class.glutil::PushStack", align 8
  %22 = alloca %"struct.glm::detail::tvec3", align 4
  %23 = alloca %"struct.glm::detail::tvec4", align 4
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator.0", align 1
  %26 = alloca %"class.glutil::PushStack", align 8
  %27 = alloca %"struct.glm::detail::tvec3", align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator.0", align 1
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator.0", align 1
  call void @_ZN12LightManager10UpdateTimeEv(ptr noundef nonnull align 8 dereferenceable(240) @g_lights)
  call void @llvm.lifetime.start.p0(i64 16, ptr %1) #6
  call void @_ZNK12LightManager18GetBackgroundColorEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %1, ptr noundef nonnull align 8 dereferenceable(240) @g_lights)
  %35 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm6detail5tvec4IfEixEm(ptr noundef nonnull align 4 dereferenceable(16) %1, i64 noundef 0)
  %37 = load float, ptr %36, align 4, !tbaa !9
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm6detail5tvec4IfEixEm(ptr noundef nonnull align 4 dereferenceable(16) %1, i64 noundef 1)
  %39 = load float, ptr %38, align 4, !tbaa !9
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm6detail5tvec4IfEixEm(ptr noundef nonnull align 4 dereferenceable(16) %1, i64 noundef 2)
  %41 = load float, ptr %40, align 4, !tbaa !9
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm6detail5tvec4IfEixEm(ptr noundef nonnull align 4 dereferenceable(16) %1, i64 noundef 3)
  %43 = load float, ptr %42, align 4, !tbaa !9
  call void %35(float noundef %37, float noundef %39, float noundef %41, float noundef %43)
  %44 = load ptr, ptr @_funcptr_glClearDepth, align 8, !tbaa !5
  call void %44(double noundef 1.000000e+00)
  %45 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  call void %45(i32 noundef 16640)
  call void @llvm.lifetime.start.p0(i64 88, ptr %2) #6
  call void @_ZN6glutil11MatrixStackC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %2)
  call void @llvm.lifetime.start.p0(i64 64, ptr %3) #6
  invoke void @_ZNK6glutil8ViewPole10CalcMatrixEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat4x4") align 4 %3, ptr noundef nonnull align 8 dereferenceable(148) @g_viewPole)
          to label %46 unwind label %68

46:                                               ; preds = %0
  invoke void @_ZN6glutil11MatrixStack9SetMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %2, ptr noundef nonnull align 4 dereferenceable(64) %3)
          to label %47 unwind label %68

47:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %48 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %49 unwind label %72

49:                                               ; preds = %47
  store ptr %48, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 160, ptr %7) #6
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK12LightManager22GetLightInformationHDRERKN3glm6detail7tmat4x4IfEE(ptr dead_on_unwind writable sret(%struct.LightBlockHDR) align 4 %7, ptr noundef nonnull align 8 dereferenceable(240) @g_lights, ptr noundef nonnull align 4 dereferenceable(64) %50)
          to label %51 unwind label %76

51:                                               ; preds = %49
  %52 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  %53 = load i32, ptr @g_lightUniformBuffer, align 4, !tbaa !11
  invoke void %52(i32 noundef 35345, i32 noundef %53)
          to label %54 unwind label %76

54:                                               ; preds = %51
  %55 = load ptr, ptr @_funcptr_glBufferSubData, align 8, !tbaa !5
  invoke void %55(i32 noundef 35345, i64 noundef 0, i64 noundef 160, ptr noundef %7)
          to label %56 unwind label %76

56:                                               ; preds = %54
  %57 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  invoke void %57(i32 noundef 35345, i32 noundef 0)
          to label %58 unwind label %76

58:                                               ; preds = %56
  %59 = load ptr, ptr @g_pScene, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %94

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %62 unwind label %80

62:                                               ; preds = %61
  %63 = load ptr, ptr @g_pScene, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.18, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %64 unwind label %84

64:                                               ; preds = %62
  %65 = invoke noundef float @_ZNK12LightManager13GetTimerValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(240) @g_lights, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %66 unwind label %88

66:                                               ; preds = %64
  invoke void @_ZN5Scene4DrawERN6glutil11MatrixStackEif(ptr noundef nonnull align 8 dereferenceable(48) %63, ptr noundef nonnull align 8 dereferenceable(88) %2, i32 noundef 0, float noundef %65)
          to label %67 unwind label %88

67:                                               ; preds = %66
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %94

68:                                               ; preds = %46, %0
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %4, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #6
  br label %318

72:                                               ; preds = %47
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %4, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %5, align 4
  br label %317

76:                                               ; preds = %312, %311, %56, %54, %51, %49
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %4, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %5, align 4
  br label %316

80:                                               ; preds = %61
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %4, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %5, align 4
  br label %93

84:                                               ; preds = %62
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %4, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %5, align 4
  br label %92

88:                                               ; preds = %66, %64
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %4, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %92

92:                                               ; preds = %88, %84
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %93

93:                                               ; preds = %92, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %316

94:                                               ; preds = %67, %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %95 unwind label %132

95:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %96 unwind label %136

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  invoke void @_ZNK12LightManager20GetSunlightDirectionEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %14, ptr noundef nonnull align 8 dereferenceable(240) @g_lights)
          to label %97 unwind label %140

97:                                               ; preds = %96
  invoke void @_ZN3glm6detail5tvec3IfEC2IfEERKNS0_5tvec4IT_EE(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(16) %14)
          to label %98 unwind label %140

98:                                               ; preds = %97
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store float 5.000000e+02, ptr %16, align 4, !tbaa !9
  invoke void @_ZN3glm6detailmlIfEENS0_5tvec3IT_EERKS4_RKS3_(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec3") align 4 %15, ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %99 unwind label %144

99:                                               ; preds = %98
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %2, ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %100 unwind label %144

100:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #6
  invoke void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88) %2, float noundef 3.000000e+01, float noundef 3.000000e+01, float noundef 3.000000e+01)
          to label %101 unwind label %148

101:                                              ; preds = %100
  %102 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %103 = load i32, ptr @g_Unlit, align 4, !tbaa !13
  invoke void %102(i32 noundef %103)
          to label %104 unwind label %148

104:                                              ; preds = %101
  %105 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %106 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 3), align 4, !tbaa !15
  %107 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %108 unwind label %148

108:                                              ; preds = %104
  %109 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %107)
          to label %110 unwind label %148

110:                                              ; preds = %108
  invoke void %105(i32 noundef %106, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %109)
          to label %111 unwind label %148

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  invoke void @_ZNK12LightManager20GetSunlightIntensityEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %17, ptr noundef nonnull align 8 dereferenceable(240) @g_lights)
          to label %112 unwind label %152

112:                                              ; preds = %111
  %113 = load ptr, ptr @_funcptr_glUniform4fv, align 8, !tbaa !5
  %114 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 1), align 4, !tbaa !16
  %115 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %17)
          to label %116 unwind label %152

116:                                              ; preds = %112
  invoke void %113(i32 noundef %114, i32 noundef 1, ptr noundef %115)
          to label %117 unwind label %152

117:                                              ; preds = %116
  %118 = load ptr, ptr @g_pScene, align 8, !tbaa !5
  %119 = invoke noundef ptr @_ZN5Scene13GetSphereMeshEv(ptr noundef nonnull align 8 dereferenceable(48) %118)
          to label %120 unwind label %152

120:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %121 unwind label %156

121:                                              ; preds = %120
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %122 unwind label %160

122:                                              ; preds = %121
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %123 = load i8, ptr @g_bDrawLights, align 1, !tbaa !17, !range !19, !noundef !20
  %124 = trunc i8 %123 to i1
  br i1 %124, label %125, label %232

125:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %126

126:                                              ; preds = %199, %125
  %127 = load i32, ptr %20, align 4, !tbaa !11
  %128 = invoke noundef i32 @_ZNK12LightManager22GetNumberOfPointLightsEv(ptr noundef nonnull align 8 dereferenceable(240) @g_lights)
          to label %129 unwind label %168

129:                                              ; preds = %126
  %130 = icmp slt i32 %127, %128
  br i1 %130, label %172, label %131

131:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %231

132:                                              ; preds = %94
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %4, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %5, align 4
  br label %315

136:                                              ; preds = %95
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %4, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %5, align 4
  br label %167

140:                                              ; preds = %97, %96
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %4, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  br label %166

144:                                              ; preds = %99, %98
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %4, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #6
  br label %166

148:                                              ; preds = %110, %108, %104, %101, %100
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %4, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %5, align 4
  br label %166

152:                                              ; preds = %117, %116, %112, %111
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %4, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %5, align 4
  br label %165

156:                                              ; preds = %120
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %4, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %5, align 4
  br label %164

160:                                              ; preds = %121
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %4, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %164

164:                                              ; preds = %160, %156
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %165

165:                                              ; preds = %164, %152
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  br label %166

166:                                              ; preds = %165, %148, %144, %140
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %167

167:                                              ; preds = %166, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %314

168:                                              ; preds = %126
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %4, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %5, align 4
  br label %230

172:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %173 unwind label %202

173:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #6
  %174 = load i32, ptr %20, align 4, !tbaa !11
  invoke void @_ZNK12LightManager21GetWorldLightPositionEi(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec3") align 4 %22, ptr noundef nonnull align 8 dereferenceable(240) @g_lights, i32 noundef %174)
          to label %175 unwind label %206

175:                                              ; preds = %173
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %2, ptr noundef nonnull align 4 dereferenceable(12) %22)
          to label %176 unwind label %206

176:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #6
  %177 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %178 = load i32, ptr @g_Unlit, align 4, !tbaa !13
  invoke void %177(i32 noundef %178)
          to label %179 unwind label %210

179:                                              ; preds = %176
  %180 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %181 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 3), align 4, !tbaa !15
  %182 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %183 unwind label %210

183:                                              ; preds = %179
  %184 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %182)
          to label %185 unwind label %210

185:                                              ; preds = %183
  invoke void %180(i32 noundef %181, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %184)
          to label %186 unwind label %210

186:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  %187 = load i32, ptr %20, align 4, !tbaa !11
  invoke void @_ZNK12LightManager22GetPointLightIntensityEi(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %23, ptr noundef nonnull align 8 dereferenceable(240) @g_lights, i32 noundef %187)
          to label %188 unwind label %214

188:                                              ; preds = %186
  %189 = load ptr, ptr @_funcptr_glUniform4fv, align 8, !tbaa !5
  %190 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 1), align 4, !tbaa !16
  %191 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %23)
          to label %192 unwind label %214

192:                                              ; preds = %188
  invoke void %189(i32 noundef %190, i32 noundef 1, ptr noundef %191)
          to label %193 unwind label %214

193:                                              ; preds = %192
  %194 = load ptr, ptr @g_pScene, align 8, !tbaa !5
  %195 = invoke noundef ptr @_ZN5Scene11GetCubeMeshEv(ptr noundef nonnull align 8 dereferenceable(48) %194)
          to label %196 unwind label %214

196:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %197 unwind label %218

197:                                              ; preds = %196
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %195, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %198 unwind label %222

198:                                              ; preds = %197
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %20, align 4, !tbaa !11
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %20, align 4, !tbaa !11
  br label %126, !llvm.loop !21

202:                                              ; preds = %172
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %4, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %5, align 4
  br label %229

206:                                              ; preds = %175, %173
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %4, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #6
  br label %228

210:                                              ; preds = %185, %183, %179, %176
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %4, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %5, align 4
  br label %228

214:                                              ; preds = %193, %192, %188, %186
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %4, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %5, align 4
  br label %227

218:                                              ; preds = %196
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %4, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %5, align 4
  br label %226

222:                                              ; preds = %197
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %4, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %226

226:                                              ; preds = %222, %218
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  br label %227

227:                                              ; preds = %226, %214
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %228

228:                                              ; preds = %227, %210, %206
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br label %229

229:                                              ; preds = %228, %202
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %230

230:                                              ; preds = %229, %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %314

231:                                              ; preds = %131
  br label %232

232:                                              ; preds = %231, %122
  %233 = load i8, ptr @g_bDrawCameraPos, align 1, !tbaa !17, !range !19, !noundef !20
  %234 = trunc i8 %233 to i1
  br i1 %234, label %235, label %311

235:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %236 unwind label %279

236:                                              ; preds = %235
  invoke void @_ZN6glutil11MatrixStack11SetIdentityEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %237 unwind label %283

237:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store float 0.000000e+00, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store float 0.000000e+00, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %238 = invoke noundef nonnull align 4 dereferenceable(36) ptr @_ZNK6glutil8ViewPole7GetViewEv(ptr noundef nonnull align 8 dereferenceable(148) @g_viewPole)
          to label %239 unwind label %287

239:                                              ; preds = %237
  %240 = getelementptr inbounds %"struct.glutil::ViewData", ptr %238, i32 0, i32 2
  %241 = load float, ptr %240, align 4, !tbaa !23
  %242 = fneg float %241
  store float %242, ptr %30, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %243 unwind label %287

243:                                              ; preds = %239
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %2, ptr noundef nonnull align 4 dereferenceable(12) %27)
          to label %244 unwind label %287

244:                                              ; preds = %243
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #6
  %245 = load ptr, ptr @_funcptr_glDisable, align 8, !tbaa !5
  invoke void %245(i32 noundef 2929)
          to label %246 unwind label %283

246:                                              ; preds = %244
  %247 = load ptr, ptr @_funcptr_glDepthMask, align 8, !tbaa !5
  invoke void %247(i8 noundef zeroext 0)
          to label %248 unwind label %283

248:                                              ; preds = %246
  %249 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %250 = load i32, ptr @g_Unlit, align 4, !tbaa !13
  invoke void %249(i32 noundef %250)
          to label %251 unwind label %283

251:                                              ; preds = %248
  %252 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %253 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 3), align 4, !tbaa !15
  %254 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %255 unwind label %283

255:                                              ; preds = %251
  %256 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %254)
          to label %257 unwind label %283

257:                                              ; preds = %255
  invoke void %252(i32 noundef %253, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %256)
          to label %258 unwind label %283

258:                                              ; preds = %257
  %259 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %260 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 1), align 4, !tbaa !16
  invoke void %259(i32 noundef %260, float noundef 2.500000e-01, float noundef 2.500000e-01, float noundef 2.500000e-01, float noundef 1.000000e+00)
          to label %261 unwind label %283

261:                                              ; preds = %258
  %262 = load ptr, ptr @g_pScene, align 8, !tbaa !5
  %263 = invoke noundef ptr @_ZN5Scene11GetCubeMeshEv(ptr noundef nonnull align 8 dereferenceable(48) %262)
          to label %264 unwind label %283

264:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %265 unwind label %291

265:                                              ; preds = %264
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %263, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %266 unwind label %295

266:                                              ; preds = %265
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  %267 = load ptr, ptr @_funcptr_glDepthMask, align 8, !tbaa !5
  invoke void %267(i8 noundef zeroext 1)
          to label %268 unwind label %283

268:                                              ; preds = %266
  %269 = load ptr, ptr @_funcptr_glEnable, align 8, !tbaa !5
  invoke void %269(i32 noundef 2929)
          to label %270 unwind label %283

270:                                              ; preds = %268
  %271 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %272 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 1), align 4, !tbaa !16
  invoke void %271(i32 noundef %272, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %273 unwind label %283

273:                                              ; preds = %270
  %274 = load ptr, ptr @g_pScene, align 8, !tbaa !5
  %275 = invoke noundef ptr @_ZN5Scene11GetCubeMeshEv(ptr noundef nonnull align 8 dereferenceable(48) %274)
          to label %276 unwind label %283

276:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %277 unwind label %300

277:                                              ; preds = %276
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %275, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %278 unwind label %304

278:                                              ; preds = %277
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %311

279:                                              ; preds = %235
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %4, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %5, align 4
  br label %310

283:                                              ; preds = %273, %270, %268, %266, %261, %258, %257, %255, %251, %248, %246, %244, %236
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %4, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %5, align 4
  br label %309

287:                                              ; preds = %243, %239, %237
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %4, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #6
  br label %309

291:                                              ; preds = %264
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %4, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %5, align 4
  br label %299

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

299:                                              ; preds = %295, %291
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  br label %309

300:                                              ; preds = %276
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %4, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %5, align 4
  br label %308

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

308:                                              ; preds = %304, %300
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  br label %309

309:                                              ; preds = %308, %299, %287, %283
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br label %310

310:                                              ; preds = %309, %279
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %314

311:                                              ; preds = %278, %232
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  invoke void @glutPostRedisplay()
          to label %312 unwind label %76

312:                                              ; preds = %311
  invoke void @glutSwapBuffers()
          to label %313 unwind label %76

313:                                              ; preds = %312
  call void @llvm.lifetime.end.p0(i64 160, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %2) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %1) #6
  ret void

314:                                              ; preds = %310, %230, %167
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %315

315:                                              ; preds = %314, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %316

316:                                              ; preds = %315, %93, %76
  call void @llvm.lifetime.end.p0(i64 160, ptr %7) #6
  br label %317

317:                                              ; preds = %316, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %318

318:                                              ; preds = %317, %68
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %2) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %1) #6
  br label %319

319:                                              ; preds = %318
  %320 = load ptr, ptr %4, align 8
  %321 = load i32, ptr %5, align 4
  %322 = insertvalue { ptr, i32 } poison, ptr %320, 0
  %323 = insertvalue { ptr, i32 } %322, i32 %321, 1
  resume { ptr, i32 } %323
}

declare void @_ZN12LightManager10UpdateTimeEv(ptr noundef nonnull align 8 dereferenceable(240)) #4

declare void @_ZNK12LightManager18GetBackgroundColorEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 8 dereferenceable(240)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm6detail5tvec4IfEixEm(ptr noundef nonnull align 4 dereferenceable(16), i64 noundef) #5 align 2

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

declare void @_ZN6glutil11MatrixStack9SetMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(64)) #4

declare void @_ZNK6glutil8ViewPole10CalcMatrixEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat4x4") align 4, ptr noundef nonnull align 8 dereferenceable(148)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88)) #1 align 2

declare void @_ZNK12LightManager22GetLightInformationHDRERKN3glm6detail7tmat4x4IfEE(ptr dead_on_unwind writable sret(%struct.LightBlockHDR) align 4, ptr noundef nonnull align 8 dereferenceable(240), ptr noundef nonnull align 4 dereferenceable(64)) #4

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

declare void @_ZN5Scene4DrawERN6glutil11MatrixStackEif(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, float noundef) #4

declare noundef float @_ZNK12LightManager13GetTimerValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(240), ptr noundef nonnull align 8 dereferenceable(32)) #4

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

declare void @_ZNK12LightManager20GetSunlightDirectionEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 8 dereferenceable(240)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm6detail5tvec3IfEC2IfEERKNS0_5tvec4IT_EE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #3 align 2

declare void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(12)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6detailmlIfEENS0_5tvec3IT_EERKS4_RKS3_(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64)) #5

declare void @_ZNK12LightManager20GetSunlightIntensityEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 8 dereferenceable(240)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16)) #3

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

declare void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #4

declare noundef i32 @_ZNK12LightManager22GetNumberOfPointLightsEv(ptr noundef nonnull align 8 dereferenceable(240)) #4

declare void @_ZNK12LightManager21GetWorldLightPositionEi(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec3") align 4, ptr noundef nonnull align 8 dereferenceable(240), i32 noundef) #4

declare void @_ZNK12LightManager22GetPointLightIntensityEi(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 8 dereferenceable(240), i32 noundef) #4

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

declare void @_ZN6glutil11MatrixStack11SetIdentityEv(ptr noundef nonnull align 8 dereferenceable(88)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZNK6glutil8ViewPole7GetViewEv(ptr noundef nonnull align 8 dereferenceable(148)) #1 align 2

declare void @glutPostRedisplay() #4

declare void @glutSwapBuffers() #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #3 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

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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS13UnlitProgData", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!15 = !{!14, !12, i64 12}
!16 = !{!14, !12, i64 4}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !10, i64 28}
!24 = !{!"_ZTSN6glutil8ViewDataE", !25, i64 0, !26, i64 12, !10, i64 28, !10, i64 32}
!25 = !{!"_ZTSN3glm6detail5tvec3IfEE", !7, i64 0}
!26 = !{!"_ZTSN3glm6detail5tquatIfEE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}


; 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"

%struct.UnlitProgData = type { i32, i32, i32, i32 }
%class.LightManager = type { %"class.Framework::Timer", %"class.Framework::TimedLinearInterpolator", %"class.Framework::TimedLinearInterpolator", %"class.Framework::TimedLinearInterpolator", %"class.Framework::TimedLinearInterpolator.8", %"class.std::vector.15", %"class.std::vector.20", %"class.std::vector.25", %"class.std::map" }
%"class.Framework::Timer" = type { i32, float, i8, i8, float, float }
%"class.Framework::TimedLinearInterpolator" = type { %"class.Framework::WeightedLinearInterpolator" }
%"class.Framework::WeightedLinearInterpolator" = type { %"class.std::vector.3" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data, std::allocator<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data>>::_Vector_impl" }
%"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data, std::allocator<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data>>::_Vector_impl" = type { %"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data, std::allocator<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data, std::allocator<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Framework::TimedLinearInterpolator.8" = type { %"class.Framework::WeightedLinearInterpolator.9" }
%"class.Framework::WeightedLinearInterpolator.9" = type { %"class.std::vector.10" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<float>::Data, std::allocator<Framework::WeightedLinearInterpolator<float>::Data>>::_Vector_impl" }
%"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<float>::Data, std::allocator<Framework::WeightedLinearInterpolator<float>::Data>>::_Vector_impl" = type { %"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<float>::Data, std::allocator<Framework::WeightedLinearInterpolator<float>::Data>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<float>::Data, std::allocator<Framework::WeightedLinearInterpolator<float>::Data>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>, std::allocator<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>>>::_Vector_impl" }
%"struct.std::_Vector_base<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>, std::allocator<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>, std::allocator<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>, std::allocator<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<glm::detail::tvec4<float>, std::allocator<glm::detail::tvec4<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::detail::tvec4<float>, std::allocator<glm::detail::tvec4<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::detail::tvec4<float>, std::allocator<glm::detail::tvec4<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::detail::tvec4<float>, std::allocator<glm::detail::tvec4<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<Framework::Timer, std::allocator<Framework::Timer>>::_Vector_impl" }
%"struct.std::_Vector_base<Framework::Timer, std::allocator<Framework::Timer>>::_Vector_impl" = type { %"struct.std::_Vector_base<Framework::Timer, std::allocator<Framework::Timer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Framework::Timer, std::allocator<Framework::Timer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Framework::Timer>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Framework::Timer>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Framework::Timer>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Framework::Timer>>, std::less<std::__cxx11::basic_string<char>>>::_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.glutil::ViewPole" = type <{ %"class.glutil::ViewProvider", %"struct.glutil::ViewData", %"struct.glutil::ViewScale", %"struct.glutil::ViewData", i32, i8, i8, [2 x i8], i32, float, %"struct.glm::detail::tvec2", %"struct.glm::detail::tquat", [4 x i8] }>
%"class.glutil::ViewProvider" = type { ptr }
%"struct.glutil::ViewScale" = type { float, float, float, float, float, float, float }
%"struct.glutil::ViewData" = type { %"struct.glm::detail::tvec3", %"struct.glm::detail::tquat", float, float }
%"struct.glm::detail::tvec3" = type { %union.anon.33 }
%union.anon.33 = type { %struct.anon }
%struct.anon = type { float, float, float }
%"struct.glm::detail::tvec2" = type { %union.anon.36 }
%union.anon.36 = type { %struct.anon.37 }
%struct.anon.37 = type { i32, i32 }
%"struct.glm::detail::tquat" = type { float, float, float, float }
%"struct.glm::detail::tvec4" = type { %union.anon.40 }
%union.anon.40 = type { %struct.anon.41 }
%struct.anon.41 = type { float, float, float, float }
%"class.glutil::MatrixStack" = type { %"class.std::stack", %"struct.glm::detail::tmat4x4" }
%"class.std::stack" = type { %"class.std::vector.46" }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.glm::detail::tmat4x4" = type { [4 x %"struct.glm::detail::tvec4"] }
%struct.LightBlockHDR = type { %"struct.glm::detail::tvec4", float, float, [2 x float], [4 x %struct.PerLight] }
%struct.PerLight = type { %"struct.glm::detail::tvec4", %"struct.glm::detail::tvec4" }
%"class.glutil::PushStack" = 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.0" = type { i8 }

@g_Unlit = external dso_local local_unnamed_addr global %struct.UnlitProgData, align 4
@g_lights = external dso_local global %class.LightManager, align 8
@g_viewPole = external dso_local global %"class.glutil::ViewPole", align 8
@g_lightUniformBuffer = external dso_local local_unnamed_addr global i32, align 4
@g_pScene = external dso_local local_unnamed_addr global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [6 x i8], align 1
@_funcptr_glEnable = external local_unnamed_addr global ptr, align 8
@_funcptr_glDepthMask = external local_unnamed_addr global ptr, align 8
@_funcptr_glBindBuffer = external local_unnamed_addr global ptr, align 8
@g_bDrawCameraPos = external dso_local local_unnamed_addr global i8, align 1
@g_bDrawLights = external dso_local local_unnamed_addr global i8, align 1
@_funcptr_glClearColor = external local_unnamed_addr global ptr, align 8
@_funcptr_glClearDepth = external local_unnamed_addr global ptr, align 8
@_funcptr_glClear = external local_unnamed_addr global ptr, align 8
@_funcptr_glBufferSubData = external local_unnamed_addr global ptr, align 8
@_funcptr_glUseProgram = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniformMatrix4fv = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniform4fv = external local_unnamed_addr global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [5 x i8], align 1
@_funcptr_glDisable = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniform4f = external local_unnamed_addr global ptr, align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7displayv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.glm::detail::tvec4", align 4
  %2 = alloca %"class.glutil::MatrixStack", align 8
  %3 = alloca %"struct.glm::detail::tmat4x4", align 4
  %4 = alloca %struct.LightBlockHDR, align 4
  %5 = alloca %"class.glutil::PushStack", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.0", align 1
  %8 = alloca %"class.glutil::PushStack", align 8
  %9 = alloca %"class.glutil::PushStack", align 8
  %10 = alloca %"struct.glm::detail::tvec3", align 4
  %11 = alloca %"struct.glm::detail::tvec4", align 4
  %12 = alloca %"struct.glm::detail::tvec3", align 4
  %13 = alloca float, align 4
  %14 = alloca %"struct.glm::detail::tvec4", align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.0", align 1
  %17 = alloca %"class.glutil::PushStack", align 8
  %18 = alloca %"struct.glm::detail::tvec3", align 4
  %19 = alloca %"struct.glm::detail::tvec4", align 4
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator.0", align 1
  %22 = alloca %"class.glutil::PushStack", align 8
  %23 = alloca %"struct.glm::detail::tvec3", align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator.0", align 1
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator.0", align 1
  tail call void @_ZN12LightManager10UpdateTimeEv(ptr noundef nonnull align 8 dereferenceable(240) @g_lights)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #6
  call void @_ZNK12LightManager18GetBackgroundColorEv(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %1, ptr noundef nonnull align 8 dereferenceable(240) @g_lights)
  %31 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm6detail5tvec4IfEixEm(ptr noundef nonnull align 4 dereferenceable(16) %1, i64 noundef 0)
  %33 = load float, ptr %32, align 4, !tbaa !9
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm6detail5tvec4IfEixEm(ptr noundef nonnull align 4 dereferenceable(16) %1, i64 noundef 1)
  %35 = load float, ptr %34, align 4, !tbaa !9
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm6detail5tvec4IfEixEm(ptr noundef nonnull align 4 dereferenceable(16) %1, i64 noundef 2)
  %37 = load float, ptr %36, align 4, !tbaa !9
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm6detail5tvec4IfEixEm(ptr noundef nonnull align 4 dereferenceable(16) %1, i64 noundef 3)
  %39 = load float, ptr %38, align 4, !tbaa !9
  call void %31(float noundef %33, float noundef %35, float noundef %37, float noundef %39)
  %40 = load ptr, ptr @_funcptr_glClearDepth, align 8, !tbaa !5
  call void %40(double noundef 1.000000e+00)
  %41 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  call void %41(i32 noundef 16640)
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %2) #6
  call void @_ZN6glutil11MatrixStackC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %2)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #6
  invoke void @_ZNK6glutil8ViewPole10CalcMatrixEv(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tmat4x4") align 4 %3, ptr noundef nonnull align 8 dereferenceable(148) @g_viewPole)
          to label %42 unwind label %61

42:                                               ; preds = %0
  invoke void @_ZN6glutil11MatrixStack9SetMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %2, ptr noundef nonnull align 4 dereferenceable(64) %3)
          to label %43 unwind label %61

43:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  %44 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %4) #6
  invoke void @_ZNK12LightManager22GetLightInformationHDRERKN3glm6detail7tmat4x4IfEE(ptr dead_on_unwind nonnull writable sret(%struct.LightBlockHDR) align 4 %4, ptr noundef nonnull align 8 dereferenceable(240) @g_lights, ptr noundef nonnull align 4 dereferenceable(64) %44)
          to label %45 unwind label %63

45:                                               ; preds = %43
  %46 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  %47 = load i32, ptr @g_lightUniformBuffer, align 4, !tbaa !11
  invoke void %46(i32 noundef 35345, i32 noundef %47)
          to label %48 unwind label %63

48:                                               ; preds = %45
  %49 = load ptr, ptr @_funcptr_glBufferSubData, align 8, !tbaa !5
  invoke void %49(i32 noundef 35345, i64 noundef 0, i64 noundef 160, ptr noundef nonnull %4)
          to label %50 unwind label %63

50:                                               ; preds = %48
  %51 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  invoke void %51(i32 noundef 35345, i32 noundef 0)
          to label %52 unwind label %63

52:                                               ; preds = %50
  %53 = load ptr, ptr @g_pScene, align 8, !tbaa !5
  %.not = icmp eq ptr %53, null
  br i1 %.not, label %73, label %54

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %55 unwind label %65

55:                                               ; preds = %54
  %56 = load ptr, ptr @g_pScene, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.18, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %57 unwind label %67

57:                                               ; preds = %55
  %58 = invoke noundef float @_ZNK12LightManager13GetTimerValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(240) @g_lights, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %59 unwind label %69

59:                                               ; preds = %57
  invoke void @_ZN5Scene4DrawERN6glutil11MatrixStackEif(ptr noundef nonnull align 8 dereferenceable(48) %56, ptr noundef nonnull align 8 dereferenceable(88) %2, i32 noundef 0, float noundef %58)
          to label %60 unwind label %69

60:                                               ; preds = %59
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %73

61:                                               ; preds = %42, %0
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  br label %229

63:                                               ; preds = %224, %223, %50, %48, %45, %43
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %228

65:                                               ; preds = %54
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %72

67:                                               ; preds = %55
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %71

69:                                               ; preds = %59, %57
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %71

71:                                               ; preds = %69, %67
  %.pn = phi { ptr, i32 } [ %70, %69 ], [ %68, %67 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br label %72

72:                                               ; preds = %71, %65
  %.pn.pn = phi { ptr, i32 } [ %.pn, %71 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %228

73:                                               ; preds = %60, %52
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %74 unwind label %103

74:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %75 unwind label %105

75:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  invoke void @_ZNK12LightManager20GetSunlightDirectionEv(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %11, ptr noundef nonnull align 8 dereferenceable(240) @g_lights)
          to label %76 unwind label %107

76:                                               ; preds = %75
  call void @_ZN3glm6detail5tvec3IfEC2IfEERKNS0_5tvec4IT_EE(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  store float 5.000000e+02, ptr %13, align 4, !tbaa !9
  invoke void @_ZN3glm6detailmlIfEENS0_5tvec3IT_EERKS4_RKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %77 unwind label %109

77:                                               ; preds = %76
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %2, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %78 unwind label %109

78:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #6
  invoke void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88) %2, float noundef 3.000000e+01, float noundef 3.000000e+01, float noundef 3.000000e+01)
          to label %79 unwind label %111

79:                                               ; preds = %78
  %80 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %81 = load i32, ptr @g_Unlit, align 4, !tbaa !13
  invoke void %80(i32 noundef %81)
          to label %82 unwind label %111

82:                                               ; preds = %79
  %83 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 12), align 4, !tbaa !15
  %85 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %86 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %85)
          to label %87 unwind label %111

87:                                               ; preds = %82
  invoke void %83(i32 noundef %84, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %86)
          to label %88 unwind label %111

88:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  invoke void @_ZNK12LightManager20GetSunlightIntensityEv(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %14, ptr noundef nonnull align 8 dereferenceable(240) @g_lights)
          to label %89 unwind label %113

89:                                               ; preds = %88
  %90 = load ptr, ptr @_funcptr_glUniform4fv, align 8, !tbaa !5
  %91 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 4), align 4, !tbaa !16
  %92 = call noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %14)
  invoke void %90(i32 noundef %91, i32 noundef 1, ptr noundef %92)
          to label %93 unwind label %113

93:                                               ; preds = %89
  %94 = load ptr, ptr @g_pScene, align 8, !tbaa !5
  %95 = call noundef ptr @_ZN5Scene13GetSphereMeshEv(ptr noundef nonnull align 8 dereferenceable(48) %94)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %96 unwind label %115

96:                                               ; preds = %93
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %97 unwind label %117

97:                                               ; preds = %96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  %98 = load i8, ptr @g_bDrawLights, align 1, !tbaa !17, !range !19, !noundef !20
  %99 = trunc nuw i8 %98 to i1
  br i1 %99, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %97, %146
  %.0 = phi i32 [ %147, %146 ], [ 0, %97 ]
  %100 = invoke noundef i32 @_ZNK12LightManager22GetNumberOfPointLightsEv(ptr noundef nonnull align 8 dereferenceable(240) @g_lights)
          to label %101 unwind label %123

101:                                              ; preds = %.preheader
  %102 = icmp slt i32 %.0, %100
  br i1 %102, label %125, label %.loopexit

103:                                              ; preds = %73
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %227

105:                                              ; preds = %74
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %122

107:                                              ; preds = %75
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %121

109:                                              ; preds = %77, %76
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #6
  br label %121

111:                                              ; preds = %87, %82, %79, %78
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %121

113:                                              ; preds = %89, %88
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %120

115:                                              ; preds = %93
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %119

117:                                              ; preds = %96
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %119

119:                                              ; preds = %117, %115
  %.pn29 = phi { ptr, i32 } [ %118, %117 ], [ %116, %115 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  br label %120

120:                                              ; preds = %119, %113
  %.pn29.pn = phi { ptr, i32 } [ %.pn29, %119 ], [ %114, %113 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %121

121:                                              ; preds = %120, %111, %109, %107
  %.pn29.pn.pn = phi { ptr, i32 } [ %.pn29.pn, %120 ], [ %112, %111 ], [ %110, %109 ], [ %108, %107 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %122

122:                                              ; preds = %121, %105
  %.pn29.pn.pn.pn = phi { ptr, i32 } [ %.pn29.pn.pn, %121 ], [ %106, %105 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %226

123:                                              ; preds = %.preheader
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %226

125:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %126 unwind label %148

126:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #6
  invoke void @_ZNK12LightManager21GetWorldLightPositionEi(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec3") align 4 %18, ptr noundef nonnull align 8 dereferenceable(240) @g_lights, i32 noundef %.0)
          to label %127 unwind label %150

127:                                              ; preds = %126
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %2, ptr noundef nonnull align 4 dereferenceable(12) %18)
          to label %128 unwind label %150

128:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #6
  %129 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %130 = load i32, ptr @g_Unlit, align 4, !tbaa !13
  invoke void %129(i32 noundef %130)
          to label %131 unwind label %152

131:                                              ; preds = %128
  %132 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %133 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 12), align 4, !tbaa !15
  %134 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %135 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %134)
          to label %136 unwind label %152

136:                                              ; preds = %131
  invoke void %132(i32 noundef %133, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %135)
          to label %137 unwind label %152

137:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  invoke void @_ZNK12LightManager22GetPointLightIntensityEi(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %19, ptr noundef nonnull align 8 dereferenceable(240) @g_lights, i32 noundef %.0)
          to label %138 unwind label %154

138:                                              ; preds = %137
  %139 = load ptr, ptr @_funcptr_glUniform4fv, align 8, !tbaa !5
  %140 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 4), align 4, !tbaa !16
  %141 = call noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %19)
  invoke void %139(i32 noundef %140, i32 noundef 1, ptr noundef %141)
          to label %142 unwind label %154

142:                                              ; preds = %138
  %143 = load ptr, ptr @g_pScene, align 8, !tbaa !5
  %144 = call noundef ptr @_ZN5Scene11GetCubeMeshEv(ptr noundef nonnull align 8 dereferenceable(48) %143)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %145 unwind label %156

145:                                              ; preds = %142
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %146 unwind label %158

146:                                              ; preds = %145
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  %147 = add nuw nsw i32 %.0, 1
  br label %.preheader, !llvm.loop !21

148:                                              ; preds = %125
  %149 = landingpad { ptr, i32 }
          cleanup
  br label %163

150:                                              ; preds = %127, %126
  %151 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #6
  br label %162

152:                                              ; preds = %136, %131, %128
  %153 = landingpad { ptr, i32 }
          cleanup
  br label %162

154:                                              ; preds = %138, %137
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %161

156:                                              ; preds = %142
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %160

158:                                              ; preds = %145
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %160

160:                                              ; preds = %158, %156
  %.pn40 = phi { ptr, i32 } [ %159, %158 ], [ %157, %156 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  br label %161

161:                                              ; preds = %160, %154
  %.pn40.pn = phi { ptr, i32 } [ %.pn40, %160 ], [ %155, %154 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  br label %162

162:                                              ; preds = %161, %152, %150
  %.pn40.pn.pn = phi { ptr, i32 } [ %.pn40.pn, %161 ], [ %153, %152 ], [ %151, %150 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %163

163:                                              ; preds = %162, %148
  %.pn40.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn, %162 ], [ %149, %148 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %226

.loopexit:                                        ; preds = %101, %97
  %164 = load i8, ptr @g_bDrawCameraPos, align 1, !tbaa !17, !range !19, !noundef !20
  %165 = trunc nuw i8 %164 to i1
  br i1 %165, label %166, label %223

166:                                              ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %167 unwind label %205

167:                                              ; preds = %166
  invoke void @_ZN6glutil11MatrixStack11SetIdentityEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %168 unwind label %207

168:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #6
  store float 0.000000e+00, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #6
  store float 0.000000e+00, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #6
  %169 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNK6glutil8ViewPole7GetViewEv(ptr noundef nonnull align 8 dereferenceable(148) @g_viewPole)
  %170 = getelementptr inbounds i8, ptr %169, i64 28
  %171 = load float, ptr %170, align 4, !tbaa !23
  %172 = fneg float %171
  store float %172, ptr %26, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %2, ptr noundef nonnull align 4 dereferenceable(12) %23)
          to label %173 unwind label %209

173:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #6
  %174 = load ptr, ptr @_funcptr_glDisable, align 8, !tbaa !5
  invoke void %174(i32 noundef 2929)
          to label %175 unwind label %207

175:                                              ; preds = %173
  %176 = load ptr, ptr @_funcptr_glDepthMask, align 8, !tbaa !5
  invoke void %176(i8 noundef zeroext 0)
          to label %177 unwind label %207

177:                                              ; preds = %175
  %178 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %179 = load i32, ptr @g_Unlit, align 4, !tbaa !13
  invoke void %178(i32 noundef %179)
          to label %180 unwind label %207

180:                                              ; preds = %177
  %181 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %182 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 12), align 4, !tbaa !15
  %183 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %184 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %183)
          to label %185 unwind label %207

185:                                              ; preds = %180
  invoke void %181(i32 noundef %182, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %184)
          to label %186 unwind label %207

186:                                              ; preds = %185
  %187 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %188 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 4), align 4, !tbaa !16
  invoke void %187(i32 noundef %188, float noundef 2.500000e-01, float noundef 2.500000e-01, float noundef 2.500000e-01, float noundef 1.000000e+00)
          to label %189 unwind label %207

189:                                              ; preds = %186
  %190 = load ptr, ptr @g_pScene, align 8, !tbaa !5
  %191 = call noundef ptr @_ZN5Scene11GetCubeMeshEv(ptr noundef nonnull align 8 dereferenceable(48) %190)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %27) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %28) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %192 unwind label %211

192:                                              ; preds = %189
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %193 unwind label %213

193:                                              ; preds = %192
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #6
  %194 = load ptr, ptr @_funcptr_glDepthMask, align 8, !tbaa !5
  invoke void %194(i8 noundef zeroext 1)
          to label %195 unwind label %207

195:                                              ; preds = %193
  %196 = load ptr, ptr @_funcptr_glEnable, align 8, !tbaa !5
  invoke void %196(i32 noundef 2929)
          to label %197 unwind label %207

197:                                              ; preds = %195
  %198 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %199 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 4), align 4, !tbaa !16
  invoke void %198(i32 noundef %199, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %200 unwind label %207

200:                                              ; preds = %197
  %201 = load ptr, ptr @g_pScene, align 8, !tbaa !5
  %202 = call noundef ptr @_ZN5Scene11GetCubeMeshEv(ptr noundef nonnull align 8 dereferenceable(48) %201)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %29) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %30) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %203 unwind label %216

203:                                              ; preds = %200
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %202, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %204 unwind label %218

204:                                              ; preds = %203
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  br label %223

205:                                              ; preds = %166
  %206 = landingpad { ptr, i32 }
          cleanup
  br label %222

207:                                              ; preds = %197, %195, %193, %186, %185, %180, %177, %175, %173, %167
  %208 = landingpad { ptr, i32 }
          cleanup
  br label %221

209:                                              ; preds = %168
  %210 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #6
  br label %221

211:                                              ; preds = %189
  %212 = landingpad { ptr, i32 }
          cleanup
  br label %215

213:                                              ; preds = %192
  %214 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  br label %215

215:                                              ; preds = %213, %211
  %.pn34 = phi { ptr, i32 } [ %214, %213 ], [ %212, %211 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #6
  br label %221

216:                                              ; preds = %200
  %217 = landingpad { ptr, i32 }
          cleanup
  br label %220

218:                                              ; preds = %203
  %219 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  br label %220

220:                                              ; preds = %218, %216
  %.pn36 = phi { ptr, i32 } [ %219, %218 ], [ %217, %216 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #6
  br label %221

221:                                              ; preds = %220, %215, %209, %207
  %.pn36.pn = phi { ptr, i32 } [ %.pn36, %220 ], [ %208, %207 ], [ %.pn34, %215 ], [ %210, %209 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br label %222

222:                                              ; preds = %221, %205
  %.pn36.pn.pn = phi { ptr, i32 } [ %.pn36.pn, %221 ], [ %206, %205 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  br label %226

223:                                              ; preds = %204, %.loopexit
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  invoke void @glutPostRedisplay()
          to label %224 unwind label %63

224:                                              ; preds = %223
  invoke void @glutSwapBuffers()
          to label %225 unwind label %63

225:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %4) #6
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %2) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #6
  ret void

226:                                              ; preds = %123, %163, %222, %122
  %.pn40.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn36.pn.pn, %222 ], [ %.pn29.pn.pn.pn, %122 ], [ %.pn40.pn.pn.pn, %163 ], [ %124, %123 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %227

227:                                              ; preds = %226, %103
  %.pn40.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn, %226 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %228

228:                                              ; preds = %227, %72, %63
  %.pn40.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn.pn, %227 ], [ %64, %63 ], [ %.pn.pn, %72 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %4) #6
  br label %229

229:                                              ; preds = %228, %61
  %.pn40.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn.pn.pn, %228 ], [ %62, %61 ]
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %2) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn40.pn.pn.pn.pn.pn.pn.pn.pn
}

declare void @_ZN12LightManager10UpdateTimeEv(ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #4

declare void @_ZNK12LightManager18GetBackgroundColorEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm6detail5tvec4IfEixEm(ptr noundef nonnull align 4 dereferenceable(16), i64 noundef) local_unnamed_addr #5 align 2

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

declare void @_ZN6glutil11MatrixStack9SetMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #4

declare void @_ZNK6glutil8ViewPole10CalcMatrixEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat4x4") align 4, ptr noundef nonnull align 8 dereferenceable(148)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1 align 2

declare void @_ZNK12LightManager22GetLightInformationHDRERKN3glm6detail7tmat4x4IfEE(ptr dead_on_unwind writable sret(%struct.LightBlockHDR) align 4, ptr noundef nonnull align 8 dereferenceable(240), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #4

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

declare void @_ZN5Scene4DrawERN6glutil11MatrixStackEif(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, float noundef) local_unnamed_addr #4

declare noundef float @_ZNK12LightManager13GetTimerValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(240), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

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

declare void @_ZNK12LightManager20GetSunlightDirectionEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm6detail5tvec3IfEC2IfEERKNS0_5tvec4IT_EE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #3 align 2

declare void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6detailmlIfEENS0_5tvec3IT_EERKS4_RKS3_(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #5

declare void @_ZNK12LightManager20GetSunlightIntensityEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

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

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

declare noundef i32 @_ZNK12LightManager22GetNumberOfPointLightsEv(ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #4

declare void @_ZNK12LightManager21GetWorldLightPositionEi(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec3") align 4, ptr noundef nonnull align 8 dereferenceable(240), i32 noundef) local_unnamed_addr #4

declare void @_ZNK12LightManager22GetPointLightIntensityEi(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 8 dereferenceable(240), i32 noundef) local_unnamed_addr #4

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

declare void @_ZN6glutil11MatrixStack11SetIdentityEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZNK6glutil8ViewPole7GetViewEv(ptr noundef nonnull align 8 dereferenceable(148)) local_unnamed_addr #1 align 2

declare void @glutPostRedisplay() local_unnamed_addr #4

declare void @glutSwapBuffers() local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #3 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

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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS13UnlitProgData", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!15 = !{!14, !12, i64 12}
!16 = !{!14, !12, i64 4}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !10, i64 28}
!24 = !{!"_ZTSN6glutil8ViewDataE", !25, i64 0, !26, i64 12, !10, i64 28, !10, i64 32}
!25 = !{!"_ZTSN3glm6detail5tvec3IfEE", !7, i64 0}
!26 = !{!"_ZTSN3glm6detail5tquatIfEE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}


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