; LLVM IR from paroj/gltut :: Tut 10 Plane Lights/FragmentPointLighting.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.ProgramData = type { i32, i32, i32, i32, i32 }
%struct.UnlitProgData = type { i32, i32, i32 }
%"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.3 }
%union.anon.3 = type { %struct.anon }
%struct.anon = type { float, float, float }
%"struct.glm::detail::tvec2" = type { %union.anon.6 }
%union.anon.6 = type { %struct.anon.7 }
%struct.anon.7 = type { i32, i32 }
%"struct.glm::detail::tquat" = type { float, float, float, float }
%"class.glutil::ObjectPole" = type { ptr, %"struct.glutil::ObjectData", %"struct.glutil::ObjectData", float, i32, i32, i8, %"struct.glm::detail::tvec2", %"struct.glm::detail::tvec2", %"struct.glm::detail::tquat" }
%"struct.glutil::ObjectData" = type { %"struct.glm::detail::tvec3", %"struct.glm::detail::tquat" }
%"class.Framework::Timer" = type { i32, float, i8, i8, float, float }
%"struct.glm::detail::tvec4" = type { %union.anon.10 }
%union.anon.10 = type { %struct.anon.11 }
%struct.anon.11 = type { float, float, float, float }
%"class.glutil::MatrixStack" = type { %"class.std::stack", %"struct.glm::detail::tmat4x4" }
%"class.std::stack" = type { %"class.std::vector.14" }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = 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"] }
%"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_WhiteDiffuseColor = external dso_local global %struct.ProgramData, align 4
@g_VertexDiffuseColor = external dso_local global %struct.ProgramData, align 4
@g_FragWhiteDiffuseColor = external dso_local global %struct.ProgramData, align 4
@g_FragVertexDiffuseColor = external dso_local global %struct.ProgramData, align 4
@g_Unlit = external dso_local global %struct.UnlitProgData, align 4
@g_pCylinderMesh = external dso_local global ptr, align 8
@g_pPlaneMesh = external dso_local global ptr, align 8
@g_pCubeMesh = external dso_local global ptr, align 8
@g_viewPole = external dso_local global %"class.glutil::ViewPole", align 8
@g_objtPole = external dso_local global %"class.glutil::ObjectPole", align 8
@g_LightTimer = external dso_local global %"class.Framework::Timer", align 4
@_funcptr_glClearColor = external global ptr, align 8
@_funcptr_glClearDepth = external global ptr, align 8
@_funcptr_glClear = external global ptr, align 8
@_ZL22g_bUseFragmentLighting = external hidden global i8, align 1
@_funcptr_glUseProgram = external global ptr, align 8
@_funcptr_glUniform4f = external global ptr, align 8
@_funcptr_glUniformMatrix4fv = external global ptr, align 8
@_funcptr_glUniform3fv = external global ptr, align 8
@_ZL11g_bScaleCyl = external hidden global i8, align 1
@_ZL17g_bDrawColoredCyl = external hidden global i8, align 1
@.str.22 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZL12g_bDrawLight = external hidden global i8, align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1

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

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: mustprogress uwtable
declare dso_local void @_Z17CalcLightPositionv(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec4") align 4) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7displayv() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.glutil::MatrixStack", align 8
  %2 = alloca %"struct.glm::detail::tmat4x4", align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.glm::detail::tvec4", align 4
  %7 = alloca %"struct.glm::detail::tvec4", align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.glutil::PushStack", align 8
  %11 = alloca %"class.glutil::PushStack", align 8
  %12 = alloca %"struct.glm::detail::tmat4x4", align 4
  %13 = alloca %"struct.glm::detail::tvec4", align 4
  %14 = alloca %"class.glutil::PushStack", align 8
  %15 = alloca %"struct.glm::detail::tmat4x4", align 4
  %16 = alloca %"struct.glm::detail::tmat4x4", 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 %"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 %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator.0", align 1
  %26 = call noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20) @g_LightTimer)
  %27 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  call void %27(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %28 = load ptr, ptr @_funcptr_glClearDepth, align 8, !tbaa !5
  call void %28(double noundef 1.000000e+00)
  %29 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  call void %29(i32 noundef 16640)
  %30 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %316

32:                                               ; preds = %0
  %33 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %316

35:                                               ; preds = %32
  %36 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %316

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 88, ptr %1) #6
  call void @_ZN6glutil11MatrixStackC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %1)
  call void @llvm.lifetime.start.p0(i64 64, ptr %2) #6
  invoke void @_ZNK6glutil8ViewPole10CalcMatrixEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat4x4") align 4 %2, ptr noundef nonnull align 8 dereferenceable(148) @g_viewPole)
          to label %39 unwind label %49

39:                                               ; preds = %38
  invoke void @_ZN6glutil11MatrixStack9SetMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(64) %2)
          to label %40 unwind label %49

40:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  invoke void @_Z17CalcLightPositionv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %6)
          to label %41 unwind label %53

41:                                               ; preds = %40
  store ptr %6, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  %42 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %43 unwind label %57

