; 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.308" = type { %"class.spirv_cross::VectorView.309", i64, %"class.spirv_cross::AlignedBuffer.310" }
%"class.spirv_cross::VectorView.309" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.310" = type { [64 x i8] }
%"class.spirv_cross::SmallVector.311" = type { %"class.spirv_cross::VectorView.312", i64, %"class.spirv_cross::AlignedBuffer.313" }
%"class.spirv_cross::VectorView.312" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.313" = type { [64 x i8] }
%struct.spvc_specialization_constant = type { i32, i32 }
%"class.std::unique_ptr.315" = type { %"struct.std::__uniq_ptr_data.316" }
%"struct.std::__uniq_ptr_data.316" = type { %"class.std::__uniq_ptr_impl.317" }
%"class.std::__uniq_ptr_impl.317" = type { %"class.std::tuple.318" }
%"class.std::tuple.318" = type { %"struct.std::_Tuple_impl.319" }
%"struct.std::_Tuple_impl.319" = type { %"struct.std::_Head_base.322" }
%"struct.std::_Head_base.322" = 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::SpecializationConstant" = type { %"class.spirv_cross::TypedID.314", i32 }
%"class.spirv_cross::TypedID.314" = type { i32 }
%struct.TemporaryBuffer.323 = type { %struct.ScratchMemoryAllocation, %"class.spirv_cross::SmallVector.311" }
%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_specialization_constants(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.spirv_cross::SmallVector.308", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.spirv_cross::SmallVector.311", align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %struct.spvc_specialization_constant, align 4
  %17 = alloca %"class.std::unique_ptr.315", align 8
  %18 = alloca %"class.std::unique_ptr.117", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator", align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 88, ptr %8) #7
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.spvc_compiler_s, ptr %22, i32 0, i32 2
  %24 = call noundef ptr @_ZNKSt10unique_ptrIN11spirv_cross8CompilerESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  invoke void @_ZNK11spirv_cross8Compiler28get_specialization_constantsEv(ptr dead_on_unwind writable sret(%"class.spirv_cross::SmallVector.308") align 8 %8, ptr noundef nonnull align 8 dereferenceable(3176) %24)
          to label %25 unwind label %36

25:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 88, ptr %11) #7
  call void @_ZN11spirv_cross11SmallVectorI28spvc_specialization_constantLm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %11) #7
  %26 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_22SpecializationConstantEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @_ZN11spirv_cross11SmallVectorI28spvc_specialization_constantLm8EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(88) %11, i64 noundef %26) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store ptr %8, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  %28 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_22SpecializationConstantEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %27) #7
  store ptr %28, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_22SpecializationConstantEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %29) #7
  store ptr %30, ptr %14, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %51, %25
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  %34 = icmp ne ptr %32, %33
  br i1 %34, label %40, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %58

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

40:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %41, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %42 = getelementptr inbounds %struct.spvc_specialization_constant, ptr %16, i32 0, i32 0
  %43 = load ptr, ptr %15, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.spirv_cross::SpecializationConstant", ptr %43, i32 0, i32 0
  %45 = invoke noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE3EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %46 unwind label %54

46:                                               ; preds = %40
  store i32 %45, ptr %42, align 4, !tbaa !9
  %47 = getelementptr inbounds %struct.spvc_specialization_constant, ptr %16, i32 0, i32 1
  %48 = load ptr, ptr %15, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.spirv_cross::SpecializationConstant", ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 4, !tbaa !12
  store i32 %50, ptr %47, align 4, !tbaa !15
  call void @_ZN11spirv_cross11SmallVectorI28spvc_specialization_constantLm8EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(88) %11, ptr noundef nonnull align 4 dereferenceable(8) %16) #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 %51

51:                                               ; preds = %46
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.spirv_cross::SpecializationConstant", ptr %52, i32 1
  store ptr %53, ptr %13, align 8, !tbaa !5
  br label %31

54:                                               ; preds = %40
  %55 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %9, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %79

58:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  invoke void @_ZL13spvc_allocateI15TemporaryBufferI28spvc_specialization_constantEJEESt10unique_ptrIT_St14default_deleteIS4_EEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.315") align 8 %17)
          to label %59 unwind label %75

