; LLVM IR from paroj/gltut :: Tut 14 Textures Are Not Pictures/BasicTexture.ll (Z4initv)

; 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"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%struct.MaterialBlock = type { %"struct.glm::detail::tvec4", %"struct.glm::detail::tvec4", float, [3 x float] }
%"struct.glm::detail::tvec4" = type { %union.anon.15 }
%union.anon.15 = type { %struct.anon.16 }
%struct.anon.16 = type { float, float, float, float }

@g_pObjectMesh = external dso_local global ptr, align 8
@g_pCubeMesh = external dso_local global ptr, align 8
@g_lightUniformBuffer = external dso_local global i32, align 4
@g_projectionUniformBuffer = external dso_local global i32, align 4
@g_materialUniformBuffer = external dso_local global i32, align 4
@g_specularShininess = external dso_local global float, align 4
@_ZTISt9exception = external constant ptr
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@_funcptr_glEnable = external global ptr, align 8
@_funcptr_glCullFace = external global ptr, align 8
@_funcptr_glFrontFace = external global ptr, align 8
@_funcptr_glDepthMask = external global ptr, align 8
@_funcptr_glDepthFunc = external global ptr, align 8
@_funcptr_glDepthRange = external global ptr, align 8
@_funcptr_glGenBuffers = external global ptr, align 8
@_funcptr_glBindBuffer = external global ptr, align 8
@_funcptr_glBufferData = external global ptr, align 8
@_funcptr_glBindBufferRange = 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 @_Z18InitializeProgramsv() #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z22CreateGaussianTexturesv() #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4initv() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca ptr, align 8
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator.0", align 1
  %5 = alloca i1, align 1
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.0", align 1
  %8 = alloca i1, align 1
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca %struct.MaterialBlock, align 4
  %13 = alloca %"struct.glm::detail::tvec4", align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca %"struct.glm::detail::tvec4", align 4
  %19 = alloca %"struct.glm::detail::tvec4", align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  call void @_Z18InitializeProgramsv()
  %25 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #10
          to label %26 unwind label %33

26:                                               ; preds = %0
  store i1 true, ptr %5, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef @.str.15, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %27 unwind label %37

27:                                               ; preds = %26
  invoke void @_ZN9Framework4MeshC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %28 unwind label %41

28:                                               ; preds = %27
  store i1 false, ptr %5, align 1
  store ptr %25, ptr @g_pObjectMesh, align 8, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #11
  %29 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #10
          to label %30 unwind label %33

30:                                               ; preds = %28
  store i1 true, ptr %8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %31 unwind label %49

31:                                               ; preds = %30
  invoke void @_ZN9Framework4MeshC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %32 unwind label %53

32:                                               ; preds = %31
  store i1 false, ptr %8, align 1
  store ptr %29, ptr @g_pCubeMesh, align 8, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #11
  br label %80

33:                                               ; preds = %28, %0
  %34 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %1, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %2, align 4
  br label %61

37:                                               ; preds = %26
  %38 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %1, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %2, align 4
  br label %45

41:                                               ; preds = %27
  %42 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %1, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %2, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #11
  br label %45

45:                                               ; preds = %41, %37
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #11
  %46 = load i1, ptr %5, align 1
  br i1 %46, label %47, label %48

47:                                               ; preds = %45
  call void @_ZdlPvm(ptr noundef %25, i64 noundef 8) #12
  br label %48

48:                                               ; preds = %47, %45
  br label %61

49:                                               ; preds = %30
  %50 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %1, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %2, align 4
  br label %57

53:                                               ; preds = %31
  %54 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %1, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %2, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  br label %57

57:                                               ; preds = %53, %49
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #11
  %58 = load i1, ptr %8, align 1
  br i1 %58, label %59, label %60

59:                                               ; preds = %57
  call void @_ZdlPvm(ptr noundef %29, i64 noundef 8) #12
  br label %60

60:                                               ; preds = %59, %57
  br label %61

61:                                               ; preds = %60, %48, %33
  %62 = load i32, ptr %2, align 4
  %63 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #11
  %64 = icmp eq i32 %62, %63
  br i1 %64, label %65, label %114

65:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #11
  %66 = load ptr, ptr %1, align 8
  %67 = call ptr @__cxa_begin_catch(ptr %66) #11
  store ptr %67, ptr %9, align 8
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = getelementptr inbounds ptr, ptr %69, i64 2
  %71 = load ptr, ptr %70, align 8
  %72 = call noundef ptr %71(ptr noundef nonnull align 8 dereferenceable(8) %68) #11
  %73 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %72)
          to label %74 unwind label %75

74:                                               ; preds = %65
  invoke void @__cxa_rethrow() #13
          to label %122 unwind label %75

75:                                               ; preds = %74, %65
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %1, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %2, align 4
  invoke void @__cxa_end_catch()
          to label %79 unwind label %119

79:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #11
  br label %114

80:                                               ; preds = %32
  call void @glutMouseFunc(ptr noundef @_ZN12_GLOBAL__N_111MouseButtonEiiii)
  call void @glutMotionFunc(ptr noundef @_ZN12_GLOBAL__N_111MouseMotionEii)
  call void @glutMouseWheelFunc(ptr noundef @_ZN12_GLOBAL__N_110MouseWheelEiiii)
  %81 = load ptr, ptr @_funcptr_glEnable, align 8, !tbaa !5
  call void %81(i32 noundef 2884)
  %82 = load ptr, ptr @_funcptr_glCullFace, align 8, !tbaa !5
  call void %82(i32 noundef 1029)
  %83 = load ptr, ptr @_funcptr_glFrontFace, align 8, !tbaa !5
  call void %83(i32 noundef 2304)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #11
  store float 0.000000e+00, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #11
  store float 1.000000e+00, ptr %11, align 4, !tbaa !11
  %84 = load ptr, ptr @_funcptr_glEnable, align 8, !tbaa !5
  call void %84(i32 noundef 2929)
  %85 = load ptr, ptr @_funcptr_glDepthMask, align 8, !tbaa !5
  call void %85(i8 noundef zeroext 1)
  %86 = load ptr, ptr @_funcptr_glDepthFunc, align 8, !tbaa !5
  call void %86(i32 noundef 515)
  %87 = load ptr, ptr @_funcptr_glDepthRange, align 8, !tbaa !5
  call void %87(double noundef 0.000000e+00, double noundef 1.000000e+00)
  %88 = load ptr, ptr @_funcptr_glEnable, align 8, !tbaa !5
  call void %88(i32 noundef 34383)
  call void @llvm.lifetime.start.p0(i64 48, ptr %12) #11
  call void @_ZN13MaterialBlockC2Ev(ptr noundef nonnull align 4 dereferenceable(48) %12)
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #11
  store float 1.000000e+00, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #11
  store float 0x3FE5893740000000, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #11
  store float 0x3FA60418A0000000, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #11
  store float 1.000000e+00, ptr %17, align 4, !tbaa !11
  call void @_ZN3glm6detail5tvec4IfEC2ERKfS4_S4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %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, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %89 = getelementptr inbounds %struct.MaterialBlock, ptr %12, i32 0, i32 0
  %90 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %89, ptr noundef nonnull align 4 dereferenceable(16) %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #11
  store float 1.000000e+00, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #11
  store float 0x3FE5893740000000, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #11
  store float 0x3FA60418A0000000, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #11
  store float 1.000000e+00, ptr %23, align 4, !tbaa !11
  call void @_ZN3glm6detail5tvec4IfEC2ERKfS4_S4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #11
  store float 0x3FD99999A0000000, ptr %24, align 4, !tbaa !11
  call void @_ZN3glm6detailmlIfEENS0_5tvec4IT_EERKS4_RKNS4_10value_typeE(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %18, ptr noundef nonnull align 4 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %91 = getelementptr inbounds %struct.MaterialBlock, ptr %12, i32 0, i32 1
  %92 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %91, ptr noundef nonnull align 4 dereferenceable(16) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #11
  %93 = load float, ptr @g_specularShininess, align 4, !tbaa !11
  %94 = getelementptr inbounds %struct.MaterialBlock, ptr %12, i32 0, i32 2
  store float %93, ptr %94, align 4, !tbaa !13
  %95 = load ptr, ptr @_funcptr_glGenBuffers, align 8, !tbaa !5
  call void %95(i32 noundef 1, ptr noundef @g_materialUniformBuffer)
  %96 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  %97 = load i32, ptr @g_materialUniformBuffer, align 4, !tbaa !16
  call void %96(i32 noundef 35345, i32 noundef %97)
  %98 = load ptr, ptr @_funcptr_glBufferData, align 8, !tbaa !5
  call void %98(i32 noundef 35345, i64 noundef 48, ptr noundef %12, i32 noundef 35044)
  %99 = load ptr, ptr @_funcptr_glGenBuffers, align 8, !tbaa !5
  call void %99(i32 noundef 1, ptr noundef @g_lightUniformBuffer)
  %100 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  %101 = load i32, ptr @g_lightUniformBuffer, align 4, !tbaa !16
  call void %100(i32 noundef 35345, i32 noundef %101)
  %102 = load ptr, ptr @_funcptr_glBufferData, align 8, !tbaa !5
  call void %102(i32 noundef 35345, i64 noundef 96, ptr noundef null, i32 noundef 35048)
  %103 = load ptr, ptr @_funcptr_glGenBuffers, align 8, !tbaa !5
  call void %103(i32 noundef 1, ptr noundef @g_projectionUniformBuffer)
  %104 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  %105 = load i32, ptr @g_projectionUniformBuffer, align 4, !tbaa !16
  call void %104(i32 noundef 35345, i32 noundef %105)
  %106 = load ptr, ptr @_funcptr_glBufferData, align 8, !tbaa !5
  call void %106(i32 noundef 35345, i64 noundef 64, ptr noundef null, i32 noundef 35048)
  %107 = load ptr, ptr @_funcptr_glBindBufferRange, align 8, !tbaa !5
  %108 = load i32, ptr @g_lightUniformBuffer, align 4, !tbaa !16
  call void %107(i32 noundef 35345, i32 noundef 1, i32 noundef %108, i64 noundef 0, i64 noundef 96)
  %109 = load ptr, ptr @_funcptr_glBindBufferRange, align 8, !tbaa !5
  %110 = load i32, ptr @g_projectionUniformBuffer, align 4, !tbaa !16
  call void %109(i32 noundef 35345, i32 noundef 2, i32 noundef %110, i64 noundef 0, i64 noundef 64)
  %111 = load ptr, ptr @_funcptr_glBindBufferRange, align 8, !tbaa !5
  %112 = load i32, ptr @g_materialUniformBuffer, align 4, !tbaa !16
  call void %111(i32 noundef 35345, i32 noundef 0, i32 noundef %112, i64 noundef 0, i64 noundef 48)
  %113 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  call void %113(i32 noundef 35345, i32 noundef 0)
  call void @_Z22CreateGaussianTexturesv()
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #11
  ret void

114:                                              ; preds = %79, %61
  %115 = load ptr, ptr %1, align 8
  %116 = load i32, ptr %2, align 4
  %117 = insertvalue { ptr, i32 } poison, ptr %115, 0
  %118 = insertvalue { ptr, i32 } %117, i32 %116, 1
  resume { ptr, i32 } %118

119:                                              ; preds = %75
  %120 = landingpad { ptr, i32 }
          catch ptr null
  %121 = extractvalue { ptr, i32 } %120, 0
  call void @__clang_call_terminate(ptr %121) #14
  unreachable

122:                                              ; preds = %74
  unreachable
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

declare void @_ZN9Framework4MeshC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #6

declare ptr @__cxa_begin_catch(ptr)

declare i32 @printf(ptr noundef, ...) #4

declare void @__cxa_rethrow()

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #7

declare void @glutMouseFunc(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_111MouseButtonEiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

declare void @glutMotionFunc(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_111MouseMotionEii(i32 noundef, i32 noundef) #1

declare void @glutMouseWheelFunc(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_110MouseWheelEiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN13MaterialBlockC2Ev(ptr noundef nonnull align 4 dereferenceable(48)) unnamed_addr #8 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #9 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 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 = { 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 #3 = { nobuiltin allocsize(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 = { "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 = { nobuiltin nounwind "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 memory(none) }
attributes #7 = { noinline noreturn nounwind uwtable "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 #8 = { 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 #9 = { 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 #10 = { builtin allocsize(0) }
attributes #11 = { nounwind }
attributes #12 = { builtin nounwind }
attributes #13 = { noreturn }
attributes #14 = { noreturn 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 32}
!14 = !{!"_ZTS13MaterialBlock", !15, i64 0, !15, i64 16, !12, i64 32, !7, i64 36}
!15 = !{!"_ZTSN3glm6detail5tvec4IfEE", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}


; 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"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%struct.MaterialBlock = type { %"struct.glm::detail::tvec4", %"struct.glm::detail::tvec4", float, [3 x float] }
%"struct.glm::detail::tvec4" = type { %union.anon.15 }
%union.anon.15 = type { %struct.anon.16 }
%struct.anon.16 = type { float, float, float, float }

@g_pObjectMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_pCubeMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_lightUniformBuffer = external dso_local global i32, align 4
@g_projectionUniformBuffer = external dso_local global i32, align 4
@g_materialUniformBuffer = external dso_local global i32, align 4
@g_specularShininess = external dso_local local_unnamed_addr global float, align 4
@_ZTISt9exception = external constant ptr
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@_funcptr_glEnable = external local_unnamed_addr global ptr, align 8
@_funcptr_glCullFace = external local_unnamed_addr global ptr, align 8
@_funcptr_glFrontFace = external local_unnamed_addr global ptr, align 8
@_funcptr_glDepthMask = external local_unnamed_addr global ptr, align 8
@_funcptr_glDepthFunc = external local_unnamed_addr global ptr, align 8
@_funcptr_glDepthRange = external local_unnamed_addr global ptr, align 8
@_funcptr_glGenBuffers = external local_unnamed_addr global ptr, align 8
@_funcptr_glBindBuffer = external local_unnamed_addr global ptr, align 8
@_funcptr_glBufferData = external local_unnamed_addr global ptr, align 8
@_funcptr_glBindBufferRange = 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 @_Z18InitializeProgramsv() local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z22CreateGaussianTexturesv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4initv() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::allocator.0", align 1
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator.0", align 1
  %5 = alloca %struct.MaterialBlock, align 4
  %6 = alloca %"struct.glm::detail::tvec4", align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca %"struct.glm::detail::tvec4", align 4
  %12 = alloca %"struct.glm::detail::tvec4", align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  tail call void @_Z18InitializeProgramsv()
  %18 = invoke noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #11
          to label %19 unwind label %58

19:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.15, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %20 unwind label %60

20:                                               ; preds = %19
  invoke void @_ZN9Framework4MeshC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %21 unwind label %62

21:                                               ; preds = %20
  store ptr %18, ptr @g_pObjectMesh, align 8, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #12
  %22 = invoke noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #11
          to label %23 unwind label %58

23:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %24 unwind label %65

24:                                               ; preds = %23
  invoke void @_ZN9Framework4MeshC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %25 unwind label %67

25:                                               ; preds = %24
  store ptr %22, ptr @g_pCubeMesh, align 8, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #12
  call void @glutMouseFunc(ptr noundef nonnull @_ZN12_GLOBAL__N_111MouseButtonEiiii)
  call void @glutMotionFunc(ptr noundef nonnull @_ZN12_GLOBAL__N_111MouseMotionEii)
  call void @glutMouseWheelFunc(ptr noundef nonnull @_ZN12_GLOBAL__N_110MouseWheelEiiii)
  %26 = load ptr, ptr @_funcptr_glEnable, align 8, !tbaa !5
  call void %26(i32 noundef 2884)
  %27 = load ptr, ptr @_funcptr_glCullFace, align 8, !tbaa !5
  call void %27(i32 noundef 1029)
  %28 = load ptr, ptr @_funcptr_glFrontFace, align 8, !tbaa !5
  call void %28(i32 noundef 2304)
  %29 = load ptr, ptr @_funcptr_glEnable, align 8, !tbaa !5
  call void %29(i32 noundef 2929)
  %30 = load ptr, ptr @_funcptr_glDepthMask, align 8, !tbaa !5
  call void %30(i8 noundef zeroext 1)
  %31 = load ptr, ptr @_funcptr_glDepthFunc, align 8, !tbaa !5
  call void %31(i32 noundef 515)
  %32 = load ptr, ptr @_funcptr_glDepthRange, align 8, !tbaa !5
  call void %32(double noundef 0.000000e+00, double noundef 1.000000e+00)
  %33 = load ptr, ptr @_funcptr_glEnable, align 8, !tbaa !5
  call void %33(i32 noundef 34383)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #12
  call void @_ZN13MaterialBlockC2Ev(ptr noundef nonnull align 4 dereferenceable(48) %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #12
  store float 1.000000e+00, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #12
  store float 0x3FE5893740000000, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #12
  store float 0x3FA60418A0000000, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #12
  store float 1.000000e+00, ptr %10, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec4IfEC2ERKfS4_S4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %34 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #12
  store float 1.000000e+00, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #12
  store float 0x3FE5893740000000, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #12
  store float 0x3FA60418A0000000, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #12
  store float 1.000000e+00, ptr %16, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec4IfEC2ERKfS4_S4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %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)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #12
  store float 0x3FD99999A0000000, ptr %17, align 4, !tbaa !9
  call void @_ZN3glm6detailmlIfEENS0_5tvec4IT_EERKS4_RKNS4_10value_typeE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %11, ptr noundef nonnull align 4 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %35 = getelementptr inbounds i8, ptr %5, i64 16
  %36 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #12
  %37 = load float, ptr @g_specularShininess, align 4, !tbaa !9
  %38 = getelementptr inbounds i8, ptr %5, i64 32
  store float %37, ptr %38, align 4, !tbaa !11
  %39 = load ptr, ptr @_funcptr_glGenBuffers, align 8, !tbaa !5
  call void %39(i32 noundef 1, ptr noundef nonnull @g_materialUniformBuffer)
  %40 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  %41 = load i32, ptr @g_materialUniformBuffer, align 4, !tbaa !14
  call void %40(i32 noundef 35345, i32 noundef %41)
  %42 = load ptr, ptr @_funcptr_glBufferData, align 8, !tbaa !5
  call void %42(i32 noundef 35345, i64 noundef 48, ptr noundef nonnull %5, i32 noundef 35044)
  %43 = load ptr, ptr @_funcptr_glGenBuffers, align 8, !tbaa !5
  call void %43(i32 noundef 1, ptr noundef nonnull @g_lightUniformBuffer)
  %44 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  %45 = load i32, ptr @g_lightUniformBuffer, align 4, !tbaa !14
  call void %44(i32 noundef 35345, i32 noundef %45)
  %46 = load ptr, ptr @_funcptr_glBufferData, align 8, !tbaa !5
  call void %46(i32 noundef 35345, i64 noundef 96, ptr noundef null, i32 noundef 35048)
  %47 = load ptr, ptr @_funcptr_glGenBuffers, align 8, !tbaa !5
  call void %47(i32 noundef 1, ptr noundef nonnull @g_projectionUniformBuffer)
  %48 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  %49 = load i32, ptr @g_projectionUniformBuffer, align 4, !tbaa !14
  call void %48(i32 noundef 35345, i32 noundef %49)
  %50 = load ptr, ptr @_funcptr_glBufferData, align 8, !tbaa !5
  call void %50(i32 noundef 35345, i64 noundef 64, ptr noundef null, i32 noundef 35048)
  %51 = load ptr, ptr @_funcptr_glBindBufferRange, align 8, !tbaa !5
  %52 = load i32, ptr @g_lightUniformBuffer, align 4, !tbaa !14
  call void %51(i32 noundef 35345, i32 noundef 1, i32 noundef %52, i64 noundef 0, i64 noundef 96)
  %53 = load ptr, ptr @_funcptr_glBindBufferRange, align 8, !tbaa !5
  %54 = load i32, ptr @g_projectionUniformBuffer, align 4, !tbaa !14
  call void %53(i32 noundef 35345, i32 noundef 2, i32 noundef %54, i64 noundef 0, i64 noundef 64)
  %55 = load ptr, ptr @_funcptr_glBindBufferRange, align 8, !tbaa !5
  %56 = load i32, ptr @g_materialUniformBuffer, align 4, !tbaa !14
  call void %55(i32 noundef 35345, i32 noundef 0, i32 noundef %56, i64 noundef 0, i64 noundef 48)
  %57 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  call void %57(i32 noundef 35345, i32 noundef 0)
  call void @_Z22CreateGaussianTexturesv()
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #12
  ret void

58:                                               ; preds = %21, %0
  %59 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
  br label %70

60:                                               ; preds = %19
  %61 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %64

62:                                               ; preds = %20
  %63 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #12
  br label %64

64:                                               ; preds = %62, %60
  %.pn = phi { ptr, i32 } [ %63, %62 ], [ %61, %60 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #12
  call void @_ZdlPvm(ptr noundef nonnull %18, i64 noundef 8) #13
  br label %70

65:                                               ; preds = %23
  %66 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %69

67:                                               ; preds = %24
  %68 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #12
  br label %69

69:                                               ; preds = %67, %65
  %.pn11 = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #12
  call void @_ZdlPvm(ptr noundef nonnull %22, i64 noundef 8) #13
  br label %70

70:                                               ; preds = %69, %64, %58
  %.pn11.pn = phi { ptr, i32 } [ %.pn11, %69 ], [ %59, %58 ], [ %.pn, %64 ]
  %.28 = extractvalue { ptr, i32 } %.pn11.pn, 1
  %71 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #12
  %72 = icmp eq i32 %.28, %71
  br i1 %72, label %73, label %82

73:                                               ; preds = %70
  %.2 = extractvalue { ptr, i32 } %.pn11.pn, 0
  %74 = call ptr @__cxa_begin_catch(ptr %.2) #12
  %75 = load ptr, ptr %74, align 8, !tbaa !16
  %76 = getelementptr inbounds i8, ptr %75, i64 16
  %77 = load ptr, ptr %76, align 8
  %78 = call noundef ptr %77(ptr noundef nonnull align 8 dereferenceable(8) %74) #12
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, ptr noundef %78)
  invoke void @__cxa_rethrow() #14
          to label %86 unwind label %80

80:                                               ; preds = %73
  %81 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %82 unwind label %83

82:                                               ; preds = %80, %70
  %.merged = phi { ptr, i32 } [ %.pn11.pn, %70 ], [ %81, %80 ]
  resume { ptr, i32 } %.merged

83:                                               ; preds = %80
  %84 = landingpad { ptr, i32 }
          catch ptr null
  %85 = extractvalue { ptr, i32 } %84, 0
  call void @__clang_call_terminate(ptr %85) #15
  unreachable

86:                                               ; preds = %73
  unreachable
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

declare void @_ZN9Framework4MeshC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #6

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #7

declare void @__cxa_rethrow() local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #8

declare void @glutMouseFunc(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_111MouseButtonEiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

declare void @glutMotionFunc(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_111MouseMotionEii(i32 noundef, i32 noundef) #1

declare void @glutMouseWheelFunc(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_110MouseWheelEiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN13MaterialBlockC2Ev(ptr noundef nonnull align 4 dereferenceable(48)) unnamed_addr #9 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #10 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 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 = { 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 #3 = { nobuiltin allocsize(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 = { "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 = { nobuiltin nounwind "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 = { nofree nosync nounwind memory(none) }
attributes #7 = { nofree nounwind "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 #8 = { noinline noreturn nounwind uwtable "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 #9 = { 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 #10 = { 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 #11 = { builtin allocsize(0) }
attributes #12 = { nounwind }
attributes #13 = { builtin nounwind }
attributes #14 = { noreturn }
attributes #15 = { noreturn 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, !10, i64 32}
!12 = !{!"_ZTS13MaterialBlock", !13, i64 0, !13, i64 16, !10, i64 32, !7, i64 36}
!13 = !{!"_ZTSN3glm6detail5tvec4IfEE", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}


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