; LLVM IR from paroj/gltut :: Tut 16 Gamma and Textures/GammaCheckers.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 }
%"class.Framework::Timer" = type { i32, float, i8, i8, float, float }
%"class.glutil::MatrixStack" = type { %"class.std::stack", %"struct.glm::detail::tmat4x4" }
%"class.std::stack" = type { %"class.std::vector.5" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.glm::detail::tmat4x4" = type { [4 x %"struct.glm::detail::tvec4"] }
%"struct.glm::detail::tvec4" = type { %union.anon.10 }
%union.anon.10 = type { %struct.anon }
%struct.anon = type { float, float, float, float }
%"struct.glm::detail::tvec3" = type { %union.anon.13 }
%union.anon.13 = type { %struct.anon.14 }
%struct.anon.14 = type { float, float, float }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }

@g_progNoGamma = external dso_local global %struct.ProgramData, align 4
@g_progGamma = external dso_local global %struct.ProgramData, align 4
@_funcptr_glUseProgram = external global ptr, align 8
@g_linearTexture = external dso_local global i32, align 4
@g_gammaTexture = external dso_local global i32, align 4
@g_samplers = external dso_local global [2 x i32], align 4
@_funcptr_glBindTexture = external global ptr, align 8
@g_pPlane = external dso_local global ptr, align 8
@g_pCorridor = external dso_local global ptr, align 8
@g_camTimer = external dso_local global %"class.Framework::Timer", align 4
@g_currSampler = external dso_local global i32, align 4
@g_drawCorridor = external dso_local global i8, align 1
@g_drawGammaTexture = external dso_local global i8, align 1
@g_drawGammaProgram = external dso_local global i8, align 1
@_funcptr_glClearColor = external global ptr, align 8
@_funcptr_glClearDepth = external global ptr, align 8
@_funcptr_glClear = external global ptr, align 8
@_funcptr_glUniformMatrix4fv = external global ptr, align 8
@_funcptr_glActiveTexture = external global ptr, align 8
@_funcptr_glBindSampler = external global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7displayv() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca float, align 4
  %2 = alloca float, align 4
  %3 = alloca float, align 4
  %4 = alloca %"class.glutil::MatrixStack", align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.glm::detail::tmat4x4", align 4
  %7 = alloca %"struct.glm::detail::tvec3", align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.glm::detail::tvec3", align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %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 ptr, align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator.0", align 1
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator.0", align 1
  %24 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  call void %24(float noundef 7.500000e-01, float noundef 7.500000e-01, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %25 = load ptr, ptr @_funcptr_glClearDepth, align 8, !tbaa !5
  call void %25(double noundef 1.000000e+00)
  %26 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  call void %26(i32 noundef 16640)
  %27 = load ptr, ptr @g_pPlane, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %149

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

32:                                               ; preds = %29
  %33 = call noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20) @g_camTimer)
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #7
  %34 = call noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) @g_camTimer)
  %35 = fmul float %34, 0x40191EB860000000
  store float %35, ptr %1, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  %36 = load float, ptr %1, align 4, !tbaa !9
  %37 = call float @cosf(float noundef %36) #7
  %38 = fmul float %37, 2.500000e-01
  store float %38, ptr %2, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %39 = load float, ptr %1, align 4, !tbaa !9
  %40 = call float @sinf(float noundef %39) #7
  %41 = fmul float %40, 2.500000e-01
  store float %41, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 88, ptr %4) #7
  call void @_ZN6glutil11MatrixStackC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store float 1.000000e+00, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store float -6.400000e+01, ptr %9, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %42 unwind label %95

42:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %43 = load float, ptr %3, align 4, !tbaa !9
  %44 = fadd float -5.000000e+00, %43
  store float %44, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store float -4.400000e+01, ptr %14, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %45 unwind label %99

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store float 0.000000e+00, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store float 1.000000e+00, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store float 0.000000e+00, ptr %18, align 4, !tbaa !9
  invoke 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)
          to label %46 unwind label %103

