; 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.243" = type { %"class.spirv_cross::VectorView.244", i64, %"class.spirv_cross::AlignedBuffer.245" }
%"class.spirv_cross::VectorView.244" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.245" = type { [320 x i8] }
%"class.spirv_cross::SmallVector.246" = type { %"class.spirv_cross::VectorView.247", i64, %"class.spirv_cross::AlignedBuffer.248" }
%"class.spirv_cross::VectorView.247" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.248" = type { [128 x i8] }
%struct.spvc_entry_point = type { i32, 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 }
%"class.std::unique_ptr.249" = type { %"struct.std::__uniq_ptr_data.250" }
%"struct.std::__uniq_ptr_data.250" = type { %"class.std::__uniq_ptr_impl.251" }
%"class.std::__uniq_ptr_impl.251" = type { %"class.std::tuple.252" }
%"class.std::tuple.252" = type { %"struct.std::_Tuple_impl.253" }
%"struct.std::_Tuple_impl.253" = type { %"struct.std::_Head_base.256" }
%"struct.std::_Head_base.256" = 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 }
%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::EntryPoint" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%struct.TemporaryBuffer = type { %struct.ScratchMemoryAllocation, %"class.spirv_cross::SmallVector.246" }
%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
@.str = external hidden unnamed_addr constant [15 x i8], align 1

; 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: mustprogress uwtable
declare dso_local noundef ptr @_ZN14spvc_context_s13allocate_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(32)) #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_entry_points(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.243", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.spirv_cross::SmallVector.246", align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %struct.spvc_entry_point, align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca %"class.std::unique_ptr.249", 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 %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 344, ptr %8) #7
  %25 = load ptr, ptr %5, 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
  invoke void @_ZNK11spirv_cross8Compiler27get_entry_points_and_stagesEv(ptr dead_on_unwind writable sret(%"class.spirv_cross::SmallVector.243") align 8 %8, ptr noundef nonnull align 8 dereferenceable(3176) %27)
          to label %28 unwind label %39

28:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 152, ptr %11) #7
  call void @_ZN11spirv_cross11SmallVectorI16spvc_entry_pointLm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(152) %11) #7
  %29 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_10EntryPointEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @_ZN11spirv_cross11SmallVectorI16spvc_entry_pointLm8EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(152) %11, i64 noundef %29) #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
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_10EntryPointEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %30) #7
  store ptr %31, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_10EntryPointEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %32) #7
  store ptr %33, ptr %14, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %86, %28
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  %37 = icmp ne ptr %35, %36
  br i1 %37, label %43, label %38

38:                                               ; preds = %34
  store i32 2, ptr %15, align 4
  br label %90

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

43:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %44, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  %45 = load ptr, ptr %16, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.spirv_cross::EntryPoint", ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.spvc_entry_point, ptr %17, i32 0, i32 0
  store i32 %47, ptr %48, align 8, !tbaa !15
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.spvc_compiler_s, ptr %49, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !18
  %52 = load ptr, ptr %16, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.spirv_cross::EntryPoint", ptr %52, i32 0, i32 0
  %54 = invoke noundef ptr @_ZN14spvc_context_s13allocate_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136) %51, ptr noundef nonnull align 8 dereferenceable(32) %53)
          to label %55 unwind label %66

55:                                               ; preds = %43
  %56 = getelementptr inbounds %struct.spvc_entry_point, ptr %17, i32 0, i32 1
  store ptr %54, ptr %56, align 8, !tbaa !28
  %57 = getelementptr inbounds %struct.spvc_entry_point, ptr %17, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !28
  %59 = icmp ne ptr %58, null
  br i1 %59, label %79, label %60

60:                                               ; preds = %55
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.spvc_compiler_s, ptr %61, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %64 unwind label %70

64:                                               ; preds = %60
  invoke void @_ZN14spvc_context_s12report_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136) %63, ptr noundef %18)
          to label %65 unwind label %74

65:                                               ; preds = %64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  store i32 -3, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %80

66:                                               ; preds = %43
  %67 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %9, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %10, align 4
  br label %89

70:                                               ; preds = %60
  %71 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %9, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %10, align 4
  br label %78

74:                                               ; preds = %64
  %75 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %9, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  br label %78

78:                                               ; preds = %74, %70
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %89

79:                                               ; preds = %55
  call void @_ZN11spirv_cross11SmallVectorI16spvc_entry_pointLm8EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(152) %11, ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  store i32 0, ptr %15, align 4
  br label %80

80:                                               ; preds = %79, %65
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  %81 = load i32, ptr %15, align 4
  switch i32 %81, label %83 [
    i32 0, label %82
  ]

82:                                               ; preds = %80
  store i32 0, ptr %15, align 4
  br label %83

83:                                               ; preds = %82, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  %84 = load i32, ptr %15, align 4
  switch i32 %84, label %90 [
    i32 0, label %85
  ]

