; LLVM IR from paroj/gltut :: Tut 07 World in Motion/WorldWithUBO.ll (Z7displayv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ProgramData = type { i32, i32, i32, i32, i32 }
%"struct.glm::detail::tvec3" = type { %union.anon.6 }
%union.anon.6 = type { %struct.anon.7 }
%struct.anon.7 = type { float, float, float }
%"struct.glm::detail::tmat4x4" = type { [4 x %"struct.glm::detail::tvec4"] }
%"struct.glm::detail::tvec4" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon }
%struct.anon = type { float, float, float, float }
%"class.glutil::MatrixStack" = type { %"class.std::stack", %"struct.glm::detail::tmat4x4" }
%"class.std::stack" = type { %"class.std::vector.10" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<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 }
%"class.glutil::PushStack" = type { ptr }

@UniformColor = external dso_local global %struct.ProgramData, align 4
@ObjectColor = external dso_local global %struct.ProgramData, align 4
@g_GlobalMatricesUBO = external dso_local global i32, align 4
@_funcptr_glBindBuffer = external global ptr, align 8
@g_pConeMesh = external dso_local global ptr, align 8
@g_pCylinderMesh = external dso_local global ptr, align 8
@g_pCubeTintMesh = external dso_local global ptr, align 8
@g_pCubeColorMesh = external dso_local global ptr, align 8
@g_pPlaneMesh = external dso_local global ptr, align 8
@_funcptr_glEnable = external global ptr, align 8
@_funcptr_glUseProgram = external global ptr, align 8
@_funcptr_glUniformMatrix4fv = external global ptr, align 8
@_funcptr_glUniform4f = external global ptr, align 8
@_ZL11g_camTarget = external hidden global %"struct.glm::detail::tvec3", align 4
@_funcptr_glClearColor = external global ptr, align 8
@_funcptr_glClearDepth = external global ptr, align 8
@_funcptr_glClear = external global ptr, align 8
@_funcptr_glBufferSubData = external global ptr, align 8
@_ZL18g_bDrawLookatPoint = external hidden global i8, align 1
@_funcptr_glDisable = external global ptr, align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

declare void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(12)) #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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88)) #5 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z18ResolveCamPositionv(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec3") align 4) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7displayv() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca ptr, align 8
  %2 = alloca %"struct.glm::detail::tvec3", align 4
  %3 = alloca %"class.glutil::MatrixStack", align 8
  %4 = alloca %"struct.glm::detail::tmat4x4", align 4
  %5 = alloca %"struct.glm::detail::tvec3", align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.glutil::MatrixStack", align 8
  %12 = alloca %"class.glutil::PushStack", align 8
  %13 = alloca %"struct.glm::detail::tvec3", align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca %"class.glutil::PushStack", align 8
  %18 = alloca %"struct.glm::detail::tvec3", align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca %"class.glutil::PushStack", align 8
  %23 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  call void %23(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %24 = load ptr, ptr @_funcptr_glClearDepth, align 8, !tbaa !5
  call void %24(double noundef 1.000000e+00)
  %25 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  call void %25(i32 noundef 16640)
  %26 = load ptr, ptr @g_pConeMesh, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %163

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

31:                                               ; preds = %28
  %32 = load ptr, ptr @g_pCubeTintMesh, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %163

34:                                               ; preds = %31
  %35 = load ptr, ptr @g_pCubeColorMesh, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %163

37:                                               ; preds = %34
  %38 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %163

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %2) #6
  call void @_Z18ResolveCamPositionv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec3") align 4 %2)
  store ptr %2, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 88, ptr %3) #6
  call void @_ZN6glutil11MatrixStackC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %3)
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #6
  %41 = load ptr, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store float 0.000000e+00, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store float 1.000000e+00, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store float 0.000000e+00, ptr %8, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %42 unwind label %106

42:                                               ; preds = %40
  invoke void @_Z16CalcLookAtMatrixRKN3glm6detail5tvec3IfEES4_S4_(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat4x4") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(12) @_ZL11g_camTarget, ptr noundef nonnull align 4 dereferenceable(12) %5)
          to label %43 unwind label %106

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

44:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #6
  %45 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  %46 = load i32, ptr @g_GlobalMatricesUBO, align 4, !tbaa !11
  invoke void %45(i32 noundef 35345, i32 noundef %46)
          to label %47 unwind label %110

47:                                               ; preds = %44
  %48 = load ptr, ptr @_funcptr_glBufferSubData, align 8, !tbaa !5
  %49 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %3)
          to label %50 unwind label %110