46:                                               ; preds = %45
  invoke void @_ZN3glm6lookAtIfEENS_6detail7tmat4x4IT_EERKNS1_5tvec3IS3_EES8_S8_(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat4x4") align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %47 unwind label %103

47:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #7
  store ptr %6, ptr %5, align 8, !tbaa !5
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZN6glutil11MatrixStackmLERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %4, ptr noundef nonnull align 4 dereferenceable(64) %48)
          to label %50 unwind label %109

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %51 = load i8, ptr @g_drawGammaProgram, align 1, !tbaa !11, !range !13, !noundef !14
  %52 = trunc i8 %51 to i1
  br i1 %52, label %53, label %54

53:                                               ; preds = %50
  br label %55

54:                                               ; preds = %50
  br label %55

55:                                               ; preds = %54, %53
  %56 = phi ptr [ @g_progGamma, %53 ], [ @g_progNoGamma, %54 ]
  store ptr %56, ptr %19, align 8, !tbaa !5
  %57 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %58 = load ptr, ptr %19, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.ProgramData, ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 4, !tbaa !15
  invoke void %57(i32 noundef %60)
          to label %61 unwind label %113

61:                                               ; preds = %55
  %62 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %63 = load ptr, ptr %19, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ProgramData, ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 4, !tbaa !18
  %66 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %4)
          to label %67 unwind label %113

67:                                               ; preds = %61
  %68 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %66)
          to label %69 unwind label %113

69:                                               ; preds = %67
  invoke void %62(i32 noundef %65, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %68)
          to label %70 unwind label %113

70:                                               ; preds = %69
  %71 = load ptr, ptr @_funcptr_glActiveTexture, align 8, !tbaa !5
  invoke void %71(i32 noundef 33984)
          to label %72 unwind label %113

72:                                               ; preds = %70
  %73 = load ptr, ptr @_funcptr_glBindTexture, align 8, !tbaa !5
  %74 = load i8, ptr @g_drawGammaTexture, align 1, !tbaa !11, !range !13, !noundef !14
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %78

76:                                               ; preds = %72
  %77 = load i32, ptr @g_gammaTexture, align 4, !tbaa !19
  br label %80

78:                                               ; preds = %72
  %79 = load i32, ptr @g_linearTexture, align 4, !tbaa !19
  br label %80

80:                                               ; preds = %78, %76
  %81 = phi i32 [ %77, %76 ], [ %79, %78 ]
  invoke void %73(i32 noundef 3553, i32 noundef %81)
          to label %82 unwind label %113

82:                                               ; preds = %80
  %83 = load ptr, ptr @_funcptr_glBindSampler, align 8, !tbaa !5
  %84 = load i32, ptr @g_currSampler, align 4, !tbaa !19
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [2 x i32], ptr @g_samplers, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !19
  invoke void %83(i32 noundef 0, i32 noundef %87)
          to label %88 unwind label %113

88:                                               ; preds = %82
  %89 = load i8, ptr @g_drawCorridor, align 1, !tbaa !11, !range !13, !noundef !14
  %90 = trunc i8 %89 to i1
  br i1 %90, label %91, label %126

91:                                               ; preds = %88
  %92 = load ptr, ptr @g_pCorridor, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %93 unwind label %117

93:                                               ; preds = %91
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %94 unwind label %121

94:                                               ; preds = %93
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  br label %139

95:                                               ; preds = %32
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %10, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %11, align 4
  br label %108

99:                                               ; preds = %42
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %10, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %11, align 4
  br label %107

103:                                              ; preds = %46, %45
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %10, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  br label %107

107:                                              ; preds = %103, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #7
  br label %108

108:                                              ; preds = %107, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #7
  br label %148

109:                                              ; preds = %47
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %10, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %11, align 4
  br label %147

113:                                              ; preds = %143, %141, %139, %82, %80, %70, %69, %67, %61, %55
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %10, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %11, align 4
  br label %146

