; LLVM IR from paroj/gltut :: Tut 15 Many Images/ManyImages.ll (Z18LoadCheckerTexturev)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"class.glimg::SingleImage" = type <{ %"class.std::shared_ptr", i32, i32, i32, [4 x i8] }>
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.glimg::Dimensions" = type { i32, i32, i32, i32 }

@g_checkerTexture = external dso_local global i32, align 4
@_funcptr_glGenTextures = external global ptr, align 8
@_funcptr_glBindTexture = external global ptr, align 8
@_funcptr_glTexImage2D = external global ptr, align 8
@_funcptr_glTexParameteri = external global ptr, align 8
@_ZTISt9exception = external constant ptr
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18LoadCheckerTexturev() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::allocator.0", align 1
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::unique_ptr", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.0", align 1
  %8 = alloca i32, align 4
  %9 = alloca %"class.glimg::SingleImage", align 8
  %10 = alloca %"struct.glimg::Dimensions", align 4
  %11 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %1) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %2) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %12 unwind label %31

12:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #7
  %13 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef @.str.7)
          to label %14 unwind label %35

14:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #7
  %15 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef %15, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %16 unwind label %39

16:                                               ; preds = %14
  %17 = invoke noundef ptr @_ZN5glimg7loaders3dds12LoadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %18 unwind label %43

18:                                               ; preds = %16
  call void @_ZNSt10unique_ptrIN5glimg8ImageSetESt14default_deleteIS1_EEC2IS3_vEEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %17) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #7
  %19 = load ptr, ptr @_funcptr_glGenTextures, align 8, !tbaa !5
  invoke void %19(i32 noundef 1, ptr noundef @g_checkerTexture)
          to label %20 unwind label %48

20:                                               ; preds = %18
  %21 = load ptr, ptr @_funcptr_glBindTexture, align 8, !tbaa !5
  %22 = load i32, ptr @g_checkerTexture, align 4, !tbaa !9
  invoke void %21(i32 noundef 3553, i32 noundef %22)
          to label %23 unwind label %48

23:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %75, %23
  %25 = load i32, ptr %8, align 4, !tbaa !9
  %26 = call noundef ptr @_ZNKSt10unique_ptrIN5glimg8ImageSetESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %27 = invoke noundef i32 @_ZNK5glimg8ImageSet14GetMipmapCountEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %28 unwind label %52

28:                                               ; preds = %24
  %29 = icmp slt i32 %25, %27
  br i1 %29, label %56, label %30

30:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %88

31:                                               ; preds = %0
  %32 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %3, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %4, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #7
  br label %102

35:                                               ; preds = %12
  %36 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %3, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %4, align 4
  br label %101

39:                                               ; preds = %14
  %40 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %3, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %4, align 4
  br label %47

43:                                               ; preds = %16
  %44 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %3, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %4, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br label %47

47:                                               ; preds = %43, %39
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #7
  br label %100

48:                                               ; preds = %96, %94, %90, %88, %20, %18
  %49 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %3, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %4, align 4
  br label %99

52:                                               ; preds = %24
  %53 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %3, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %4, align 4
  br label %87

56:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #7
  %57 = call noundef ptr @_ZNKSt10unique_ptrIN5glimg8ImageSetESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %58 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZNK5glimg8ImageSet8GetImageEiii(ptr dead_on_unwind writable sret(%"class.glimg::SingleImage") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %57, i32 noundef %58, i32 noundef 0, i32 noundef 0)
          to label %59 unwind label %78

59:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  %60 = invoke { i64, i64 } @_ZNK5glimg11SingleImage13GetDimensionsEv(ptr noundef nonnull align 8 dereferenceable(28) %9)
          to label %61 unwind label %82

61:                                               ; preds = %59
  %62 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %63 = extractvalue { i64, i64 } %60, 0
  store i64 %63, ptr %62, align 4
  %64 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %65 = extractvalue { i64, i64 } %60, 1
  store i64 %65, ptr %64, align 4
  %66 = load ptr, ptr @_funcptr_glTexImage2D, align 8, !tbaa !5
  %67 = load i32, ptr %8, align 4, !tbaa !9
  %68 = getelementptr inbounds %"struct.glimg::Dimensions", ptr %10, i32 0, i32 1
  %69 = load i32, ptr %68, align 4, !tbaa !11
  %70 = getelementptr inbounds %"struct.glimg::Dimensions", ptr %10, i32 0, i32 2
  %71 = load i32, ptr %70, align 4, !tbaa !13
  %72 = invoke noundef ptr @_ZNK5glimg11SingleImage12GetImageDataEv(ptr noundef nonnull align 8 dereferenceable(28) %9)
          to label %73 unwind label %82