43:                                               ; preds = %41
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %7, ptr noundef nonnull align 4 dereferenceable(64) %42, ptr noundef nonnull align 4 dereferenceable(16) %44)
          to label %45 unwind label %57

45:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store ptr null, ptr %9, align 8, !tbaa !5
  %46 = load i8, ptr @_ZL22g_bUseFragmentLighting, align 1, !tbaa !9, !range !11, !noundef !12
  %47 = trunc i8 %46 to i1
  br i1 %47, label %48, label %61

48:                                               ; preds = %45
  store ptr @g_FragWhiteDiffuseColor, ptr %8, align 8, !tbaa !5
  store ptr @g_FragVertexDiffuseColor, ptr %9, align 8, !tbaa !5
  br label %62

49:                                               ; preds = %39, %38
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %3, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #6
  br label %315

53:                                               ; preds = %40
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %3, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %4, align 4
  br label %314

57:                                               ; preds = %43, %41
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %3, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %4, align 4
  br label %313

61:                                               ; preds = %45
  store ptr @g_WhiteDiffuseColor, ptr %8, align 8, !tbaa !5
  store ptr @g_VertexDiffuseColor, ptr %9, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %61, %48
  %63 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ProgramData, ptr %64, i32 0, i32 0
  %66 = load i32, ptr %65, align 4, !tbaa !13
  invoke void %63(i32 noundef %66)
          to label %67 unwind label %133

67:                                               ; preds = %62
  %68 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ProgramData, ptr %69, i32 0, i32 2
  %71 = load i32, ptr %70, align 4, !tbaa !16
  invoke void %68(i32 noundef %71, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 1.000000e+00)
          to label %72 unwind label %133

72:                                               ; preds = %67
  %73 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ProgramData, ptr %74, i32 0, i32 3
  %76 = load i32, ptr %75, align 4, !tbaa !17
  invoke void %73(i32 noundef %76, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 1.000000e+00)
          to label %77 unwind label %133

77:                                               ; preds = %72
  %78 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ProgramData, ptr %79, i32 0, i32 0
  %81 = load i32, ptr %80, align 4, !tbaa !13
  invoke void %78(i32 noundef %81)
          to label %82 unwind label %133

82:                                               ; preds = %77
  %83 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.ProgramData, ptr %84, i32 0, i32 2
  %86 = load i32, ptr %85, align 4, !tbaa !16
  invoke void %83(i32 noundef %86, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 1.000000e+00)
          to label %87 unwind label %133

87:                                               ; preds = %82
  %88 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ProgramData, ptr %89, i32 0, i32 3
  %91 = load i32, ptr %90, align 4, !tbaa !17
  invoke void %88(i32 noundef %91, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 1.000000e+00)
          to label %92 unwind label %133

92:                                               ; preds = %87
  %93 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %93(i32 noundef 0)
          to label %94 unwind label %133

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

95:                                               ; preds = %94
  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) %1)
          to label %96 unwind label %141

96:                                               ; preds = %95
  %97 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ProgramData, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 4, !tbaa !13
  invoke void %97(i32 noundef %100)
          to label %101 unwind label %145

101:                                              ; preds = %96
  %102 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ProgramData, ptr %103, i32 0, i32 4
  %105 = load i32, ptr %104, align 4, !tbaa !18
  %106 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %107 unwind label %145

107:                                              ; preds = %101
  %108 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %106)
          to label %109 unwind label %145

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

110:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #6
  %111 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %112 unwind label %149

112:                                              ; preds = %110
  invoke void @_ZN3glm7inverseIfEENS_6detail7tmat4x4IT_EERKS4_(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat4x4") align 4 %12, ptr noundef nonnull align 4 dereferenceable(64) %111)
          to label %113 unwind label %149

113:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  invoke void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %13, ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(16) %7)
          to label %114 unwind label %153

114:                                              ; preds = %113
  %115 = load ptr, ptr @_funcptr_glUniform3fv, align 8, !tbaa !5
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.ProgramData, ptr %116, i32 0, i32 1
  %118 = load i32, ptr %117, align 4, !tbaa !19
  %119 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %13)
          to label %120 unwind label %153

120:                                              ; preds = %114
  invoke void %115(i32 noundef %118, i32 noundef 1, ptr noundef %119)
          to label %121 unwind label %153

121:                                              ; preds = %120
  %122 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  invoke void @_ZNK9Framework4Mesh6RenderEv(ptr noundef nonnull align 8 dereferenceable(8) %122)
          to label %123 unwind label %153

123:                                              ; preds = %121
  %124 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %124(i32 noundef 0)
          to label %125 unwind label %153

125:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %126 unwind label %160

126:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #6
  invoke void @_ZNK6glutil10ObjectPole10CalcMatrixEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat4x4") align 4 %15, ptr noundef nonnull align 8 dereferenceable(112) @g_objtPole)
          to label %127 unwind label %164

127:                                              ; preds = %126
  invoke void @_ZN6glutil11MatrixStack11ApplyMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(64) %15)
          to label %128 unwind label %164

128:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #6
  %129 = load i8, ptr @_ZL11g_bScaleCyl, align 1, !tbaa !9, !range !11, !noundef !12
  %130 = trunc i8 %129 to i1
  br i1 %130, label %131, label %172