117:                                              ; preds = %91
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %10, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %11, align 4
  br label %125

121:                                              ; preds = %93
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %10, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  br label %125

125:                                              ; preds = %121, %117
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  br label %146

126:                                              ; preds = %88
  %127 = load ptr, ptr @g_pPlane, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %128 unwind label %130

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

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

130:                                              ; preds = %126
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %10, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %11, align 4
  br label %138

134:                                              ; preds = %128
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %10, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  br label %138

138:                                              ; preds = %134, %130
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  br label %146

139:                                              ; preds = %129, %94
  %140 = load ptr, ptr @_funcptr_glBindSampler, align 8, !tbaa !5
  invoke void %140(i32 noundef 0, i32 noundef 0)
          to label %141 unwind label %113

141:                                              ; preds = %139
  %142 = load ptr, ptr @_funcptr_glBindTexture, align 8, !tbaa !5
  invoke void %142(i32 noundef 3553, i32 noundef 0)
          to label %143 unwind label %113

143:                                              ; preds = %141
  %144 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %144(i32 noundef 0)
          to label %145 unwind label %113

145:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %4) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
  br label %149

146:                                              ; preds = %138, %125, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %147

147:                                              ; preds = %146, %109
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #7
  br label %148

148:                                              ; preds = %147, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %4) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
  br label %150

149:                                              ; preds = %145, %29, %0
  call void @glutPostRedisplay()
  call void @glutSwapBuffers()
  ret void

150:                                              ; preds = %148
  %151 = load ptr, ptr %10, align 8
  %152 = load i32, ptr %11, align 4
  %153 = insertvalue { ptr, i32 } poison, ptr %151, 0
  %154 = insertvalue { ptr, i32 } %153, i32 %152, 1
  resume { ptr, i32 } %154
}

declare noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20)) #3

declare noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20)) #3

; Function Attrs: nounwind
declare float @cosf(float noundef) #4

; Function Attrs: nounwind
declare float @sinf(float noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6lookAtIfEENS_6detail7tmat4x4IT_EERKNS1_5tvec3IS3_EES8_S8_(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)) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZN6glutil11MatrixStackmLERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(64)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88)) #1 align 2

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

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

declare void @glutPostRedisplay() #3

