; LLVM IR from paroj/gltut :: Tut 10 Plane Lights/VertexPointLighting.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, 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 }
%"struct.glm::detail::tmat3x3" = type { [3 x %"struct.glm::detail::tvec3"] }
%"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_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
@_funcptr_glUseProgram = external global ptr, align 8
@_funcptr_glUniform3fv = external global ptr, align 8
@_funcptr_glUniform4f = external global ptr, align 8
@_funcptr_glUniformMatrix4fv = external global ptr, align 8
@_funcptr_glUniformMatrix3fv = external global ptr, align 8
@_ZL17g_bDrawColoredCyl = external hidden global i8, align 1
@.str.20 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZL12g_bDrawLight = external hidden global i8, align 1
@.str.22 = 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 %"class.glutil::PushStack", align 8
  %9 = alloca %"class.glutil::PushStack", align 8
  %10 = alloca %"struct.glm::detail::tmat3x3", align 4
  %11 = alloca %"class.glutil::PushStack", align 8
  %12 = alloca %"struct.glm::detail::tmat4x4", align 4
  %13 = alloca %"struct.glm::detail::tmat3x3", align 4
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator.0", align 1
  %16 = alloca %"struct.glm::detail::tmat3x3", align 4
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator.0", align 1
  %19 = alloca %"class.glutil::PushStack", align 8
  %20 = alloca %"struct.glm::detail::tvec3", align 4
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator.0", align 1
  %23 = call noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20) @g_LightTimer)
  %24 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  call void %24(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %25 = load ptr, ptr @_funcptr_glClearDepth, align 8, !tbaa !5
  call void %25(double noundef 1.000000e+00)
  %26 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  call void %26(i32 noundef 16640)
  %27 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %280

29:                                               ; preds = %0
  %30 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %280

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

35:                                               ; preds = %32
  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 %36 unwind label %130

36:                                               ; preds = %35
  invoke void @_ZN6glutil11MatrixStack9SetMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(64) %2)
          to label %37 unwind label %130

37:                                               ; preds = %36
  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 %38 unwind label %134

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

40:                                               ; preds = %38
  %41 = 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) %39, ptr noundef nonnull align 4 dereferenceable(16) %41)
          to label %42 unwind label %138

42:                                               ; preds = %40
  %43 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %44 = load i32, ptr @g_WhiteDiffuseColor, align 4, !tbaa !9
  invoke void %43(i32 noundef %44)
          to label %45 unwind label %138

45:                                               ; preds = %42
  %46 = load ptr, ptr @_funcptr_glUniform3fv, align 8, !tbaa !5
  %47 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @g_WhiteDiffuseColor, i32 0, i32 1), align 4, !tbaa !12
  %48 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %7)
          to label %49 unwind label %138

49:                                               ; preds = %45
  invoke void %46(i32 noundef %47, i32 noundef 1, ptr noundef %48)
          to label %50 unwind label %138

50:                                               ; preds = %49
  %51 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %52 = load i32, ptr @g_VertexDiffuseColor, align 4, !tbaa !9
  invoke void %51(i32 noundef %52)
          to label %53 unwind label %138

53:                                               ; preds = %50
  %54 = load ptr, ptr @_funcptr_glUniform3fv, align 8, !tbaa !5
  %55 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @g_VertexDiffuseColor, i32 0, i32 1), align 4, !tbaa !12
  %56 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %7)
          to label %57 unwind label %138

57:                                               ; preds = %53
  invoke void %54(i32 noundef %55, i32 noundef 1, ptr noundef %56)
          to label %58 unwind label %138

58:                                               ; preds = %57
  %59 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %60 = load i32, ptr @g_WhiteDiffuseColor, align 4, !tbaa !9
  invoke void %59(i32 noundef %60)
          to label %61 unwind label %138

61:                                               ; preds = %58
  %62 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %63 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @g_WhiteDiffuseColor, i32 0, i32 2), align 4, !tbaa !13
  invoke void %62(i32 noundef %63, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 1.000000e+00)
          to label %64 unwind label %138

