; LLVM IR from Try/Tempest :: Engine/thirdparty/spirv_cross (spirv_cross_c)

; 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.spirv_cross::SmallVector.327" = type { %"class.spirv_cross::VectorView.328", i64, %"class.spirv_cross::AlignedBuffer.329" }
%"class.spirv_cross::VectorView.328" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.329" = type { [192 x i8] }
%"class.spirv_cross::TypedID.295" = type { i32 }
%"class.spirv_cross::SmallVector.330" = type { %"class.spirv_cross::VectorView.331", i64, %"class.spirv_cross::AlignedBuffer.332" }
%"class.spirv_cross::VectorView.331" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.332" = type { [192 x i8] }
%struct.spvc_buffer_range = type { i32, i64, i64 }
%"class.std::unique_ptr.333" = type { %"struct.std::__uniq_ptr_data.334" }
%"struct.std::__uniq_ptr_data.334" = type { %"class.std::__uniq_ptr_impl.335" }
%"class.std::__uniq_ptr_impl.335" = type { %"class.std::tuple.336" }
%"class.std::tuple.336" = type { %"struct.std::_Tuple_impl.337" }
%"struct.std::_Tuple_impl.337" = type { %"struct.std::_Head_base.340" }
%"struct.std::_Head_base.340" = type { ptr }
%"class.std::unique_ptr.117" = type { %"struct.std::__uniq_ptr_data.118" }
%"struct.std::__uniq_ptr_data.118" = type { %"class.std::__uniq_ptr_impl.119" }
%"class.std::__uniq_ptr_impl.119" = type { %"class.std::tuple.120" }
%"class.std::tuple.120" = type { %"struct.std::_Tuple_impl.121" }
%"struct.std::_Tuple_impl.121" = type { %"struct.std::_Head_base.124" }
%"struct.std::_Head_base.124" = type { ptr }
%"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" = type { i8 }
%struct.spvc_compiler_s = type <{ %struct.ScratchMemoryAllocation, ptr, %"class.std::unique_ptr.133", i32, [4 x i8] }>
%struct.ScratchMemoryAllocation = type { ptr }
%"class.std::unique_ptr.133" = type { %"struct.std::__uniq_ptr_data.134" }
%"struct.std::__uniq_ptr_data.134" = type { %"class.std::__uniq_ptr_impl.135" }
%"class.std::__uniq_ptr_impl.135" = type { %"class.std::tuple.136" }
%"class.std::tuple.136" = type { %"struct.std::_Tuple_impl.137" }
%"struct.std::_Tuple_impl.137" = type { %"struct.std::_Head_base.140" }
%"struct.std::_Head_base.140" = type { ptr }
%"struct.spirv_cross::BufferRange" = type { i32, i64, i64 }
%struct.TemporaryBuffer.341 = type { %struct.ScratchMemoryAllocation, %"class.spirv_cross::SmallVector.330" }
%struct.spvc_context_s = type { %"class.std::__cxx11::basic_string", %"class.spirv_cross::SmallVector", ptr, ptr }
%"class.spirv_cross::SmallVector" = type { %"class.spirv_cross::VectorView", i64, %"class.spirv_cross::AlignedBuffer" }
%"class.spirv_cross::VectorView" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer" = type { [64 x i8] }

@_ZTISt9exception = external constant ptr

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14spvc_context_s12report_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef) #0 align 2

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

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) #1

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

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 #0 align 2

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

declare void @__cxa_end_catch()

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorISt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS2_EELm8EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @spvc_compiler_get_active_buffer_ranges(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.spirv_cross::SmallVector.327", align 8
  %11 = alloca %"class.spirv_cross::TypedID.295", align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.spirv_cross::SmallVector.330", align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %struct.spvc_buffer_range, align 8
  %20 = alloca %"class.std::unique_ptr.333", align 8
  %21 = alloca %"class.std::unique_ptr.117", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::allocator", align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 216, ptr %10) #7
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.spvc_compiler_s, ptr %25, i32 0, i32 2
  %27 = call noundef ptr @_ZNKSt10unique_ptrIN11spirv_cross8CompilerESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  %28 = load i32, ptr %7, align 4, !tbaa !9
  invoke void @_ZN11spirv_cross7TypedIDILNS_5TypesE2EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %28)
          to label %29 unwind label %43