131:                                              ; preds = %128
  invoke void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88) %1, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3FC99999A0000000)
          to label %132 unwind label %168

132:                                              ; preds = %131
  br label %172

133:                                              ; preds = %92, %87, %82, %77, %72, %67, %62
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %3, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %4, align 4
  br label %312

137:                                              ; preds = %94
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %3, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %4, align 4
  br label %311

141:                                              ; preds = %95
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %3, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %4, align 4
  br label %159

145:                                              ; preds = %109, %107, %101, %96
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %3, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %4, align 4
  br label %158

149:                                              ; preds = %112, %110
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %3, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %4, align 4
  br label %157

153:                                              ; preds = %123, %121, %120, %114, %113
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %3, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %157

157:                                              ; preds = %153, %149
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #6
  br label %158

158:                                              ; preds = %157, %145
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %159

159:                                              ; preds = %158, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %310

160:                                              ; preds = %125
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %3, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %4, align 4
  br label %285

164:                                              ; preds = %127, %126
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %3, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #6
  br label %284

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

172:                                              ; preds = %132, %128
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #6
  %173 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %174 unwind label %204

174:                                              ; preds = %172
  invoke void @_ZN3glm7inverseIfEENS_6detail7tmat4x4IT_EERKS4_(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat4x4") align 4 %16, ptr noundef nonnull align 4 dereferenceable(64) %173)
          to label %175 unwind label %204

175:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  invoke void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %17, ptr noundef nonnull align 4 dereferenceable(64) %16, ptr noundef nonnull align 4 dereferenceable(16) %7)
          to label %176 unwind label %208

176:                                              ; preds = %175
  %177 = load i8, ptr @_ZL17g_bDrawColoredCyl, align 1, !tbaa !9, !range !11, !noundef !12
  %178 = trunc i8 %177 to i1
  br i1 %178, label %179, label %221

179:                                              ; preds = %176
  %180 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.ProgramData, ptr %181, i32 0, i32 0
  %183 = load i32, ptr %182, align 4, !tbaa !13
  invoke void %180(i32 noundef %183)
          to label %184 unwind label %208

184:                                              ; preds = %179
  %185 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.ProgramData, ptr %186, i32 0, i32 4
  %188 = load i32, ptr %187, align 4, !tbaa !18
  %189 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %190 unwind label %208

190:                                              ; preds = %184
  %191 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %189)
          to label %192 unwind label %208

192:                                              ; preds = %190
  invoke void %185(i32 noundef %188, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %191)
          to label %193 unwind label %208

193:                                              ; preds = %192
  %194 = load ptr, ptr @_funcptr_glUniform3fv, align 8, !tbaa !5
  %195 = load ptr, ptr %9, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.ProgramData, ptr %195, i32 0, i32 1
  %197 = load i32, ptr %196, align 4, !tbaa !19
  %198 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %17)
          to label %199 unwind label %208

199:                                              ; preds = %193
  invoke void %194(i32 noundef %197, i32 noundef 1, ptr noundef %198)
          to label %200 unwind label %208

200:                                              ; preds = %199
  %201 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  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.22, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %202 unwind label %212

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

203:                                              ; preds = %202
  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
  br label %255

204:                                              ; preds = %174, %172
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %3, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %4, align 4
  br label %283

208:                                              ; preds = %255, %241, %235, %234, %232, %226, %221, %199, %193, %192, %190, %184, %179, %175
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %3, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %4, align 4
  br label %282

212:                                              ; preds = %200
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %3, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %4, align 4
  br label %220

216:                                              ; preds = %202
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %3, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %4, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %220

220:                                              ; preds = %216, %212
  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 %282

221:                                              ; preds = %176
  %222 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %223 = load ptr, ptr %8, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.ProgramData, ptr %223, i32 0, i32 0
  %225 = load i32, ptr %224, align 4, !tbaa !13
  invoke void %222(i32 noundef %225)
          to label %226 unwind label %208

226:                                              ; preds = %221
  %227 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %228 = load ptr, ptr %8, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.ProgramData, ptr %228, i32 0, i32 4
  %230 = load i32, ptr %229, align 4, !tbaa !18
  %231 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %232 unwind label %208

232:                                              ; preds = %226
  %233 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %231)
          to label %234 unwind label %208

234:                                              ; preds = %232
  invoke void %227(i32 noundef %230, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %233)
          to label %235 unwind label %208

235:                                              ; preds = %234
  %236 = load ptr, ptr @_funcptr_glUniform3fv, align 8, !tbaa !5
  %237 = load ptr, ptr %8, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.ProgramData, ptr %237, i32 0, i32 1
  %239 = load i32, ptr %238, align 4, !tbaa !19
  %240 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %17)
          to label %241 unwind label %208

241:                                              ; preds = %235
  invoke void %236(i32 noundef %239, i32 noundef 1, ptr noundef %240)
          to label %242 unwind label %208

242:                                              ; preds = %241
  %243 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %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 @.str.23, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %244 unwind label %246

244:                                              ; preds = %242
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %243, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %245 unwind label %250