64:                                               ; preds = %61
  %65 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %66 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @g_WhiteDiffuseColor, i32 0, i32 3), align 4, !tbaa !14
  invoke void %65(i32 noundef %66, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 1.000000e+00)
          to label %67 unwind label %138

67:                                               ; preds = %64
  %68 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %69 = load i32, ptr @g_VertexDiffuseColor, align 4, !tbaa !9
  invoke void %68(i32 noundef %69)
          to label %70 unwind label %138

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

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

76:                                               ; preds = %73
  %77 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %77(i32 noundef 0)
          to label %78 unwind label %138

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

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %80 unwind label %146

80:                                               ; preds = %79
  %81 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %82 = load i32, ptr @g_WhiteDiffuseColor, align 4, !tbaa !9
  invoke void %81(i32 noundef %82)
          to label %83 unwind label %150

83:                                               ; preds = %80
  %84 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %85 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @g_WhiteDiffuseColor, i32 0, i32 4), align 4, !tbaa !15
  %86 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %87 unwind label %150

87:                                               ; preds = %83
  %88 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %86)
          to label %89 unwind label %150

89:                                               ; preds = %87
  invoke void %84(i32 noundef %85, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %88)
          to label %90 unwind label %150

90:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 36, ptr %10) #6
  %91 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %92 unwind label %154

92:                                               ; preds = %90
  invoke void @_ZN3glm6detail7tmat3x3IfEC2ERKNS0_7tmat4x4IfEE(ptr noundef nonnull align 4 dereferenceable(36) %10, ptr noundef nonnull align 4 dereferenceable(64) %91)
          to label %93 unwind label %154

93:                                               ; preds = %92
  %94 = load ptr, ptr @_funcptr_glUniformMatrix3fv, align 8, !tbaa !5
  %95 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @g_WhiteDiffuseColor, i32 0, i32 5), align 4, !tbaa !16
  %96 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36) %10)
          to label %97 unwind label %154

97:                                               ; preds = %93
  invoke void %94(i32 noundef %95, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %96)
          to label %98 unwind label %154

98:                                               ; preds = %97
  %99 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  invoke void @_ZNK9Framework4Mesh6RenderEv(ptr noundef nonnull align 8 dereferenceable(8) %99)
          to label %100 unwind label %154

100:                                              ; preds = %98
  %101 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %101(i32 noundef 0)
          to label %102 unwind label %154

102:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 36, ptr %10) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  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 %103 unwind label %160

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

104:                                              ; preds = %103
  invoke void @_ZN6glutil11MatrixStack11ApplyMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(64) %12)
          to label %105 unwind label %164

105:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #6
  %106 = load i8, ptr @_ZL17g_bDrawColoredCyl, align 1, !tbaa !17, !range !19, !noundef !20
  %107 = trunc i8 %106 to i1
  br i1 %107, label %108, label %186

108:                                              ; preds = %105
  %109 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %110 = load i32, ptr @g_VertexDiffuseColor, align 4, !tbaa !9
  invoke void %109(i32 noundef %110)
          to label %111 unwind label %168

111:                                              ; preds = %108
  %112 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %113 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @g_VertexDiffuseColor, i32 0, i32 4), align 4, !tbaa !15
  %114 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %115 unwind label %168

115:                                              ; preds = %111
  %116 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %114)
          to label %117 unwind label %168

117:                                              ; preds = %115
  invoke void %112(i32 noundef %113, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %116)
          to label %118 unwind label %168

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 36, ptr %13) #6
  %119 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %120 unwind label %172

120:                                              ; preds = %118
  invoke void @_ZN3glm6detail7tmat3x3IfEC2ERKNS0_7tmat4x4IfEE(ptr noundef nonnull align 4 dereferenceable(36) %13, ptr noundef nonnull align 4 dereferenceable(64) %119)
          to label %121 unwind label %172

121:                                              ; preds = %120
  %122 = load ptr, ptr @_funcptr_glUniformMatrix3fv, align 8, !tbaa !5
  %123 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @g_VertexDiffuseColor, i32 0, i32 5), align 4, !tbaa !16
  %124 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36) %13)
          to label %125 unwind label %172