50:                                               ; preds = %47
  %51 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %49)
          to label %52 unwind label %110

52:                                               ; preds = %50
  invoke void %48(i32 noundef 35345, i64 noundef 64, i64 noundef 64, ptr noundef %51)
          to label %53 unwind label %110

53:                                               ; preds = %52
  %54 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  invoke void %54(i32 noundef 35345, i32 noundef 0)
          to label %55 unwind label %110

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 88, ptr %11) #6
  invoke void @_ZN6glutil11MatrixStackC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %11)
          to label %56 unwind label %114

56:                                               ; preds = %55
  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) %11)
          to label %57 unwind label %118

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store float 1.000000e+02, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store float 1.000000e+00, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store float 1.000000e+02, ptr %16, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %58 unwind label %122

58:                                               ; preds = %57
  invoke void @_ZN6glutil11MatrixStack5ScaleERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %11, ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %59 unwind label %122

59:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #6
  %60 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %61 = load i32, ptr @UniformColor, align 4, !tbaa !13
  invoke void %60(i32 noundef %61)
          to label %62 unwind label %126

62:                                               ; preds = %59
  %63 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %64 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @UniformColor, i32 0, i32 2), align 4, !tbaa !15
  %65 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %11)
          to label %66 unwind label %126

66:                                               ; preds = %62
  %67 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %65)
          to label %68 unwind label %126

68:                                               ; preds = %66
  invoke void %63(i32 noundef %64, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %67)
          to label %69 unwind label %126

69:                                               ; preds = %68
  %70 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %71 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @UniformColor, i32 0, i32 3), align 4, !tbaa !16
  invoke void %70(i32 noundef %71, float noundef 0x3FD353F7C0000000, float noundef 0x3FDA9FBE80000000, float noundef 0x3FAE282400000000, float noundef 1.000000e+00)
          to label %72 unwind label %126

72:                                               ; preds = %69
  %73 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  invoke void @_ZNK9Framework4Mesh6RenderEv(ptr noundef nonnull align 8 dereferenceable(8) %73)
          to label %74 unwind label %126

74:                                               ; preds = %72
  %75 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %75(i32 noundef 0)
          to label %76 unwind label %126

76:                                               ; preds = %74
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  invoke void @_Z10DrawForestRN6glutil11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(88) %11)
          to label %77 unwind label %132

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

78:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store float 2.000000e+01, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store float 0.000000e+00, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store float -1.000000e+01, ptr %21, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %79 unwind label %140

79:                                               ; preds = %78
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %11, ptr noundef nonnull align 4 dereferenceable(12) %18)
          to label %80 unwind label %140

80:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #6
  invoke void @_Z13DrawParthenonRN6glutil11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(88) %11)
          to label %81 unwind label %144

81:                                               ; preds = %80
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %82 = load i8, ptr @_ZL18g_bDrawLookatPoint, align 1, !tbaa !17, !range !19, !noundef !20
  %83 = trunc i8 %82 to i1
  br i1 %83, label %84, label %159

84:                                               ; preds = %81
  %85 = load ptr, ptr @_funcptr_glDisable, align 8, !tbaa !5
  invoke void %85(i32 noundef 2929)
          to label %86 unwind label %132

86:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(88) %11)
          to label %87 unwind label %150

87:                                               ; preds = %86
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %11, ptr noundef nonnull align 4 dereferenceable(12) @_ZL11g_camTarget)
          to label %88 unwind label %154

88:                                               ; preds = %87
  invoke void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88) %11, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %89 unwind label %154

89:                                               ; preds = %88
  %90 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %91 = load i32, ptr @ObjectColor, align 4, !tbaa !13
  invoke void %90(i32 noundef %91)
          to label %92 unwind label %154

92:                                               ; preds = %89
  %93 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %94 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @ObjectColor, i32 0, i32 2), align 4, !tbaa !15
  %95 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %11)
          to label %96 unwind label %154

96:                                               ; preds = %92
  %97 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %95)
          to label %98 unwind label %154

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

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

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

