; LLVM IR from paroj/gltut :: Tut 07 World in Motion/WorldScene.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
@UniformColorTint = external dso_local global %struct.ProgramData, align 4
@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
@_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: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6detailmiIfEENS0_5tvec3IT_EERKS4_S6_(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6detail7tmat4x4IfEC2ERKf(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

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

declare void @_ZN6glutil11MatrixStack5ScaleERKN3glm6detail5tvec3IfEE(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 @_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 #4 align 2

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

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

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

; 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 #4 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 %"struct.glm::detail::tmat4x4", align 4
  %23 = alloca float, align 4
  %24 = alloca %"class.glutil::PushStack", align 8
  %25 = alloca %"struct.glm::detail::tvec3", align 4
  %26 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  call void %26(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %27 = load ptr, ptr @_funcptr_glClearDepth, align 8, !tbaa !5
  call void %27(double noundef 1.000000e+00)
  %28 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  call void %28(i32 noundef 16640)
  %29 = load ptr, ptr @g_pConeMesh, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %203

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

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

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

40:                                               ; preds = %37
  %41 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %203

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

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

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

47:                                               ; preds = %46
  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
  %48 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %49 = load i32, ptr @UniformColor, align 4, !tbaa !11
  invoke void %48(i32 noundef %49)
          to label %50 unwind label %145

50:                                               ; preds = %47
  %51 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %52 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @UniformColor, i32 0, i32 2), align 4, !tbaa !14
  %53 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %3)
          to label %54 unwind label %145

54:                                               ; preds = %50
  %55 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %53)
          to label %56 unwind label %145

56:                                               ; preds = %54
  invoke void %51(i32 noundef %52, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %55)
          to label %57 unwind label %145

57:                                               ; preds = %56
  %58 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %59 = load i32, ptr @ObjectColor, align 4, !tbaa !11
  invoke void %58(i32 noundef %59)
          to label %60 unwind label %145

60:                                               ; preds = %57
  %61 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %62 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @ObjectColor, i32 0, i32 2), align 4, !tbaa !14
  %63 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %3)
          to label %64 unwind label %145

64:                                               ; preds = %60
  %65 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %63)
          to label %66 unwind label %145

66:                                               ; preds = %64
  invoke void %61(i32 noundef %62, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %65)
          to label %67 unwind label %145

67:                                               ; preds = %66
  %68 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %69 = load i32, ptr @UniformColorTint, align 4, !tbaa !11
  invoke void %68(i32 noundef %69)
          to label %70 unwind label %145

70:                                               ; preds = %67
  %71 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %72 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @UniformColorTint, i32 0, i32 2), align 4, !tbaa !14
  %73 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %3)
          to label %74 unwind label %145

74:                                               ; preds = %70
  %75 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %73)
          to label %76 unwind label %145

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

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

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

80:                                               ; preds = %79
  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 %81 unwind label %153

81:                                               ; preds = %80
  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 %82 unwind label %157

82:                                               ; preds = %81
  invoke void @_ZN6glutil11MatrixStack5ScaleERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %11, ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %83 unwind label %157

83:                                               ; preds = %82
  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
  %84 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %85 = load i32, ptr @UniformColor, align 4, !tbaa !11
  invoke void %84(i32 noundef %85)
          to label %86 unwind label %161

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

90:                                               ; preds = %86
  %91 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %89)
          to label %92 unwind label %161

92:                                               ; preds = %90
  invoke void %87(i32 noundef %88, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %91)
          to label %93 unwind label %161

93:                                               ; preds = %92
  %94 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %95 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @UniformColor, i32 0, i32 4), align 4, !tbaa !16
  invoke void %94(i32 noundef %95, float noundef 0x3FD353F7C0000000, float noundef 0x3FDA9FBE80000000, float noundef 0x3FAE282400000000, float noundef 1.000000e+00)
          to label %96 unwind label %161

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

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

100:                                              ; preds = %98
  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 %101 unwind label %167