85:                                               ; preds = %83
  br label %86

86:                                               ; preds = %85
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.spirv_cross::EntryPoint", ptr %87, i32 1
  store ptr %88, ptr %13, align 8, !tbaa !5
  br label %34

89:                                               ; preds = %78, %66
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #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 %116

90:                                               ; preds = %83, %38
  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
  %91 = load i32, ptr %15, align 4
  switch i32 %91, label %109 [
    i32 2, label %92
  ]

92:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  invoke void @_ZL13spvc_allocateI15TemporaryBufferI16spvc_entry_pointEJEESt10unique_ptrIT_St14default_deleteIS4_EEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.249") align 8 %20)
          to label %93 unwind label %112

93:                                               ; preds = %92
  %94 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI16spvc_entry_pointESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  %95 = getelementptr inbounds %struct.TemporaryBuffer, ptr %94, i32 0, i32 1
  %96 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZN11spirv_cross11SmallVectorI16spvc_entry_pointLm8EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(152) %95, ptr noundef nonnull align 8 dereferenceable(152) %11) #7
  %97 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI16spvc_entry_pointESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  %98 = getelementptr inbounds %struct.TemporaryBuffer, ptr %97, i32 0, i32 1
  %99 = call noundef ptr @_ZN11spirv_cross10VectorViewI16spvc_entry_pointE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %98) #7
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %99, ptr %100, align 8, !tbaa !5
  %101 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI16spvc_entry_pointESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  %102 = getelementptr inbounds %struct.TemporaryBuffer, ptr %101, i32 0, i32 1
  %103 = call noundef i64 @_ZNK11spirv_cross10VectorViewI16spvc_entry_pointE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %102) #7
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  store i64 %103, ptr %104, align 8, !tbaa !29
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.spvc_compiler_s, ptr %105, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8, !tbaa !18
  %108 = getelementptr inbounds %struct.spvc_context_s, ptr %107, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @_ZNSt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS0_EEC2I15TemporaryBufferI16spvc_entry_pointES1_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) %108, 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_ptrI15TemporaryBufferI16spvc_entry_pointESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  store i32 0, ptr %15, align 4
  br label %109

109:                                              ; preds = %93, %90
  call void @_ZN11spirv_cross11SmallVectorI16spvc_entry_pointLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(152) %11) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr %11) #7
  call void @_ZN11spirv_cross11SmallVectorINS_10EntryPointELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(344) %8) #7
  call void @llvm.lifetime.end.p0(i64 344, ptr %8) #7
  %110 = load i32, ptr %15, align 4
  switch i32 %110, label %156 [
    i32 0, label %111
    i32 1, label %146
  ]

111:                                              ; preds = %109
  br label %145

112:                                              ; preds = %92
  %113 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %9, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %116

116:                                              ; preds = %112, %89
  call void @_ZN11spirv_cross11SmallVectorI16spvc_entry_pointLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(152) %11) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr %11) #7
  call void @_ZN11spirv_cross11SmallVectorINS_10EntryPointELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(344) %8) #7
  br label %117

117:                                              ; preds = %116, %39
  call void @llvm.lifetime.end.p0(i64 344, ptr %8) #7
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %10, align 4
  %120 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %121 = icmp eq i32 %119, %120
  br i1 %121, label %122, label %148

122:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %123 = load ptr, ptr %9, align 8
  %124 = call ptr @__cxa_begin_catch(ptr %123) #7
  store ptr %124, ptr %22, align 8
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.spvc_compiler_s, ptr %125, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8, !tbaa !18
  %128 = load ptr, ptr %22, align 8, !tbaa !5
  %129 = load ptr, ptr %128, align 8, !tbaa !30
  %130 = getelementptr inbounds ptr, ptr %129, i64 2
  %131 = load ptr, ptr %130, align 8
  %132 = call noundef ptr %131(ptr noundef nonnull align 8 dereferenceable(8) %128) #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 %132, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %133 unwind label %135

133:                                              ; preds = %122
  invoke void @_ZN14spvc_context_s12report_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136) %127, ptr noundef %23)
          to label %134 unwind label %139

134:                                              ; preds = %133
  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 %4, align 4
  store i32 1, ptr %15, align 4
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %146

135:                                              ; preds = %122
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %9, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %10, align 4
  br label %143

139:                                              ; preds = %133
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %9, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  br label %143

143:                                              ; preds = %139, %135
  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 %144 unwind label %153

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

145:                                              ; preds = %111
  store i32 0, ptr %4, align 4
  br label %146

146:                                              ; preds = %145, %134, %109
  %147 = load i32, ptr %4, align 4
  ret i32 %147