103:                                              ; preds = %101
  %104 = load ptr, ptr @_funcptr_glEnable, align 8, !tbaa !5
  invoke void %104(i32 noundef 2929)
          to label %105 unwind label %154

105:                                              ; preds = %103
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %159

106:                                              ; preds = %43, %42, %40
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %9, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #6
  br label %162

110:                                              ; preds = %53, %52, %50, %47, %44
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %9, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %10, align 4
  br label %162

114:                                              ; preds = %55
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %9, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %10, align 4
  br label %161

118:                                              ; preds = %56
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %9, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %10, align 4
  br label %131

122:                                              ; preds = %58, %57
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %9, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #6
  br label %130

126:                                              ; preds = %74, %72, %69, %68, %66, %62, %59
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %9, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %10, align 4
  br label %130

130:                                              ; preds = %126, %122
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %131

131:                                              ; preds = %130, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %160

132:                                              ; preds = %84, %76
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %9, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %10, align 4
  br label %160

136:                                              ; preds = %77
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %9, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %10, align 4
  br label %149

140:                                              ; preds = %79, %78
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %9, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #6
  br label %148

144:                                              ; preds = %80
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %9, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %10, align 4
  br label %148

148:                                              ; preds = %144, %140
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %149

149:                                              ; preds = %148, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %160

150:                                              ; preds = %86
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %9, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %10, align 4
  br label %158

154:                                              ; preds = %103, %101, %99, %98, %96, %92, %89, %88, %87
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %9, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %10, align 4
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br label %158

158:                                              ; preds = %154, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %160

159:                                              ; preds = %105, %81
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %11) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #6
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %3) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  br label %163

160:                                              ; preds = %158, %149, %132, %131
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %11) #6
  br label %161

161:                                              ; preds = %160, %114
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #6
  br label %162

162:                                              ; preds = %161, %110, %106
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %3) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  br label %164

163:                                              ; preds = %159, %37, %34, %31, %28, %0
  call void @glutSwapBuffers()
  ret void

164:                                              ; preds = %162
  %165 = load ptr, ptr %9, align 8
  %166 = load i32, ptr %10, align 4
  %167 = insertvalue { ptr, i32 } poison, ptr %165, 0
  %168 = insertvalue { ptr, i32 } %167, i32 %166, 1
  resume { ptr, i32 } %168
}

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

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

declare void @glutSwapBuffers() #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS11ProgramData", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!15 = !{!14, !12, i64 8}
!16 = !{!14, !12, i64 12}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ProgramData = type { i32, i32, i32, i32, i32 }
%"struct.glm::detail::tvec3" = type { %union.anon.6 }
%union.anon.6 = type { %struct.anon.7 }
%struct.anon.7 = type { float, float, float }
%"struct.glm::detail::tmat4x4" = type { [4 x %"struct.glm::detail::tvec4"] }
%"struct.glm::detail::tvec4" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon }
%struct.anon = type { float, float, float, float }
%"class.glutil::MatrixStack" = type { %"class.std::stack", %"struct.glm::detail::tmat4x4" }
%"class.std::stack" = type { %"class.std::vector.10" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<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 }
%"class.glutil::PushStack" = type { ptr }

@UniformColor = external dso_local local_unnamed_addr global %struct.ProgramData, align 4
@ObjectColor = external dso_local local_unnamed_addr global %struct.ProgramData, align 4
@g_GlobalMatricesUBO = external dso_local local_unnamed_addr global i32, align 4
@_funcptr_glBindBuffer = external local_unnamed_addr global ptr, align 8
@g_pConeMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_pCylinderMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_pCubeTintMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_pCubeColorMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_pPlaneMesh = external dso_local local_unnamed_addr global ptr, align 8
@_funcptr_glEnable = external local_unnamed_addr global ptr, align 8
@_funcptr_glUseProgram = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniformMatrix4fv = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniform4f = external local_unnamed_addr global ptr, align 8
@_ZL11g_camTarget = external hidden global %"struct.glm::detail::tvec3", align 4
@_funcptr_glClearColor = external local_unnamed_addr global ptr, align 8
@_funcptr_glClearDepth = external local_unnamed_addr global ptr, align 8
@_funcptr_glClear = external local_unnamed_addr global ptr, align 8
@_funcptr_glBufferSubData = external local_unnamed_addr global ptr, align 8
@_ZL18g_bDrawLookatPoint = external hidden local_unnamed_addr global i8, align 1
@_funcptr_glDisable = external local_unnamed_addr global ptr, align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