101:                                              ; preds = %100
  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 %102 unwind label %171

102:                                              ; preds = %101
  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 %103 unwind label %175

103:                                              ; preds = %102
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %11, ptr noundef nonnull align 4 dereferenceable(12) %18)
          to label %104 unwind label %175

104:                                              ; preds = %103
  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 %105 unwind label %179

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

108:                                              ; preds = %105
  %109 = load ptr, ptr @_funcptr_glDisable, align 8, !tbaa !5
  invoke void %109(i32 noundef 2929)
          to label %110 unwind label %167

110:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store float 1.000000e+00, ptr %23, align 4, !tbaa !9
  invoke void @_ZN3glm6detail7tmat4x4IfEC2ERKf(ptr noundef nonnull align 4 dereferenceable(64) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %111 unwind label %185

111:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(88) %11)
          to label %112 unwind label %189

112:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #6
  %113 = load ptr, ptr %1, align 8, !tbaa !5
  invoke void @_ZN3glm6detailmiIfEENS0_5tvec3IT_EERKS4_S6_(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec3") align 4 %25, ptr noundef nonnull align 4 dereferenceable(12) @_ZL11g_camTarget, ptr noundef nonnull align 4 dereferenceable(12) %113)
          to label %114 unwind label %193

114:                                              ; preds = %112
  %115 = invoke noundef float @_ZN3glm6lengthIfEENS_6detail5tvec3IT_E10value_typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %25)
          to label %116 unwind label %193

116:                                              ; preds = %114
  %117 = fneg float %115
  invoke void @_ZN6glutil11MatrixStack9TranslateEfff(ptr noundef nonnull align 8 dereferenceable(88) %11, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %117)
          to label %118 unwind label %193

118:                                              ; preds = %116
  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 %119 unwind label %193

119:                                              ; preds = %118
  %120 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %121 = load i32, ptr @ObjectColor, align 4, !tbaa !11
  invoke void %120(i32 noundef %121)
          to label %122 unwind label %193

122:                                              ; preds = %119
  %123 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %124 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @ObjectColor, i32 0, i32 1), align 4, !tbaa !15
  %125 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %11)
          to label %126 unwind label %193

126:                                              ; preds = %122
  %127 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %125)
          to label %128 unwind label %193

128:                                              ; preds = %126
  invoke void %123(i32 noundef %124, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %127)
          to label %129 unwind label %193

129:                                              ; preds = %128
  %130 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %131 = load i32, ptr getelementptr inbounds (%struct.ProgramData, ptr @ObjectColor, i32 0, i32 2), align 4, !tbaa !14
  %132 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %22)
          to label %133 unwind label %193

133:                                              ; preds = %129
  invoke void %130(i32 noundef %131, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %132)
          to label %134 unwind label %193

134:                                              ; preds = %133
  %135 = load ptr, ptr @g_pCubeColorMesh, align 8, !tbaa !5
  invoke void @_ZNK9Framework4Mesh6RenderEv(ptr noundef nonnull align 8 dereferenceable(8) %135)
          to label %136 unwind label %193

136:                                              ; preds = %134
  %137 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %137(i32 noundef 0)
          to label %138 unwind label %193

138:                                              ; preds = %136
  %139 = load ptr, ptr @_funcptr_glEnable, align 8, !tbaa !5
  invoke void %139(i32 noundef 2929)
          to label %140 unwind label %193

140:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #6
  br label %199

141:                                              ; preds = %46, %45, %43
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %9, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, 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 %202

145:                                              ; preds = %77, %76, %74, %70, %67, %66, %64, %60, %57, %56, %54, %50, %47
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %9, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %10, align 4
  br label %202

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

153:                                              ; preds = %80
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %9, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %10, align 4
  br label %166

157:                                              ; preds = %82, %81
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %9, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, 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 %165

161:                                              ; preds = %98, %96, %93, %92, %90, %86, %83
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %9, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %10, align 4
  br label %165

