; LLVM IR from Lut1n/ImpGears :: src/OGLPlugin (GLInterface)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::shared_ptr.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.42" = type { %"class.std::__shared_ptr.43" }
%"class.std::__shared_ptr.43" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.83" = type { %"class.std::__shared_ptr.84" }
%"class.std::__shared_ptr.84" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.65" = type { %"class.std::__shared_ptr.66" }
%"class.std::__shared_ptr.66" = type { ptr, %"class.std::__shared_count" }
%"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::shared_ptr.35" = type { %"class.std::__shared_ptr.36" }
%"class.std::__shared_ptr.36" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.55" = type { %"class.std::__shared_ptr.56" }
%"class.std::__shared_ptr.56" = type { ptr, %"class.std::__shared_count" }
%"class.std::allocator" = type { i8 }
%"class.imp::Sampler" = type <{ %"class.imp::Object", i32, i8, i8, [2 x i8] }>
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr.6" }
%"class.imp::Sampler.58" = type <{ %"class.imp::Object", i32, i8, i8, [2 x i8] }>

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [22 x i8], align 1
@__glewUniform1f = external global ptr, align 8
@__glewUniform1fv = external global ptr, align 8
@__glewUniform2f = external global ptr, align 8
@__glewUniform3f = external global ptr, align 8
@__glewUniform4f = external global ptr, align 8
@__glewUniform1i = external global ptr, align 8
@__glewUniformMatrix3fv = external global ptr, align 8
@__glewUniformMatrix4fv = external global ptr, align 8
@__glewActiveTexture = external global ptr, align 8
@.str.31 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [78 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

; 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

declare i32 @__gxx_personality_v0(...)

; 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: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp6Object13getRenderDataEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.6") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp7Texture6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.42") align 8, ptr noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp7Program6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.83") align 8, ptr noundef) #1 align 2

declare void @_ZN3imp7Texture6updateEv(ptr noundef nonnull align 8 dereferenceable(80)) #4

declare void @_ZNK3imp7Texture4bindEv(ptr noundef nonnull align 8 dereferenceable(80)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp7CubeMap6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.65") align 8, ptr noundef) #1 align 2

declare void @_ZN3imp7CubeMap6updateEv(ptr noundef nonnull align 8 dereferenceable(88)) #4

declare void @_ZNK3imp7CubeMap4bindEv(ptr noundef nonnull align 8 dereferenceable(88)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIN3imp7CubeMapEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16), ptr) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3imp7CubeMapEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIN3imp7TextureEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16), ptr) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3imp7TextureEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp8GlPlugin6updateERSt10shared_ptrINS_14ReflexionModelEERS1_INS_7UniformEE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::shared_ptr.83", align 8
  %8 = alloca %"class.std::shared_ptr.6", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.std::shared_ptr.35", align 8
  %20 = alloca %"class.std::shared_ptr.42", align 8
  %21 = alloca %"class.std::shared_ptr.6", align 8
  %22 = alloca %"class.std::shared_ptr.42", align 8
  %23 = alloca %"class.std::shared_ptr.6", align 8
  %24 = alloca %"class.std::shared_ptr.55", align 8
  %25 = alloca %"class.std::shared_ptr.65", align 8
  %26 = alloca %"class.std::shared_ptr.6", align 8
  %27 = alloca %"class.std::shared_ptr.65", align 8
  %28 = alloca %"class.std::shared_ptr.6", align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator", align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  call void @_ZN3imp6Object13getRenderDataEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.6") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %35)
  invoke void @_ZN3imp7Program6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.83") align 8 %7, ptr noundef %8)
          to label %36 unwind label %39

36:                                               ; preds = %3
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  %37 = call noundef zeroext i1 @_ZSteqIN3imp7ProgramEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr null) #6
  br i1 %37, label %38, label %43

38:                                               ; preds = %36
  store i32 1, ptr %11, align 4
  br label %439

39:                                               ; preds = %3
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %9, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  br label %455

43:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %44) #6
  %46 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3imp7Uniform5getIDB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(392) %45)
          to label %47 unwind label %59

47:                                               ; preds = %43
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %46)
          to label %48 unwind label %59

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %49) #6
  %51 = invoke noundef i32 @_ZNK3imp7Uniform7getTypeEv(ptr noundef nonnull align 8 dereferenceable(392) %50)
          to label %52 unwind label %63

52:                                               ; preds = %48
  store i32 %51, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %53 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7ProgramELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  %54 = invoke noundef i32 @_ZNK3imp7Program6locateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(120) %53, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %55 unwind label %67

55:                                               ; preds = %52
  store i32 %54, ptr %14, align 4, !tbaa !11
  %56 = load i32, ptr %14, align 4, !tbaa !11
  %57 = icmp eq i32 %56, -1
  br i1 %57, label %58, label %71

58:                                               ; preds = %55
  store i32 1, ptr %11, align 4
  br label %438

59:                                               ; preds = %47, %43
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %9, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %10, align 4
  br label %454

63:                                               ; preds = %48
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %9, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %10, align 4
  br label %453

67:                                               ; preds = %209, %207, %201, %196, %194, %188, %183, %177, %80, %74, %52
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %9, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %10, align 4
  br label %452

71:                                               ; preds = %55
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %74, label %82

74:                                               ; preds = %71
  %75 = load ptr, ptr @__glewUniform1f, align 8, !tbaa !5
  %76 = load i32, ptr %14, align 4, !tbaa !11
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %77) #6
  %79 = invoke noundef float @_ZNK3imp7Uniform9getFloat1Ev(ptr noundef nonnull align 8 dereferenceable(392) %78)
          to label %80 unwind label %67

80:                                               ; preds = %74
  invoke void %75(i32 noundef %76, float noundef %79)
          to label %81 unwind label %67

81:                                               ; preds = %80
  br label %387

82:                                               ; preds = %71
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = icmp eq i32 %83, 10
  br i1 %84, label %85, label %102

85:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %86) #6
  %88 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3imp7Uniform10getFloat1vEv(ptr noundef nonnull align 8 dereferenceable(392) %87)
          to label %89 unwind label %98

89:                                               ; preds = %85
  store ptr %88, ptr %15, align 8, !tbaa !5
  %90 = load ptr, ptr @__glewUniform1fv, align 8, !tbaa !5
  %91 = load i32, ptr %14, align 4, !tbaa !11
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #6
  %94 = trunc i64 %93 to i32
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = call noundef ptr @_ZNKSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #6
  invoke void %90(i32 noundef %91, i32 noundef %94, ptr noundef %96)
          to label %97 unwind label %98

97:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %386

98:                                               ; preds = %89, %85
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %9, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %452

102:                                              ; preds = %82
  %103 = load i32, ptr %13, align 4, !tbaa !9
  %104 = icmp eq i32 %103, 2
  br i1 %104, label %105, label %123

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %106) #6
  %108 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3imp7Uniform9getFloat2Ev(ptr noundef nonnull align 8 dereferenceable(392) %107)
          to label %109 unwind label %119