125:                                              ; preds = %121
  invoke void %122(i32 noundef %123, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %124)
          to label %126 unwind label %172

126:                                              ; preds = %125
  %127 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.20, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %128 unwind label %176

128:                                              ; preds = %126
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %129 unwind label %180

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

130:                                              ; preds = %36, %35
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %3, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #6
  br label %279

134:                                              ; preds = %37
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %3, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %4, align 4
  br label %278

138:                                              ; preds = %76, %73, %70, %67, %64, %61, %58, %57, %53, %50, %49, %45, %42, %40, %38
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %3, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %4, align 4
  br label %277

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

146:                                              ; preds = %79
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %3, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %4, align 4
  br label %159

150:                                              ; preds = %89, %87, %83, %80
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %3, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %4, align 4
  br label %158

154:                                              ; preds = %100, %98, %97, %93, %92, %90
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %3, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 36, ptr %10) #6
  br label %158

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

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

160:                                              ; preds = %102
  %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 %250

164:                                              ; preds = %104, %103
  %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 %12) #6
  br label %249

168:                                              ; preds = %222, %195, %193, %189, %186, %117, %115, %111, %108
  %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 %249

172:                                              ; preds = %125, %121, %120, %118
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %3, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %4, align 4
  br label %185

176:                                              ; preds = %126
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %3, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %4, align 4
  br label %184

180:                                              ; preds = %128
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %3, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %4, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %184

184:                                              ; preds = %180, %176
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %185

185:                                              ; preds = %184, %172
  call void @llvm.lifetime.end.p0(i64 36, ptr %13) #6
  br label %249

186:                                              ; preds = %105
  %187 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %188 = load i32, ptr @g_WhiteDiffuseColor, align 4, !tbaa !9
  invoke void %187(i32 noundef %188)
          to label %189 unwind label %168

189:                                              ; preds = %186
  %190 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %191 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @g_WhiteDiffuseColor, i32 0, i32 4), align 4, !tbaa !15
  %192 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %193 unwind label %168

193:                                              ; preds = %189
  %194 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %192)
          to label %195 unwind label %168

195:                                              ; preds = %193
  invoke void %190(i32 noundef %191, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %194)
          to label %196 unwind label %168

196:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 36, ptr %16) #6
  %197 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %198 unwind label %208

198:                                              ; preds = %196
  invoke void @_ZN3glm6detail7tmat3x3IfEC2ERKNS0_7tmat4x4IfEE(ptr noundef nonnull align 4 dereferenceable(36) %16, ptr noundef nonnull align 4 dereferenceable(64) %197)
          to label %199 unwind label %208

199:                                              ; preds = %198
  %200 = load ptr, ptr @_funcptr_glUniformMatrix3fv, align 8, !tbaa !5
  %201 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @g_WhiteDiffuseColor, i32 0, i32 5), align 4, !tbaa !16
  %202 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36) %16)
          to label %203 unwind label %208

203:                                              ; preds = %199
  invoke void %200(i32 noundef %201, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %202)
          to label %204 unwind label %208

204:                                              ; preds = %203
  %205 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.21, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %206 unwind label %212

206:                                              ; preds = %204
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %205, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %207 unwind label %216

207:                                              ; preds = %206
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %16) #6
  br label %222

208:                                              ; preds = %203, %199, %198, %196
  %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 %221

212:                                              ; preds = %204
  %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 = %206
  %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) %17) #6
  br label %220

220:                                              ; preds = %216, %212
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  br label %221

221:                                              ; preds = %220, %208
  call void @llvm.lifetime.end.p0(i64 36, ptr %16) #6
  br label %249

222:                                              ; preds = %207, %129
  %223 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %223(i32 noundef 0)
          to label %224 unwind label %168

224:                                              ; preds = %222
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %225 = load i8, ptr @_ZL12g_bDrawLight, align 1, !tbaa !17, !range !19, !noundef !20
  %226 = trunc i8 %225 to i1
  br i1 %226, label %227, label %274

227:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %228 unwind label %251

228:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #6
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN3glm6detail5tvec3IfEC2IfEERKNS0_5tvec4IT_EE(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(16) %229)
          to label %230 unwind label %255

230:                                              ; preds = %228
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %20)
          to label %231 unwind label %255

231:                                              ; preds = %230
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #6
  invoke void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88) %1, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000)
          to label %232 unwind label %259

232:                                              ; preds = %231
  %233 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %234 = load i32, ptr @g_Unlit, align 4, !tbaa !21
  invoke void %233(i32 noundef %234)
          to label %235 unwind label %259

235:                                              ; preds = %232
  %236 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %237 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 2), align 4, !tbaa !23
  %238 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %239 unwind label %259

239:                                              ; preds = %235
  %240 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %238)
          to label %241 unwind label %259

241:                                              ; preds = %239
  invoke void %236(i32 noundef %237, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %240)
          to label %242 unwind label %259

242:                                              ; preds = %241
  %243 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %244 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 1), align 4, !tbaa !24
  invoke void %243(i32 noundef %244, float noundef 0x3FE9D97F60000000, float noundef 0x3FEBDBF480000000, float noundef 0x3FEFC01A40000000, float noundef 1.000000e+00)
          to label %245 unwind label %259

245:                                              ; preds = %242
  %246 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.22, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %247 unwind label %263

247:                                              ; preds = %245
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %246, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %248 unwind label %267

248:                                              ; preds = %247
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %274

249:                                              ; preds = %221, %185, %168, %164
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %250

250:                                              ; preds = %249, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %275

251:                                              ; preds = %227
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %3, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %4, align 4
  br label %273

255:                                              ; preds = %230, %228
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %3, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #6
  br label %272

259:                                              ; preds = %242, %241, %239, %235, %232, %231
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %3, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %4, align 4
  br label %272

263:                                              ; preds = %245
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %3, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %4, align 4
  br label %271

267:                                              ; preds = %247
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %3, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %4, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %271

271:                                              ; preds = %267, %263
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #6
  br label %272

272:                                              ; preds = %271, %259, %255
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br label %273

273:                                              ; preds = %272, %251
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %275

274:                                              ; preds = %248, %224
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #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 %280

275:                                              ; preds = %273, %250, %159
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %276

276:                                              ; preds = %275, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %277

277:                                              ; preds = %276, %138
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  br label %278

278:                                              ; preds = %277, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %279

279:                                              ; preds = %278, %130
  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 %281

280:                                              ; preds = %274, %32, %29, %0
  call void @glutPostRedisplay()
  call void @glutSwapBuffers()
  ret void

281:                                              ; preds = %279
  %282 = load ptr, ptr %3, align 8
  %283 = load i32, ptr %4, align 4
  %284 = insertvalue { ptr, i32 } poison, ptr %282, 0
  %285 = insertvalue { ptr, i32 } %284, i32 %283, 1
  resume { ptr, i32 } %285
}

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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16)) #5

; 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 @_ZN3glm6detail7tmat3x3IfEC2ERKNS0_7tmat4x4IfEE(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #4 align 2

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

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

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: mustprogress uwtable
declare dso_local void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88), float noundef, float noundef, float noundef) #2 align 2