29:                                               ; preds = %4
  %30 = getelementptr inbounds %"class.spirv_cross::TypedID.295", ptr %11, i32 0, i32 0
  %31 = load i32, ptr %30, align 4
  invoke void @_ZNK11spirv_cross8Compiler24get_active_buffer_rangesENS_7TypedIDILNS_5TypesE2EEE(ptr dead_on_unwind writable sret(%"class.spirv_cross::SmallVector.327") align 8 %10, ptr noundef nonnull align 8 dereferenceable(3176) %27, i32 %31)
          to label %32 unwind label %43

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 216, ptr %14) #7
  call void @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(216) %14) #7
  %33 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_11BufferRangeEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(216) %14, i64 noundef %33) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store ptr %10, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %34 = load ptr, ptr %15, align 8, !tbaa !5
  %35 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_11BufferRangeEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %34) #7
  store ptr %35, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %36 = load ptr, ptr %15, align 8, !tbaa !5
  %37 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_11BufferRangeEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %36) #7
  store ptr %37, ptr %17, align 8, !tbaa !5
  br label %38

38:                                               ; preds = %61, %32
  %39 = load ptr, ptr %16, align 8, !tbaa !5
  %40 = load ptr, ptr %17, align 8, !tbaa !5
  %41 = icmp ne ptr %39, %40
  br i1 %41, label %47, label %42

42:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %64

43:                                               ; preds = %29, %4
  %44 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %12, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %13, align 4
  br label %85

47:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %48, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #7
  %49 = getelementptr inbounds %struct.spvc_buffer_range, ptr %19, i32 0, i32 0
  %50 = load ptr, ptr %18, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.spirv_cross::BufferRange", ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 8, !tbaa !11
  store i32 %52, ptr %49, align 8, !tbaa !14
  %53 = getelementptr inbounds %struct.spvc_buffer_range, ptr %19, i32 0, i32 1
  %54 = load ptr, ptr %18, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.spirv_cross::BufferRange", ptr %54, i32 0, i32 1
  %56 = load i64, ptr %55, align 8, !tbaa !16
  store i64 %56, ptr %53, align 8, !tbaa !17
  %57 = getelementptr inbounds %struct.spvc_buffer_range, ptr %19, i32 0, i32 2
  %58 = load ptr, ptr %18, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.spirv_cross::BufferRange", ptr %58, i32 0, i32 2
  %60 = load i64, ptr %59, align 8, !tbaa !18
  store i64 %60, ptr %57, align 8, !tbaa !19
  call void @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(216) %14, ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %61

61:                                               ; preds = %47
  %62 = load ptr, ptr %16, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.spirv_cross::BufferRange", ptr %62, i32 1
  store ptr %63, ptr %16, align 8, !tbaa !5
  br label %38

64:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  invoke void @_ZL13spvc_allocateI15TemporaryBufferI17spvc_buffer_rangeEJEESt10unique_ptrIT_St14default_deleteIS4_EEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.333") align 8 %20)
          to label %65 unwind label %81