59:                                               ; preds = %58
  %60 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI28spvc_specialization_constantESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  %61 = getelementptr inbounds %struct.TemporaryBuffer.323, ptr %60, i32 0, i32 1
  %62 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZN11spirv_cross11SmallVectorI28spvc_specialization_constantLm8EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(88) %61, ptr noundef nonnull align 8 dereferenceable(88) %11) #7
  %63 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI28spvc_specialization_constantESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  %64 = getelementptr inbounds %struct.TemporaryBuffer.323, ptr %63, i32 0, i32 1
  %65 = call noundef ptr @_ZN11spirv_cross10VectorViewI28spvc_specialization_constantE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %64) #7
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %65, ptr %66, align 8, !tbaa !5
  %67 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI28spvc_specialization_constantESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  %68 = getelementptr inbounds %struct.TemporaryBuffer.323, ptr %67, i32 0, i32 1
  %69 = call noundef i64 @_ZNK11spirv_cross10VectorViewI28spvc_specialization_constantE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %68) #7
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  store i64 %69, ptr %70, align 8, !tbaa !16
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.spvc_compiler_s, ptr %71, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !18
  %74 = getelementptr inbounds %struct.spvc_context_s, ptr %73, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  call void @_ZNSt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS0_EEC2I15TemporaryBufferI28spvc_specialization_constantES1_IS7_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @_ZN11spirv_cross11SmallVectorISt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS2_EELm8EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(88) %74, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  call void @_ZNSt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @_ZNSt10unique_ptrI15TemporaryBufferI28spvc_specialization_constantESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @_ZN11spirv_cross11SmallVectorI28spvc_specialization_constantLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %11) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #7
  call void @_ZN11spirv_cross11SmallVectorINS_22SpecializationConstantELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %8) #7
  br label %108

75:                                               ; preds = %58
  %76 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %9, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %79

79:                                               ; preds = %75, %54
  call void @_ZN11spirv_cross11SmallVectorI28spvc_specialization_constantLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %11) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #7
  call void @_ZN11spirv_cross11SmallVectorINS_22SpecializationConstantELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #7
  br label %80

80:                                               ; preds = %79, %36
  call void @llvm.lifetime.end.p0(i64 88, ptr %8) #7
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %10, align 4
  %83 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %84 = icmp eq i32 %82, %83
  br i1 %84, label %85, label %111

85:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %86 = load ptr, ptr %9, align 8
  %87 = call ptr @__cxa_begin_catch(ptr %86) #7
  store ptr %87, ptr %19, align 8
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.spvc_compiler_s, ptr %88, i32 0, i32 1
  %90 = load ptr, ptr %89, align 8, !tbaa !18
  %91 = load ptr, ptr %19, align 8, !tbaa !5
  %92 = load ptr, ptr %91, align 8, !tbaa !28
  %93 = getelementptr inbounds ptr, ptr %92, i64 2
  %94 = load ptr, ptr %93, align 8
  %95 = call noundef ptr %94(ptr noundef nonnull align 8 dereferenceable(8) %91) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef %95, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %96 unwind label %98

96:                                               ; preds = %85
  invoke void @_ZN14spvc_context_s12report_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136) %90, ptr noundef %20)
          to label %97 unwind label %102

97:                                               ; preds = %96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  store i32 -3, ptr %4, align 4
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %109

98:                                               ; preds = %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
  br label %106

102:                                              ; preds = %96
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %9, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  br label %106

106:                                              ; preds = %102, %98
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  invoke void @__cxa_end_catch()
          to label %107 unwind label %116

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

108:                                              ; preds = %59
  store i32 0, ptr %4, align 4
  br label %109

109:                                              ; preds = %108, %97
  %110 = load i32, ptr %4, align 4
  ret i32 %110

111:                                              ; preds = %107, %81
  %112 = load ptr, ptr %9, align 8
  %113 = load i32, ptr %10, align 4
  %114 = insertvalue { ptr, i32 } poison, ptr %112, 0
  %115 = insertvalue { ptr, i32 } %114, i32 %113, 1
  resume { ptr, i32 } %115