165:                                              ; preds = %161, %157
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %166

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

167:                                              ; preds = %108, %100
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %9, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %10, align 4
  br label %200

171:                                              ; preds = %101
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %9, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %10, align 4
  br label %184

175:                                              ; preds = %103, %102
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %9, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, 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 %183

179:                                              ; preds = %104
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %9, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %10, align 4
  br label %183

183:                                              ; preds = %179, %175
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %184

184:                                              ; preds = %183, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %200

185:                                              ; preds = %110
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %9, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %198

189:                                              ; preds = %111
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %9, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %10, align 4
  br label %197

193:                                              ; preds = %138, %136, %134, %133, %129, %128, %126, %122, %119, %118, %116, %114, %112
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %9, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  br label %197

197:                                              ; preds = %193, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %198

198:                                              ; preds = %197, %185
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #6
  br label %200

199:                                              ; preds = %140, %105
  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 %203

200:                                              ; preds = %198, %184, %167, %166
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %11) #6
  br label %201

201:                                              ; preds = %200, %149
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #6
  br label %202

202:                                              ; preds = %201, %145, %141
  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 %204

203:                                              ; preds = %199, %40, %37, %34, %31, %0
  call void @glutSwapBuffers()
  ret void

204:                                              ; preds = %202
  %205 = load ptr, ptr %9, align 8
  %206 = load i32, ptr %10, align 4
  %207 = insertvalue { ptr, i32 } poison, ptr %205, 0
  %208 = insertvalue { ptr, i32 } %207, i32 %206, 1
  resume { ptr, i32 } %208
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN3glm6lengthIfEENS_6detail5tvec3IT_E10value_typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12)) #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

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

declare void @glutSwapBuffers() #3

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 = { 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 #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 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 #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, !13, i64 0}
!12 = !{!"_ZTS11ProgramData", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!12, !13, i64 4}
!16 = !{!12, !13, i64 16}
!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
@UniformColorTint = external dso_local local_unnamed_addr global %struct.ProgramData, align 4
@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
@_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: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6detailmiIfEENS0_5tvec3IT_EERKS4_S6_(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6detail7tmat4x4IfEC2ERKf(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

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

declare void @_ZN6glutil11MatrixStack5ScaleERKN3glm6detail5tvec3IfEE(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 @_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 #4 align 2

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 uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #2

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

; 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 #4 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 %"struct.glm::detail::tmat4x4", align 4
  %20 = alloca float, align 4
  %21 = alloca %"class.glutil::PushStack", align 8
  %22 = alloca %"struct.glm::detail::tvec3", align 4
  %23 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  tail 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
  tail call void %24(double noundef 1.000000e+00)
  %25 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  tail call void %25(i32 noundef 16640)
  %26 = load ptr, ptr @g_pConeMesh, align 8, !tbaa !5
  %27 = load ptr, ptr @g_pCylinderMesh, align 8
  %28 = load ptr, ptr @g_pCubeTintMesh, align 8
  %29 = load ptr, ptr @g_pCubeColorMesh, align 8
  %30 = insertelement <4 x ptr> poison, ptr %26, i64 0
  %31 = insertelement <4 x ptr> %30, ptr %27, i64 1
  %32 = insertelement <4 x ptr> %31, ptr %28, i64 2
  %33 = insertelement <4 x ptr> %32, ptr %29, i64 3
  %.fr = freeze <4 x ptr> %33
  %34 = load ptr, ptr @g_pPlaneMesh, align 8
  %35 = icmp ne ptr %34, null
  %36 = icmp eq <4 x ptr> %.fr, zeroinitializer
  %37 = bitcast <4 x i1> %36 to i4
  %38 = icmp eq i4 %37, 0
  %op.rdx = select i1 %38, i1 %35, i1 false
  br i1 %op.rdx, label %39, label %162

39:                                               ; 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 %40 unwind label %126

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

41:                                               ; preds = %40
  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
  %42 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %43 = load i32, ptr @UniformColor, align 4, !tbaa !11
  invoke void %42(i32 noundef %43)
          to label %44 unwind label %128

44:                                               ; preds = %41
  %45 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @UniformColor, i64 8), align 4, !tbaa !14
  %47 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %48 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %47)
          to label %49 unwind label %128

49:                                               ; preds = %44
  invoke void %45(i32 noundef %46, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %48)
          to label %50 unwind label %128

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

53:                                               ; preds = %50
  %54 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @ObjectColor, i64 8), align 4, !tbaa !14
  %56 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %57 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %56)
          to label %58 unwind label %128

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