; Function Attrs: inlinehint mustprogress 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, !11, i64 0}
!10 = !{!"_ZTS11ProgramData", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!10, !11, i64 8}
!14 = !{!10, !11, i64 12}
!15 = !{!10, !11, i64 16}
!16 = !{!10, !11, i64 20}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !11, i64 0}
!22 = !{!"_ZTS13UnlitProgData", !11, i64 0, !11, i64 4, !11, i64 8}
!23 = !{!22, !11, i64 8}
!24 = !{!22, !11, 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, 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 }
%"struct.glm::detail::tmat3x3" = type { [3 x %"struct.glm::detail::tvec3"] }
%"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_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
@_funcptr_glUseProgram = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniform3fv = 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_glUniformMatrix3fv = external local_unnamed_addr global ptr, align 8
@_ZL17g_bDrawColoredCyl = external hidden local_unnamed_addr global i8, align 1
@.str.20 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZL12g_bDrawLight = external hidden local_unnamed_addr global i8, align 1
@.str.22 = 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::tmat3x3", align 4
  %8 = alloca %"class.glutil::PushStack", align 8
  %9 = alloca %"struct.glm::detail::tmat4x4", align 4
  %10 = alloca %"struct.glm::detail::tmat3x3", align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator.0", align 1
  %13 = alloca %"struct.glm::detail::tmat3x3", align 4
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator.0", align 1
  %16 = alloca %"class.glutil::PushStack", align 8
  %17 = alloca %"struct.glm::detail::tvec3", align 4
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator.0", align 1
  %20 = tail call noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20) @g_LightTimer)
  %21 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  tail call void %21(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %22 = load ptr, ptr @_funcptr_glClearDepth, align 8, !tbaa !5
  tail call void %22(double noundef 1.000000e+00)
  %23 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  tail call void %23(i32 noundef 16640)
  %24 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  %26 = load ptr, ptr @g_pCylinderMesh, align 8
  %27 = icmp ne ptr %26, null
  %or.cond = select i1 %25, i1 %27, i1 false
  %28 = load ptr, ptr @g_pCubeMesh, align 8
  %29 = icmp ne ptr %28, null
  %or.cond3 = select i1 %or.cond, i1 %29, i1 false
  br i1 %or.cond3, label %30, label %218

30:                                               ; 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 %31 unwind label %117

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

32:                                               ; preds = %31
  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 %33 unwind label %119

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %34 = 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) %34, ptr noundef nonnull align 4 dereferenceable(16) %3)
          to label %35 unwind label %121

35:                                               ; preds = %33
  %36 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %37 = load i32, ptr @g_WhiteDiffuseColor, align 4, !tbaa !9
  invoke void %36(i32 noundef %37)
          to label %38 unwind label %121

38:                                               ; preds = %35
  %39 = load ptr, ptr @_funcptr_glUniform3fv, align 8, !tbaa !5
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @g_WhiteDiffuseColor, i64 4), align 4, !tbaa !12
  %41 = call noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %4)
  invoke void %39(i32 noundef %40, i32 noundef 1, ptr noundef %41)
          to label %42 unwind label %121

42:                                               ; preds = %38
  %43 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %44 = load i32, ptr @g_VertexDiffuseColor, align 4, !tbaa !9
  invoke void %43(i32 noundef %44)
          to label %45 unwind label %121

45:                                               ; preds = %42
  %46 = load ptr, ptr @_funcptr_glUniform3fv, align 8, !tbaa !5
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @g_VertexDiffuseColor, i64 4), align 4, !tbaa !12
  %48 = call noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %4)
  invoke void %46(i32 noundef %47, i32 noundef 1, ptr noundef %48)
          to label %49 unwind label %121

49:                                               ; preds = %45
  %50 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %51 = load i32, ptr @g_WhiteDiffuseColor, align 4, !tbaa !9
  invoke void %50(i32 noundef %51)
          to label %52 unwind label %121

52:                                               ; preds = %49
  %53 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @g_WhiteDiffuseColor, i64 8), align 4, !tbaa !13
  invoke void %53(i32 noundef %54, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 1.000000e+00)
          to label %55 unwind label %121

55:                                               ; preds = %52
  %56 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %57 = load i32, ptr getelementptr inbounds (i8, ptr @g_WhiteDiffuseColor, i64 12), align 4, !tbaa !14
  invoke void %56(i32 noundef %57, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 1.000000e+00)
          to label %58 unwind label %121

58:                                               ; preds = %55
  %59 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %60 = load i32, ptr @g_VertexDiffuseColor, align 4, !tbaa !9
  invoke void %59(i32 noundef %60)
          to label %61 unwind label %121