73:                                               ; preds = %61
  invoke void %66(i32 noundef 3553, i32 noundef %67, i32 noundef 32849, i32 noundef %69, i32 noundef %71, i32 noundef 0, i32 noundef 32993, i32 noundef 33639, ptr noundef %72)
          to label %74 unwind label %82

74:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @_ZN5glimg11SingleImageD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %8, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %8, align 4, !tbaa !9
  br label %24, !llvm.loop !14

78:                                               ; preds = %56
  %79 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %3, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %4, align 4
  br label %86

82:                                               ; preds = %73, %61, %59
  %83 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %3, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @_ZN5glimg11SingleImageD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #7
  br label %86

86:                                               ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
  br label %87

87:                                               ; preds = %86, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %99

88:                                               ; preds = %30
  %89 = load ptr, ptr @_funcptr_glTexParameteri, align 8, !tbaa !5
  invoke void %89(i32 noundef 3553, i32 noundef 33084, i32 noundef 0)
          to label %90 unwind label %48

90:                                               ; preds = %88
  %91 = load ptr, ptr @_funcptr_glTexParameteri, align 8, !tbaa !5
  %92 = call noundef ptr @_ZNKSt10unique_ptrIN5glimg8ImageSetESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %93 = invoke noundef i32 @_ZNK5glimg8ImageSet14GetMipmapCountEv(ptr noundef nonnull align 8 dereferenceable(16) %92)
          to label %94 unwind label %48

94:                                               ; preds = %90
  %95 = sub nsw i32 %93, 1
  invoke void %91(i32 noundef 3553, i32 noundef 33085, i32 noundef %95)
          to label %96 unwind label %48

96:                                               ; preds = %94
  %97 = load ptr, ptr @_funcptr_glBindTexture, align 8, !tbaa !5
  invoke void %97(i32 noundef 3553, i32 noundef 0)
          to label %98 unwind label %48

98:                                               ; preds = %96
  call void @_ZNSt10unique_ptrIN5glimg8ImageSetESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #7
  br label %122

99:                                               ; preds = %87, %48
  call void @_ZNSt10unique_ptrIN5glimg8ImageSetESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br label %100

100:                                              ; preds = %99, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %101

101:                                              ; preds = %100, %35
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  br label %102

102:                                              ; preds = %101, %31
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #7
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %4, align 4
  %105 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %106 = icmp eq i32 %104, %105
  br i1 %106, label %107, label %123

107:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %108 = load ptr, ptr %3, align 8
  %109 = call ptr @__cxa_begin_catch(ptr %108) #7
  store ptr %109, ptr %11, align 8
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = load ptr, ptr %110, align 8, !tbaa !16
  %112 = getelementptr inbounds ptr, ptr %111, i64 2
  %113 = load ptr, ptr %112, align 8
  %114 = call noundef ptr %113(ptr noundef nonnull align 8 dereferenceable(8) %110) #7
  %115 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %114)
          to label %116 unwind label %117

116:                                              ; preds = %107
  invoke void @__cxa_rethrow() #8
          to label %131 unwind label %117

117:                                              ; preds = %116, %107
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %3, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %4, align 4
  invoke void @__cxa_end_catch()
          to label %121 unwind label %128

121:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %123

122:                                              ; preds = %98
  ret void

123:                                              ; preds = %121, %103
  %124 = load ptr, ptr %3, align 8
  %125 = load i32, ptr %4, align 4
  %126 = insertvalue { ptr, i32 } poison, ptr %124, 0
  %127 = insertvalue { ptr, i32 } %126, i32 %125, 1
  resume { ptr, i32 } %127

128:                                              ; preds = %117
  %129 = landingpad { ptr, i32 }
          catch ptr null
  %130 = extractvalue { ptr, i32 } %129, 0
  call void @__clang_call_terminate(ptr %130) #9
  unreachable

131:                                              ; preds = %116
  unreachable
}

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

declare noundef ptr @_ZN5glimg7loaders3dds12LoadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #3

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

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

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

declare noundef i32 @_ZNK5glimg8ImageSet14GetMipmapCountEv(ptr noundef nonnull align 8 dereferenceable(16)) #3

declare void @_ZNK5glimg8ImageSet8GetImageEiii(ptr dead_on_unwind writable sret(%"class.glimg::SingleImage") align 8, ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef) #3

declare { i64, i64 } @_ZNK5glimg11SingleImage13GetDimensionsEv(ptr noundef nonnull align 8 dereferenceable(28)) #3