declare void @glutSwapBuffers() #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS11ProgramData", !17, i64 0, !17, i64 4}
!17 = !{!"int", !7, i64 0}
!18 = !{!16, !17, i64 4}
!19 = !{!17, !17, 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"

%struct.ProgramData = type { i32, i32 }
%"class.Framework::Timer" = type { i32, float, i8, i8, float, float }
%"class.glutil::MatrixStack" = type { %"class.std::stack", %"struct.glm::detail::tmat4x4" }
%"class.std::stack" = type { %"class.std::vector.5" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.glm::detail::tmat4x4" = type { [4 x %"struct.glm::detail::tvec4"] }
%"struct.glm::detail::tvec4" = type { %union.anon.10 }
%union.anon.10 = type { %struct.anon }
%struct.anon = type { float, float, float, float }
%"struct.glm::detail::tvec3" = type { %union.anon.13 }
%union.anon.13 = type { %struct.anon.14 }
%struct.anon.14 = type { float, float, float }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }

@g_progNoGamma = external dso_local local_unnamed_addr global %struct.ProgramData, align 4
@g_progGamma = external dso_local local_unnamed_addr global %struct.ProgramData, align 4
@_funcptr_glUseProgram = external local_unnamed_addr global ptr, align 8
@g_linearTexture = external dso_local local_unnamed_addr global i32, align 4
@g_gammaTexture = external dso_local local_unnamed_addr global i32, align 4
@g_samplers = external dso_local local_unnamed_addr global [2 x i32], align 4
@_funcptr_glBindTexture = external local_unnamed_addr global ptr, align 8
@g_pPlane = external dso_local local_unnamed_addr global ptr, align 8
@g_pCorridor = external dso_local local_unnamed_addr global ptr, align 8
@g_camTimer = external dso_local global %"class.Framework::Timer", align 4
@g_currSampler = external dso_local local_unnamed_addr global i32, align 4
@g_drawCorridor = external dso_local local_unnamed_addr global i8, align 1
@g_drawGammaTexture = external dso_local local_unnamed_addr global i8, align 1
@g_drawGammaProgram = external dso_local local_unnamed_addr global i8, align 1
@_funcptr_glClearColor = external local_unnamed_addr global ptr, align 8
@_funcptr_glClearDepth = external local_unnamed_addr global ptr, align 8
@_funcptr_glClear = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniformMatrix4fv = external local_unnamed_addr global ptr, align 8
@_funcptr_glActiveTexture = external local_unnamed_addr global ptr, align 8
@_funcptr_glBindSampler = external local_unnamed_addr global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7displayv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca float, 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 %"struct.glm::detail::tvec3", align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %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.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator.0", align 1
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator.0", align 1
  %18 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  tail call void %18(float noundef 7.500000e-01, float noundef 7.500000e-01, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %19 = load ptr, ptr @_funcptr_glClearDepth, align 8, !tbaa !5
  tail call void %19(double noundef 1.000000e+00)
  %20 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  tail call void %20(i32 noundef 16640)
  %21 = load ptr, ptr @g_pPlane, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  %23 = load ptr, ptr @g_pCorridor, align 8
  %24 = icmp ne ptr %23, null
  %or.cond = select i1 %22, i1 %24, i1 false
  br i1 %or.cond, label %25, label %98

25:                                               ; preds = %0
  %26 = tail call noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20) @g_camTimer)
  %27 = tail call noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) @g_camTimer)
  %28 = fmul float %27, 0x40191EB860000000
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %29 = tail call float @cosf(float noundef %28) #7
  %30 = fmul float %29, 2.500000e-01
  store float %30, ptr %1, align 4, !tbaa !9
  %31 = tail call float @sinf(float noundef %28) #7
  %32 = fmul float %31, 2.500000e-01
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %2) #7
  call void @_ZN6glutil11MatrixStackC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %2)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store float 1.000000e+00, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store float -6.400000e+01, ptr %6, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %33 = fadd float %32, -5.000000e+00
  store float %33, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  store float -4.400000e+01, ptr %9, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  store float 0.000000e+00, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  store float 1.000000e+00, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  store float 0.000000e+00, 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 @_ZN3glm6lookAtIfEENS_6detail7tmat4x4IT_EERKNS1_5tvec3IS3_EES8_S8_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tmat4x4") align 4 %3, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %34 unwind label %69

34:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #7
  %35 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZN6glutil11MatrixStackmLERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %2, ptr noundef nonnull align 4 dereferenceable(64) %3)
          to label %36 unwind label %71

36:                                               ; preds = %34
  %37 = load i8, ptr @g_drawGammaProgram, align 1, !tbaa !11, !range !13, !noundef !14
  %38 = trunc nuw i8 %37 to i1
  %39 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %g_progGamma.val = load i32, ptr @g_progGamma, align 4
  %g_progNoGamma.val = load i32, ptr @g_progNoGamma, align 4
  %40 = select i1 %38, i32 %g_progGamma.val, i32 %g_progNoGamma.val
  invoke void %39(i32 noundef %40)
          to label %41 unwind label %73

41:                                               ; preds = %36
  %42 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %.val = load i32, ptr getelementptr inbounds (i8, ptr @g_progGamma, i64 4), align 4
  %.val13 = load i32, ptr getelementptr inbounds (i8, ptr @g_progNoGamma, i64 4), align 4
  %43 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %44 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %43)
          to label %45 unwind label %73

45:                                               ; preds = %41
  %46 = select i1 %38, i32 %.val, i32 %.val13
  invoke void %42(i32 noundef %46, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %44)
          to label %47 unwind label %73

47:                                               ; preds = %45
  %48 = load ptr, ptr @_funcptr_glActiveTexture, align 8, !tbaa !5
  invoke void %48(i32 noundef 33984)
          to label %49 unwind label %73