59:                                               ; preds = %58
  %60 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %61 = load i32, ptr @UniformColorTint, align 4, !tbaa !11
  invoke void %60(i32 noundef %61)
          to label %62 unwind label %128

62:                                               ; preds = %59
  %63 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @UniformColorTint, i64 8), align 4, !tbaa !14
  %65 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %66 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %65)
          to label %67 unwind label %128

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

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

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

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

72:                                               ; preds = %71
  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 %73 unwind label %134

73:                                               ; preds = %72
  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
  %74 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %75 = load i32, ptr @UniformColor, align 4, !tbaa !11
  invoke void %74(i32 noundef %75)
          to label %76 unwind label %136

76:                                               ; preds = %73
  %77 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @UniformColor, i64 4), align 4, !tbaa !15
  %79 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %8)
  %80 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %79)
          to label %81 unwind label %136

81:                                               ; preds = %76
  invoke void %77(i32 noundef %78, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %80)
          to label %82 unwind label %136

82:                                               ; preds = %81
  %83 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @UniformColor, i64 16), align 4, !tbaa !16
  invoke void %83(i32 noundef %84, float noundef 0x3FD353F7C0000000, float noundef 0x3FDA9FBE80000000, float noundef 0x3FAE282400000000, float noundef 1.000000e+00)
          to label %85 unwind label %136

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

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

89:                                               ; preds = %87
  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 %90 unwind label %140

90:                                               ; preds = %89
  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 %91 unwind label %142

91:                                               ; preds = %90
  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 %92 unwind label %144

92:                                               ; preds = %91
  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 %93 unwind label %146

93:                                               ; preds = %92
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  %94 = load i8, ptr @_ZL18g_bDrawLookatPoint, align 1, !tbaa !17, !range !19, !noundef !20
  %95 = trunc nuw i8 %94 to i1
  br i1 %95, label %96, label %158

96:                                               ; preds = %93
  %97 = load ptr, ptr @_funcptr_glDisable, align 8, !tbaa !5
  invoke void %97(i32 noundef 2929)
          to label %98 unwind label %140

98:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #6
  store float 1.000000e+00, ptr %20, align 4, !tbaa !9
  invoke void @_ZN3glm6detail7tmat4x4IfEC2ERKf(ptr noundef nonnull align 4 dereferenceable(64) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %99 unwind label %150

99:                                               ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(88) %8)
          to label %100 unwind label %152

100:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #6
  invoke void @_ZN3glm6detailmiIfEENS0_5tvec3IT_EERKS4_S6_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) @_ZL11g_camTarget, ptr noundef nonnull align 4 dereferenceable(12) %1)
          to label %101 unwind label %154

101:                                              ; preds = %100
  %102 = invoke noundef float @_ZN3glm6lengthIfEENS_6detail5tvec3IT_E10value_typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %22)
          to label %103 unwind label %154

103:                                              ; preds = %101
  %104 = fneg float %102
  invoke void @_ZN6glutil11MatrixStack9TranslateEfff(ptr noundef nonnull align 8 dereferenceable(88) %8, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %104)
          to label %105 unwind label %154

105:                                              ; preds = %103
  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 %106 unwind label %154

106:                                              ; preds = %105
  %107 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %108 = load i32, ptr @ObjectColor, align 4, !tbaa !11
  invoke void %107(i32 noundef %108)
          to label %109 unwind label %154