109:                                              ; preds = %105
  store ptr %108, ptr %16, align 8, !tbaa !5
  %110 = load ptr, ptr @__glewUniform2f, align 8, !tbaa !5
  %111 = load i32, ptr %14, align 4, !tbaa !11
  %112 = load ptr, ptr %16, align 8, !tbaa !5
  %113 = invoke noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %112, i32 noundef 0)
          to label %114 unwind label %119

114:                                              ; preds = %109
  %115 = load ptr, ptr %16, align 8, !tbaa !5
  %116 = invoke noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %115, i32 noundef 1)
          to label %117 unwind label %119

117:                                              ; preds = %114
  invoke void %110(i32 noundef %111, float noundef %113, float noundef %116)
          to label %118 unwind label %119

118:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %385

119:                                              ; preds = %117, %114, %109, %105
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %9, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %452

123:                                              ; preds = %102
  %124 = load i32, ptr %13, align 4, !tbaa !9
  %125 = icmp eq i32 %124, 3
  br i1 %125, label %126, label %147

126:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %127) #6
  %129 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNK3imp7Uniform9getFloat3Ev(ptr noundef nonnull align 8 dereferenceable(392) %128)
          to label %130 unwind label %143

130:                                              ; preds = %126
  store ptr %129, ptr %17, align 8, !tbaa !5
  %131 = load ptr, ptr @__glewUniform3f, align 8, !tbaa !5
  %132 = load i32, ptr %14, align 4, !tbaa !11
  %133 = load ptr, ptr %17, align 8, !tbaa !5
  %134 = invoke noundef float @_ZNK3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36) %133, i32 noundef 0)
          to label %135 unwind label %143

135:                                              ; preds = %130
  %136 = load ptr, ptr %17, align 8, !tbaa !5
  %137 = invoke noundef float @_ZNK3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36) %136, i32 noundef 1)
          to label %138 unwind label %143

138:                                              ; preds = %135
  %139 = load ptr, ptr %17, align 8, !tbaa !5
  %140 = invoke noundef float @_ZNK3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36) %139, i32 noundef 2)
          to label %141 unwind label %143

141:                                              ; preds = %138
  invoke void %131(i32 noundef %132, float noundef %134, float noundef %137, float noundef %140)
          to label %142 unwind label %143

142:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %384

143:                                              ; preds = %141, %138, %135, %130, %126
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %9, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %452

147:                                              ; preds = %123
  %148 = load i32, ptr %13, align 4, !tbaa !9
  %149 = icmp eq i32 %148, 4
  br i1 %149, label %150, label %174

150:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %151) #6
  %153 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3imp7Uniform9getFloat4Ev(ptr noundef nonnull align 8 dereferenceable(392) %152)
          to label %154 unwind label %170

154:                                              ; preds = %150
  store ptr %153, ptr %18, align 8, !tbaa !5
  %155 = load ptr, ptr @__glewUniform4f, align 8, !tbaa !5
  %156 = load i32, ptr %14, align 4, !tbaa !11
  %157 = load ptr, ptr %18, align 8, !tbaa !5
  %158 = invoke noundef float @_ZNK3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %157, i32 noundef 0)
          to label %159 unwind label %170

159:                                              ; preds = %154
  %160 = load ptr, ptr %18, align 8, !tbaa !5
  %161 = invoke noundef float @_ZNK3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %160, i32 noundef 1)
          to label %162 unwind label %170

162:                                              ; preds = %159
  %163 = load ptr, ptr %18, align 8, !tbaa !5
  %164 = invoke noundef float @_ZNK3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %163, i32 noundef 2)
          to label %165 unwind label %170

165:                                              ; preds = %162
  %166 = load ptr, ptr %18, align 8, !tbaa !5
  %167 = invoke noundef float @_ZNK3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %166, i32 noundef 3)
          to label %168 unwind label %170

168:                                              ; preds = %165
  invoke void %155(i32 noundef %156, float noundef %158, float noundef %161, float noundef %164, float noundef %167)
          to label %169 unwind label %170

169:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %383

170:                                              ; preds = %168, %165, %162, %159, %154, %150
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %9, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %452

174:                                              ; preds = %147
  %175 = load i32, ptr %13, align 4, !tbaa !9
  %176 = icmp eq i32 %175, 5
  br i1 %176, label %177, label %185

177:                                              ; preds = %174
  %178 = load ptr, ptr @__glewUniform1i, align 8, !tbaa !5
  %179 = load i32, ptr %14, align 4, !tbaa !11
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %180) #6
  %182 = invoke noundef i32 @_ZNK3imp7Uniform7getInt1Ev(ptr noundef nonnull align 8 dereferenceable(392) %181)
          to label %183 unwind label %67

183:                                              ; preds = %177
  invoke void %178(i32 noundef %179, i32 noundef %182)
          to label %184 unwind label %67

184:                                              ; preds = %183
  br label %382

185:                                              ; preds = %174
  %186 = load i32, ptr %13, align 4, !tbaa !9
  %187 = icmp eq i32 %186, 6
  br i1 %187, label %188, label %198

188:                                              ; preds = %185
  %189 = load ptr, ptr @__glewUniformMatrix3fv, align 8, !tbaa !5
  %190 = load i32, ptr %14, align 4, !tbaa !11
  %191 = load ptr, ptr %6, align 8, !tbaa !5
  %192 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %191) #6
  %193 = invoke noundef nonnull align 8 dereferenceable(60) ptr @_ZNK3imp7Uniform7getMat3Ev(ptr noundef nonnull align 8 dereferenceable(392) %192)
          to label %194 unwind label %67

194:                                              ; preds = %188
  %195 = invoke noundef ptr @_ZNK3imp6MatrixILi3ELi3EfE4dataEv(ptr noundef nonnull align 8 dereferenceable(60) %193)
          to label %196 unwind label %67

196:                                              ; preds = %194
  invoke void %189(i32 noundef %190, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %195)
          to label %197 unwind label %67

197:                                              ; preds = %196
  br label %381

198:                                              ; preds = %185
  %199 = load i32, ptr %13, align 4, !tbaa !9
  %200 = icmp eq i32 %199, 7
  br i1 %200, label %201, label %211

201:                                              ; preds = %198
  %202 = load ptr, ptr @__glewUniformMatrix4fv, align 8, !tbaa !5
  %203 = load i32, ptr %14, align 4, !tbaa !11
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %204) #6
  %206 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZNK3imp7Uniform7getMat4Ev(ptr noundef nonnull align 8 dereferenceable(392) %205)
          to label %207 unwind label %67

207:                                              ; preds = %201
  %208 = invoke noundef ptr @_ZNK3imp6MatrixILi4ELi4EfE4dataEv(ptr noundef nonnull align 8 dereferenceable(88) %206)
          to label %209 unwind label %67