declare noundef ptr @_ZNK5glimg11SingleImage12GetImageDataEv(ptr noundef nonnull align 8 dereferenceable(28)) #3

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

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

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

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_rethrow()

declare void @__cxa_end_catch()

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

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

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

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

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


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"class.glimg::SingleImage" = type <{ %"class.std::shared_ptr", i32, i32, i32, [4 x i8] }>
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@g_checkerTexture = external dso_local global i32, align 4
@_funcptr_glGenTextures = external local_unnamed_addr global ptr, align 8
@_funcptr_glBindTexture = external local_unnamed_addr global ptr, align 8
@_funcptr_glTexImage2D = external local_unnamed_addr global ptr, align 8
@_funcptr_glTexParameteri = external local_unnamed_addr global ptr, align 8
@_ZTISt9exception = external constant ptr
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18LoadCheckerTexturev() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::allocator.0", align 1
  %3 = alloca %"class.std::unique_ptr", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator.0", align 1
  %6 = alloca %"class.glimg::SingleImage", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %7 unwind label %24

7:                                                ; preds = %0
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #8
  %8 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.7)
          to label %9 unwind label %26

9:                                                ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  %10 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef %10, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %11 unwind label %28

11:                                               ; preds = %9
  %12 = invoke noundef ptr @_ZN5glimg7loaders3dds12LoadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %13 unwind label %30

13:                                               ; preds = %11
  call void @_ZNSt10unique_ptrIN5glimg8ImageSetESt14default_deleteIS1_EEC2IS3_vEEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %12) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  %14 = load ptr, ptr @_funcptr_glGenTextures, align 8, !tbaa !5
  invoke void %14(i32 noundef 1, ptr noundef nonnull @g_checkerTexture)
          to label %15 unwind label %33

15:                                               ; preds = %13
  %16 = load ptr, ptr @_funcptr_glBindTexture, align 8, !tbaa !5
  %17 = load i32, ptr @g_checkerTexture, align 4, !tbaa !9
  invoke void %16(i32 noundef 3553, i32 noundef %17)
          to label %.preheader unwind label %33

.preheader:                                       ; preds = %15, %47
  %.016 = phi i32 [ %48, %47 ], [ 0, %15 ]
  %18 = call noundef ptr @_ZNKSt10unique_ptrIN5glimg8ImageSetESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  %19 = invoke noundef i32 @_ZNK5glimg8ImageSet14GetMipmapCountEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %20 unwind label %35

20:                                               ; preds = %.preheader
  %21 = icmp slt i32 %.016, %19
  br i1 %21, label %37, label %22

22:                                               ; preds = %20
  %23 = load ptr, ptr @_funcptr_glTexParameteri, align 8, !tbaa !5
  invoke void %23(i32 noundef 3553, i32 noundef 33084, i32 noundef 0)
          to label %54 unwind label %33

24:                                               ; preds = %0
  %25 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #8
  br label %66

26:                                               ; preds = %7
  %27 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %65

28:                                               ; preds = %9
  %29 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %32

30:                                               ; preds = %11
  %31 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  br label %32