148:                                              ; preds = %144, %118
  %149 = load ptr, ptr %9, align 8
  %150 = load i32, ptr %10, align 4
  %151 = insertvalue { ptr, i32 } poison, ptr %149, 0
  %152 = insertvalue { ptr, i32 } %151, i32 %150, 1
  resume { ptr, i32 } %152

153:                                              ; preds = %143
  %154 = landingpad { ptr, i32 }
          catch ptr null
  %155 = extractvalue { ptr, i32 } %154, 0
  call void @__clang_call_terminate(ptr %155) #8
  unreachable

156:                                              ; preds = %109
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorINS_10EntryPointELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(344)) 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, !14, i64 32}
!10 = !{!"_ZTSN11spirv_cross10EntryPointE", !11, i64 0, !14, i64 32}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN3spv14ExecutionModelE", !7, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS16spvc_entry_point", !17, i64 0, !6, i64 8}
!17 = !{!"_ZTS18SpvExecutionModel_", !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 = !{!16, !6, i64 8}
!29 = !{!13, !13, i64 0}
!30 = !{!31, !31, i64 0}
!31 = !{!"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.243" = type { %"class.spirv_cross::VectorView.244", i64, %"class.spirv_cross::AlignedBuffer.245" }
%"class.spirv_cross::VectorView.244" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.245" = type { [320 x i8] }
%"class.spirv_cross::SmallVector.246" = type { %"class.spirv_cross::VectorView.247", i64, %"class.spirv_cross::AlignedBuffer.248" }
%"class.spirv_cross::VectorView.247" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.248" = type { [128 x i8] }
%struct.spvc_entry_point = type { i32, 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 }
%"class.std::unique_ptr.249" = type { %"struct.std::__uniq_ptr_data.250" }
%"struct.std::__uniq_ptr_data.250" = type { %"class.std::__uniq_ptr_impl.251" }
%"class.std::__uniq_ptr_impl.251" = type { %"class.std::tuple.252" }
%"class.std::tuple.252" = type { %"struct.std::_Tuple_impl.253" }
%"struct.std::_Tuple_impl.253" = type { %"struct.std::_Head_base.256" }
%"struct.std::_Head_base.256" = 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 }

@_ZTISt9exception = external constant ptr
@.str = external hidden unnamed_addr constant [15 x i8], align 1

; 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 uwtable
declare dso_local noundef ptr @_ZN14spvc_context_s13allocate_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(32)) 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 noundef i32 @spvc_compiler_get_entry_points(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.243", align 8
  %5 = alloca %"class.spirv_cross::SmallVector.246", align 8
  %6 = alloca %struct.spvc_entry_point, align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.std::unique_ptr.249", 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 344, ptr nonnull %4) #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
  invoke void @_ZNK11spirv_cross8Compiler27get_entry_points_and_stagesEv(ptr dead_on_unwind nonnull writable sret(%"class.spirv_cross::SmallVector.243") align 8 %4, ptr noundef nonnull align 8 dereferenceable(3176) %14)
          to label %15 unwind label %21

15:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %5) #7
  call void @_ZN11spirv_cross11SmallVectorI16spvc_entry_pointLm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(152) %5) #7
  %16 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_10EntryPointEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @_ZN11spirv_cross11SmallVectorI16spvc_entry_pointLm8EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(152) %5, i64 noundef %16) #7
  %17 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_10EntryPointEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  %18 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_10EntryPointEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  %.not.not49 = icmp eq ptr %17, %18
  br i1 %.not.not49, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %15
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = getelementptr inbounds i8, ptr %6, i64 8
  br label %23

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

23:                                               ; preds = %.lr.ph, %39
  %.03950 = phi ptr [ %17, %.lr.ph ], [ %40, %39 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %24 = getelementptr inbounds i8, ptr %.03950, i64 32
  %25 = load i32, ptr %24, align 8, !tbaa !5
  store i32 %25, ptr %6, align 8, !tbaa !14
  %26 = load ptr, ptr %19, align 8, !tbaa !17
  %27 = invoke noundef ptr @_ZN14spvc_context_s13allocate_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136) %26, ptr noundef nonnull align 8 dereferenceable(32) %.03950)
          to label %28 unwind label %32

28:                                               ; preds = %23
  store ptr %27, ptr %20, align 8, !tbaa !27
  %.not40.not = icmp eq ptr %27, null
  br i1 %.not40.not, label %29, label %39

29:                                               ; preds = %28
  %30 = load ptr, ptr %19, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %31 unwind label %34

31:                                               ; preds = %29
  invoke void @_ZN14spvc_context_s12report_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136) %30, ptr noundef nonnull %7)
          to label %42 unwind label %36

32:                                               ; preds = %23
  %33 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %41

34:                                               ; preds = %29
  %35 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %38

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