65:                                               ; preds = %64
  %66 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI17spvc_buffer_rangeESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  %67 = getelementptr inbounds %struct.TemporaryBuffer.341, ptr %66, i32 0, i32 1
  %68 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(216) %67, ptr noundef nonnull align 8 dereferenceable(216) %14) #7
  %69 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI17spvc_buffer_rangeESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  %70 = getelementptr inbounds %struct.TemporaryBuffer.341, ptr %69, i32 0, i32 1
  %71 = call noundef ptr @_ZN11spirv_cross10VectorViewI17spvc_buffer_rangeE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %70) #7
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %71, ptr %72, align 8, !tbaa !5
  %73 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI17spvc_buffer_rangeESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  %74 = getelementptr inbounds %struct.TemporaryBuffer.341, ptr %73, i32 0, i32 1
  %75 = call noundef i64 @_ZNK11spirv_cross10VectorViewI17spvc_buffer_rangeE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %74) #7
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 %75, ptr %76, align 8, !tbaa !20
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.spvc_compiler_s, ptr %77, i32 0, i32 1
  %79 = load ptr, ptr %78, align 8, !tbaa !21
  %80 = getelementptr inbounds %struct.spvc_context_s, ptr %79, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @_ZNSt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS0_EEC2I15TemporaryBufferI17spvc_buffer_rangeES1_IS7_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  call void @_ZN11spirv_cross11SmallVectorISt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS2_EELm8EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(88) %80, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @_ZNSt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @_ZNSt10unique_ptrI15TemporaryBufferI17spvc_buffer_rangeESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(216) %14) #7
  call void @llvm.lifetime.end.p0(i64 216, ptr %14) #7
  call void @_ZN11spirv_cross11SmallVectorINS_11BufferRangeELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(216) %10) #7
  call void @llvm.lifetime.end.p0(i64 216, ptr %10) #7
  br label %113

81:                                               ; preds = %64
  %82 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %12, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(216) %14) #7
  call void @llvm.lifetime.end.p0(i64 216, ptr %14) #7
  call void @_ZN11spirv_cross11SmallVectorINS_11BufferRangeELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(216) %10) #7
  br label %85

85:                                               ; preds = %81, %43
  call void @llvm.lifetime.end.p0(i64 216, ptr %10) #7
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %13, align 4
  %88 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %89 = icmp eq i32 %87, %88
  br i1 %89, label %90, label %116

90:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %91 = load ptr, ptr %12, align 8
  %92 = call ptr @__cxa_begin_catch(ptr %91) #7
  store ptr %92, ptr %22, align 8
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.spvc_compiler_s, ptr %93, i32 0, i32 1
  %95 = load ptr, ptr %94, align 8, !tbaa !21
  %96 = load ptr, ptr %22, align 8, !tbaa !5
  %97 = load ptr, ptr %96, align 8, !tbaa !31
  %98 = getelementptr inbounds ptr, ptr %97, i64 2
  %99 = load ptr, ptr %98, align 8
  %100 = call noundef ptr %99(ptr noundef nonnull align 8 dereferenceable(8) %96) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef %100, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %101 unwind label %103

101:                                              ; preds = %90
  invoke void @_ZN14spvc_context_s12report_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136) %95, ptr noundef %23)
          to label %102 unwind label %107

102:                                              ; preds = %101
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  store i32 -3, ptr %5, align 4
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %114

103:                                              ; preds = %90
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %12, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %13, align 4
  br label %111

107:                                              ; preds = %101
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %12, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  br label %111

111:                                              ; preds = %107, %103
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  invoke void @__cxa_end_catch()
          to label %112 unwind label %121

112:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %116

113:                                              ; preds = %65
  store i32 0, ptr %5, align 4
  br label %114

114:                                              ; preds = %113, %102
  %115 = load i32, ptr %5, align 4
  ret i32 %115

116:                                              ; preds = %112, %86
  %117 = load ptr, ptr %12, align 8
  %118 = load i32, ptr %13, align 4
  %119 = insertvalue { ptr, i32 } poison, ptr %117, 0
  %120 = insertvalue { ptr, i32 } %119, i32 %118, 1
  resume { ptr, i32 } %120

121:                                              ; preds = %111
  %122 = landingpad { ptr, i32 }
          catch ptr null
  %123 = extractvalue { ptr, i32 } %122, 0
  call void @__clang_call_terminate(ptr %123) #8
  unreachable
}