declare void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13DrawParthenonRN6glutil11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10DrawForestRN6glutil11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z18ResolveCamPositionv(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec3") align 4) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7displayv() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.glm::detail::tvec3", align 4
  %2 = alloca %"class.glutil::MatrixStack", align 8
  %3 = alloca %"struct.glm::detail::tmat4x4", align 4
  %4 = alloca %"struct.glm::detail::tvec3", align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca %"class.glutil::MatrixStack", align 8
  %9 = alloca %"class.glutil::PushStack", align 8
  %10 = alloca %"struct.glm::detail::tvec3", align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca %"class.glutil::PushStack", align 8
  %15 = alloca %"struct.glm::detail::tvec3", align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca %"class.glutil::PushStack", align 8
  %20 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  tail call void %20(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %21 = load ptr, ptr @_funcptr_glClearDepth, align 8, !tbaa !5
  tail call void %21(double noundef 1.000000e+00)
  %22 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  tail call void %22(i32 noundef 16640)
  %23 = load ptr, ptr @g_pConeMesh, align 8, !tbaa !5
  %24 = load ptr, ptr @g_pCylinderMesh, align 8
  %25 = load ptr, ptr @g_pCubeTintMesh, align 8
  %26 = load ptr, ptr @g_pCubeColorMesh, align 8
  %27 = insertelement <4 x ptr> poison, ptr %23, i64 0
  %28 = insertelement <4 x ptr> %27, ptr %24, i64 1
  %29 = insertelement <4 x ptr> %28, ptr %25, i64 2
  %30 = insertelement <4 x ptr> %29, ptr %26, i64 3
  %.fr = freeze <4 x ptr> %30
  %31 = load ptr, ptr @g_pPlaneMesh, align 8
  %32 = icmp ne ptr %31, null
  %33 = icmp eq <4 x ptr> %.fr, zeroinitializer
  %34 = bitcast <4 x i1> %33 to i4
  %35 = icmp eq i4 %34, 0
  %op.rdx = select i1 %35, i1 %32, i1 false
  br i1 %op.rdx, label %36, label %128

36:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %1) #6
  call void @_Z18ResolveCamPositionv(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec3") align 4 %1)
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %2) #6
  call void @_ZN6glutil11MatrixStackC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %2)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store float 0.000000e+00, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store float 1.000000e+00, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  store float 0.000000e+00, ptr %7, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  invoke void @_Z16CalcLookAtMatrixRKN3glm6detail5tvec3IfEES4_S4_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tmat4x4") align 4 %3, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) @_ZL11g_camTarget, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %37 unwind label %95

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

38:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  %39 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  %40 = load i32, ptr @g_GlobalMatricesUBO, align 4, !tbaa !11
  invoke void %39(i32 noundef 35345, i32 noundef %40)
          to label %41 unwind label %97

41:                                               ; preds = %38
  %42 = load ptr, ptr @_funcptr_glBufferSubData, align 8, !tbaa !5
  %43 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %44 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %43)
          to label %45 unwind label %97

45:                                               ; preds = %41
  invoke void %42(i32 noundef 35345, i64 noundef 64, i64 noundef 64, ptr noundef %44)
          to label %46 unwind label %97

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

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %8) #6
  invoke void @_ZN6glutil11MatrixStackC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8)
          to label %49 unwind label %99

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(88) %8)
          to label %50 unwind label %101

50:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  store float 1.000000e+02, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  store float 1.000000e+00, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  store float 1.000000e+02, ptr %13, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  invoke void @_ZN6glutil11MatrixStack5ScaleERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %8, ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %51 unwind label %103

51:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  %52 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %53 = load i32, ptr @UniformColor, align 4, !tbaa !13
  invoke void %52(i32 noundef %53)
          to label %54 unwind label %105

54:                                               ; preds = %51
  %55 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %56 = load i32, ptr getelementptr inbounds (i8, ptr @UniformColor, i64 8), align 4, !tbaa !15
  %57 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %8)
  %58 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %57)
          to label %59 unwind label %105