209:                                              ; preds = %207
  invoke void %202(i32 noundef %203, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %208)
          to label %210 unwind label %67

210:                                              ; preds = %209
  br label %380

211:                                              ; preds = %198
  %212 = load i32, ptr %13, align 4, !tbaa !9
  %213 = icmp eq i32 %212, 8
  br i1 %213, label %214, label %294

214:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %215) #6
  invoke void @_ZNK3imp7Uniform10getSamplerEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.35") align 8 %19, ptr noundef nonnull align 8 dereferenceable(392) %216)
          to label %217 unwind label %245

217:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  %218 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp12ImageSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZN3imp6Object13getRenderDataEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.6") align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %218)
          to label %219 unwind label %249

219:                                              ; preds = %217
  invoke void @_ZN3imp7Texture6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.42") align 8 %20, ptr noundef %21)
          to label %220 unwind label %253

220:                                              ; preds = %219
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  %221 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !5
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  %223 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %222) #6
  %224 = invoke noundef i32 @_ZNK3imp7Uniform7getInt1Ev(ptr noundef nonnull align 8 dereferenceable(392) %223)
          to label %225 unwind label %257

225:                                              ; preds = %220
  %226 = add nsw i32 33984, %224
  invoke void %221(i32 noundef %226)
          to label %227 unwind label %257

227:                                              ; preds = %225
  %228 = call noundef zeroext i1 @_ZSteqIN3imp7TextureEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr null) #6
  br i1 %228, label %229, label %271

229:                                              ; preds = %227
  %230 = load ptr, ptr %33, align 8, !tbaa !13
  %231 = getelementptr inbounds ptr, ptr %230, i64 6
  %232 = load ptr, ptr %231, align 8
  %233 = invoke noundef i32 %232(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %234 unwind label %257

234:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %235 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp12ImageSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZN3imp6Object13getRenderDataEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.6") align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %235)
          to label %236 unwind label %261

236:                                              ; preds = %234
  invoke void @_ZN3imp7Texture6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.42") align 8 %22, ptr noundef %23)
          to label %237 unwind label %265

237:                                              ; preds = %236
  %238 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3imp7TextureEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @_ZNSt12__shared_ptrIN3imp7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  %239 = call noundef zeroext i1 @_ZSteqIN3imp7TextureEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr null) #6
  br i1 %239, label %240, label %270

240:                                              ; preds = %237
  %241 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.31)
          to label %242 unwind label %257

242:                                              ; preds = %240
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %241, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %244 unwind label %257

244:                                              ; preds = %242
  br label %270

245:                                              ; preds = %214
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %9, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %10, align 4
  br label %293

249:                                              ; preds = %217
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %9, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %10, align 4
  br label %292

253:                                              ; preds = %219
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %9, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  br label %292

257:                                              ; preds = %289, %283, %281, %276, %242, %240, %229, %225, %220
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %9, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %10, align 4
  br label %291

261:                                              ; preds = %234
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %9, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %10, align 4
  br label %269

265:                                              ; preds = %236
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %9, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  br label %269

269:                                              ; preds = %265, %261
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %291

270:                                              ; preds = %244, %237
  br label %271

271:                                              ; preds = %270, %227
  %272 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp12ImageSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  %273 = getelementptr inbounds %"class.imp::Sampler", ptr %272, i32 0, i32 3
  %274 = load i8, ptr %273, align 1, !tbaa !15, !range !23, !noundef !24
  %275 = trunc i8 %274 to i1
  br i1 %275, label %276, label %281

276:                                              ; preds = %271
  %277 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7TextureELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  invoke void @_ZN3imp7Texture6updateEv(ptr noundef nonnull align 8 dereferenceable(80) %277)
          to label %278 unwind label %257

278:                                              ; preds = %276
  %279 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp12ImageSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  %280 = getelementptr inbounds %"class.imp::Sampler", ptr %279, i32 0, i32 3
  store i8 0, ptr %280, align 1, !tbaa !15
  br label %281

281:                                              ; preds = %278, %271
  %282 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7TextureELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  invoke void @_ZNK3imp7Texture4bindEv(ptr noundef nonnull align 8 dereferenceable(80) %282)
          to label %283 unwind label %257

283:                                              ; preds = %281
  %284 = load ptr, ptr @__glewUniform1i, align 8, !tbaa !5
  %285 = load i32, ptr %14, align 4, !tbaa !11
  %286 = load ptr, ptr %6, align 8, !tbaa !5
  %287 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %286) #6
  %288 = invoke noundef i32 @_ZNK3imp7Uniform7getInt1Ev(ptr noundef nonnull align 8 dereferenceable(392) %287)
          to label %289 unwind label %257

289:                                              ; preds = %283
  invoke void %284(i32 noundef %285, i32 noundef %288)
          to label %290 unwind label %257

290:                                              ; preds = %289
  call void @_ZNSt12__shared_ptrIN3imp7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @_ZNSt12__shared_ptrIN3imp12ImageSamplerELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %379

291:                                              ; preds = %269, %257
  call void @_ZNSt12__shared_ptrIN3imp7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  br label %292

292:                                              ; preds = %291, %253, %249
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @_ZNSt12__shared_ptrIN3imp12ImageSamplerELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  br label %293

293:                                              ; preds = %292, %245
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %452

294:                                              ; preds = %211
  %295 = load i32, ptr %13, align 4, !tbaa !9
  %296 = icmp eq i32 %295, 9
  br i1 %296, label %297, label %377

297:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  %298 = load ptr, ptr %6, align 8, !tbaa !5
  %299 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %298) #6
  invoke void @_ZNK3imp7Uniform10getCubeMapEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.55") align 8 %24, ptr noundef nonnull align 8 dereferenceable(392) %299)
          to label %300 unwind label %328

300:                                              ; preds = %297
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  %301 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  invoke void @_ZN3imp6Object13getRenderDataEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.6") align 8 %26, ptr noundef nonnull align 8 dereferenceable(24) %301)
          to label %302 unwind label %332

302:                                              ; preds = %300
  invoke void @_ZN3imp7CubeMap6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.65") align 8 %25, ptr noundef %26)
          to label %303 unwind label %336

303:                                              ; preds = %302
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  %304 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !5
  %305 = load ptr, ptr %6, align 8, !tbaa !5
  %306 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %305) #6
  %307 = invoke noundef i32 @_ZNK3imp7Uniform7getInt1Ev(ptr noundef nonnull align 8 dereferenceable(392) %306)
          to label %308 unwind label %340

308:                                              ; preds = %303
  %309 = add nsw i32 33984, %307
  invoke void %304(i32 noundef %309)
          to label %310 unwind label %340

310:                                              ; preds = %308
  %311 = call noundef zeroext i1 @_ZSteqIN3imp7CubeMapEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr null) #6
  br i1 %311, label %312, label %354