38:                                               ; preds = %36, %34
  %.pn = phi { ptr, i32 } [ %37, %36 ], [ %35, %34 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  br label %41

39:                                               ; preds = %28
  call void @_ZN11spirv_cross11SmallVectorI16spvc_entry_pointLm8EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(152) %5, ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  %40 = getelementptr inbounds i8, ptr %.03950, i64 40
  %.not.not = icmp eq ptr %40, %18
  br i1 %.not.not, label %.critedge, label %23

41:                                               ; preds = %38, %32
  %.pn.pn = phi { ptr, i32 } [ %.pn, %38 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %59

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

.critedge:                                        ; preds = %39, %15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  invoke void @_ZL13spvc_allocateI15TemporaryBufferI16spvc_entry_pointEJEESt10unique_ptrIT_St14default_deleteIS4_EEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.249") align 8 %9)
          to label %43 unwind label %57

43:                                               ; preds = %.critedge
  %44 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI16spvc_entry_pointESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZN11spirv_cross11SmallVectorI16spvc_entry_pointLm8EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(152) %45, ptr noundef nonnull align 8 dereferenceable(152) %5) #7
  %47 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI16spvc_entry_pointESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  %49 = call noundef ptr @_ZN11spirv_cross10VectorViewI16spvc_entry_pointE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %48) #7
  store ptr %49, ptr %1, align 8, !tbaa !28
  %50 = call noundef ptr @_ZNKSt10unique_ptrI15TemporaryBufferI16spvc_entry_pointESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = call noundef i64 @_ZNK11spirv_cross10VectorViewI16spvc_entry_pointE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %51) #7
  store i64 %52, ptr %2, align 8, !tbaa !29
  %53 = getelementptr inbounds i8, ptr %0, i64 8
  %54 = load ptr, ptr %53, align 8, !tbaa !17
  %55 = getelementptr inbounds i8, ptr %54, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  call void @_ZNSt10unique_ptrI23ScratchMemoryAllocationSt14default_deleteIS0_EEC2I15TemporaryBufferI16spvc_entry_pointES1_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) %55, 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_ptrI15TemporaryBufferI16spvc_entry_pointESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %56

56:                                               ; preds = %42, %43
  %spec.select = phi i32 [ -3, %42 ], [ 0, %43 ]
  call void @_ZN11spirv_cross11SmallVectorI16spvc_entry_pointLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(152) %5) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %5) #7
  call void @_ZN11spirv_cross11SmallVectorINS_10EntryPointELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(344) %4) #7
  call void @llvm.lifetime.end.p0(i64 344, ptr nonnull %4) #7
  br label %78

57:                                               ; preds = %.critedge
  %58 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %59

59:                                               ; preds = %57, %41
  %.pn43 = phi { ptr, i32 } [ %58, %57 ], [ %.pn.pn, %41 ]
  call void @_ZN11spirv_cross11SmallVectorI16spvc_entry_pointLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(152) %5) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %5) #7
  call void @_ZN11spirv_cross11SmallVectorINS_10EntryPointELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(344) %4) #7
  br label %60

60:                                               ; preds = %59, %21
  %.pn43.pn = phi { ptr, i32 } [ %.pn43, %59 ], [ %22, %21 ]
  %.336 = extractvalue { ptr, i32 } %.pn43.pn, 1
  call void @llvm.lifetime.end.p0(i64 344, ptr nonnull %4) #7
  %61 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %62 = icmp eq i32 %.336, %61
  br i1 %62, label %63, label %79

63:                                               ; preds = %60
  %.329 = extractvalue { ptr, i32 } %.pn43.pn, 0
  %64 = call ptr @__cxa_begin_catch(ptr %.329) #7
  %65 = getelementptr inbounds i8, ptr %0, i64 8
  %66 = load ptr, ptr %65, align 8, !tbaa !17
  %67 = load ptr, ptr %64, align 8, !tbaa !30
  %68 = getelementptr inbounds i8, ptr %67, i64 16
  %69 = load ptr, ptr %68, align 8
  %70 = call noundef ptr %69(ptr noundef nonnull align 8 dereferenceable(8) %64) #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 %70, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %71 unwind label %73

71:                                               ; preds = %63
  invoke void @_ZN14spvc_context_s12report_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136) %66, ptr noundef nonnull %11)
          to label %72 unwind label %75

72:                                               ; preds = %71
  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 %78

73:                                               ; preds = %63
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %77

75:                                               ; preds = %71
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %77

77:                                               ; preds = %75, %73
  %.pn46 = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  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 %79 unwind label %80

78:                                               ; preds = %56, %72
  %.3 = phi i32 [ -3, %72 ], [ %spec.select, %56 ]
  ret i32 %.3

79:                                               ; preds = %77, %60
  %.merged = phi { ptr, i32 } [ %.pn43.pn, %60 ], [ %.pn46, %77 ]
  resume { ptr, i32 } %.merged

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

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

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

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

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

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

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

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

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

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

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

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


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