61:                                               ; preds = %58
  %62 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @g_VertexDiffuseColor, i64 8), align 4, !tbaa !13
  invoke void %62(i32 noundef %63, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 1.000000e+00)
          to label %64 unwind label %121

64:                                               ; preds = %61
  %65 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %66 = load i32, ptr getelementptr inbounds (i8, ptr @g_VertexDiffuseColor, i64 12), align 4, !tbaa !14
  invoke void %65(i32 noundef %66, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 1.000000e+00)
          to label %67 unwind label %121

67:                                               ; preds = %64
  %68 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %68(i32 noundef 0)
          to label %69 unwind label %121

69:                                               ; preds = %67
  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 %70 unwind label %123

70:                                               ; preds = %69
  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 %71 unwind label %125

71:                                               ; preds = %70
  %72 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %73 = load i32, ptr @g_WhiteDiffuseColor, align 4, !tbaa !9
  invoke void %72(i32 noundef %73)
          to label %74 unwind label %127

74:                                               ; preds = %71
  %75 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @g_WhiteDiffuseColor, i64 16), align 4, !tbaa !15
  %77 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %78 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %77)
          to label %79 unwind label %127

79:                                               ; preds = %74
  invoke void %75(i32 noundef %76, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %78)
          to label %80 unwind label %127

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %7) #6
  %81 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  invoke void @_ZN3glm6detail7tmat3x3IfEC2ERKNS0_7tmat4x4IfEE(ptr noundef nonnull align 4 dereferenceable(36) %7, ptr noundef nonnull align 4 dereferenceable(64) %81)
          to label %82 unwind label %129

82:                                               ; preds = %80
  %83 = load ptr, ptr @_funcptr_glUniformMatrix3fv, align 8, !tbaa !5
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @g_WhiteDiffuseColor, i64 20), align 4, !tbaa !16
  %85 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36) %7)
          to label %86 unwind label %129

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

87:                                               ; preds = %86
  %88 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  invoke void @_ZNK9Framework4Mesh6RenderEv(ptr noundef nonnull align 8 dereferenceable(8) %88)
          to label %89 unwind label %129

89:                                               ; preds = %87
  %90 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %90(i32 noundef 0)
          to label %91 unwind label %129

91:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 36, 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 %8) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %92 unwind label %133

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

93:                                               ; preds = %92
  invoke void @_ZN6glutil11MatrixStack11ApplyMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(64) %9)
          to label %94 unwind label %135

94:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #6
  %95 = load i8, ptr @_ZL17g_bDrawColoredCyl, align 1, !tbaa !17, !range !19, !noundef !20
  %96 = trunc nuw i8 %95 to i1
  %97 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  br i1 %96, label %98, label %147

98:                                               ; preds = %94
  %99 = load i32, ptr @g_VertexDiffuseColor, align 4, !tbaa !9
  invoke void %97(i32 noundef %99)
          to label %100 unwind label %137

100:                                              ; preds = %98
  %101 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %102 = load i32, ptr getelementptr inbounds (i8, ptr @g_VertexDiffuseColor, i64 16), align 4, !tbaa !15
  %103 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %104 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %103)
          to label %105 unwind label %137

105:                                              ; preds = %100
  invoke void %101(i32 noundef %102, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %104)
          to label %106 unwind label %137

106:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %10) #6
  %107 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  invoke void @_ZN3glm6detail7tmat3x3IfEC2ERKNS0_7tmat4x4IfEE(ptr noundef nonnull align 4 dereferenceable(36) %10, ptr noundef nonnull align 4 dereferenceable(64) %107)
          to label %108 unwind label %139

108:                                              ; preds = %106
  %109 = load ptr, ptr @_funcptr_glUniformMatrix3fv, align 8, !tbaa !5
  %110 = load i32, ptr getelementptr inbounds (i8, ptr @g_VertexDiffuseColor, i64 20), align 4, !tbaa !16
  %111 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36) %10)
          to label %112 unwind label %139

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

113:                                              ; preds = %112
  %114 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.20, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %115 unwind label %141

115:                                              ; preds = %113
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %116 unwind label %143