312:                                              ; preds = %310
  %313 = load ptr, ptr %33, align 8, !tbaa !13
  %314 = getelementptr inbounds ptr, ptr %313, i64 7
  %315 = load ptr, ptr %314, align 8
  %316 = invoke noundef i32 %315(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %317 unwind label %340

317:                                              ; preds = %312
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  %318 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  invoke void @_ZN3imp6Object13getRenderDataEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.6") align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %318)
          to label %319 unwind label %344

319:                                              ; preds = %317
  invoke void @_ZN3imp7CubeMap6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.65") align 8 %27, ptr noundef %28)
          to label %320 unwind label %348

320:                                              ; preds = %319
  %321 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3imp7CubeMapEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  call void @_ZNSt12__shared_ptrIN3imp7CubeMapELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  %322 = call noundef zeroext i1 @_ZSteqIN3imp7CubeMapEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr null) #6
  br i1 %322, label %323, label %353

323:                                              ; preds = %320
  %324 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.30)
          to label %325 unwind label %340

325:                                              ; preds = %323
  %326 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %324, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %327 unwind label %340

327:                                              ; preds = %325
  br label %353

328:                                              ; preds = %297
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %9, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %10, align 4
  br label %376

332:                                              ; preds = %300
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %9, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %10, align 4
  br label %375

336:                                              ; preds = %302
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %9, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  br label %375

340:                                              ; preds = %372, %366, %364, %359, %325, %323, %312, %308, %303
  %341 = landingpad { ptr, i32 }
          cleanup
  %342 = extractvalue { ptr, i32 } %341, 0
  store ptr %342, ptr %9, align 8
  %343 = extractvalue { ptr, i32 } %341, 1
  store i32 %343, ptr %10, align 4
  br label %374

344:                                              ; preds = %317
  %345 = landingpad { ptr, i32 }
          cleanup
  %346 = extractvalue { ptr, i32 } %345, 0
  store ptr %346, ptr %9, align 8
  %347 = extractvalue { ptr, i32 } %345, 1
  store i32 %347, ptr %10, align 4
  br label %352

348:                                              ; preds = %319
  %349 = landingpad { ptr, i32 }
          cleanup
  %350 = extractvalue { ptr, i32 } %349, 0
  store ptr %350, ptr %9, align 8
  %351 = extractvalue { ptr, i32 } %349, 1
  store i32 %351, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  br label %352

352:                                              ; preds = %348, %344
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %374

353:                                              ; preds = %327, %320
  br label %354

354:                                              ; preds = %353, %310
  %355 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  %356 = getelementptr inbounds %"class.imp::Sampler.58", ptr %355, i32 0, i32 3
  %357 = load i8, ptr %356, align 1, !tbaa !25, !range !23, !noundef !24
  %358 = trunc i8 %357 to i1
  br i1 %358, label %359, label %364

359:                                              ; preds = %354
  %360 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7CubeMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  invoke void @_ZN3imp7CubeMap6updateEv(ptr noundef nonnull align 8 dereferenceable(88) %360)
          to label %361 unwind label %340

361:                                              ; preds = %359
  %362 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  %363 = getelementptr inbounds %"class.imp::Sampler.58", ptr %362, i32 0, i32 3
  store i8 0, ptr %363, align 1, !tbaa !25
  br label %364

364:                                              ; preds = %361, %354
  %365 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7CubeMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  invoke void @_ZNK3imp7CubeMap4bindEv(ptr noundef nonnull align 8 dereferenceable(88) %365)
          to label %366 unwind label %340

366:                                              ; preds = %364
  %367 = load ptr, ptr @__glewUniform1i, align 8, !tbaa !5
  %368 = load i32, ptr %14, align 4, !tbaa !11
  %369 = load ptr, ptr %6, align 8, !tbaa !5
  %370 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %369) #6
  %371 = invoke noundef i32 @_ZNK3imp7Uniform7getInt1Ev(ptr noundef nonnull align 8 dereferenceable(392) %370)
          to label %372 unwind label %340

372:                                              ; preds = %366
  invoke void %367(i32 noundef %368, i32 noundef %371)
          to label %373 unwind label %340

373:                                              ; preds = %372
  call void @_ZNSt12__shared_ptrIN3imp7CubeMapELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  call void @_ZNSt12__shared_ptrIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  br label %378

374:                                              ; preds = %352, %340
  call void @_ZNSt12__shared_ptrIN3imp7CubeMapELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #6
  br label %375

375:                                              ; preds = %374, %336, %332
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  call void @_ZNSt12__shared_ptrIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  br label %376

376:                                              ; preds = %375, %328
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  br label %452

377:                                              ; preds = %294
  br label %378

378:                                              ; preds = %377, %373
  br label %379

379:                                              ; preds = %378, %290
  br label %380

380:                                              ; preds = %379, %210
  br label %381

381:                                              ; preds = %380, %197
  br label %382

382:                                              ; preds = %381, %184
  br label %383

383:                                              ; preds = %382, %169
  br label %384

384:                                              ; preds = %383, %142
  br label %385

385:                                              ; preds = %384, %118
  br label %386

386:                                              ; preds = %385, %97
  br label %387

387:                                              ; preds = %386, %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %388 = invoke i32 @glGetError()
          to label %389 unwind label %426

389:                                              ; preds = %387
  store i32 %388, ptr %29, align 4, !tbaa !11
  %390 = load i32, ptr %29, align 4, !tbaa !11
  %391 = icmp ne i32 %390, 0
  br i1 %391, label %392, label %434

392:                                              ; preds = %389
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  %393 = load i32, ptr %29, align 4, !tbaa !11
  invoke void @_Z13glErrToStringjRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef %393, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %394 unwind label %430

394:                                              ; preds = %392
  %395 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.32)
          to label %396 unwind label %430

396:                                              ; preds = %394
  %397 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %395, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %398 unwind label %430

398:                                              ; preds = %396
  %399 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %397, ptr noundef @.str.33)
          to label %400 unwind label %430

400:                                              ; preds = %398
  %401 = load i32, ptr %29, align 4, !tbaa !11
  %402 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %399, i32 noundef %401)
          to label %403 unwind label %430

403:                                              ; preds = %400
  %404 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %402, ptr noundef @.str.34)
          to label %405 unwind label %430

405:                                              ; preds = %403
  %406 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %404, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %407 unwind label %430

407:                                              ; preds = %405
  %408 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %406, ptr noundef @.str.26)
          to label %409 unwind label %430

409:                                              ; preds = %407
  %410 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %408, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %411 unwind label %430

411:                                              ; preds = %409
  %412 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.35)
          to label %413 unwind label %430

413:                                              ; preds = %411
  %414 = load i32, ptr %14, align 4, !tbaa !11
  %415 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %412, i32 noundef %414)
          to label %416 unwind label %430

416:                                              ; preds = %413
  %417 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %415, ptr noundef @.str.36)
          to label %418 unwind label %430