116:                                              ; preds = %106
  %117 = landingpad { ptr, i32 }
          catch ptr null
  %118 = extractvalue { ptr, i32 } %117, 0
  call void @__clang_call_terminate(ptr %118) #8
  unreachable
}

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI28spvc_specialization_constantESt14default_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(88) ptr @_ZN11spirv_cross11SmallVectorI28spvc_specialization_constantLm8EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorINS_22SpecializationConstantELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(88)) 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, !11, i64 0}
!10 = !{!"_ZTS28spvc_specialization_constant", !11, i64 0, !11, i64 4}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 4}
!13 = !{!"_ZTSN11spirv_cross22SpecializationConstantE", !14, i64 0, !11, i64 4}
!14 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE3EEE", !11, i64 0}
!15 = !{!10, !11, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!19, !6, i64 8}
!19 = !{!"_ZTS15spvc_compiler_s", !20, i64 0, !6, i64 8, !21, i64 16, !27, i64 24}
!20 = !{!"_ZTS23ScratchMemoryAllocation"}
!21 = !{!"_ZTSSt10unique_ptrIN11spirv_cross8CompilerESt14default_deleteIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt15__uniq_ptr_dataIN11spirv_cross8CompilerESt14default_deleteIS1_ELb1ELb1EE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_implIN11spirv_cross8CompilerESt14default_deleteIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt5tupleIJPN11spirv_cross8CompilerESt14default_deleteIS1_EEE", !25, i64 0}
!25 = !{!"_ZTSSt11_Tuple_implILm0EJPN11spirv_cross8CompilerESt14default_deleteIS1_EEE", !26, i64 0}
!26 = !{!"_ZTSSt10_Head_baseILm0EPN11spirv_cross8CompilerELb0EE", !6, i64 0}
!27 = !{!"_ZTS12spvc_backend", !7, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"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.308" = type { %"class.spirv_cross::VectorView.309", i64, %"class.spirv_cross::AlignedBuffer.310" }
%"class.spirv_cross::VectorView.309" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.310" = type { [64 x i8] }
%"class.spirv_cross::SmallVector.311" = type { %"class.spirv_cross::VectorView.312", i64, %"class.spirv_cross::AlignedBuffer.313" }
%"class.spirv_cross::VectorView.312" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.313" = type { [64 x i8] }
%struct.spvc_specialization_constant = type { i32, i32 }
%"class.std::unique_ptr.315" = type { %"struct.std::__uniq_ptr_data.316" }
%"struct.std::__uniq_ptr_data.316" = type { %"class.std::__uniq_ptr_impl.317" }
%"class.std::__uniq_ptr_impl.317" = type { %"class.std::tuple.318" }
%"class.std::tuple.318" = type { %"struct.std::_Tuple_impl.319" }
%"struct.std::_Tuple_impl.319" = type { %"struct.std::_Head_base.322" }
%"struct.std::_Head_base.322" = 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_specialization_constants(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.spirv_cross::SmallVector.308", align 8
  %5 = alloca %"class.spirv_cross::SmallVector.311", align 8
  %6 = alloca %struct.spvc_specialization_constant, align 4
  %7 = alloca %"class.std::unique_ptr.315", align 8
  %8 = alloca %"class.std::unique_ptr.117", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %4) #7
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = tail call noundef ptr @_ZNKSt10unique_ptrIN11spirv_cross8CompilerESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  invoke void @_ZNK11spirv_cross8Compiler28get_specialization_constantsEv(ptr dead_on_unwind nonnull writable sret(%"class.spirv_cross::SmallVector.308") align 8 %4, ptr noundef nonnull align 8 dereferenceable(3176) %12)
          to label %13 unwind label %18

13:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #7
  call void @_ZN11spirv_cross11SmallVectorI28spvc_specialization_constantLm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %5) #7
  %14 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_22SpecializationConstantEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @_ZN11spirv_cross11SmallVectorI28spvc_specialization_constantLm8EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(88) %5, i64 noundef %14) #7
  %15 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_22SpecializationConstantEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  %16 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_22SpecializationConstantEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  %.not26 = icmp eq ptr %15, %16
  br i1 %.not26, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %13
  %17 = getelementptr inbounds i8, ptr %6, i64 4
  br label %20

._crit_edge:                                      ; preds = %20, %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  invoke void @_ZL13spvc_allocateI15TemporaryBufferI28spvc_specialization_constantEJEESt10unique_ptrIT_St14default_deleteIS4_EEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.315") align 8 %7)
          to label %25 unwind label %38

18:                                               ; preds = %3
  %19 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %40

20:                                               ; preds = %.lr.ph, %20
  %.02227 = phi ptr [ %15, %.lr.ph ], [ %24, %20 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %21 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE3EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %.02227)
  store i32 %21, ptr %6, align 4, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %.02227, i64 4
  %23 = load i32, ptr %22, align 4, !tbaa !10
  store i32 %23, ptr %17, align 4, !tbaa !13
  call void @_ZN11spirv_cross11SmallVectorI28spvc_specialization_constantLm8EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(88) %5, ptr noundef nonnull align 4 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %24 = getelementptr inbounds i8, ptr %.02227, i64 8
  %.not = icmp eq ptr %24, %16
  br i1 %.not, label %._crit_edge, label %20