116:                                              ; preds = %115
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %10) #6
  br label %174

117:                                              ; preds = %31, %30
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  br label %217

119:                                              ; preds = %32
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %217

121:                                              ; preds = %67, %64, %61, %58, %55, %52, %49, %45, %42, %38, %35, %33
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %216

123:                                              ; preds = %69
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %215

125:                                              ; preds = %70
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %132

127:                                              ; preds = %79, %74, %71
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %131

129:                                              ; preds = %89, %87, %86, %82, %80
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %7) #6
  br label %131

131:                                              ; preds = %129, %127
  %.pn = phi { ptr, i32 } [ %130, %129 ], [ %128, %127 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %132

132:                                              ; preds = %131, %125
  %.pn.pn = phi { ptr, i32 } [ %.pn, %131 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %214

133:                                              ; preds = %91
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %199

135:                                              ; preds = %93, %92
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #6
  br label %198

137:                                              ; preds = %174, %154, %149, %147, %105, %100, %98
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %198

139:                                              ; preds = %112, %108, %106
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %146

141:                                              ; preds = %113
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %145

143:                                              ; preds = %115
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %145

145:                                              ; preds = %143, %141
  %.pn27 = phi { ptr, i32 } [ %144, %143 ], [ %142, %141 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %146

146:                                              ; preds = %145, %139
  %.pn27.pn = phi { ptr, i32 } [ %.pn27, %145 ], [ %140, %139 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %10) #6
  br label %198

147:                                              ; preds = %94
  %148 = load i32, ptr @g_WhiteDiffuseColor, align 4, !tbaa !9
  invoke void %97(i32 noundef %148)
          to label %149 unwind label %137

149:                                              ; preds = %147
  %150 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %151 = load i32, ptr getelementptr inbounds (i8, ptr @g_WhiteDiffuseColor, i64 16), align 4, !tbaa !15
  %152 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %153 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %152)
          to label %154 unwind label %137

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

155:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %13) #6
  %156 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  invoke void @_ZN3glm6detail7tmat3x3IfEC2ERKNS0_7tmat4x4IfEE(ptr noundef nonnull align 4 dereferenceable(36) %13, ptr noundef nonnull align 4 dereferenceable(64) %156)
          to label %157 unwind label %166

157:                                              ; preds = %155
  %158 = load ptr, ptr @_funcptr_glUniformMatrix3fv, align 8, !tbaa !5
  %159 = load i32, ptr getelementptr inbounds (i8, ptr @g_WhiteDiffuseColor, i64 20), align 4, !tbaa !16
  %160 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36) %13)
          to label %161 unwind label %166

161:                                              ; preds = %157
  invoke void %158(i32 noundef %159, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %160)
          to label %162 unwind label %166

162:                                              ; preds = %161
  %163 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull @.str.21, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %164 unwind label %168

164:                                              ; preds = %162
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %165 unwind label %170

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

166:                                              ; preds = %161, %157, %155
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %173

168:                                              ; preds = %162
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %172

170:                                              ; preds = %164
  %171 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %172

172:                                              ; preds = %170, %168
  %.pn24 = phi { ptr, i32 } [ %171, %170 ], [ %169, %168 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  br label %173

173:                                              ; preds = %172, %166
  %.pn24.pn = phi { ptr, i32 } [ %.pn24, %172 ], [ %167, %166 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #6
  br label %198

174:                                              ; preds = %165, %116
  %175 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %175(i32 noundef 0)
          to label %176 unwind label %137

176:                                              ; preds = %174
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %177 = load i8, ptr @_ZL12g_bDrawLight, align 1, !tbaa !17, !range !19, !noundef !20
  %178 = trunc nuw i8 %177 to i1
  br i1 %178, label %179, label %213

179:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %180 unwind label %200

180:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #6
  call void @_ZN3glm6detail5tvec3IfEC2IfEERKNS0_5tvec4IT_EE(ptr noundef nonnull align 4 dereferenceable(12) %17, 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) %17)
          to label %181 unwind label %202

181:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #6
  invoke void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88) %1, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000)
          to label %182 unwind label %204