245:                                              ; preds = %244
  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 %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  br label %255

246:                                              ; preds = %242
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %3, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %4, align 4
  br label %254

250:                                              ; preds = %244
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %3, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %4, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %254

254:                                              ; preds = %250, %246
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  br label %282

255:                                              ; preds = %245, %203
  %256 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %256(i32 noundef 0)
          to label %257 unwind label %208

257:                                              ; preds = %255
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %258 = load i8, ptr @_ZL12g_bDrawLight, align 1, !tbaa !9, !range !11, !noundef !12
  %259 = trunc i8 %258 to i1
  br i1 %259, label %260, label %309

260:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %261 unwind label %286

261:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #6
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN3glm6detail5tvec3IfEC2IfEERKNS0_5tvec4IT_EE(ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(16) %262)
          to label %263 unwind label %290

263:                                              ; preds = %261
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %23)
          to label %264 unwind label %290

264:                                              ; preds = %263
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #6
  invoke void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88) %1, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000)
          to label %265 unwind label %294

265:                                              ; preds = %264
  %266 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %267 = load i32, ptr @g_Unlit, align 4, !tbaa !20
  invoke void %266(i32 noundef %267)
          to label %268 unwind label %294

268:                                              ; preds = %265
  %269 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %270 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 2), align 4, !tbaa !22
  %271 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %272 unwind label %294

272:                                              ; preds = %268
  %273 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %271)
          to label %274 unwind label %294

274:                                              ; preds = %272
  invoke void %269(i32 noundef %270, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %273)
          to label %275 unwind label %294

275:                                              ; preds = %274
  %276 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %277 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 1), align 4, !tbaa !23
  invoke void %276(i32 noundef %277, float noundef 0x3FE9D97F60000000, float noundef 0x3FEBDBF480000000, float noundef 0x3FEFC01A40000000, float noundef 1.000000e+00)
          to label %278 unwind label %294

278:                                              ; preds = %275
  %279 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  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.24, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %280 unwind label %298

280:                                              ; preds = %278
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %279, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %281 unwind label %302

281:                                              ; preds = %280
  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 @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %309

282:                                              ; preds = %254, %220, %208
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  br label %283

283:                                              ; preds = %282, %204
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #6
  br label %284

284:                                              ; preds = %283, %168, %164
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br label %285

285:                                              ; preds = %284, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %310

286:                                              ; preds = %260
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %3, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %4, align 4
  br label %308

290:                                              ; preds = %263, %261
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %3, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #6
  br label %307

294:                                              ; preds = %275, %274, %272, %268, %265, %264
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %3, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %4, align 4
  br label %307

298:                                              ; preds = %278
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %3, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %4, align 4
  br label %306

302:                                              ; preds = %280
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %3, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %4, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %306

306:                                              ; preds = %302, %298
  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 %307

307:                                              ; preds = %306, %294, %290
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br label %308

308:                                              ; preds = %307, %286
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %310

309:                                              ; preds = %281, %257
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %1) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %1) #6
  br label %316

310:                                              ; preds = %308, %285, %159
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %311

311:                                              ; preds = %310, %137
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %312

312:                                              ; preds = %311, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %313

313:                                              ; preds = %312, %57
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  br label %314

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

315:                                              ; preds = %314, %49
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %1) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %1) #6
  br label %317

316:                                              ; preds = %309, %35, %32, %0
  call void @glutPostRedisplay()
  call void @glutSwapBuffers()
  ret void

317:                                              ; preds = %315
  %318 = load ptr, ptr %3, align 8
  %319 = load i32, ptr %4, align 4
  %320 = insertvalue { ptr, i32 } poison, ptr %318, 0
  %321 = insertvalue { ptr, i32 } %320, i32 %319, 1
  resume { ptr, i32 } %321
}

declare noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20)) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(16)) #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

; 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

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

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

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

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

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

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

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

; 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

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

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

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

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

declare void @glutPostRedisplay() #3

declare void @glutSwapBuffers() #3

; 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS11ProgramData", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!14, !15, i64 12}
!18 = !{!14, !15, i64 16}
!19 = !{!14, !15, i64 4}
!20 = !{!21, !15, i64 0}
!21 = !{!"_ZTS13UnlitProgData", !15, i64 0, !15, i64 4, !15, i64 8}
!22 = !{!21, !15, i64 8}
!23 = !{!21, !15, i64 4}


; 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.ProgramData = type { i32, i32, i32, i32, i32 }
%struct.UnlitProgData = type { i32, i32, i32 }
%"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.3 }
%union.anon.3 = type { %struct.anon }
%struct.anon = type { float, float, float }
%"struct.glm::detail::tvec2" = type { %union.anon.6 }
%union.anon.6 = type { %struct.anon.7 }
%struct.anon.7 = type { i32, i32 }
%"struct.glm::detail::tquat" = type { float, float, float, float }
%"class.glutil::ObjectPole" = type { ptr, %"struct.glutil::ObjectData", %"struct.glutil::ObjectData", float, i32, i32, i8, %"struct.glm::detail::tvec2", %"struct.glm::detail::tvec2", %"struct.glm::detail::tquat" }
%"struct.glutil::ObjectData" = type { %"struct.glm::detail::tvec3", %"struct.glm::detail::tquat" }
%"class.Framework::Timer" = type { i32, float, i8, i8, float, float }
%"struct.glm::detail::tvec4" = type { %union.anon.10 }
%union.anon.10 = type { %struct.anon.11 }
%struct.anon.11 = type { float, float, float, float }
%"class.glutil::MatrixStack" = type { %"class.std::stack", %"struct.glm::detail::tmat4x4" }
%"class.std::stack" = type { %"class.std::vector.14" }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = 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"] }
%"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_WhiteDiffuseColor = external dso_local local_unnamed_addr global %struct.ProgramData, align 4
@g_VertexDiffuseColor = external dso_local local_unnamed_addr global %struct.ProgramData, align 4
@g_FragWhiteDiffuseColor = external dso_local local_unnamed_addr global %struct.ProgramData, align 4
@g_FragVertexDiffuseColor = external dso_local local_unnamed_addr global %struct.ProgramData, align 4
@g_Unlit = external dso_local local_unnamed_addr global %struct.UnlitProgData, align 4
@g_pCylinderMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_pPlaneMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_pCubeMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_viewPole = external dso_local global %"class.glutil::ViewPole", align 8
@g_objtPole = external dso_local global %"class.glutil::ObjectPole", align 8
@g_LightTimer = external dso_local global %"class.Framework::Timer", align 4
@_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
@_ZL22g_bUseFragmentLighting = external hidden local_unnamed_addr global i8, align 1
@_funcptr_glUseProgram = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniform4f = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniformMatrix4fv = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniform3fv = external local_unnamed_addr global ptr, align 8
@_ZL11g_bScaleCyl = external hidden local_unnamed_addr global i8, align 1
@_ZL17g_bDrawColoredCyl = external hidden local_unnamed_addr global i8, align 1
@.str.22 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZL12g_bDrawLight = external hidden local_unnamed_addr global i8, align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1

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

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: mustprogress uwtable
declare dso_local void @_Z17CalcLightPositionv(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec4") align 4) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7displayv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.glutil::MatrixStack", align 8
  %2 = alloca %"struct.glm::detail::tmat4x4", align 4
  %3 = alloca %"struct.glm::detail::tvec4", align 4
  %4 = alloca %"struct.glm::detail::tvec4", align 4
  %5 = alloca %"class.glutil::PushStack", align 8
  %6 = alloca %"class.glutil::PushStack", align 8
  %7 = alloca %"struct.glm::detail::tmat4x4", align 4
  %8 = alloca %"struct.glm::detail::tvec4", align 4
  %9 = alloca %"class.glutil::PushStack", align 8
  %10 = alloca %"struct.glm::detail::tmat4x4", align 4
  %11 = alloca %"struct.glm::detail::tmat4x4", align 4
  %12 = alloca %"struct.glm::detail::tvec4", align 4
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator.0", align 1
  %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 %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator.0", align 1
  %21 = tail call noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20) @g_LightTimer)
  %22 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  tail call void %22(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %23 = load ptr, ptr @_funcptr_glClearDepth, align 8, !tbaa !5
  tail call void %23(double noundef 1.000000e+00)
  %24 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  tail call void %24(i32 noundef 16640)
  %25 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  %27 = load ptr, ptr @g_pCylinderMesh, align 8
  %28 = icmp ne ptr %27, null
  %or.cond = select i1 %26, i1 %28, i1 false
  %29 = load ptr, ptr @g_pCubeMesh, align 8
  %30 = icmp ne ptr %29, null
  %or.cond3 = select i1 %or.cond, i1 %30, i1 false
  br i1 %or.cond3, label %31, label %215

31:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %1) #6
  call void @_ZN6glutil11MatrixStackC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %1)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #6
  invoke void @_ZNK6glutil8ViewPole10CalcMatrixEv(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tmat4x4") align 4 %2, ptr noundef nonnull align 8 dereferenceable(148) @g_viewPole)
          to label %32 unwind label %41

32:                                               ; preds = %31
  invoke void @_ZN6glutil11MatrixStack9SetMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(64) %2)
          to label %33 unwind label %41

33:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  invoke void @_Z17CalcLightPositionv(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %3)
          to label %34 unwind label %43

34:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %35 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  invoke void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %4, ptr noundef nonnull align 4 dereferenceable(64) %35, ptr noundef nonnull align 4 dereferenceable(16) %3)
          to label %36 unwind label %45

36:                                               ; preds = %34
  %37 = load i8, ptr @_ZL22g_bUseFragmentLighting, align 1, !tbaa !9, !range !11, !noundef !12
  %38 = trunc nuw i8 %37 to i1
  %g_FragWhiteDiffuseColor.g_WhiteDiffuseColor = select i1 %38, ptr @g_FragWhiteDiffuseColor, ptr @g_WhiteDiffuseColor
  %g_FragVertexDiffuseColor.g_VertexDiffuseColor = select i1 %38, ptr @g_FragVertexDiffuseColor, ptr @g_VertexDiffuseColor
  %39 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %40 = load i32, ptr %g_FragWhiteDiffuseColor.g_WhiteDiffuseColor, align 4, !tbaa !13
  invoke void %39(i32 noundef %40)
          to label %47 unwind label %95