32:                                               ; preds = %30, %28
  %.pn = phi { ptr, i32 } [ %31, %30 ], [ %29, %28 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  br label %64

33:                                               ; preds = %60, %58, %54, %22, %15, %13
  %34 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %63

35:                                               ; preds = %.preheader
  %36 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %63

37:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  %38 = call noundef ptr @_ZNKSt10unique_ptrIN5glimg8ImageSetESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  invoke void @_ZNK5glimg8ImageSet8GetImageEiii(ptr dead_on_unwind nonnull writable sret(%"class.glimg::SingleImage") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %38, i32 noundef %.016, i32 noundef 0, i32 noundef 0)
          to label %39 unwind label %49

39:                                               ; preds = %37
  %40 = invoke { i64, i64 } @_ZNK5glimg11SingleImage13GetDimensionsEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
          to label %41 unwind label %51

41:                                               ; preds = %39
  %42 = load ptr, ptr @_funcptr_glTexImage2D, align 8, !tbaa !5
  %43 = invoke noundef ptr @_ZNK5glimg11SingleImage12GetImageDataEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
          to label %44 unwind label %51

44:                                               ; preds = %41
  %45 = extractvalue { i64, i64 } %40, 1
  %.sroa.5.8.extract.trunc = trunc i64 %45 to i32
  %46 = extractvalue { i64, i64 } %40, 0
  %.sroa.0.4.extract.shift = lshr i64 %46, 32
  %.sroa.0.4.extract.trunc = trunc nuw i64 %.sroa.0.4.extract.shift to i32
  invoke void %42(i32 noundef 3553, i32 noundef %.016, i32 noundef 32849, i32 noundef %.sroa.0.4.extract.trunc, i32 noundef %.sroa.5.8.extract.trunc, i32 noundef 0, i32 noundef 32993, i32 noundef 33639, ptr noundef %43)
          to label %47 unwind label %51

47:                                               ; preds = %44
  call void @_ZN5glimg11SingleImageD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  %48 = add nuw nsw i32 %.016, 1
  br label %.preheader, !llvm.loop !11

49:                                               ; preds = %37
  %50 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %53

51:                                               ; preds = %44, %41, %39
  %52 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZN5glimg11SingleImageD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #8
  br label %53

53:                                               ; preds = %51, %49
  %.pn18 = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %63

54:                                               ; preds = %22
  %55 = load ptr, ptr @_funcptr_glTexParameteri, align 8, !tbaa !5
  %56 = call noundef ptr @_ZNKSt10unique_ptrIN5glimg8ImageSetESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  %57 = invoke noundef i32 @_ZNK5glimg8ImageSet14GetMipmapCountEv(ptr noundef nonnull align 8 dereferenceable(16) %56)
          to label %58 unwind label %33

58:                                               ; preds = %54
  %59 = add nsw i32 %57, -1
  invoke void %55(i32 noundef 3553, i32 noundef 33085, i32 noundef %59)
          to label %60 unwind label %33

60:                                               ; preds = %58
  %61 = load ptr, ptr @_funcptr_glBindTexture, align 8, !tbaa !5
  invoke void %61(i32 noundef 3553, i32 noundef 0)
          to label %62 unwind label %33

62:                                               ; preds = %60
  call void @_ZNSt10unique_ptrIN5glimg8ImageSetESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  ret void

63:                                               ; preds = %35, %53, %33
  %.pn18.pn.pn = phi { ptr, i32 } [ %34, %33 ], [ %.pn18, %53 ], [ %36, %35 ]
  call void @_ZNSt10unique_ptrIN5glimg8ImageSetESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  br label %64

64:                                               ; preds = %63, %32
  %.pn18.pn.pn.pn = phi { ptr, i32 } [ %.pn18.pn.pn, %63 ], [ %.pn, %32 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  br label %65

65:                                               ; preds = %64, %26
  %.pn18.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn18.pn.pn.pn, %64 ], [ %27, %26 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  br label %66

66:                                               ; preds = %65, %24
  %.pn18.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn18.pn.pn.pn.pn, %65 ], [ %25, %24 ]
  %.614 = extractvalue { ptr, i32 } %.pn18.pn.pn.pn.pn.pn, 1
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  %67 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #8
  %68 = icmp eq i32 %.614, %67
  br i1 %68, label %69, label %78

69:                                               ; preds = %66
  %.6 = extractvalue { ptr, i32 } %.pn18.pn.pn.pn.pn.pn, 0
  %70 = call ptr @__cxa_begin_catch(ptr %.6) #8
  %71 = load ptr, ptr %70, align 8, !tbaa !13
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  %73 = load ptr, ptr %72, align 8
  %74 = call noundef ptr %73(ptr noundef nonnull align 8 dereferenceable(8) %70) #8
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef %74)
  invoke void @__cxa_rethrow() #9
          to label %82 unwind label %76

76:                                               ; preds = %69
  %77 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %78 unwind label %79

78:                                               ; preds = %76, %66
  %.merged = phi { ptr, i32 } [ %.pn18.pn.pn.pn.pn.pn, %66 ], [ %77, %76 ]
  resume { ptr, i32 } %.merged

79:                                               ; preds = %76
  %80 = landingpad { ptr, i32 }
          catch ptr null
  %81 = extractvalue { ptr, i32 } %80, 0
  call void @__clang_call_terminate(ptr %81) #10
  unreachable

82:                                               ; preds = %69
  unreachable
}

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

declare noundef ptr @_ZN5glimg7loaders3dds12LoadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

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

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

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

declare noundef i32 @_ZNK5glimg8ImageSet14GetMipmapCountEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

declare void @_ZNK5glimg8ImageSet8GetImageEiii(ptr dead_on_unwind writable sret(%"class.glimg::SingleImage") align 8, ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare { i64, i64 } @_ZNK5glimg11SingleImage13GetDimensionsEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #4

declare noundef ptr @_ZNK5glimg11SingleImage12GetImageDataEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #4

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

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

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_rethrow() local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

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

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

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

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

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


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