49:                                               ; preds = %47
  %50 = load ptr, ptr @_funcptr_glBindTexture, align 8, !tbaa !5
  %51 = load i8, ptr @g_drawGammaTexture, align 1, !tbaa !11, !range !13, !noundef !14
  %52 = trunc nuw i8 %51 to i1
  %53 = load i32, ptr @g_gammaTexture, align 4
  %54 = load i32, ptr @g_linearTexture, align 4
  %55 = select i1 %52, i32 %53, i32 %54
  invoke void %50(i32 noundef 3553, i32 noundef %55)
          to label %56 unwind label %73

56:                                               ; preds = %49
  %57 = load ptr, ptr @_funcptr_glBindSampler, align 8, !tbaa !5
  %58 = load i32, ptr @g_currSampler, align 4, !tbaa !15
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [2 x i32], ptr @g_samplers, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !15
  invoke void %57(i32 noundef 0, i32 noundef %61)
          to label %62 unwind label %73

62:                                               ; preds = %56
  %63 = load i8, ptr @g_drawCorridor, align 1, !tbaa !11, !range !13, !noundef !14
  %64 = trunc nuw i8 %63 to i1
  br i1 %64, label %65, label %80

65:                                               ; preds = %62
  %66 = load ptr, ptr @g_pCorridor, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %67 unwind label %75

67:                                               ; preds = %65
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %68 unwind label %77

68:                                               ; preds = %67
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  br label %89

69:                                               ; preds = %25
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #7
  br label %97

71:                                               ; preds = %34
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %96

73:                                               ; preds = %93, %91, %89, %56, %49, %47, %45, %41, %36
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %96

75:                                               ; preds = %65
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %79

77:                                               ; preds = %67
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  br label %79

79:                                               ; preds = %77, %75
  %.pn15 = phi { ptr, i32 } [ %78, %77 ], [ %76, %75 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  br label %96

80:                                               ; preds = %62
  %81 = load ptr, ptr @g_pPlane, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %82 unwind label %84

82:                                               ; preds = %80
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %83 unwind label %86

83:                                               ; preds = %82
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  br label %89

84:                                               ; preds = %80
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

86:                                               ; preds = %82
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  br label %88

88:                                               ; preds = %86, %84
  %.pn = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  br label %96

89:                                               ; preds = %83, %68
  %90 = load ptr, ptr @_funcptr_glBindSampler, align 8, !tbaa !5
  invoke void %90(i32 noundef 0, i32 noundef 0)
          to label %91 unwind label %73

91:                                               ; preds = %89
  %92 = load ptr, ptr @_funcptr_glBindTexture, align 8, !tbaa !5
  invoke void %92(i32 noundef 3553, i32 noundef 0)
          to label %93 unwind label %73

93:                                               ; preds = %91
  %94 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %94(i32 noundef 0)
          to label %95 unwind label %73

95:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #7
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %2) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  br label %98

96:                                               ; preds = %73, %79, %88, %71
  %.pn17.pn = phi { ptr, i32 } [ %72, %71 ], [ %74, %73 ], [ %.pn15, %79 ], [ %.pn, %88 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #7
  br label %97

97:                                               ; preds = %96, %69
  %.pn17.pn.pn = phi { ptr, i32 } [ %.pn17.pn, %96 ], [ %70, %69 ]
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %2) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn17.pn.pn

98:                                               ; preds = %95, %0
  call void @glutPostRedisplay()
  call void @glutSwapBuffers()
  ret void
}

declare noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #3

declare noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @cosf(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sinf(float noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6lookAtIfEENS_6detail7tmat4x4IT_EERKNS1_5tvec3IS3_EES8_S8_(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 #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZN6glutil11MatrixStackmLERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1 align 2

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

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

declare void @glutPostRedisplay() local_unnamed_addr #3

declare void @glutSwapBuffers() local_unnamed_addr #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}


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