41:                                               ; preds = %32, %31
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  br label %214

43:                                               ; preds = %33
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %214

45:                                               ; preds = %34
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %213

47:                                               ; preds = %36
  %48 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %.val = load i32, ptr getelementptr inbounds (i8, ptr @g_FragWhiteDiffuseColor, i64 8), align 4
  %.val63 = load i32, ptr getelementptr inbounds (i8, ptr @g_WhiteDiffuseColor, i64 8), align 4
  %49 = select i1 %38, i32 %.val, i32 %.val63
  invoke void %48(i32 noundef %49, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 1.000000e+00)
          to label %50 unwind label %95

50:                                               ; preds = %47
  %51 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %.val64 = load i32, ptr getelementptr inbounds (i8, ptr @g_FragWhiteDiffuseColor, i64 12), align 4
  %.val65 = load i32, ptr getelementptr inbounds (i8, ptr @g_WhiteDiffuseColor, i64 12), align 4
  %52 = select i1 %38, i32 %.val64, i32 %.val65
  invoke void %51(i32 noundef %52, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 1.000000e+00)
          to label %53 unwind label %95

53:                                               ; preds = %50
  %54 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %55 = load i32, ptr %g_FragVertexDiffuseColor.g_VertexDiffuseColor, align 4, !tbaa !13
  invoke void %54(i32 noundef %55)
          to label %56 unwind label %95

56:                                               ; preds = %53
  %57 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %.val66 = load i32, ptr getelementptr inbounds (i8, ptr @g_FragVertexDiffuseColor, i64 8), align 4
  %.val67 = load i32, ptr getelementptr inbounds (i8, ptr @g_VertexDiffuseColor, i64 8), align 4
  %58 = select i1 %38, i32 %.val66, i32 %.val67
  invoke void %57(i32 noundef %58, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 1.000000e+00)
          to label %59 unwind label %95

59:                                               ; preds = %56
  %60 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %.val68 = load i32, ptr getelementptr inbounds (i8, ptr @g_FragVertexDiffuseColor, i64 12), align 4
  %.val69 = load i32, ptr getelementptr inbounds (i8, ptr @g_VertexDiffuseColor, i64 12), align 4
  %61 = select i1 %38, i32 %.val68, i32 %.val69
  invoke void %60(i32 noundef %61, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 1.000000e+00)
          to label %62 unwind label %95

62:                                               ; preds = %59
  %63 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %63(i32 noundef 0)
          to label %64 unwind label %95

64:                                               ; preds = %62
  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) %1)
          to label %65 unwind label %97

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %66 unwind label %99

66:                                               ; preds = %65
  %67 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %68 = load i32, ptr %g_FragWhiteDiffuseColor.g_WhiteDiffuseColor, align 4, !tbaa !13
  invoke void %67(i32 noundef %68)
          to label %69 unwind label %101

69:                                               ; preds = %66
  %70 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %71 = select i1 %38, ptr getelementptr inbounds (i8, ptr @g_FragWhiteDiffuseColor, i64 16), ptr getelementptr inbounds (i8, ptr @g_WhiteDiffuseColor, i64 16)
  %72 = load i32, ptr %71, align 4, !tbaa !16
  %73 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %74 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %73)
          to label %75 unwind label %101

75:                                               ; preds = %69
  invoke void %70(i32 noundef %72, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %74)
          to label %76 unwind label %101

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #6
  %77 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  invoke void @_ZN3glm7inverseIfEENS_6detail7tmat4x4IT_EERKS4_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tmat4x4") align 4 %7, ptr noundef nonnull align 4 dereferenceable(64) %77)
          to label %78 unwind label %103

78:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  invoke void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %8, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef nonnull align 4 dereferenceable(16) %4)
          to label %79 unwind label %105

79:                                               ; preds = %78
  %80 = load ptr, ptr @_funcptr_glUniform3fv, align 8, !tbaa !5
  %81 = select i1 %38, ptr getelementptr inbounds (i8, ptr @g_FragWhiteDiffuseColor, i64 4), ptr getelementptr inbounds (i8, ptr @g_WhiteDiffuseColor, i64 4)
  %82 = load i32, ptr %81, align 4, !tbaa !17
  %83 = call noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %8)
  invoke void %80(i32 noundef %82, i32 noundef 1, ptr noundef %83)
          to label %84 unwind label %105

84:                                               ; preds = %79
  %85 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  invoke void @_ZNK9Framework4Mesh6RenderEv(ptr noundef nonnull align 8 dereferenceable(8) %85)
          to label %86 unwind label %105

86:                                               ; preds = %84
  %87 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %87(i32 noundef 0)
          to label %88 unwind label %105

88:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  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) %1)
          to label %89 unwind label %110

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #6
  invoke void @_ZNK6glutil10ObjectPole10CalcMatrixEv(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tmat4x4") align 4 %10, ptr noundef nonnull align 8 dereferenceable(112) @g_objtPole)
          to label %90 unwind label %112

90:                                               ; preds = %89
  invoke void @_ZN6glutil11MatrixStack11ApplyMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(64) %10)
          to label %91 unwind label %112

91:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #6
  %92 = load i8, ptr @_ZL11g_bScaleCyl, align 1, !tbaa !9, !range !11, !noundef !12
  %93 = trunc nuw i8 %92 to i1
  br i1 %93, label %94, label %116

94:                                               ; preds = %91
  invoke void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88) %1, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3FC99999A0000000)
          to label %116 unwind label %114

95:                                               ; preds = %62, %59, %56, %53, %50, %47, %36
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %213

97:                                               ; preds = %64
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %212

99:                                               ; preds = %65
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %109

101:                                              ; preds = %75, %69, %66
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %108

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

105:                                              ; preds = %86, %84, %79, %78
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %107

107:                                              ; preds = %105, %103
  %.pn = phi { ptr, i32 } [ %106, %105 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #6
  br label %108

108:                                              ; preds = %107, %101
  %.pn.pn = phi { ptr, i32 } [ %.pn, %107 ], [ %102, %101 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %109

109:                                              ; preds = %108, %99
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %108 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %211

110:                                              ; preds = %88
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %196

112:                                              ; preds = %90, %89
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #6
  br label %195

114:                                              ; preds = %94
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %195

116:                                              ; preds = %94, %91
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #6
  %117 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  invoke void @_ZN3glm7inverseIfEENS_6detail7tmat4x4IT_EERKS4_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tmat4x4") align 4 %11, ptr noundef nonnull align 4 dereferenceable(64) %117)
          to label %118 unwind label %139

118:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  invoke void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %12, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef nonnull align 4 dereferenceable(16) %4)
          to label %119 unwind label %141

119:                                              ; preds = %118
  %120 = load i8, ptr @_ZL17g_bDrawColoredCyl, align 1, !tbaa !9, !range !11, !noundef !12
  %121 = trunc nuw i8 %120 to i1
  %122 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  br i1 %121, label %123, label %148

123:                                              ; preds = %119
  %124 = load i32, ptr %g_FragVertexDiffuseColor.g_VertexDiffuseColor, align 4, !tbaa !13
  invoke void %122(i32 noundef %124)
          to label %125 unwind label %141

125:                                              ; preds = %123
  %126 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %.val70 = load i32, ptr getelementptr inbounds (i8, ptr @g_FragVertexDiffuseColor, i64 16), align 4
  %.val71 = load i32, ptr getelementptr inbounds (i8, ptr @g_VertexDiffuseColor, i64 16), align 4
  %127 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %128 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %127)
          to label %129 unwind label %141

129:                                              ; preds = %125
  %130 = select i1 %38, i32 %.val70, i32 %.val71
  invoke void %126(i32 noundef %130, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %128)
          to label %131 unwind label %141

131:                                              ; preds = %129
  %132 = load ptr, ptr @_funcptr_glUniform3fv, align 8, !tbaa !5
  %.val72 = load i32, ptr getelementptr inbounds (i8, ptr @g_FragVertexDiffuseColor, i64 4), align 4
  %.val73 = load i32, ptr getelementptr inbounds (i8, ptr @g_VertexDiffuseColor, i64 4), align 4
  %133 = select i1 %38, i32 %.val72, i32 %.val73
  %134 = call noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %12)
  invoke void %132(i32 noundef %133, i32 noundef 1, ptr noundef %134)
          to label %135 unwind label %141

135:                                              ; preds = %131
  %136 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.22, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %137 unwind label %143

137:                                              ; preds = %135
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %138 unwind label %145

138:                                              ; preds = %137
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %169

139:                                              ; preds = %116
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %194

141:                                              ; preds = %169, %156, %155, %150, %148, %131, %129, %125, %123, %118
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %193

143:                                              ; preds = %135
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %147

145:                                              ; preds = %137
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %147

147:                                              ; preds = %145, %143
  %.pn46 = phi { ptr, i32 } [ %146, %145 ], [ %144, %143 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %193

148:                                              ; preds = %119
  %149 = load i32, ptr %g_FragWhiteDiffuseColor.g_WhiteDiffuseColor, align 4, !tbaa !13
  invoke void %122(i32 noundef %149)
          to label %150 unwind label %141

150:                                              ; preds = %148
  %151 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %152 = load i32, ptr %71, align 4, !tbaa !16
  %153 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %154 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %153)
          to label %155 unwind label %141

155:                                              ; preds = %150
  invoke void %151(i32 noundef %152, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %154)
          to label %156 unwind label %141

156:                                              ; preds = %155
  %157 = load ptr, ptr @_funcptr_glUniform3fv, align 8, !tbaa !5
  %158 = load i32, ptr %81, align 4, !tbaa !17
  %159 = call noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %12)
  invoke void %157(i32 noundef %158, i32 noundef 1, ptr noundef %159)
          to label %160 unwind label %141

160:                                              ; preds = %156
  %161 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  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.23, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %162 unwind label %164