declare void @_ZNK11spirv_cross8Compiler24get_active_buffer_rangesENS_7TypedIDILNS_5TypesE2EEE(ptr dead_on_unwind writable sret(%"class.spirv_cross::SmallVector.327") align 8, ptr noundef nonnull align 8 dereferenceable(3176), i32) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross7TypedIDILNS_5TypesE2EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(216), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11spirv_cross10VectorViewINS_11BufferRangeEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL13spvc_allocateI15TemporaryBufferI17spvc_buffer_rangeEJEESt10unique_ptrIT_St14default_deleteIS4_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.333") align 8) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 8 dereferenceable(216)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11spirv_cross10VectorViewI17spvc_buffer_rangeE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind memory(none) }
attributes #3 = { 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 #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { 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 0}
!12 = !{!"_ZTSN11spirv_cross11BufferRangeE", !10, i64 0, !13, i64 8, !13, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !10, i64 0}
!15 = !{!"_ZTS17spvc_buffer_range", !10, i64 0, !13, i64 8, !13, i64 16}
!16 = !{!12, !13, i64 8}
!17 = !{!15, !13, i64 8}
!18 = !{!12, !13, i64 16}
!19 = !{!15, !13, i64 16}
!20 = !{!13, !13, i64 0}
!21 = !{!22, !6, i64 8}
!22 = !{!"_ZTS15spvc_compiler_s", !23, i64 0, !6, i64 8, !24, i64 16, !30, i64 24}
!23 = !{!"_ZTS23ScratchMemoryAllocation"}
!24 = !{!"_ZTSSt10unique_ptrIN11spirv_cross8CompilerESt14default_deleteIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_dataIN11spirv_cross8CompilerESt14default_deleteIS1_ELb1ELb1EE", !26, i64 0}
!26 = !{!"_ZTSSt15__uniq_ptr_implIN11spirv_cross8CompilerESt14default_deleteIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt5tupleIJPN11spirv_cross8CompilerESt14default_deleteIS1_EEE", !28, i64 0}
!28 = !{!"_ZTSSt11_Tuple_implILm0EJPN11spirv_cross8CompilerESt14default_deleteIS1_EEE", !29, i64 0}
!29 = !{!"_ZTSSt10_Head_baseILm0EPN11spirv_cross8CompilerELb0EE", !6, i64 0}
!30 = !{!"_ZTS12spvc_backend", !7, i64 0}
!31 = !{!32, !32, i64 0}
!32 = !{!"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.spirv_cross::SmallVector.327" = type { %"class.spirv_cross::VectorView.328", i64, %"class.spirv_cross::AlignedBuffer.329" }
%"class.spirv_cross::VectorView.328" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.329" = type { [192 x i8] }
%"class.spirv_cross::TypedID.295" = type { i32 }
%"class.spirv_cross::SmallVector.330" = type { %"class.spirv_cross::VectorView.331", i64, %"class.spirv_cross::AlignedBuffer.332" }
%"class.spirv_cross::VectorView.331" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.332" = type { [192 x i8] }
%struct.spvc_buffer_range = type { i32, i64, i64 }
%"class.std::unique_ptr.333" = type { %"struct.std::__uniq_ptr_data.334" }
%"struct.std::__uniq_ptr_data.334" = type { %"class.std::__uniq_ptr_impl.335" }
%"class.std::__uniq_ptr_impl.335" = type { %"class.std::tuple.336" }
%"class.std::tuple.336" = type { %"struct.std::_Tuple_impl.337" }
%"struct.std::_Tuple_impl.337" = type { %"struct.std::_Head_base.340" }
%"struct.std::_Head_base.340" = type { ptr }
%"class.std::unique_ptr.117" = type { %"struct.std::__uniq_ptr_data.118" }
%"struct.std::__uniq_ptr_data.118" = type { %"class.std::__uniq_ptr_impl.119" }
%"class.std::__uniq_ptr_impl.119" = type { %"class.std::tuple.120" }
%"class.std::tuple.120" = type { %"struct.std::_Tuple_impl.121" }
%"struct.std::_Tuple_impl.121" = type { %"struct.std::_Head_base.124" }
%"struct.std::_Head_base.124" = type { ptr }
%"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" = type { i8 }

@_ZTISt9exception = external constant ptr

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14spvc_context_s12report_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef) local_unnamed_addr #0 align 2

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

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) #1

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 #0 align 2

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

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 #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorISt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS2_EELm8EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local range(i32 -3, 1) i32 @spvc_compiler_get_active_buffer_ranges(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.spirv_cross::SmallVector.327", align 8
  %6 = alloca %"class.spirv_cross::TypedID.295", align 4
  %7 = alloca %"class.spirv_cross::SmallVector.330", align 8
  %8 = alloca %struct.spvc_buffer_range, align 8
  %9 = alloca %"class.std::unique_ptr.333", align 8
  %10 = alloca %"class.std::unique_ptr.117", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %5) #7
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = tail call noundef ptr @_ZNKSt10unique_ptrIN11spirv_cross8CompilerESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE2EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef %1)
  %15 = load i32, ptr %6, align 4
  invoke void @_ZNK11spirv_cross8Compiler24get_active_buffer_rangesENS_7TypedIDILNS_5TypesE2EEE(ptr dead_on_unwind nonnull writable sret(%"class.spirv_cross::SmallVector.327") align 8 %5, ptr noundef nonnull align 8 dereferenceable(3176) %14, i32 %15)
          to label %16 unwind label %21

16:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %7) #7
  call void @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(216) %7) #7
  %17 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_11BufferRangeEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(216) %7, i64 noundef %17) #7
  %18 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_11BufferRangeEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  %19 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_11BufferRangeEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  %.not28 = icmp eq ptr %18, %19
  br i1 %.not28, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %16
  %20 = getelementptr inbounds i8, ptr %8, i64 8
  br label %23

._crit_edge:                                      ; preds = %23, %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  invoke void @_ZL13spvc_allocateI15TemporaryBufferI17spvc_buffer_rangeEJEESt10unique_ptrIT_St14default_deleteIS4_EEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.333") align 8 %9)
          to label %28 unwind label %41

21:                                               ; preds = %4
  %22 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %43

23:                                               ; preds = %.lr.ph, %23
  %.02429 = phi ptr [ %18, %.lr.ph ], [ %27, %23 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  %24 = load i32, ptr %.02429, align 8, !tbaa !5
  store i32 %24, ptr %8, align 8, !tbaa !11
  %25 = getelementptr inbounds i8, ptr %.02429, i64 8
  %26 = load <2 x i64>, ptr %25, align 8, !tbaa !13
  store <2 x i64> %26, ptr %20, align 8, !tbaa !13
  call void @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(216) %7, ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  %27 = getelementptr inbounds i8, ptr %.02429, i64 24
  %.not = icmp eq ptr %27, %19
  br i1 %.not, label %._crit_edge, label %23

28:                                               ; preds = %._crit_edge
  %29 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI17spvc_buffer_rangeESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(216) %30, ptr noundef nonnull align 8 dereferenceable(216) %7) #7
  %32 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI17spvc_buffer_rangeESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  %34 = call noundef ptr @_ZN11spirv_cross10VectorViewI17spvc_buffer_rangeE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %33) #7
  store ptr %34, ptr %2, align 8, !tbaa !14
  %35 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI17spvc_buffer_rangeESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %36 = getelementptr inbounds i8, ptr %35, i64 8
  %37 = call noundef i64 @_ZNK11spirv_cross10VectorViewI17spvc_buffer_rangeE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %36) #7
  store i64 %37, ptr %3, align 8, !tbaa !13
  %38 = getelementptr inbounds i8, ptr %0, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  %40 = getelementptr inbounds i8, ptr %39, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  call void @_ZNSt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS0_EEC2I15TemporaryBufferI17spvc_buffer_rangeES1_IS7_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @_ZN11spirv_cross11SmallVectorISt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS2_EELm8EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(88) %40, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @_ZNSt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @_ZNSt10unique_ptrI15TemporaryBufferI17spvc_buffer_rangeESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(216) %7) #7
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %7) #7
  call void @_ZN11spirv_cross11SmallVectorINS_11BufferRangeELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(216) %5) #7
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %5) #7
  br label %61

41:                                               ; preds = %._crit_edge
  %42 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(216) %7) #7
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %7) #7
  call void @_ZN11spirv_cross11SmallVectorINS_11BufferRangeELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(216) %5) #7
  br label %43