59:                                               ; preds = %54
  invoke void %55(i32 noundef %56, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %58)
          to label %60 unwind label %105

60:                                               ; preds = %59
  %61 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @UniformColor, i64 12), align 4, !tbaa !16
  invoke void %61(i32 noundef %62, float noundef 0x3FD353F7C0000000, float noundef 0x3FDA9FBE80000000, float noundef 0x3FAE282400000000, float noundef 1.000000e+00)
          to label %63 unwind label %105

63:                                               ; preds = %60
  %64 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  invoke void @_ZNK9Framework4Mesh6RenderEv(ptr noundef nonnull align 8 dereferenceable(8) %64)
          to label %65 unwind label %105

65:                                               ; preds = %63
  %66 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %66(i32 noundef 0)
          to label %67 unwind label %105

67:                                               ; preds = %65
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  invoke void @_Z10DrawForestRN6glutil11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(88) %8)
          to label %68 unwind label %109

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(88) %8)
          to label %69 unwind label %111

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  store float 2.000000e+01, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  store float 0.000000e+00, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  store float -1.000000e+01, ptr %18, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %8, ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %70 unwind label %113

70:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #6
  invoke void @_Z13DrawParthenonRN6glutil11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(88) %8)
          to label %71 unwind label %115

71:                                               ; preds = %70
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  %72 = load i8, ptr @_ZL18g_bDrawLookatPoint, align 1, !tbaa !17, !range !19, !noundef !20
  %73 = trunc nuw i8 %72 to i1
  br i1 %73, label %74, label %124

74:                                               ; preds = %71
  %75 = load ptr, ptr @_funcptr_glDisable, align 8, !tbaa !5
  invoke void %75(i32 noundef 2929)
          to label %76 unwind label %109

76:                                               ; preds = %74
  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) %8)
          to label %77 unwind label %119

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

78:                                               ; preds = %77
  invoke void @_ZN6glutil11MatrixStack5ScaleEfff(ptr noundef nonnull align 8 dereferenceable(88) %8, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %79 unwind label %121

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

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

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

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

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

92:                                               ; preds = %90
  %93 = load ptr, ptr @_funcptr_glEnable, align 8, !tbaa !5
  invoke void %93(i32 noundef 2929)
          to label %94 unwind label %121

94:                                               ; preds = %92
  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 %124

95:                                               ; preds = %37, %36
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  br label %127

97:                                               ; preds = %46, %45, %41, %38
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %127

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

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

103:                                              ; preds = %50
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  br label %107

105:                                              ; preds = %65, %63, %60, %59, %54, %51
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %107

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

108:                                              ; preds = %107, %101
  %.pn.pn = phi { ptr, i32 } [ %.pn, %107 ], [ %102, %101 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %125

109:                                              ; preds = %74, %67
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %125

111:                                              ; preds = %68
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %118

113:                                              ; preds = %69
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #6
  br label %117

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

117:                                              ; preds = %115, %113
  %.pn19 = phi { ptr, i32 } [ %116, %115 ], [ %114, %113 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br label %118

118:                                              ; preds = %117, %111
  %.pn19.pn = phi { ptr, i32 } [ %.pn19, %117 ], [ %112, %111 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %125

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

121:                                              ; preds = %92, %90, %88, %87, %82, %79, %78, %77
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br label %123

123:                                              ; preds = %121, %119
  %.pn22 = phi { ptr, i32 } [ %122, %121 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  br label %125

124:                                              ; preds = %94, %71
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %8) #6
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %2) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #6
  br label %128

125:                                              ; preds = %123, %118, %109, %108
  %.pn22.pn = phi { ptr, i32 } [ %.pn22, %123 ], [ %110, %109 ], [ %.pn19.pn, %118 ], [ %.pn.pn, %108 ]
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #6
  br label %126

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

127:                                              ; preds = %126, %97, %95
  %.pn22.pn.pn.pn = phi { ptr, i32 } [ %.pn22.pn.pn, %126 ], [ %98, %97 ], [ %96, %95 ]
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %2) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn22.pn.pn.pn

128:                                              ; preds = %124, %0
  call void @glutSwapBuffers()
  ret void
}

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

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

declare void @glutSwapBuffers() local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS11ProgramData", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!15 = !{!14, !12, i64 8}
!16 = !{!14, !12, i64 12}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}


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