162:                                              ; preds = %160
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %161, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %163 unwind label %166

163:                                              ; preds = %162
  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
  br label %169

164:                                              ; preds = %160
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %168

166:                                              ; preds = %162
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %168

168:                                              ; preds = %166, %164
  %.pn44 = phi { ptr, i32 } [ %167, %166 ], [ %165, %164 ]
  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 %193

169:                                              ; preds = %163, %138
  %170 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %170(i32 noundef 0)
          to label %171 unwind label %141

171:                                              ; preds = %169
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #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
  %172 = load i8, ptr @_ZL12g_bDrawLight, align 1, !tbaa !9, !range !11, !noundef !12
  %173 = trunc nuw i8 %172 to i1
  br i1 %173, label %174, label %210

174:                                              ; preds = %171
  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) %1)
          to label %175 unwind label %197

175:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #6
  call void @_ZN3glm6detail5tvec3IfEC2IfEERKNS0_5tvec4IT_EE(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(16) %3)
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %18)
          to label %176 unwind label %199

176:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #6
  invoke void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88) %1, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000)
          to label %177 unwind label %201

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

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

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

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 !21
  invoke void %187(i32 noundef %188, float noundef 0x3FE9D97F60000000, float noundef 0x3FEBDBF480000000, float noundef 0x3FEFC01A40000000, float noundef 1.000000e+00)
          to label %189 unwind label %201

189:                                              ; preds = %186
  %190 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull @.str.24, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %191 unwind label %203

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

192:                                              ; preds = %191
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 32, 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
  br label %210

193:                                              ; preds = %168, %147, %141
  %.pn48 = phi { ptr, i32 } [ %142, %141 ], [ %.pn46, %147 ], [ %.pn44, %168 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %194

194:                                              ; preds = %193, %139
  %.pn48.pn = phi { ptr, i32 } [ %.pn48, %193 ], [ %140, %139 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #6
  br label %195

195:                                              ; preds = %194, %114, %112
  %.pn48.pn.pn = phi { ptr, i32 } [ %.pn48.pn, %194 ], [ %115, %114 ], [ %113, %112 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %196

196:                                              ; preds = %195, %110
  %.pn48.pn.pn.pn = phi { ptr, i32 } [ %.pn48.pn.pn, %195 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %211

197:                                              ; preds = %174
  %198 = landingpad { ptr, i32 }
          cleanup
  br label %209

199:                                              ; preds = %175
  %200 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #6
  br label %208

201:                                              ; preds = %186, %185, %180, %177, %176
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %208

203:                                              ; preds = %189
  %204 = landingpad { ptr, i32 }
          cleanup
  br label %207

205:                                              ; preds = %191
  %206 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %207

207:                                              ; preds = %205, %203
  %.pn53 = phi { ptr, i32 } [ %206, %205 ], [ %204, %203 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  br label %208

208:                                              ; preds = %207, %201, %199
  %.pn53.pn = phi { ptr, i32 } [ %.pn53, %207 ], [ %202, %201 ], [ %200, %199 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %209

209:                                              ; preds = %208, %197
  %.pn53.pn.pn = phi { ptr, i32 } [ %.pn53.pn, %208 ], [ %198, %197 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %211

210:                                              ; preds = %192, %171
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %1) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %1) #6
  br label %215

211:                                              ; preds = %209, %196, %109
  %.pn53.pn.pn.pn = phi { ptr, i32 } [ %.pn53.pn.pn, %209 ], [ %.pn48.pn.pn.pn, %196 ], [ %.pn.pn.pn, %109 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br label %212

212:                                              ; preds = %211, %97
  %.pn53.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn53.pn.pn.pn, %211 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %213

213:                                              ; preds = %95, %212, %45
  %.pn53.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %46, %45 ], [ %.pn53.pn.pn.pn.pn, %212 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %214

214:                                              ; preds = %43, %213, %41
  %.pn53.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %42, %41 ], [ %.pn53.pn.pn.pn.pn.pn.pn, %213 ], [ %44, %43 ]
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %1) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn53.pn.pn.pn.pn.pn.pn.pn.pn

215:                                              ; preds = %210, %0
  call void @glutPostRedisplay()
  call void @glutSwapBuffers()
  ret void
}

declare noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(16)) local_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

; 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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm7inverseIfEENS_6detail7tmat4x4IT_EERKS4_(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tmat4x4") align 4, ptr noundef nonnull align 4 dereferenceable(64)) 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 #5

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

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

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

declare void @_ZNK6glutil10ObjectPole10CalcMatrixEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat4x4") align 4, ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #3

; 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

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

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

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

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

declare void @glutPostRedisplay() local_unnamed_addr #3

declare void @glutSwapBuffers() local_unnamed_addr #3

; 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS11ProgramData", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !15, i64 16}
!17 = !{!14, !15, i64 4}
!18 = !{!19, !15, i64 0}
!19 = !{!"_ZTS13UnlitProgData", !15, i64 0, !15, i64 4, !15, i64 8}
!20 = !{!19, !15, i64 8}
!21 = !{!19, !15, i64 4}


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