418:                                              ; preds = %416
  %419 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7ProgramELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  %420 = invoke noundef i32 @_ZNK3imp7Program2idEv(ptr noundef nonnull align 8 dereferenceable(120) %419)
          to label %421 unwind label %430

421:                                              ; preds = %418
  %422 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %417, i32 noundef %420)
          to label %423 unwind label %430

423:                                              ; preds = %421
  %424 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %422, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %425 unwind label %430

425:                                              ; preds = %423
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #6
  br label %434

426:                                              ; preds = %387
  %427 = landingpad { ptr, i32 }
          cleanup
  %428 = extractvalue { ptr, i32 } %427, 0
  store ptr %428, ptr %9, align 8
  %429 = extractvalue { ptr, i32 } %427, 1
  store i32 %429, ptr %10, align 4
  br label %451

430:                                              ; preds = %423, %421, %418, %416, %413, %411, %409, %407, %405, %403, %400, %398, %396, %394, %392
  %431 = landingpad { ptr, i32 }
          cleanup
  %432 = extractvalue { ptr, i32 } %431, 0
  store ptr %432, ptr %9, align 8
  %433 = extractvalue { ptr, i32 } %431, 1
  store i32 %433, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #6
  br label %451

434:                                              ; preds = %425, %389
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.37, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %435 unwind label %442

435:                                              ; preds = %434
  %436 = invoke noundef zeroext i1 @_Z12GLcheckErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKci(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.38, i32 noundef 516)
          to label %437 unwind label %446

437:                                              ; preds = %435
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  store i32 0, ptr %11, align 4
  br label %438

438:                                              ; preds = %437, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  br label %439

439:                                              ; preds = %438, %38
  call void @_ZNSt12__shared_ptrIN3imp7ProgramELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  %440 = load i32, ptr %11, align 4
  switch i32 %440, label %461 [
    i32 0, label %441
    i32 1, label %441
  ]

441:                                              ; preds = %439, %439
  ret void

442:                                              ; preds = %434
  %443 = landingpad { ptr, i32 }
          cleanup
  %444 = extractvalue { ptr, i32 } %443, 0
  store ptr %444, ptr %9, align 8
  %445 = extractvalue { ptr, i32 } %443, 1
  store i32 %445, ptr %10, align 4
  br label %450

446:                                              ; preds = %435
  %447 = landingpad { ptr, i32 }
          cleanup
  %448 = extractvalue { ptr, i32 } %447, 0
  store ptr %448, ptr %9, align 8
  %449 = extractvalue { ptr, i32 } %447, 1
  store i32 %449, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  br label %450

450:                                              ; preds = %446, %442
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  br label %451

451:                                              ; preds = %450, %430, %426
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %452

452:                                              ; preds = %451, %376, %293, %170, %143, %119, %98, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %453

453:                                              ; preds = %452, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %454

454:                                              ; preds = %453, %59
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @_ZNSt12__shared_ptrIN3imp7ProgramELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  br label %455

455:                                              ; preds = %454, %39
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  br label %456

456:                                              ; preds = %455
  %457 = load ptr, ptr %9, align 8
  %458 = load i32, ptr %10, align 4
  %459 = insertvalue { ptr, i32 } poison, ptr %457, 0
  %460 = insertvalue { ptr, i32 } %459, i32 %458, 1
  resume { ptr, i32 } %460

461:                                              ; preds = %439
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIN3imp7ProgramEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16), ptr) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3imp7Uniform5getIDB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(392)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3imp7Uniform7getTypeEv(ptr noundef nonnull align 8 dereferenceable(392)) #1 align 2