25:                                               ; preds = %._crit_edge
  %26 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI28spvc_specialization_constantESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  %28 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZN11spirv_cross11SmallVectorI28spvc_specialization_constantLm8EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(88) %27, ptr noundef nonnull align 8 dereferenceable(88) %5) #7
  %29 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI28spvc_specialization_constantESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = call noundef ptr @_ZN11spirv_cross10VectorViewI28spvc_specialization_constantE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %30) #7
  store ptr %31, ptr %1, align 8, !tbaa !14
  %32 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI28spvc_specialization_constantESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  %34 = call noundef i64 @_ZNK11spirv_cross10VectorViewI28spvc_specialization_constantE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %33) #7
  store i64 %34, ptr %2, align 8, !tbaa !16
  %35 = getelementptr inbounds i8, ptr %0, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !18
  %37 = getelementptr inbounds i8, ptr %36, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @_ZNSt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS0_EEC2I15TemporaryBufferI28spvc_specialization_constantES1_IS7_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @_ZN11spirv_cross11SmallVectorISt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS2_EELm8EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(88) %37, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @_ZNSt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZNSt10unique_ptrI15TemporaryBufferI28spvc_specialization_constantESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @_ZN11spirv_cross11SmallVectorI28spvc_specialization_constantLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %5) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #7
  call void @_ZN11spirv_cross11SmallVectorINS_22SpecializationConstantELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %4) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %4) #7
  br label %58

38:                                               ; preds = %._crit_edge
  %39 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @_ZN11spirv_cross11SmallVectorI28spvc_specialization_constantLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %5) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #7
  call void @_ZN11spirv_cross11SmallVectorINS_22SpecializationConstantELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %4) #7
  br label %40

40:                                               ; preds = %38, %18
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %19, %18 ]
  %.019 = extractvalue { ptr, i32 } %.pn, 1
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %4) #7
  %41 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %42 = icmp eq i32 %.019, %41
  br i1 %42, label %43, label %59

43:                                               ; preds = %40
  %.018 = extractvalue { ptr, i32 } %.pn, 0
  %44 = call ptr @__cxa_begin_catch(ptr %.018) #7
  %45 = getelementptr inbounds i8, ptr %0, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !18
  %47 = load ptr, ptr %44, align 8, !tbaa !28
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  %49 = load ptr, ptr %48, align 8
  %50 = call noundef ptr %49(ptr noundef nonnull align 8 dereferenceable(8) %44) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %50, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %51 unwind label %53

51:                                               ; preds = %43
  invoke void @_ZN14spvc_context_s12report_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136) %46, ptr noundef nonnull %9)
          to label %52 unwind label %55

52:                                               ; preds = %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @__cxa_end_catch()
  br label %58

53:                                               ; preds = %43
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %57

55:                                               ; preds = %51
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %57

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

58:                                               ; preds = %25, %52
  %.0 = phi i32 [ 0, %25 ], [ -3, %52 ]
  ret i32 %.0

59:                                               ; preds = %57, %40
  %.merged = phi { ptr, i32 } [ %.pn, %40 ], [ %.pn24, %57 ]
  resume { ptr, i32 } %.merged

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11spirv_cross10VectorViewINS_22SpecializationConstantEE4sizeEv(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_22SpecializationConstantEE5beginEv(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_22SpecializationConstantEE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI28spvc_specialization_constantESt14default_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(88) ptr @_ZN11spirv_cross11SmallVectorI28spvc_specialization_constantLm8EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11spirv_cross10VectorViewI28spvc_specialization_constantE4sizeEv(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_EEC2I15TemporaryBufferI28spvc_specialization_constantES1_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_ptrI15TemporaryBufferI28spvc_specialization_constantESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorINS_22SpecializationConstantELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(88)) 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 = !{!"_ZTS28spvc_specialization_constant", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !7, i64 4}
!11 = !{!"_ZTSN11spirv_cross22SpecializationConstantE", !12, i64 0, !7, i64 4}
!12 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE3EEE", !7, i64 0}
!13 = !{!6, !7, i64 4}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!19, !15, i64 8}
!19 = !{!"_ZTS15spvc_compiler_s", !20, i64 0, !15, i64 8, !21, i64 16, !27, i64 24}
!20 = !{!"_ZTS23ScratchMemoryAllocation"}
!21 = !{!"_ZTSSt10unique_ptrIN11spirv_cross8CompilerESt14default_deleteIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt15__uniq_ptr_dataIN11spirv_cross8CompilerESt14default_deleteIS1_ELb1ELb1EE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_implIN11spirv_cross8CompilerESt14default_deleteIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt5tupleIJPN11spirv_cross8CompilerESt14default_deleteIS1_EEE", !25, i64 0}
!25 = !{!"_ZTSSt11_Tuple_implILm0EJPN11spirv_cross8CompilerESt14default_deleteIS1_EEE", !26, i64 0}
!26 = !{!"_ZTSSt10_Head_baseILm0EPN11spirv_cross8CompilerELb0EE", !15, i64 0}
!27 = !{!"_ZTS12spvc_backend", !8, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"vtable pointer", !9, i64 0}


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