182:                                              ; preds = %181
  %183 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %184 = load i32, ptr @g_Unlit, align 4, !tbaa !21
  invoke void %183(i32 noundef %184)
          to label %185 unwind label %204

185:                                              ; preds = %182
  %186 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %187 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 8), align 4, !tbaa !23
  %188 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %189 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %188)
          to label %190 unwind label %204

190:                                              ; preds = %185
  invoke void %186(i32 noundef %187, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %189)
          to label %191 unwind label %204

191:                                              ; preds = %190
  %192 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %193 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 4), align 4, !tbaa !24
  invoke void %192(i32 noundef %193, float noundef 0x3FE9D97F60000000, float noundef 0x3FEBDBF480000000, float noundef 0x3FEFC01A40000000, float noundef 1.000000e+00)
          to label %194 unwind label %204

194:                                              ; preds = %191
  %195 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %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 nonnull @.str.22, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %196 unwind label %206

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

197:                                              ; preds = %196
  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 nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %213

198:                                              ; preds = %173, %146, %137, %135
  %.pn30 = phi { ptr, i32 } [ %138, %137 ], [ %.pn27.pn, %146 ], [ %.pn24.pn, %173 ], [ %136, %135 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %199

199:                                              ; preds = %198, %133
  %.pn30.pn = phi { ptr, i32 } [ %.pn30, %198 ], [ %134, %133 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %214

200:                                              ; preds = %179
  %201 = landingpad { ptr, i32 }
          cleanup
  br label %212

202:                                              ; preds = %180
  %203 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #6
  br label %211

204:                                              ; preds = %191, %190, %185, %182, %181
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %211

206:                                              ; preds = %194
  %207 = landingpad { ptr, i32 }
          cleanup
  br label %210

208:                                              ; preds = %196
  %209 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %210

210:                                              ; preds = %208, %206
  %.pn33 = phi { ptr, i32 } [ %209, %208 ], [ %207, %206 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  br label %211

211:                                              ; preds = %210, %204, %202
  %.pn33.pn = phi { ptr, i32 } [ %.pn33, %210 ], [ %205, %204 ], [ %203, %202 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br label %212

212:                                              ; preds = %211, %200
  %.pn33.pn.pn = phi { ptr, i32 } [ %.pn33.pn, %211 ], [ %201, %200 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %214

213:                                              ; preds = %197, %176
  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 %218

214:                                              ; preds = %212, %199, %132
  %.pn33.pn.pn.pn = phi { ptr, i32 } [ %.pn33.pn.pn, %212 ], [ %.pn30.pn, %199 ], [ %.pn.pn, %132 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br label %215

215:                                              ; preds = %214, %123
  %.pn33.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn33.pn.pn.pn, %214 ], [ %124, %123 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %216

216:                                              ; preds = %215, %121
  %.pn33.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn33.pn.pn.pn.pn, %215 ], [ %122, %121 ]
  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 %217

217:                                              ; preds = %119, %216, %117
  %.pn33.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %118, %117 ], [ %.pn33.pn.pn.pn.pn.pn, %216 ], [ %120, %119 ]
  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 } %.pn33.pn.pn.pn.pn.pn.pn.pn

218:                                              ; preds = %213, %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: 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

; 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 @_ZN3glm6detail7tmat3x3IfEC2ERKNS0_7tmat4x4IfEE(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #4 align 2

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

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

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: mustprogress uwtable
declare dso_local void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88), float noundef, float noundef, float noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress 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, !11, i64 0}
!10 = !{!"_ZTS11ProgramData", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!10, !11, i64 8}
!14 = !{!10, !11, i64 12}
!15 = !{!10, !11, i64 16}
!16 = !{!10, !11, i64 20}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !11, i64 0}
!22 = !{!"_ZTS13UnlitProgData", !11, i64 0, !11, i64 4, !11, i64 8}
!23 = !{!22, !11, i64 8}
!24 = !{!22, !11, i64 4}


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