declare noundef i32 @_ZNK3imp7Program6locateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3imp7Uniform9getFloat1Ev(ptr noundef nonnull align 8 dereferenceable(392)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3imp7Uniform10getFloat1vEv(ptr noundef nonnull align 8 dereferenceable(392)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3imp7Uniform9getFloat2Ev(ptr noundef nonnull align 8 dereferenceable(392)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZNK3imp7Uniform9getFloat3Ev(ptr noundef nonnull align 8 dereferenceable(392)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3imp7Uniform9getFloat4Ev(ptr noundef nonnull align 8 dereferenceable(392)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3imp7Uniform7getInt1Ev(ptr noundef nonnull align 8 dereferenceable(392)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(60) ptr @_ZNK3imp7Uniform7getMat3Ev(ptr noundef nonnull align 8 dereferenceable(392)) #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3imp7Uniform10getSamplerEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.35") align 8, ptr noundef nonnull align 8 dereferenceable(392)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3imp7Uniform10getCubeMapEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.55") align 8, ptr noundef nonnull align 8 dereferenceable(392)) #1 align 2

declare i32 @glGetError() #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z13glErrToStringjRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3imp7Program2idEv(ptr noundef nonnull align 8 dereferenceable(120)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12GLcheckErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKci(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) #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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3imp7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 = { 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 #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN3imp7Uniform4TypeE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !22, i64 29}
!16 = !{!"_ZTSN3imp7SamplerINS_4Vec2ENS_4Vec4EEE", !17, i64 0, !21, i64 24, !22, i64 28, !22, i64 29}
!17 = !{!"_ZTSN3imp6ObjectE", !18, i64 8}
!18 = !{!"_ZTSSt10shared_ptrIN3imp6ObjectEE", !19, i64 0}
!19 = !{!"_ZTSSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !20, i64 8}
!20 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!21 = !{!"_ZTSN3imp7SamplerINS_4Vec2ENS_4Vec4EE9FilteringE", !7, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!26, !22, i64 29}
!26 = !{!"_ZTSN3imp7SamplerINS_4Vec3ENS_4Vec4EEE", !17, i64 0, !27, i64 24, !22, i64 28, !22, i64 29}
!27 = !{!"_ZTSN3imp7SamplerINS_4Vec3ENS_4Vec4EE9FilteringE", !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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::shared_ptr.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.42" = type { %"class.std::__shared_ptr.43" }
%"class.std::__shared_ptr.43" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.83" = type { %"class.std::__shared_ptr.84" }
%"class.std::__shared_ptr.84" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.65" = type { %"class.std::__shared_ptr.66" }
%"class.std::__shared_ptr.66" = type { ptr, %"class.std::__shared_count" }
%"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::shared_ptr.35" = type { %"class.std::__shared_ptr.36" }
%"class.std::__shared_ptr.36" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.55" = type { %"class.std::__shared_ptr.56" }
%"class.std::__shared_ptr.56" = type { ptr, %"class.std::__shared_count" }
%"class.std::allocator" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [22 x i8], align 1
@__glewUniform1f = external local_unnamed_addr global ptr, align 8
@__glewUniform1fv = external local_unnamed_addr global ptr, align 8
@__glewUniform2f = external local_unnamed_addr global ptr, align 8
@__glewUniform3f = external local_unnamed_addr global ptr, align 8
@__glewUniform4f = external local_unnamed_addr global ptr, align 8
@__glewUniform1i = external local_unnamed_addr global ptr, align 8
@__glewUniformMatrix3fv = external local_unnamed_addr global ptr, align 8
@__glewUniformMatrix4fv = external local_unnamed_addr global ptr, align 8
@__glewActiveTexture = external local_unnamed_addr global ptr, align 8
@.str.31 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [78 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

; 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

declare i32 @__gxx_personality_v0(...)

; 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: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp6Object13getRenderDataEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.6") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp7Texture6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.42") align 8, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp7Program6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.83") align 8, ptr noundef) local_unnamed_addr #1 align 2

declare void @_ZN3imp7Texture6updateEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4

declare void @_ZNK3imp7Texture4bindEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp7CubeMap6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.65") align 8, ptr noundef) local_unnamed_addr #1 align 2

declare void @_ZN3imp7CubeMap6updateEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

declare void @_ZNK3imp7CubeMap4bindEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIN3imp7CubeMapEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16), ptr) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3imp7CubeMapEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIN3imp7TextureEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16), ptr) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3imp7TextureEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp8GlPlugin6updateERSt10shared_ptrINS_14ReflexionModelEERS1_INS_7UniformEE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::shared_ptr.83", align 8
  %5 = alloca %"class.std::shared_ptr.6", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::shared_ptr.35", align 8
  %8 = alloca %"class.std::shared_ptr.42", align 8
  %9 = alloca %"class.std::shared_ptr.6", align 8
  %10 = alloca %"class.std::shared_ptr.42", align 8
  %11 = alloca %"class.std::shared_ptr.6", align 8
  %12 = alloca %"class.std::shared_ptr.55", align 8
  %13 = alloca %"class.std::shared_ptr.65", align 8
  %14 = alloca %"class.std::shared_ptr.6", align 8
  %15 = alloca %"class.std::shared_ptr.65", align 8
  %16 = alloca %"class.std::shared_ptr.6", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %20 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp14ReflexionModelELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  call void @_ZN3imp6Object13getRenderDataEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.6") align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %20)
  call void @_ZN3imp7Program6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.83") align 8 %4, ptr noundef nonnull %5)
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  %21 = call noundef zeroext i1 @_ZSteqIN3imp7ProgramEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr null) #6
  br i1 %21, label %217, label %22

22:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  %23 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %24 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3imp7Uniform5getIDB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(392) %23)
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %25 unwind label %32

25:                                               ; preds = %22
  %26 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %27 = call noundef i32 @_ZNK3imp7Uniform7getTypeEv(ptr noundef nonnull align 8 dereferenceable(392) %26)
  %28 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7ProgramELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  %29 = invoke noundef i32 @_ZNK3imp7Program6locateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(120) %28, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %30 unwind label %34

30:                                               ; preds = %25
  %31 = icmp eq i32 %29, -1
  br i1 %31, label %216, label %36

32:                                               ; preds = %22
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %224

34:                                               ; preds = %.invoke, %77, %37, %25
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %223

36:                                               ; preds = %30
  switch i32 %27, label %175 [
    i32 1, label %37
    i32 10, label %41
    i32 2, label %50
    i32 3, label %58
    i32 4, label %67
    i32 5, label %77
    i32 6, label %81
    i32 7, label %86
    i32 8, label %93
    i32 9, label %134
  ]

37:                                               ; preds = %36
  %38 = load ptr, ptr @__glewUniform1f, align 8, !tbaa !5
  %39 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %40 = call noundef float @_ZNK3imp7Uniform9getFloat1Ev(ptr noundef nonnull align 8 dereferenceable(392) %39)
  invoke void %38(i32 noundef %29, float noundef %40)
          to label %175 unwind label %34

41:                                               ; preds = %36
  %42 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3imp7Uniform10getFloat1vEv(ptr noundef nonnull align 8 dereferenceable(392) %42)
  %44 = load ptr, ptr @__glewUniform1fv, align 8, !tbaa !5
  %45 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  %46 = trunc i64 %45 to i32
  %47 = call noundef ptr @_ZNKSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  invoke void %44(i32 noundef %29, i32 noundef %46, ptr noundef %47)
          to label %175 unwind label %48

48:                                               ; preds = %41
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %223

50:                                               ; preds = %36
  %51 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %52 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3imp7Uniform9getFloat2Ev(ptr noundef nonnull align 8 dereferenceable(392) %51)
  %53 = load ptr, ptr @__glewUniform2f, align 8, !tbaa !5
  %54 = call noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %52, i32 noundef 0)
  %55 = call noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %52, i32 noundef 1)
  invoke void %53(i32 noundef %29, float noundef %54, float noundef %55)
          to label %175 unwind label %56

56:                                               ; preds = %50
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %223

58:                                               ; preds = %36
  %59 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %60 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNK3imp7Uniform9getFloat3Ev(ptr noundef nonnull align 8 dereferenceable(392) %59)
  %61 = load ptr, ptr @__glewUniform3f, align 8, !tbaa !5
  %62 = call noundef float @_ZNK3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36) %60, i32 noundef 0)
  %63 = call noundef float @_ZNK3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36) %60, i32 noundef 1)
  %64 = call noundef float @_ZNK3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36) %60, i32 noundef 2)
  invoke void %61(i32 noundef %29, float noundef %62, float noundef %63, float noundef %64)
          to label %175 unwind label %65

65:                                               ; preds = %58
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %223

67:                                               ; preds = %36
  %68 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %69 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3imp7Uniform9getFloat4Ev(ptr noundef nonnull align 8 dereferenceable(392) %68)
  %70 = load ptr, ptr @__glewUniform4f, align 8, !tbaa !5
  %71 = call noundef float @_ZNK3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %69, i32 noundef 0)
  %72 = call noundef float @_ZNK3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %69, i32 noundef 1)
  %73 = call noundef float @_ZNK3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %69, i32 noundef 2)
  %74 = call noundef float @_ZNK3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %69, i32 noundef 3)
  invoke void %70(i32 noundef %29, float noundef %71, float noundef %72, float noundef %73, float noundef %74)
          to label %175 unwind label %75

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

77:                                               ; preds = %36
  %78 = load ptr, ptr @__glewUniform1i, align 8, !tbaa !5
  %79 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %80 = call noundef i32 @_ZNK3imp7Uniform7getInt1Ev(ptr noundef nonnull align 8 dereferenceable(392) %79)
  invoke void %78(i32 noundef %29, i32 noundef %80)
          to label %175 unwind label %34

81:                                               ; preds = %36
  %82 = load ptr, ptr @__glewUniformMatrix3fv, align 8, !tbaa !5
  %83 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %84 = call noundef nonnull align 8 dereferenceable(60) ptr @_ZNK3imp7Uniform7getMat3Ev(ptr noundef nonnull align 8 dereferenceable(392) %83)
  %85 = call noundef ptr @_ZNK3imp6MatrixILi3ELi3EfE4dataEv(ptr noundef nonnull align 8 dereferenceable(60) %84)
  br label %.invoke