43:                                               ; preds = %41, %21
  %.pn = phi { ptr, i32 } [ %42, %41 ], [ %22, %21 ]
  %.021 = extractvalue { ptr, i32 } %.pn, 1
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %5) #7
  %44 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %45 = icmp eq i32 %.021, %44
  br i1 %45, label %46, label %62

46:                                               ; preds = %43
  %.020 = extractvalue { ptr, i32 } %.pn, 0
  %47 = call ptr @__cxa_begin_catch(ptr %.020) #7
  %48 = getelementptr inbounds i8, ptr %0, i64 8
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %50 = load ptr, ptr %47, align 8, !tbaa !26
  %51 = getelementptr inbounds i8, ptr %50, i64 16
  %52 = load ptr, ptr %51, align 8
  %53 = call noundef ptr %52(ptr noundef nonnull align 8 dereferenceable(8) %47) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef %53, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %54 unwind label %56

54:                                               ; preds = %46
  invoke void @_ZN14spvc_context_s12report_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136) %49, ptr noundef nonnull %11)
          to label %55 unwind label %58

55:                                               ; preds = %54
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @__cxa_end_catch()
  br label %61

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

58:                                               ; preds = %54
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %60

60:                                               ; preds = %58, %56
  %.pn26 = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  invoke void @__cxa_end_catch()
          to label %62 unwind label %63

61:                                               ; preds = %28, %55
  %.0 = phi i32 [ 0, %28 ], [ -3, %55 ]
  ret i32 %.0

62:                                               ; preds = %60, %43
  %.merged = phi { ptr, i32 } [ %.pn, %43 ], [ %.pn26, %60 ]
  resume { ptr, i32 } %.merged

63:                                               ; preds = %60
  %64 = landingpad { ptr, i32 }
          catch ptr null
  %65 = extractvalue { ptr, i32 } %64, 0
  call void @__clang_call_terminate(ptr %65) #8
  unreachable
}

declare void @_ZNK11spirv_cross8Compiler24get_active_buffer_rangesENS_7TypedIDILNS_5TypesE2EEE(ptr dead_on_unwind writable sret(%"class.spirv_cross::SmallVector.327") align 8, ptr noundef nonnull align 8 dereferenceable(3176), i32) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross7TypedIDILNS_5TypesE2EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(216), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11spirv_cross10VectorViewINS_11BufferRangeEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL13spvc_allocateI15TemporaryBufferI17spvc_buffer_rangeEJEESt10unique_ptrIT_St14default_deleteIS4_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.333") align 8) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZN11spirv_cross11SmallVectorI17spvc_buffer_rangeLm8EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11spirv_cross10VectorViewI17spvc_buffer_rangeE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nosync nounwind memory(none) }
attributes #3 = { 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 #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { 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, !7, i64 0}
!6 = !{!"_ZTSN11spirv_cross11BufferRangeE", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"_ZTS17spvc_buffer_range", !7, i64 0, !10, i64 8, !10, i64 16}
!13 = !{!10, !10, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!17, !15, i64 8}
!17 = !{!"_ZTS15spvc_compiler_s", !18, i64 0, !15, i64 8, !19, i64 16, !25, i64 24}
!18 = !{!"_ZTS23ScratchMemoryAllocation"}
!19 = !{!"_ZTSSt10unique_ptrIN11spirv_cross8CompilerESt14default_deleteIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_dataIN11spirv_cross8CompilerESt14default_deleteIS1_ELb1ELb1EE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_implIN11spirv_cross8CompilerESt14default_deleteIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt5tupleIJPN11spirv_cross8CompilerESt14default_deleteIS1_EEE", !23, i64 0}
!23 = !{!"_ZTSSt11_Tuple_implILm0EJPN11spirv_cross8CompilerESt14default_deleteIS1_EEE", !24, i64 0}
!24 = !{!"_ZTSSt10_Head_baseILm0EPN11spirv_cross8CompilerELb0EE", !15, i64 0}
!25 = !{!"_ZTS12spvc_backend", !8, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass