; LLVM IR from paroj/gltut :: Tut 11 Shinies/PhongLighting.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, 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_WhiteNoPhong = external dso_local global %struct.ProgramData, align 4
@g_ColorNoPhong = external dso_local global %struct.ProgramData, align 4
@g_WhitePhong = external dso_local global %struct.ProgramData, align 4
@g_ColorPhong = external dso_local global %struct.ProgramData, align 4
@g_WhitePhongOnly = external dso_local global %struct.ProgramData, align 4
@g_ColorPhongOnly = 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
@_ZL11g_darkColor = external hidden global %"struct.glm::detail::tvec4", align 4
@_ZL12g_lightColor = external hidden global %"struct.glm::detail::tvec4", align 4
@_funcptr_glClearColor = external global ptr, align 8
@_funcptr_glClearDepth = external global ptr, align 8
@_funcptr_glClear = external global ptr, align 8
@_ZL13g_eLightModel = external hidden global i32, align 4
@_funcptr_glUseProgram = external global ptr, align 8
@_funcptr_glUniform4f = external global ptr, align 8
@_funcptr_glUniform3fv = external global ptr, align 8
@_funcptr_glUniform1f = external global ptr, align 8
@_ZL18g_fShininessFactor = external hidden global float, align 4
@_funcptr_glUniform4fv = external global ptr, align 8
@_ZL11g_bDrawDark = external hidden global i8, align 1
@_funcptr_glUniformMatrix4fv = external global ptr, align 8
@_funcptr_glUniformMatrix3fv = external global ptr, align 8
@_ZL11g_bScaleCyl = external hidden global i8, align 1
@_ZL17g_bDrawColoredCyl = external hidden global i8, align 1
@.str.27 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZL18g_bDrawLightSource = external hidden global i8, align 1
@.str.29 = 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 ptr, align 8
  %8 = alloca %"struct.glm::detail::tvec4", align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.glutil::PushStack", align 8
  %12 = alloca %"class.glutil::PushStack", align 8
  %13 = alloca %"struct.glm::detail::tmat3x3", align 4
  %14 = alloca %"struct.glm::detail::tmat3x3", align 4
  %15 = alloca %"struct.glm::detail::tmat3x3", align 4
  %16 = alloca %"class.glutil::PushStack", align 8
  %17 = alloca %"struct.glm::detail::tmat4x4", align 4
  %18 = alloca %"struct.glm::detail::tmat3x3", align 4
  %19 = alloca %"struct.glm::detail::tmat3x3", align 4
  %20 = alloca %"struct.glm::detail::tmat3x3", align 4
  %21 = alloca ptr, align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator.0", align 1
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator.0", align 1
  %26 = alloca %"class.glutil::PushStack", align 8
  %27 = alloca %"struct.glm::detail::tvec3", align 4
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::allocator.0", align 1
  %30 = call noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20) @g_LightTimer)
  %31 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  call void %31(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %32 = load ptr, ptr @_funcptr_glClearDepth, align 8, !tbaa !5
  call void %32(double noundef 1.000000e+00)
  %33 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  call void %33(i32 noundef 16640)
  %34 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %365

36:                                               ; preds = %0
  %37 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %365

39:                                               ; preds = %36
  %40 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %365

42:                                               ; preds = %39
  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 %43 unwind label %51

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

44:                                               ; preds = %43
  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 %45 unwind label %55

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

47:                                               ; preds = %45
  %48 = 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 %8, ptr noundef nonnull align 4 dereferenceable(64) %46, ptr noundef nonnull align 4 dereferenceable(16) %48)
          to label %49 unwind label %59

49:                                               ; preds = %47
  store ptr %8, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr null, ptr %10, align 8, !tbaa !5
  %50 = load i32, ptr @_ZL13g_eLightModel, align 4, !tbaa !9
  switch i32 %50, label %66 [
    i32 0, label %63
    i32 1, label %64
    i32 2, label %65
  ]

51:                                               ; preds = %43, %42
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %3, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #6
  br label %364

55:                                               ; preds = %44
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %3, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %4, align 4
  br label %363

59:                                               ; preds = %47, %45
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %3, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %4, align 4
  br label %362

63:                                               ; preds = %49
  store ptr @g_WhiteNoPhong, ptr %9, align 8, !tbaa !5
  store ptr @g_ColorNoPhong, ptr %10, align 8, !tbaa !5
  br label %66

64:                                               ; preds = %49
  store ptr @g_WhitePhong, ptr %9, align 8, !tbaa !5
  store ptr @g_ColorPhong, ptr %10, align 8, !tbaa !5
  br label %66

65:                                               ; preds = %49
  store ptr @g_WhitePhongOnly, ptr %9, align 8, !tbaa !5
  store ptr @g_ColorPhongOnly, ptr %10, align 8, !tbaa !5
  br label %66

66:                                               ; preds = %65, %64, %63, %49
  %67 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.ProgramData, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 4, !tbaa !11
  invoke void %67(i32 noundef %70)
          to label %71 unwind label %193

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

76:                                               ; preds = %71
  %77 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.ProgramData, ptr %78, i32 0, i32 3
  %80 = load i32, ptr %79, align 4, !tbaa !14
  invoke void %77(i32 noundef %80, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 1.000000e+00)
          to label %81 unwind label %193

81:                                               ; preds = %76
  %82 = load ptr, ptr @_funcptr_glUniform3fv, align 8, !tbaa !5
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ProgramData, ptr %83, i32 0, i32 5
  %85 = load i32, ptr %84, align 4, !tbaa !15
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %86)
          to label %88 unwind label %193

88:                                               ; preds = %81
  invoke void %82(i32 noundef %85, i32 noundef 1, ptr noundef %87)
          to label %89 unwind label %193

89:                                               ; preds = %88
  %90 = load ptr, ptr @_funcptr_glUniform1f, align 8, !tbaa !5
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.ProgramData, ptr %91, i32 0, i32 6
  %93 = load i32, ptr %92, align 4, !tbaa !16
  invoke void %90(i32 noundef %93, float noundef 0x3FF3333340000000)
          to label %94 unwind label %193

94:                                               ; preds = %89
  %95 = load ptr, ptr @_funcptr_glUniform1f, align 8, !tbaa !5
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ProgramData, ptr %96, i32 0, i32 7
  %98 = load i32, ptr %97, align 4, !tbaa !17
  %99 = load float, ptr @_ZL18g_fShininessFactor, align 4, !tbaa !18
  invoke void %95(i32 noundef %98, float noundef %99)
          to label %100 unwind label %193

100:                                              ; preds = %94
  %101 = load ptr, ptr @_funcptr_glUniform4fv, align 8, !tbaa !5
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ProgramData, ptr %102, i32 0, i32 8
  %104 = load i32, ptr %103, align 4, !tbaa !20
  %105 = load i8, ptr @_ZL11g_bDrawDark, align 1, !tbaa !21, !range !23, !noundef !24
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %110

107:                                              ; preds = %100
  %108 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) @_ZL11g_darkColor)
          to label %109 unwind label %193

109:                                              ; preds = %107
  br label %113

110:                                              ; preds = %100
  %111 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) @_ZL12g_lightColor)
          to label %112 unwind label %193

112:                                              ; preds = %110
  br label %113

113:                                              ; preds = %112, %109
  %114 = phi ptr [ %108, %109 ], [ %111, %112 ]
  invoke void %101(i32 noundef %104, i32 noundef 1, ptr noundef %114)
          to label %115 unwind label %193

115:                                              ; preds = %113
  %116 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ProgramData, ptr %117, i32 0, i32 0
  %119 = load i32, ptr %118, align 4, !tbaa !11
  invoke void %116(i32 noundef %119)
          to label %120 unwind label %193

120:                                              ; preds = %115
  %121 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.ProgramData, ptr %122, i32 0, i32 2
  %124 = load i32, ptr %123, align 4, !tbaa !13
  invoke void %121(i32 noundef %124, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 1.000000e+00)
          to label %125 unwind label %193

125:                                              ; preds = %120
  %126 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.ProgramData, ptr %127, i32 0, i32 3
  %129 = load i32, ptr %128, align 4, !tbaa !14
  invoke void %126(i32 noundef %129, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 1.000000e+00)
          to label %130 unwind label %193

130:                                              ; preds = %125
  %131 = load ptr, ptr @_funcptr_glUniform3fv, align 8, !tbaa !5
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ProgramData, ptr %132, i32 0, i32 5
  %134 = load i32, ptr %133, align 4, !tbaa !15
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %135)
          to label %137 unwind label %193

137:                                              ; preds = %130
  invoke void %131(i32 noundef %134, i32 noundef 1, ptr noundef %136)
          to label %138 unwind label %193

138:                                              ; preds = %137
  %139 = load ptr, ptr @_funcptr_glUniform1f, align 8, !tbaa !5
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.ProgramData, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %141, align 4, !tbaa !16
  invoke void %139(i32 noundef %142, float noundef 0x3FF3333340000000)
          to label %143 unwind label %193

143:                                              ; preds = %138
  %144 = load ptr, ptr @_funcptr_glUniform1f, align 8, !tbaa !5
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.ProgramData, ptr %145, i32 0, i32 7
  %147 = load i32, ptr %146, align 4, !tbaa !17
  %148 = load float, ptr @_ZL18g_fShininessFactor, align 4, !tbaa !18
  invoke void %144(i32 noundef %147, float noundef %148)
          to label %149 unwind label %193

149:                                              ; preds = %143
  %150 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %150(i32 noundef 0)
          to label %151 unwind label %193

151:                                              ; preds = %149
  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 %152 unwind label %197

152:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %153 unwind label %201

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

155:                                              ; preds = %153
  invoke void @_ZN3glm6detail7tmat3x3IfEC2ERKNS0_7tmat4x4IfEE(ptr noundef nonnull align 4 dereferenceable(36) %13, ptr noundef nonnull align 4 dereferenceable(64) %154)
          to label %156 unwind label %205

156:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 36, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr %15) #6
  invoke void @_ZN3glm7inverseIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat3x3") align 4 %15, ptr noundef nonnull align 4 dereferenceable(36) %13)
          to label %157 unwind label %209

157:                                              ; preds = %156
  invoke void @_ZN3glm9transposeIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat3x3") align 4 %14, ptr noundef nonnull align 4 dereferenceable(36) %15)
          to label %158 unwind label %209

158:                                              ; preds = %157
  %159 = invoke noundef nonnull align 4 dereferenceable(36) ptr @_ZN3glm6detail7tmat3x3IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(36) %13, ptr noundef nonnull align 4 dereferenceable(36) %14)
          to label %160 unwind label %209

160:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 36, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %14) #6
  %161 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.ProgramData, ptr %162, i32 0, i32 0
  %164 = load i32, ptr %163, align 4, !tbaa !11
  invoke void %161(i32 noundef %164)
          to label %165 unwind label %205

165:                                              ; preds = %160
  %166 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.ProgramData, ptr %167, i32 0, i32 1
  %169 = load i32, ptr %168, align 4, !tbaa !25
  %170 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %171 unwind label %205

171:                                              ; preds = %165
  %172 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %170)
          to label %173 unwind label %205

173:                                              ; preds = %171
  invoke void %166(i32 noundef %169, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %172)
          to label %174 unwind label %205

174:                                              ; preds = %173
  %175 = load ptr, ptr @_funcptr_glUniformMatrix3fv, align 8, !tbaa !5
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.ProgramData, ptr %176, i32 0, i32 4
  %178 = load i32, ptr %177, align 4, !tbaa !26
  %179 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36) %13)
          to label %180 unwind label %205

180:                                              ; preds = %174
  invoke void %175(i32 noundef %178, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %179)
          to label %181 unwind label %205

181:                                              ; preds = %180
  %182 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  invoke void @_ZNK9Framework4Mesh6RenderEv(ptr noundef nonnull align 8 dereferenceable(8) %182)
          to label %183 unwind label %205

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

185:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 36, ptr %13) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %186 unwind label %215

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

187:                                              ; preds = %186
  invoke void @_ZN6glutil11MatrixStack11ApplyMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(64) %17)
          to label %188 unwind label %219

188:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #6
  %189 = load i8, ptr @_ZL11g_bScaleCyl, align 1, !tbaa !21, !range !23, !noundef !24
  %190 = trunc i8 %189 to i1
  br i1 %190, label %191, label %227

191:                                              ; preds = %188
  invoke void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88) %1, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3FC99999A0000000)
          to label %192 unwind label %223

192:                                              ; preds = %191
  br label %227

193:                                              ; preds = %149, %143, %138, %137, %130, %125, %120, %115, %113, %110, %107, %94, %89, %88, %81, %76, %71, %66
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %3, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %4, align 4
  br label %361

197:                                              ; preds = %151
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %3, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %4, align 4
  br label %360

201:                                              ; preds = %152
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %3, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %4, align 4
  br label %214

205:                                              ; preds = %183, %181, %180, %174, %173, %171, %165, %160, %155, %153
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %3, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %4, align 4
  br label %213

209:                                              ; preds = %158, %157, %156
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %3, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 36, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %14) #6
  br label %213

213:                                              ; preds = %209, %205
  call void @llvm.lifetime.end.p0(i64 36, ptr %13) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %214

214:                                              ; preds = %213, %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %359

215:                                              ; preds = %185
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %3, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %4, align 4
  br label %334

219:                                              ; preds = %187, %186
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %3, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #6
  br label %333

223:                                              ; preds = %191
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %3, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %4, align 4
  br label %333

227:                                              ; preds = %192, %188
  call void @llvm.lifetime.start.p0(i64 36, ptr %18) #6
  %228 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %229 unwind label %270

229:                                              ; preds = %227
  invoke void @_ZN3glm6detail7tmat3x3IfEC2ERKNS0_7tmat4x4IfEE(ptr noundef nonnull align 4 dereferenceable(36) %18, ptr noundef nonnull align 4 dereferenceable(64) %228)
          to label %230 unwind label %270

230:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 36, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr %20) #6
  invoke void @_ZN3glm7inverseIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat3x3") align 4 %20, ptr noundef nonnull align 4 dereferenceable(36) %18)
          to label %231 unwind label %274

231:                                              ; preds = %230
  invoke void @_ZN3glm9transposeIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat3x3") align 4 %19, ptr noundef nonnull align 4 dereferenceable(36) %20)
          to label %232 unwind label %274

232:                                              ; preds = %231
  %233 = invoke noundef nonnull align 4 dereferenceable(36) ptr @_ZN3glm6detail7tmat3x3IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(36) %18, ptr noundef nonnull align 4 dereferenceable(36) %19)
          to label %234 unwind label %274

234:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 36, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %235 = load i8, ptr @_ZL17g_bDrawColoredCyl, align 1, !tbaa !21, !range !23, !noundef !24
  %236 = trunc i8 %235 to i1
  br i1 %236, label %237, label %239

237:                                              ; preds = %234
  %238 = load ptr, ptr %10, align 8, !tbaa !5
  br label %241

239:                                              ; preds = %234
  %240 = load ptr, ptr %9, align 8, !tbaa !5
  br label %241

241:                                              ; preds = %239, %237
  %242 = phi ptr [ %238, %237 ], [ %240, %239 ]
  store ptr %242, ptr %21, align 8, !tbaa !5
  %243 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %244 = load ptr, ptr %21, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.ProgramData, ptr %244, i32 0, i32 0
  %246 = load i32, ptr %245, align 4, !tbaa !11
  invoke void %243(i32 noundef %246)
          to label %247 unwind label %278

247:                                              ; preds = %241
  %248 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %249 = load ptr, ptr %21, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.ProgramData, ptr %249, i32 0, i32 1
  %251 = load i32, ptr %250, align 4, !tbaa !25
  %252 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %253 unwind label %278

253:                                              ; preds = %247
  %254 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %252)
          to label %255 unwind label %278

255:                                              ; preds = %253
  invoke void %248(i32 noundef %251, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %254)
          to label %256 unwind label %278

256:                                              ; preds = %255
  %257 = load ptr, ptr @_funcptr_glUniformMatrix3fv, align 8, !tbaa !5
  %258 = load ptr, ptr %21, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.ProgramData, ptr %258, i32 0, i32 4
  %260 = load i32, ptr %259, align 4, !tbaa !26
  %261 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36) %18)
          to label %262 unwind label %278

262:                                              ; preds = %256
  invoke void %257(i32 noundef %260, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %261)
          to label %263 unwind label %278

263:                                              ; preds = %262
  %264 = load i8, ptr @_ZL17g_bDrawColoredCyl, align 1, !tbaa !21, !range !23, !noundef !24
  %265 = trunc i8 %264 to i1
  br i1 %265, label %266, label %291

266:                                              ; preds = %263
  %267 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef @.str.27, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %268 unwind label %282

268:                                              ; preds = %266
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %267, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %269 unwind label %286

269:                                              ; preds = %268
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  br label %304

270:                                              ; preds = %229, %227
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %3, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %4, align 4
  br label %332

274:                                              ; preds = %232, %231, %230
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %3, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 36, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %19) #6
  br label %332

278:                                              ; preds = %304, %262, %256, %255, %253, %247, %241
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %3, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %4, align 4
  br label %331

282:                                              ; preds = %266
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %3, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %4, align 4
  br label %290

286:                                              ; preds = %268
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %3, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %4, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %290

290:                                              ; preds = %286, %282
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  br label %331

291:                                              ; preds = %263
  %292 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef @.str.28, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %293 unwind label %295

293:                                              ; preds = %291
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %292, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %294 unwind label %299

294:                                              ; preds = %293
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  br label %304

295:                                              ; preds = %291
  %296 = landingpad { ptr, i32 }
          cleanup
  %297 = extractvalue { ptr, i32 } %296, 0
  store ptr %297, ptr %3, align 8
  %298 = extractvalue { ptr, i32 } %296, 1
  store i32 %298, ptr %4, align 4
  br label %303

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

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

304:                                              ; preds = %294, %269
  %305 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %305(i32 noundef 0)
          to label %306 unwind label %278

306:                                              ; preds = %304
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %18) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %307 = load i8, ptr @_ZL18g_bDrawLightSource, align 1, !tbaa !21, !range !23, !noundef !24
  %308 = trunc i8 %307 to i1
  br i1 %308, label %309, label %358

309:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %310 unwind label %335

310:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #6
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN3glm6detail5tvec3IfEC2IfEERKNS0_5tvec4IT_EE(ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(16) %311)
          to label %312 unwind label %339

312:                                              ; preds = %310
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %27)
          to label %313 unwind label %339

313:                                              ; preds = %312
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #6
  invoke void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88) %1, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000)
          to label %314 unwind label %343

314:                                              ; preds = %313
  %315 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %316 = load i32, ptr @g_Unlit, align 4, !tbaa !27
  invoke void %315(i32 noundef %316)
          to label %317 unwind label %343

317:                                              ; preds = %314
  %318 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %319 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 2), align 4, !tbaa !29
  %320 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %321 unwind label %343

321:                                              ; preds = %317
  %322 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %320)
          to label %323 unwind label %343

323:                                              ; preds = %321
  invoke void %318(i32 noundef %319, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %322)
          to label %324 unwind label %343

324:                                              ; preds = %323
  %325 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %326 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 1), align 4, !tbaa !30
  invoke void %325(i32 noundef %326, float noundef 0x3FE9D97F60000000, float noundef 0x3FEBDBF480000000, float noundef 0x3FEFC01A40000000, float noundef 1.000000e+00)
          to label %327 unwind label %343

327:                                              ; preds = %324
  %328 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef @.str.29, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %329 unwind label %347

329:                                              ; preds = %327
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %328, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %330 unwind label %351

330:                                              ; preds = %329
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %358

331:                                              ; preds = %303, %290, %278
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %332

332:                                              ; preds = %331, %274, %270
  call void @llvm.lifetime.end.p0(i64 36, ptr %18) #6
  br label %333

333:                                              ; preds = %332, %223, %219
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br label %334

334:                                              ; preds = %333, %215
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %359

335:                                              ; preds = %309
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %3, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %4, align 4
  br label %357

339:                                              ; preds = %312, %310
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %3, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #6
  br label %356

343:                                              ; preds = %324, %323, %321, %317, %314, %313
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %3, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %4, align 4
  br label %356

347:                                              ; preds = %327
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %3, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %4, align 4
  br label %355

351:                                              ; preds = %329
  %352 = landingpad { ptr, i32 }
          cleanup
  %353 = extractvalue { ptr, i32 } %352, 0
  store ptr %353, ptr %3, align 8
  %354 = extractvalue { ptr, i32 } %352, 1
  store i32 %354, ptr %4, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  br label %355

355:                                              ; preds = %351, %347
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  br label %356

356:                                              ; preds = %355, %343, %339
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br label %357

357:                                              ; preds = %356, %335
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %359

358:                                              ; preds = %330, %306
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 %365

359:                                              ; preds = %357, %334, %214
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %360

360:                                              ; preds = %359, %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %361

361:                                              ; preds = %360, %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  br label %362

362:                                              ; preds = %361, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  br label %363

363:                                              ; preds = %362, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %364

364:                                              ; preds = %363, %51
  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 %366

365:                                              ; preds = %358, %39, %36, %0
  call void @glutPostRedisplay()
  call void @glutSwapBuffers()
  ret void

366:                                              ; preds = %364
  %367 = load ptr, ptr %3, align 8
  %368 = load i32, ptr %4, align 4
  %369 = insertvalue { ptr, i32 } poison, ptr %367, 0
  %370 = insertvalue { ptr, i32 } %369, i32 %368, 1
  resume { ptr, i32 } %370
}

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_ptrIfEEPKT_RKNS_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 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 void @_ZN3glm9transposeIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tmat3x3") align 4, ptr noundef nonnull align 4 dereferenceable(36)) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZN3glm6detail7tmat3x3IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) #4 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 nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36)) #5

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

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

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

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

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

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

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

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

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

declare void @glutPostRedisplay() #3

declare void @glutSwapBuffers() #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS11ProgramData", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 12}
!15 = !{!12, !10, i64 20}
!16 = !{!12, !10, i64 24}
!17 = !{!12, !10, i64 28}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = !{!12, !10, i64 32}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!12, !10, i64 4}
!26 = !{!12, !10, i64 16}
!27 = !{!28, !10, i64 0}
!28 = !{!"_ZTS13UnlitProgData", !10, i64 0, !10, i64 4, !10, i64 8}
!29 = !{!28, !10, i64 8}
!30 = !{!28, !10, 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, 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_WhiteNoPhong = external dso_local local_unnamed_addr global %struct.ProgramData, align 4
@g_ColorNoPhong = external dso_local local_unnamed_addr global %struct.ProgramData, align 4
@g_WhitePhong = external dso_local local_unnamed_addr global %struct.ProgramData, align 4
@g_ColorPhong = external dso_local local_unnamed_addr global %struct.ProgramData, align 4
@g_WhitePhongOnly = external dso_local local_unnamed_addr global %struct.ProgramData, align 4
@g_ColorPhongOnly = 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
@_ZL11g_darkColor = external hidden global %"struct.glm::detail::tvec4", align 4
@_ZL12g_lightColor = external hidden global %"struct.glm::detail::tvec4", 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
@_ZL13g_eLightModel = external hidden local_unnamed_addr global i32, align 4
@_funcptr_glUseProgram = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniform4f = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniform3fv = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniform1f = external local_unnamed_addr global ptr, align 8
@_ZL18g_fShininessFactor = external hidden local_unnamed_addr global float, align 4
@_funcptr_glUniform4fv = external local_unnamed_addr global ptr, align 8
@_ZL11g_bDrawDark = external hidden local_unnamed_addr global i8, align 1
@_funcptr_glUniformMatrix4fv = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniformMatrix3fv = external local_unnamed_addr global ptr, align 8
@_ZL11g_bScaleCyl = external hidden local_unnamed_addr global i8, align 1
@_ZL17g_bDrawColoredCyl = external hidden local_unnamed_addr global i8, align 1
@.str.27 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZL18g_bDrawLightSource = external hidden local_unnamed_addr global i8, align 1
@.str.29 = external hidden unnamed_addr constant [5 x i8], align 1
@switch.table._Z7displayv = private unnamed_addr constant [3 x ptr] [ptr @g_WhiteNoPhong, ptr @g_WhitePhong, ptr @g_WhitePhongOnly], align 8
@switch.table._Z7displayv.1 = private unnamed_addr constant [3 x ptr] [ptr @g_ColorNoPhong, ptr @g_ColorPhong, ptr @g_ColorPhongOnly], align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: 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 %"struct.glm::detail::tmat3x3", align 4
  %9 = alloca %"struct.glm::detail::tmat3x3", align 4
  %10 = alloca %"class.glutil::PushStack", align 8
  %11 = alloca %"struct.glm::detail::tmat4x4", align 4
  %12 = alloca %"struct.glm::detail::tmat3x3", align 4
  %13 = alloca %"struct.glm::detail::tmat3x3", align 4
  %14 = alloca %"struct.glm::detail::tmat3x3", align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.0", align 1
  %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 = tail call noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20) @g_LightTimer)
  %24 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  tail 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
  tail call void %25(double noundef 1.000000e+00)
  %26 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  tail call void %26(i32 noundef 16640)
  %27 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  %29 = load ptr, ptr @g_pCylinderMesh, align 8
  %30 = icmp ne ptr %29, null
  %or.cond = select i1 %28, i1 %30, i1 false
  %31 = load ptr, ptr @g_pCubeMesh, align 8
  %32 = icmp ne ptr %31, null
  %or.cond3 = select i1 %or.cond, i1 %32, i1 false
  br i1 %or.cond3, label %33, label %256

33:                                               ; 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 %34 unwind label %41

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

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

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

38:                                               ; preds = %36
  %39 = load i32, ptr @_ZL13g_eLightModel, align 4, !tbaa !9
  %40 = icmp ult i32 %39, 3
  br i1 %40, label %switch.lookup, label %49

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

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

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

switch.lookup:                                    ; preds = %38
  %47 = zext nneg i32 %39 to i64
  %switch.gep = getelementptr inbounds [3 x ptr], ptr @switch.table._Z7displayv, i64 0, i64 %47
  %switch.load = load ptr, ptr %switch.gep, align 8
  %48 = zext nneg i32 %39 to i64
  %switch.gep69 = getelementptr inbounds [3 x ptr], ptr @switch.table._Z7displayv.1, i64 0, i64 %48
  %switch.load70 = load ptr, ptr %switch.gep69, align 8
  br label %49

49:                                               ; preds = %switch.lookup, %38
  %.030 = phi ptr [ null, %38 ], [ %switch.load, %switch.lookup ]
  %.029 = phi ptr [ null, %38 ], [ %switch.load70, %switch.lookup ]
  %50 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %51 = load i32, ptr %.030, align 4, !tbaa !11
  invoke void %50(i32 noundef %51)
          to label %52 unwind label %142

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

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

60:                                               ; preds = %56
  %61 = load ptr, ptr @_funcptr_glUniform3fv, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %.030, i64 20
  %63 = load i32, ptr %62, align 4, !tbaa !15
  %64 = call noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %4)
  invoke void %61(i32 noundef %63, i32 noundef 1, ptr noundef %64)
          to label %65 unwind label %142

65:                                               ; preds = %60
  %66 = load ptr, ptr @_funcptr_glUniform1f, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %.030, i64 24
  %68 = load i32, ptr %67, align 4, !tbaa !16
  invoke void %66(i32 noundef %68, float noundef 0x3FF3333340000000)
          to label %69 unwind label %142

69:                                               ; preds = %65
  %70 = load ptr, ptr @_funcptr_glUniform1f, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %.030, i64 28
  %72 = load i32, ptr %71, align 4, !tbaa !17
  %73 = load float, ptr @_ZL18g_fShininessFactor, align 4, !tbaa !18
  invoke void %70(i32 noundef %72, float noundef %73)
          to label %74 unwind label %142

74:                                               ; preds = %69
  %75 = load ptr, ptr @_funcptr_glUniform4fv, align 8, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %.030, i64 32
  %77 = load i32, ptr %76, align 4, !tbaa !20
  %78 = load i8, ptr @_ZL11g_bDrawDark, align 1, !tbaa !21, !range !23, !noundef !24
  %79 = trunc nuw i8 %78 to i1
  %_ZL11g_darkColor._ZL12g_lightColor = select i1 %79, ptr @_ZL11g_darkColor, ptr @_ZL12g_lightColor
  %80 = call noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %_ZL11g_darkColor._ZL12g_lightColor)
  invoke void %75(i32 noundef %77, i32 noundef 1, ptr noundef %80)
          to label %81 unwind label %142

81:                                               ; preds = %74
  %82 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %83 = load i32, ptr %.029, align 4, !tbaa !11
  invoke void %82(i32 noundef %83)
          to label %84 unwind label %142

84:                                               ; preds = %81
  %85 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %.029, i64 8
  %87 = load i32, ptr %86, align 4, !tbaa !13
  invoke void %85(i32 noundef %87, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 0x3FE99999A0000000, float noundef 1.000000e+00)
          to label %88 unwind label %142

88:                                               ; preds = %84
  %89 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %.029, i64 12
  %91 = load i32, ptr %90, align 4, !tbaa !14
  invoke void %89(i32 noundef %91, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 1.000000e+00)
          to label %92 unwind label %142

92:                                               ; preds = %88
  %93 = load ptr, ptr @_funcptr_glUniform3fv, align 8, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %.029, i64 20
  %95 = load i32, ptr %94, align 4, !tbaa !15
  %96 = call noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %4)
  invoke void %93(i32 noundef %95, i32 noundef 1, ptr noundef %96)
          to label %97 unwind label %142

97:                                               ; preds = %92
  %98 = load ptr, ptr @_funcptr_glUniform1f, align 8, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %.029, i64 24
  %100 = load i32, ptr %99, align 4, !tbaa !16
  invoke void %98(i32 noundef %100, float noundef 0x3FF3333340000000)
          to label %101 unwind label %142

101:                                              ; preds = %97
  %102 = load ptr, ptr @_funcptr_glUniform1f, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %.029, i64 28
  %104 = load i32, ptr %103, align 4, !tbaa !17
  %105 = load float, ptr @_ZL18g_fShininessFactor, align 4, !tbaa !18
  invoke void %102(i32 noundef %104, float noundef %105)
          to label %106 unwind label %142

106:                                              ; preds = %101
  %107 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %107(i32 noundef 0)
          to label %108 unwind label %142

108:                                              ; preds = %106
  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 %109 unwind label %144

109:                                              ; preds = %108
  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 %110 unwind label %146

110:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %7) #6
  %111 = 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) %111)
          to label %112 unwind label %148

112:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %9) #6
  invoke void @_ZN3glm7inverseIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tmat3x3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(36) %7)
          to label %113 unwind label %150

113:                                              ; preds = %112
  invoke void @_ZN3glm9transposeIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tmat3x3") align 4 %8, ptr noundef nonnull align 4 dereferenceable(36) %9)
          to label %114 unwind label %150

114:                                              ; preds = %113
  %115 = invoke noundef nonnull align 4 dereferenceable(36) ptr @_ZN3glm6detail7tmat3x3IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(36) %7, ptr noundef nonnull align 4 dereferenceable(36) %8)
          to label %116 unwind label %150

116:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %8) #6
  %117 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %118 = load i32, ptr %.030, align 4, !tbaa !11
  invoke void %117(i32 noundef %118)
          to label %119 unwind label %148

119:                                              ; preds = %116
  %120 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %.030, i64 4
  %122 = load i32, ptr %121, align 4, !tbaa !25
  %123 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %124 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %123)
          to label %125 unwind label %148

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

126:                                              ; preds = %125
  %127 = load ptr, ptr @_funcptr_glUniformMatrix3fv, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %.030, i64 16
  %129 = load i32, ptr %128, align 4, !tbaa !26
  %130 = call noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36) %7)
  invoke void %127(i32 noundef %129, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %130)
          to label %131 unwind label %148

131:                                              ; preds = %126
  %132 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  invoke void @_ZNK9Framework4Mesh6RenderEv(ptr noundef nonnull align 8 dereferenceable(8) %132)
          to label %133 unwind label %148

133:                                              ; preds = %131
  %134 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %134(i32 noundef 0)
          to label %135 unwind label %148

135:                                              ; preds = %133
  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 %10) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %136 unwind label %154

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

137:                                              ; preds = %136
  invoke void @_ZN6glutil11MatrixStack11ApplyMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(64) %11)
          to label %138 unwind label %156

138:                                              ; preds = %137
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #6
  %139 = load i8, ptr @_ZL11g_bScaleCyl, align 1, !tbaa !21, !range !23, !noundef !24
  %140 = trunc nuw i8 %139 to i1
  br i1 %140, label %141, label %160

141:                                              ; preds = %138
  invoke void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88) %1, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3FC99999A0000000)
          to label %160 unwind label %158

142:                                              ; preds = %106, %101, %97, %92, %88, %84, %81, %74, %69, %65, %60, %56, %52, %49
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %253

144:                                              ; preds = %108
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %252

146:                                              ; preds = %109
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %153

148:                                              ; preds = %133, %131, %126, %125, %119, %116, %110
  %149 = landingpad { ptr, i32 }
          cleanup
  br label %152

150:                                              ; preds = %114, %113, %112
  %151 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %8) #6
  br label %152

152:                                              ; preds = %150, %148
  %.pn = phi { ptr, i32 } [ %149, %148 ], [ %151, %150 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %7) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %153

153:                                              ; preds = %152, %146
  %.pn.pn = phi { ptr, i32 } [ %.pn, %152 ], [ %147, %146 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %251

154:                                              ; preds = %135
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %236

156:                                              ; preds = %137, %136
  %157 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #6
  br label %235

158:                                              ; preds = %141
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %235

160:                                              ; preds = %141, %138
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %12) #6
  %161 = 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) %12, ptr noundef nonnull align 4 dereferenceable(64) %161)
          to label %162 unwind label %191

162:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %14) #6
  invoke void @_ZN3glm7inverseIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tmat3x3") align 4 %14, ptr noundef nonnull align 4 dereferenceable(36) %12)
          to label %163 unwind label %193

163:                                              ; preds = %162
  invoke void @_ZN3glm9transposeIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tmat3x3") align 4 %13, ptr noundef nonnull align 4 dereferenceable(36) %14)
          to label %164 unwind label %193

164:                                              ; preds = %163
  %165 = invoke noundef nonnull align 4 dereferenceable(36) ptr @_ZN3glm6detail7tmat3x3IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(36) %13)
          to label %166 unwind label %193

166:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #6
  %167 = load i8, ptr @_ZL17g_bDrawColoredCyl, align 1, !tbaa !21, !range !23, !noundef !24
  %168 = trunc nuw i8 %167 to i1
  %169 = select i1 %168, ptr %.029, ptr %.030
  %170 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %171 = load i32, ptr %169, align 4, !tbaa !11
  invoke void %170(i32 noundef %171)
          to label %172 unwind label %195

172:                                              ; preds = %166
  %173 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %174 = getelementptr inbounds i8, ptr %169, i64 4
  %175 = load i32, ptr %174, align 4, !tbaa !25
  %176 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %177 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %176)
          to label %178 unwind label %195

178:                                              ; preds = %172
  invoke void %173(i32 noundef %175, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %177)
          to label %179 unwind label %195

179:                                              ; preds = %178
  %180 = load ptr, ptr @_funcptr_glUniformMatrix3fv, align 8, !tbaa !5
  %181 = getelementptr inbounds i8, ptr %169, i64 16
  %182 = load i32, ptr %181, align 4, !tbaa !26
  %183 = call noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36) %12)
  invoke void %180(i32 noundef %182, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %183)
          to label %184 unwind label %195

184:                                              ; preds = %179
  %185 = load i8, ptr @_ZL17g_bDrawColoredCyl, align 1, !tbaa !21, !range !23, !noundef !24
  %186 = trunc nuw i8 %185 to i1
  %187 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  br i1 %186, label %188, label %202

188:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull @.str.27, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %189 unwind label %197

189:                                              ; preds = %188
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %187, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %190 unwind label %199

190:                                              ; preds = %189
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  br label %210

191:                                              ; preds = %160
  %192 = landingpad { ptr, i32 }
          cleanup
  br label %234

193:                                              ; preds = %164, %163, %162
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #6
  br label %234

195:                                              ; preds = %210, %179, %178, %172, %166
  %196 = landingpad { ptr, i32 }
          cleanup
  br label %234

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

199:                                              ; preds = %189
  %200 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %201

201:                                              ; preds = %199, %197
  %.pn52 = phi { ptr, i32 } [ %200, %199 ], [ %198, %197 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  br label %234

202:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %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 nonnull @.str.28, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %203 unwind label %205

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

204:                                              ; preds = %203
  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 nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  br label %210

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

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

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

210:                                              ; preds = %204, %190
  %211 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %211(i32 noundef 0)
          to label %212 unwind label %195

212:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %12) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  %213 = load i8, ptr @_ZL18g_bDrawLightSource, align 1, !tbaa !21, !range !23, !noundef !24
  %214 = trunc nuw i8 %213 to i1
  br i1 %214, label %215, label %250

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

216:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #6
  call void @_ZN3glm6detail5tvec3IfEC2IfEERKNS0_5tvec4IT_EE(ptr noundef nonnull align 4 dereferenceable(12) %20, 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) %20)
          to label %217 unwind label %239

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

218:                                              ; preds = %217
  %219 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %220 = load i32, ptr @g_Unlit, align 4, !tbaa !27
  invoke void %219(i32 noundef %220)
          to label %221 unwind label %241

221:                                              ; preds = %218
  %222 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %223 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 8), align 4, !tbaa !29
  %224 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %225 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %224)
          to label %226 unwind label %241

226:                                              ; preds = %221
  invoke void %222(i32 noundef %223, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %225)
          to label %227 unwind label %241

227:                                              ; preds = %226
  %228 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %229 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 4), align 4, !tbaa !30
  invoke void %228(i32 noundef %229, float noundef 0x3FE9D97F60000000, float noundef 0x3FEBDBF480000000, float noundef 0x3FEFC01A40000000, float noundef 1.000000e+00)
          to label %230 unwind label %241

230:                                              ; preds = %227
  %231 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %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 nonnull @.str.29, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %232 unwind label %243

232:                                              ; preds = %230
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %233 unwind label %245

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

234:                                              ; preds = %195, %201, %209, %193, %191
  %.pn54.pn = phi { ptr, i32 } [ %194, %193 ], [ %192, %191 ], [ %196, %195 ], [ %.pn52, %201 ], [ %.pn50, %209 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %12) #6
  br label %235

235:                                              ; preds = %234, %158, %156
  %.pn54.pn.pn = phi { ptr, i32 } [ %.pn54.pn, %234 ], [ %159, %158 ], [ %157, %156 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %236

236:                                              ; preds = %235, %154
  %.pn54.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn, %235 ], [ %155, %154 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %251

237:                                              ; preds = %215
  %238 = landingpad { ptr, i32 }
          cleanup
  br label %249

239:                                              ; preds = %216
  %240 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #6
  br label %248

241:                                              ; preds = %227, %226, %221, %218, %217
  %242 = landingpad { ptr, i32 }
          cleanup
  br label %248

243:                                              ; preds = %230
  %244 = landingpad { ptr, i32 }
          cleanup
  br label %247

245:                                              ; preds = %232
  %246 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %247

247:                                              ; preds = %245, %243
  %.pn59 = phi { ptr, i32 } [ %246, %245 ], [ %244, %243 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  br label %248

248:                                              ; preds = %247, %241, %239
  %.pn59.pn = phi { ptr, i32 } [ %.pn59, %247 ], [ %242, %241 ], [ %240, %239 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br label %249

249:                                              ; preds = %248, %237
  %.pn59.pn.pn = phi { ptr, i32 } [ %.pn59.pn, %248 ], [ %238, %237 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  br label %251

250:                                              ; preds = %233, %212
  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 %256

251:                                              ; preds = %249, %236, %153
  %.pn59.pn.pn.pn = phi { ptr, i32 } [ %.pn59.pn.pn, %249 ], [ %.pn54.pn.pn.pn, %236 ], [ %.pn.pn, %153 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br label %252

252:                                              ; preds = %251, %144
  %.pn59.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn59.pn.pn.pn, %251 ], [ %145, %144 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %253

253:                                              ; preds = %252, %142
  %.pn59.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn59.pn.pn.pn.pn, %252 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  br label %254

254:                                              ; preds = %253, %45
  %.pn59.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn59.pn.pn.pn.pn.pn, %253 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %255

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

256:                                              ; preds = %250, %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_ptrIfEEPKT_RKNS_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 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 void @_ZN3glm9transposeIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tmat3x3") align 4, ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZN3glm6detail7tmat3x3IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #4 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 nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #5

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

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

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

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

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

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

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

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

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

declare void @glutPostRedisplay() local_unnamed_addr #3

declare void @glutSwapBuffers() local_unnamed_addr #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS11ProgramData", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 12}
!15 = !{!12, !10, i64 20}
!16 = !{!12, !10, i64 24}
!17 = !{!12, !10, i64 28}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = !{!12, !10, i64 32}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!12, !10, i64 4}
!26 = !{!12, !10, i64 16}
!27 = !{!28, !10, i64 0}
!28 = !{!"_ZTS13UnlitProgData", !10, i64 0, !10, i64 4, !10, i64 8}
!29 = !{!28, !10, i64 8}
!30 = !{!28, !10, i64 4}


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