86:                                               ; preds = %36
  %87 = load ptr, ptr @__glewUniformMatrix4fv, align 8, !tbaa !5
  %88 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %89 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNK3imp7Uniform7getMat4Ev(ptr noundef nonnull align 8 dereferenceable(392) %88)
  %90 = call noundef ptr @_ZNK3imp6MatrixILi4ELi4EfE4dataEv(ptr noundef nonnull align 8 dereferenceable(88) %89)
  br label %.invoke

.invoke:                                          ; preds = %81, %86
  %91 = phi ptr [ %90, %86 ], [ %85, %81 ]
  %92 = phi ptr [ %87, %86 ], [ %82, %81 ]
  invoke void %92(i32 noundef %29, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %91)
          to label %175 unwind label %34

93:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %94 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  call void @_ZNK3imp7Uniform10getSamplerEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.35") align 8 %7, ptr noundef nonnull align 8 dereferenceable(392) %94)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %95 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp12ImageSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @_ZN3imp6Object13getRenderDataEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.6") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %95)
  call void @_ZN3imp7Texture6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.42") align 8 %8, ptr noundef nonnull %9)
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  %96 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !5
  %97 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %98 = call noundef i32 @_ZNK3imp7Uniform7getInt1Ev(ptr noundef nonnull align 8 dereferenceable(392) %97)
  %99 = add nsw i32 %98, 33984
  invoke void %96(i32 noundef %99)
          to label %100 unwind label %115

100:                                              ; preds = %93
  %101 = call noundef zeroext i1 @_ZSteqIN3imp7TextureEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr null) #6
  br i1 %101, label %102, label %117

102:                                              ; preds = %100
  %103 = load ptr, ptr %0, align 8, !tbaa !9
  %104 = getelementptr inbounds i8, ptr %103, i64 48
  %105 = load ptr, ptr %104, align 8
  %106 = invoke noundef i32 %105(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %107 unwind label %115

107:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %108 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp12ImageSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @_ZN3imp6Object13getRenderDataEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.6") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %108)
  call void @_ZN3imp7Texture6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.42") align 8 %10, ptr noundef nonnull %11)
  %109 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3imp7TextureEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @_ZNSt12__shared_ptrIN3imp7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  %110 = call noundef zeroext i1 @_ZSteqIN3imp7TextureEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr null) #6
  br i1 %110, label %111, label %117

111:                                              ; preds = %107
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.31)
          to label %113 unwind label %115

113:                                              ; preds = %111
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %117 unwind label %115

115:                                              ; preds = %129, %127, %122, %113, %111, %102, %93
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3imp7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @_ZNSt12__shared_ptrIN3imp12ImageSamplerELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %223

117:                                              ; preds = %107, %113, %100
  %118 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp12ImageSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  %119 = getelementptr inbounds i8, ptr %118, i64 29
  %120 = load i8, ptr %119, align 1, !tbaa !11, !range !19, !noundef !20
  %121 = trunc nuw i8 %120 to i1
  br i1 %121, label %122, label %127

122:                                              ; preds = %117
  %123 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7TextureELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZN3imp7Texture6updateEv(ptr noundef nonnull align 8 dereferenceable(80) %123)
          to label %124 unwind label %115

124:                                              ; preds = %122
  %125 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp12ImageSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  %126 = getelementptr inbounds i8, ptr %125, i64 29
  store i8 0, ptr %126, align 1, !tbaa !11
  br label %127

127:                                              ; preds = %124, %117
  %128 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7TextureELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNK3imp7Texture4bindEv(ptr noundef nonnull align 8 dereferenceable(80) %128)
          to label %129 unwind label %115

129:                                              ; preds = %127
  %130 = load ptr, ptr @__glewUniform1i, align 8, !tbaa !5
  %131 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %132 = call noundef i32 @_ZNK3imp7Uniform7getInt1Ev(ptr noundef nonnull align 8 dereferenceable(392) %131)
  invoke void %130(i32 noundef %29, i32 noundef %132)
          to label %133 unwind label %115

133:                                              ; preds = %129
  call void @_ZNSt12__shared_ptrIN3imp7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @_ZNSt12__shared_ptrIN3imp12ImageSamplerELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %175

134:                                              ; preds = %36
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  %135 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  call void @_ZNK3imp7Uniform10getCubeMapEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.55") align 8 %12, ptr noundef nonnull align 8 dereferenceable(392) %135)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  %136 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @_ZN3imp6Object13getRenderDataEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.6") align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %136)
  call void @_ZN3imp7CubeMap6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.65") align 8 %13, ptr noundef nonnull %14)
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  %137 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !5
  %138 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %139 = call noundef i32 @_ZNK3imp7Uniform7getInt1Ev(ptr noundef nonnull align 8 dereferenceable(392) %138)
  %140 = add nsw i32 %139, 33984
  invoke void %137(i32 noundef %140)
          to label %141 unwind label %156

141:                                              ; preds = %134
  %142 = call noundef zeroext i1 @_ZSteqIN3imp7CubeMapEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr null) #6
  br i1 %142, label %143, label %158

143:                                              ; preds = %141
  %144 = load ptr, ptr %0, align 8, !tbaa !9
  %145 = getelementptr inbounds i8, ptr %144, i64 56
  %146 = load ptr, ptr %145, align 8
  %147 = invoke noundef i32 %146(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %148 unwind label %156

148:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  %149 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @_ZN3imp6Object13getRenderDataEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.6") align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %149)
  call void @_ZN3imp7CubeMap6dMorphESt10shared_ptrINS_6ObjectEE(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.65") align 8 %15, ptr noundef nonnull %16)
  %150 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3imp7CubeMapEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @_ZNSt12__shared_ptrIN3imp7CubeMapELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @_ZNSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  %151 = call noundef zeroext i1 @_ZSteqIN3imp7CubeMapEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr null) #6
  br i1 %151, label %152, label %158

152:                                              ; preds = %148
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.30)
          to label %154 unwind label %156

154:                                              ; preds = %152
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %158 unwind label %156

156:                                              ; preds = %170, %168, %163, %154, %152, %143, %134
  %157 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3imp7CubeMapELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @_ZNSt12__shared_ptrIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %223

158:                                              ; preds = %148, %154, %141
  %159 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  %160 = getelementptr inbounds i8, ptr %159, i64 29
  %161 = load i8, ptr %160, align 1, !tbaa !21, !range !19, !noundef !20
  %162 = trunc nuw i8 %161 to i1
  br i1 %162, label %163, label %168

163:                                              ; preds = %158
  %164 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7CubeMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZN3imp7CubeMap6updateEv(ptr noundef nonnull align 8 dereferenceable(88) %164)
          to label %165 unwind label %156