109:                                              ; preds = %106
  %110 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %111 = load i32, ptr getelementptr inbounds (i8, ptr @ObjectColor, i64 4), align 4, !tbaa !15
  %112 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %8)
  %113 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %112)
          to label %114 unwind label %154

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

115:                                              ; preds = %114
  %116 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %117 = load i32, ptr getelementptr inbounds (i8, ptr @ObjectColor, i64 8), align 4, !tbaa !14
  %118 = call noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %19)
  invoke void %116(i32 noundef %117, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %118)
          to label %119 unwind label %154

119:                                              ; preds = %115
  %120 = load ptr, ptr @g_pCubeColorMesh, align 8, !tbaa !5
  invoke void @_ZNK9Framework4Mesh6RenderEv(ptr noundef nonnull align 8 dereferenceable(8) %120)
          to label %121 unwind label %154

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

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

125:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #6
  br label %158

126:                                              ; preds = %40, %39
  %127 = 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 %161

128:                                              ; preds = %68, %67, %62, %59, %58, %53, %50, %49, %44, %41
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %161

130:                                              ; preds = %70
  %131 = landingpad { ptr, i32 }
          cleanup
  br label %160

132:                                              ; preds = %71
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %139

134:                                              ; preds = %72
  %135 = 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 %138

136:                                              ; preds = %87, %85, %82, %81, %76, %73
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %138

138:                                              ; preds = %136, %134
  %.pn = phi { ptr, i32 } [ %137, %136 ], [ %135, %134 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %139

139:                                              ; preds = %138, %132
  %.pn.pn = phi { ptr, i32 } [ %.pn, %138 ], [ %133, %132 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %159

140:                                              ; preds = %96, %89
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %159

142:                                              ; preds = %90
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %149

144:                                              ; preds = %91
  %145 = 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 %148

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

148:                                              ; preds = %146, %144
  %.pn21 = phi { ptr, i32 } [ %147, %146 ], [ %145, %144 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br label %149

149:                                              ; preds = %148, %142
  %.pn21.pn = phi { ptr, i32 } [ %.pn21, %148 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %159

150:                                              ; preds = %98
  %151 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  br label %157

152:                                              ; preds = %99
  %153 = landingpad { ptr, i32 }
          cleanup
  br label %156

154:                                              ; preds = %123, %121, %119, %115, %114, %109, %106, %105, %103, %101, %100
  %155 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br label %156

156:                                              ; preds = %154, %152
  %.pn24 = phi { ptr, i32 } [ %155, %154 ], [ %153, %152 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br label %157

157:                                              ; preds = %156, %150
  %.pn24.pn = phi { ptr, i32 } [ %.pn24, %156 ], [ %151, %150 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #6
  br label %159

158:                                              ; preds = %125, %93
  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 %162

159:                                              ; preds = %157, %149, %140, %139
  %.pn24.pn.pn = phi { ptr, i32 } [ %.pn24.pn, %157 ], [ %141, %140 ], [ %.pn21.pn, %149 ], [ %.pn.pn, %139 ]
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #6
  br label %160

160:                                              ; preds = %159, %130
  %.pn24.pn.pn.pn = phi { ptr, i32 } [ %.pn24.pn.pn, %159 ], [ %131, %130 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %8) #6
  br label %161

161:                                              ; preds = %160, %128, %126
  %.pn24.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn24.pn.pn.pn, %160 ], [ %129, %128 ], [ %127, %126 ]
  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 } %.pn24.pn.pn.pn.pn

162:                                              ; preds = %158, %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 #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN3glm6lengthIfEENS_6detail5tvec3IT_E10value_typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12)) 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

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

declare void @glutSwapBuffers() local_unnamed_addr #3

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 = { 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 #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 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 #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, !13, i64 0}
!12 = !{!"_ZTS11ProgramData", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!12, !13, i64 4}
!16 = !{!12, !13, i64 16}
!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