165:                                              ; preds = %163
  %166 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  %167 = getelementptr inbounds i8, ptr %166, i64 29
  store i8 0, ptr %167, align 1, !tbaa !21
  br label %168

168:                                              ; preds = %165, %158
  %169 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7CubeMapELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNK3imp7CubeMap4bindEv(ptr noundef nonnull align 8 dereferenceable(88) %169)
          to label %170 unwind label %156

170:                                              ; preds = %168
  %171 = load ptr, ptr @__glewUniform1i, align 8, !tbaa !5
  %172 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7UniformELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %173 = call noundef i32 @_ZNK3imp7Uniform7getInt1Ev(ptr noundef nonnull align 8 dereferenceable(392) %172)
  invoke void %171(i32 noundef %29, i32 noundef %173)
          to label %174 unwind label %156

174:                                              ; preds = %170
  call void @_ZNSt12__shared_ptrIN3imp7CubeMapELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @_ZNSt12__shared_ptrIN3imp14CubeMapSamplerELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %175

175:                                              ; preds = %.invoke, %36, %67, %58, %50, %41, %77, %174, %133, %37
  %176 = invoke i32 @glGetError()
          to label %177 unwind label %208

177:                                              ; preds = %175
  %.not = icmp eq i32 %176, 0
  br i1 %.not, label %212, label %178

178:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  invoke void @_Z13glErrToStringjRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef %176, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %179 unwind label %210

179:                                              ; preds = %178
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.32)
          to label %181 unwind label %210

181:                                              ; preds = %179
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %180, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %183 unwind label %210

183:                                              ; preds = %181
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef nonnull @.str.33)
          to label %185 unwind label %210

185:                                              ; preds = %183
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %184, i32 noundef %176)
          to label %187 unwind label %210

187:                                              ; preds = %185
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %186, ptr noundef nonnull @.str.34)
          to label %189 unwind label %210

189:                                              ; preds = %187
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %191 unwind label %210

191:                                              ; preds = %189
  %192 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %190, ptr noundef nonnull @.str.26)
          to label %193 unwind label %210

193:                                              ; preds = %191
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %192, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %195 unwind label %210

195:                                              ; preds = %193
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.35)
          to label %197 unwind label %210

197:                                              ; preds = %195
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %196, i32 noundef %29)
          to label %199 unwind label %210

199:                                              ; preds = %197
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %198, ptr noundef nonnull @.str.36)
          to label %201 unwind label %210

201:                                              ; preds = %199
  %202 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp7ProgramELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  %203 = call noundef i32 @_ZNK3imp7Program2idEv(ptr noundef nonnull align 8 dereferenceable(120) %202)
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %200, i32 noundef %203)
          to label %205 unwind label %210

205:                                              ; preds = %201
  %206 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %204, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %207 unwind label %210

207:                                              ; preds = %205
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  br label %212

208:                                              ; preds = %175
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %223

210:                                              ; preds = %205, %201, %199, %197, %195, %193, %191, %189, %187, %185, %183, %181, %179, %178
  %211 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  br label %223

212:                                              ; preds = %207, %177
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull @.str.37, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %213 unwind label %218

213:                                              ; preds = %212
  %214 = invoke noundef zeroext i1 @_Z12GLcheckErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKci(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull @.str.38, i32 noundef 516)
          to label %215 unwind label %220

215:                                              ; preds = %213
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  br label %216

216:                                              ; preds = %30, %215
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %217

217:                                              ; preds = %3, %216
  call void @_ZNSt12__shared_ptrIN3imp7ProgramELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  ret void

218:                                              ; preds = %212
  %219 = landingpad { ptr, i32 }
          cleanup
  br label %222

220:                                              ; preds = %213
  %221 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %222

222:                                              ; preds = %220, %218
  %.pn = phi { ptr, i32 } [ %221, %220 ], [ %219, %218 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  br label %223

223:                                              ; preds = %208, %210, %222, %156, %115, %75, %65, %56, %48, %34
  %.pn.pn.pn = phi { ptr, i32 } [ %35, %34 ], [ %49, %48 ], [ %57, %56 ], [ %66, %65 ], [ %76, %75 ], [ %116, %115 ], [ %157, %156 ], [ %.pn, %222 ], [ %211, %210 ], [ %209, %208 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %224

224:                                              ; preds = %223, %32
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %223 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @_ZNSt12__shared_ptrIN3imp7ProgramELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIN3imp7ProgramEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16), ptr) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3imp7Uniform5getIDB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(392)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3imp7Uniform7getTypeEv(ptr noundef nonnull align 8 dereferenceable(392)) local_unnamed_addr #1 align 2

declare noundef i32 @_ZNK3imp7Program6locateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3imp7Uniform9getFloat1Ev(ptr noundef nonnull align 8 dereferenceable(392)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3imp7Uniform10getFloat1vEv(ptr noundef nonnull align 8 dereferenceable(392)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3imp7Uniform9getFloat2Ev(ptr noundef nonnull align 8 dereferenceable(392)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZNK3imp7Uniform9getFloat3Ev(ptr noundef nonnull align 8 dereferenceable(392)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3imp7Uniform9getFloat4Ev(ptr noundef nonnull align 8 dereferenceable(392)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3imp7Uniform7getInt1Ev(ptr noundef nonnull align 8 dereferenceable(392)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(60) ptr @_ZNK3imp7Uniform7getMat3Ev(ptr noundef nonnull align 8 dereferenceable(392)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3imp6MatrixILi3ELi3EfE4dataEv(ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3imp7Uniform10getSamplerEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.35") align 8, ptr noundef nonnull align 8 dereferenceable(392)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3imp7Uniform10getCubeMapEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.55") align 8, ptr noundef nonnull align 8 dereferenceable(392)) local_unnamed_addr #1 align 2

declare i32 @glGetError() local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z13glErrToStringjRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3imp7Program2idEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12GLcheckErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKci(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) 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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3imp7TextureELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 = { 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 #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !18, i64 29}
!12 = !{!"_ZTSN3imp7SamplerINS_4Vec2ENS_4Vec4EEE", !13, i64 0, !17, i64 24, !18, i64 28, !18, i64 29}
!13 = !{!"_ZTSN3imp6ObjectE", !14, i64 8}
!14 = !{!"_ZTSSt10shared_ptrIN3imp6ObjectEE", !15, i64 0}
!15 = !{!"_ZTSSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!16 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!17 = !{!"_ZTSN3imp7SamplerINS_4Vec2ENS_4Vec4EE9FilteringE", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !18, i64 29}
!22 = !{!"_ZTSN3imp7SamplerINS_4Vec3ENS_4Vec4EEE", !13, i64 0, !23, i64 24, !18, i64 28, !18, i64 29}
!23 = !{!"_ZTSN3imp7SamplerINS_4Vec3ENS_4Vec4EE9FilteringE", !7, i64 0}


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