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

; 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::Bitset" = type { i64, %"class.std::unordered_set" }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.74" }
%"class.std::_Hashtable.74" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.spirv_cross::SPIRType" = type { %"struct.spirv_cross::IVariant.base", i32, i32, i32, i32, i32, %"class.spirv_cross::SmallVector.92", %"class.spirv_cross::SmallVector.284", i32, i8, i8, i32, %"class.spirv_cross::SmallVector.227", %"class.spirv_cross::SmallVector.92", %"struct.spirv_cross::SPIRType::ImageType", %"class.spirv_cross::TypedID.281", %"class.spirv_cross::TypedID.281", %"class.std::unordered_set.165" }
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.280" }>
%"class.spirv_cross::TypedID.280" = type { i32 }
%"class.spirv_cross::SmallVector.284" = type { %"class.spirv_cross::VectorView.285", i64, %"class.spirv_cross::AlignedBuffer.286" }
%"class.spirv_cross::VectorView.285" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.286" = type { [8 x i8] }
%"class.spirv_cross::SmallVector.227" = type { %"class.spirv_cross::VectorView.228", i64, %"class.spirv_cross::AlignedBuffer.229" }
%"class.spirv_cross::VectorView.228" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.229" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.92" = type { %"class.spirv_cross::VectorView.93", i64, %"class.spirv_cross::AlignedBuffer.94" }
%"class.spirv_cross::VectorView.93" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.94" = type { [32 x i8] }
%"struct.spirv_cross::SPIRType::ImageType" = type { %"class.spirv_cross::TypedID.281", i32, i8, i8, i8, i32, i32, i32 }
%"class.spirv_cross::TypedID.281" = type { i32 }
%"class.std::unordered_set.165" = type { %"class.std::_Hashtable.166" }
%"class.std::_Hashtable.166" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::Compiler" = type { ptr, %"class.spirv_cross::ParsedIR", %"class.spirv_cross::SmallVector.92", %"class.spirv_cross::SmallVector.92", ptr, ptr, i32, %"class.std::unordered_set.95", i8, %"class.std::unordered_set", i8, i8, %"class.spirv_cross::SmallVector.114", %"class.spirv_cross::SmallVector.92", %"class.std::function", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.spirv_cross::Bitset", %"class.spirv_cross::Bitset", i32, i32, i8, %"class.std::unordered_set", i8, i8, i32, %"class.std::unordered_map.117", %"class.spirv_cross::SmallVector.92", %"class.std::unordered_map.131", %"class.std::unordered_set", i8, %"class.std::unordered_map.145" }
%"class.spirv_cross::ParsedIR" = type { %"class.std::unique_ptr", %"class.std::vector", %"class.spirv_cross::SmallVector", %"class.std::unordered_map", [14 x %"class.spirv_cross::SmallVector.7"], %"class.spirv_cross::SmallVector.7", %"class.spirv_cross::SmallVector.7", %"class.std::unordered_map.10", %"class.spirv_cross::SmallVector.24", %"class.spirv_cross::SmallVector.27", %"class.spirv_cross::SmallVector.30", %"class.std::unordered_map.33", %"class.std::unordered_map.52", %"class.spirv_cross::TypedID", %"struct.spirv_cross::ParsedIR::Source", i32, i32, i32, i32, %"class.std::__cxx11::basic_string", %"class.spirv_cross::Bitset", %"class.std::unordered_set" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, 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 { [192 x i8] }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::SmallVector.7" = type { %"class.spirv_cross::VectorView.8", i64, %"class.spirv_cross::AlignedBuffer.9" }
%"class.spirv_cross::VectorView.8" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.9" = type { [32 x i8] }
%"class.std::unordered_map.10" = type { %"class.std::_Hashtable.11" }
%"class.std::_Hashtable.11" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::SmallVector.24" = type { %"class.spirv_cross::VectorView.25", i64, %"class.spirv_cross::AlignedBuffer.26" }
%"class.spirv_cross::VectorView.25" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.26" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.27" = type { %"class.spirv_cross::VectorView.28", i64, %"class.spirv_cross::AlignedBuffer.29" }
%"class.spirv_cross::VectorView.28" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.29" = type { [256 x i8] }
%"class.spirv_cross::SmallVector.30" = type { %"class.spirv_cross::VectorView.31", i64, %"class.spirv_cross::AlignedBuffer.32" }
%"class.spirv_cross::VectorView.31" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.32" = type { [8 x i8] }
%"class.std::unordered_map.33" = type { %"class.std::_Hashtable.34" }
%"class.std::_Hashtable.34" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.52" = type { %"class.std::_Hashtable.53" }
%"class.std::_Hashtable.53" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::TypedID" = type { i32 }
%"struct.spirv_cross::ParsedIR::Source" = type <{ i32, i8, i8, i8, i8 }>
%"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::unordered_set.95" = type { %"class.std::_Hashtable.96" }
%"class.std::_Hashtable.96" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::SmallVector.114" = type { %"class.spirv_cross::VectorView.115", i64, %"class.spirv_cross::AlignedBuffer.116" }
%"class.spirv_cross::VectorView.115" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.116" = type { [96 x i8] }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::unordered_map.117" = type { %"class.std::_Hashtable.118" }
%"class.std::_Hashtable.118" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.131" = type { %"class.std::_Hashtable.132" }
%"class.std::_Hashtable.132" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.145" = type { %"class.std::_Hashtable.146" }
%"class.std::_Hashtable.146" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.spirv_cross::IVariant" = type <{ ptr, %"class.spirv_cross::TypedID.280", [4 x i8] }>
%"struct.spirv_cross::Meta" = type { %"struct.spirv_cross::Meta::Decoration", %"class.spirv_cross::SmallVector.316", %"class.std::unordered_map.213", i8, i32 }
%"struct.spirv_cross::Meta::Decoration" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.spirv_cross::Bitset", i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, %"struct.spirv_cross::Meta::Decoration::Extended" }
%"struct.spirv_cross::Meta::Decoration::Extended" = type { %"class.spirv_cross::Bitset", [18 x i32] }
%"class.spirv_cross::SmallVector.316" = type <{ %"class.spirv_cross::VectorView.317", i64, [8 x i8] }>
%"class.spirv_cross::VectorView.317" = type { ptr, i64 }
%"class.std::unordered_map.213" = type { %"class.std::_Hashtable.214" }
%"class.std::_Hashtable.214" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

@_ZTIN11spirv_cross13CompilerErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.255 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.256 = external hidden unnamed_addr constant [85 x i8], align 1

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross6Bitset3getEj(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(488) ptr @_ZNSt13unordered_mapIN11spirv_cross7TypedIDILNS0_5TypesE0EEENS0_4MetaESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S4_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN11spirv_cross12CompilerGLSL24type_to_packed_base_sizeERKNS_8SPIRTypeENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(336), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN11spirv_cross12CompilerGLSL24type_to_packed_alignmentERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(336), ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #1 align 2

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler19is_physical_pointerERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336)) #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL22packing_is_vec4_paddedN11spirv_cross21BufferPackingStandardE(i32 noundef) #3

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler8is_arrayERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross6BitsetC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL17packing_is_scalarN11spirv_cross21BufferPackingStandardE(i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL15packing_is_hlslN11spirv_cross21BufferPackingStandardE(i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN11spirv_cross12CompilerGLSL27type_to_packed_array_strideERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(336), ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN11spirv_cross12CompilerGLSL19type_to_packed_sizeERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(336) %1, ptr noundef nonnull align 8 dereferenceable(64) %2, i32 noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.spirv_cross::Bitset", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  %21 = load ptr, ptr %6, align 8
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler19is_physical_pointerERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %21, ptr noundef nonnull align 8 dereferenceable(336) %22)
  br i1 %23, label %24, label %49

24:                                               ; preds = %4
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %25, i32 0, i32 9
  %27 = load i8, ptr %26, align 4, !tbaa !11, !range !40, !noundef !41
  %28 = trunc i8 %27 to i1
  br i1 %28, label %36, label %29

29:                                               ; preds = %24
  %30 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN11spirv_cross13CompilerErrorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef @.str.255)
          to label %31 unwind label %32

31:                                               ; preds = %29
  call void @__cxa_throw(ptr %30, ptr @_ZTIN11spirv_cross13CompilerErrorE, ptr @_ZNSt13runtime_errorD2Ev) #8
  unreachable

32:                                               ; preds = %29
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %10, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %11, align 4
  call void @__cxa_free_exception(ptr %30) #7
  br label %300

36:                                               ; preds = %24
  %37 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %21, i32 0, i32 1
  %38 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %37, i32 0, i32 15
  %39 = load i32, ptr %38, align 4, !tbaa !42
  %40 = icmp eq i32 %39, 5348
  br i1 %40, label %41, label %42

41:                                               ; preds = %36
  store i32 8, ptr %5, align 4
  br label %298

42:                                               ; preds = %36
  %43 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN11spirv_cross13CompilerErrorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef @.str.256)
          to label %44 unwind label %45

44:                                               ; preds = %42
  call void @__cxa_throw(ptr %43, ptr @_ZTIN11spirv_cross13CompilerErrorE, ptr @_ZNSt13runtime_errorD2Ev) #8
  unreachable

45:                                               ; preds = %42
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %10, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %11, align 4
  call void @__cxa_free_exception(ptr %43) #7
  br label %300

49:                                               ; preds = %4
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler8is_arrayERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %21, ptr noundef nonnull align 8 dereferenceable(336) %50)
  br i1 %51, label %52, label %81

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = call noundef i32 @_ZNK11spirv_cross12CompilerGLSL21to_array_size_literalERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(9848) %21, ptr noundef nonnull align 8 dereferenceable(336) %53)
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = call noundef i32 @_ZN11spirv_cross12CompilerGLSL27type_to_packed_array_strideERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848) %21, ptr noundef nonnull align 8 dereferenceable(336) %55, ptr noundef nonnull align 8 dereferenceable(64) %56, i32 noundef %57)
  %59 = mul i32 %54, %58
  store i32 %59, ptr %12, align 4, !tbaa !100
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = call noundef zeroext i1 @_ZL15packing_is_hlslN11spirv_cross21BufferPackingStandardE(i32 noundef %60)
  br i1 %61, label %62, label %79

62:                                               ; preds = %52
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %63, i32 0, i32 2
  %65 = load i32, ptr %64, align 8, !tbaa !101
  %66 = icmp ne i32 %65, 15
  br i1 %66, label %67, label %79

67:                                               ; preds = %62
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %68, i32 0, i32 4
  %70 = load i32, ptr %69, align 8, !tbaa !102
  %71 = sub i32 4, %70
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %72, i32 0, i32 3
  %74 = load i32, ptr %73, align 4, !tbaa !103
  %75 = udiv i32 %74, 8
  %76 = mul i32 %71, %75
  %77 = load i32, ptr %12, align 4, !tbaa !100
  %78 = sub i32 %77, %76
  store i32 %78, ptr %12, align 4, !tbaa !100
  br label %79

79:                                               ; preds = %67, %62, %52
  %80 = load i32, ptr %12, align 4, !tbaa !100
  store i32 %80, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %298

81:                                               ; preds = %49
  br label %82

82:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !100
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %83, i32 0, i32 2
  %85 = load i32, ptr %84, align 8, !tbaa !101
  %86 = icmp eq i32 %85, 15
  br i1 %86, label %87, label %163

87:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 1, ptr %14, align 4, !tbaa !100
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !100
  br label %88

88:                                               ; preds = %157, %87
  %89 = load i32, ptr %15, align 4, !tbaa !100
  %90 = zext i32 %89 to i64
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %91, i32 0, i32 12
  %93 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %92) #7
  %94 = icmp ult i64 %90, %93
  br i1 %94, label %96, label %95

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

96:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #7
  %97 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %21, i32 0, i32 1
  %98 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %97, i32 0, i32 3
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %99, i32 0, i32 1
  %101 = call noundef nonnull align 8 dereferenceable(488) ptr @_ZNSt13unordered_mapIN11spirv_cross7TypedIDILNS0_5TypesE0EEENS0_4MetaESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S4_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(56) %98, ptr noundef nonnull align 4 dereferenceable(4) %100)
  %102 = getelementptr inbounds %"struct.spirv_cross::Meta", ptr %101, i32 0, i32 1
  %103 = load i32, ptr %15, align 4, !tbaa !100
  %104 = zext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross10VectorViewINS_4Meta10DecorationEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %102, i64 noundef %104) #7
  %106 = getelementptr inbounds %"struct.spirv_cross::Meta::Decoration", ptr %105, i32 0, i32 4
  call void @_ZN11spirv_cross6BitsetC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %16, ptr noundef nonnull align 8 dereferenceable(64) %106)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %107, i32 0, i32 12
  %109 = load i32, ptr %15, align 4, !tbaa !100
  %110 = zext i32 %109 to i64
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %108, i64 noundef %110) #7
  %112 = invoke noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %111)
          to label %113 unwind label %129

113:                                              ; preds = %96
  %114 = invoke noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %21, i32 noundef %112)
          to label %115 unwind label %129

115:                                              ; preds = %113
  store ptr %114, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %116 = load ptr, ptr %17, align 8, !tbaa !5
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = invoke noundef i32 @_ZN11spirv_cross12CompilerGLSL24type_to_packed_alignmentERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848) %21, ptr noundef nonnull align 8 dereferenceable(336) %116, ptr noundef nonnull align 8 dereferenceable(64) %16, i32 noundef %117)
          to label %119 unwind label %133

119:                                              ; preds = %115
  store i32 %118, ptr %18, align 4, !tbaa !100
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %120 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %121 unwind label %137

121:                                              ; preds = %119
  %122 = load i32, ptr %120, align 4, !tbaa !100
  store i32 %122, ptr %19, align 4, !tbaa !100
  %123 = load ptr, ptr %17, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %123, i32 0, i32 2
  %125 = load i32, ptr %124, align 8, !tbaa !101
  %126 = icmp eq i32 %125, 15
  br i1 %126, label %127, label %141

127:                                              ; preds = %121
  %128 = load i32, ptr %18, align 4, !tbaa !100
  store i32 %128, ptr %14, align 4, !tbaa !100
  br label %142

129:                                              ; preds = %113, %96
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %10, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %11, align 4
  br label %161

133:                                              ; preds = %115
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %10, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %11, align 4
  br label %160

137:                                              ; preds = %142, %119
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %10, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %160

141:                                              ; preds = %121
  store i32 1, ptr %14, align 4, !tbaa !100
  br label %142

142:                                              ; preds = %141, %127
  %143 = load i32, ptr %13, align 4, !tbaa !100
  %144 = load i32, ptr %19, align 4, !tbaa !100
  %145 = add i32 %143, %144
  %146 = sub i32 %145, 1
  %147 = load i32, ptr %19, align 4, !tbaa !100
  %148 = sub i32 %147, 1
  %149 = xor i32 %148, -1
  %150 = and i32 %146, %149
  store i32 %150, ptr %13, align 4, !tbaa !100
  %151 = load ptr, ptr %17, align 8, !tbaa !5
  %152 = load i32, ptr %9, align 4, !tbaa !9
  %153 = invoke noundef i32 @_ZN11spirv_cross12CompilerGLSL19type_to_packed_sizeERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848) %21, ptr noundef nonnull align 8 dereferenceable(336) %151, ptr noundef nonnull align 8 dereferenceable(64) %16, i32 noundef %152)
          to label %154 unwind label %137

154:                                              ; preds = %142
  %155 = load i32, ptr %13, align 4, !tbaa !100
  %156 = add i32 %155, %153
  store i32 %156, ptr %13, align 4, !tbaa !100
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @_ZN11spirv_cross6BitsetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %16) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #7
  br label %157

157:                                              ; preds = %154
  %158 = load i32, ptr %15, align 4, !tbaa !100
  %159 = add i32 %158, 1
  store i32 %159, ptr %15, align 4, !tbaa !100
  br label %88, !llvm.loop !104

160:                                              ; preds = %137, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %161

161:                                              ; preds = %160, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @_ZN11spirv_cross6BitsetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %16) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %300

162:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %296

163:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = load i32, ptr %9, align 4, !tbaa !9
  %166 = call noundef i32 @_ZN11spirv_cross12CompilerGLSL24type_to_packed_base_sizeERKNS_8SPIRTypeENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848) %21, ptr noundef nonnull align 8 dereferenceable(336) %164, i32 noundef %165)
  store i32 %166, ptr %20, align 4, !tbaa !100
  %167 = load i32, ptr %9, align 4, !tbaa !9
  %168 = call noundef zeroext i1 @_ZL17packing_is_scalarN11spirv_cross21BufferPackingStandardE(i32 noundef %167)
  br i1 %168, label %169, label %179

169:                                              ; preds = %163
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %170, i32 0, i32 4
  %172 = load i32, ptr %171, align 8, !tbaa !102
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %173, i32 0, i32 5
  %175 = load i32, ptr %174, align 4, !tbaa !106
  %176 = mul i32 %172, %175
  %177 = load i32, ptr %20, align 4, !tbaa !100
  %178 = mul i32 %176, %177
  store i32 %178, ptr %13, align 4, !tbaa !100
  br label %295

179:                                              ; preds = %163
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %180, i32 0, i32 5
  %182 = load i32, ptr %181, align 4, !tbaa !106
  %183 = icmp eq i32 %182, 1
  br i1 %183, label %184, label %190

184:                                              ; preds = %179
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %185, i32 0, i32 4
  %187 = load i32, ptr %186, align 8, !tbaa !102
  %188 = load i32, ptr %20, align 4, !tbaa !100
  %189 = mul i32 %187, %188
  store i32 %189, ptr %13, align 4, !tbaa !100
  br label %190

190:                                              ; preds = %184, %179
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = call noundef zeroext i1 @_ZNK11spirv_cross6Bitset3getEj(ptr noundef nonnull align 8 dereferenceable(64) %191, i32 noundef 5)
  br i1 %192, label %193, label %232

193:                                              ; preds = %190
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %194, i32 0, i32 5
  %196 = load i32, ptr %195, align 4, !tbaa !106
  %197 = icmp ugt i32 %196, 1
  br i1 %197, label %198, label %232

198:                                              ; preds = %193
  %199 = load i32, ptr %9, align 4, !tbaa !9
  %200 = call noundef zeroext i1 @_ZL22packing_is_vec4_paddedN11spirv_cross21BufferPackingStandardE(i32 noundef %199)
  br i1 %200, label %201, label %208

201:                                              ; preds = %198
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %202, i32 0, i32 5
  %204 = load i32, ptr %203, align 4, !tbaa !106
  %205 = mul i32 %204, 4
  %206 = load i32, ptr %20, align 4, !tbaa !100
  %207 = mul i32 %205, %206
  store i32 %207, ptr %13, align 4, !tbaa !100
  br label %231

208:                                              ; preds = %198
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %209, i32 0, i32 4
  %211 = load i32, ptr %210, align 8, !tbaa !102
  %212 = icmp eq i32 %211, 3
  br i1 %212, label %213, label %220

213:                                              ; preds = %208
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %214, i32 0, i32 5
  %216 = load i32, ptr %215, align 4, !tbaa !106
  %217 = mul i32 %216, 4
  %218 = load i32, ptr %20, align 4, !tbaa !100
  %219 = mul i32 %217, %218
  store i32 %219, ptr %13, align 4, !tbaa !100
  br label %230

220:                                              ; preds = %208
  %221 = load ptr, ptr %7, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %221, i32 0, i32 5
  %223 = load i32, ptr %222, align 4, !tbaa !106
  %224 = load ptr, ptr %7, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %224, i32 0, i32 4
  %226 = load i32, ptr %225, align 8, !tbaa !102
  %227 = mul i32 %223, %226
  %228 = load i32, ptr %20, align 4, !tbaa !100
  %229 = mul i32 %227, %228
  store i32 %229, ptr %13, align 4, !tbaa !100
  br label %230

230:                                              ; preds = %220, %213
  br label %231

231:                                              ; preds = %230, %201
  br label %232

232:                                              ; preds = %231, %193, %190
  %233 = load ptr, ptr %8, align 8, !tbaa !5
  %234 = call noundef zeroext i1 @_ZNK11spirv_cross6Bitset3getEj(ptr noundef nonnull align 8 dereferenceable(64) %233, i32 noundef 4)
  br i1 %234, label %235, label %274

235:                                              ; preds = %232
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  %237 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %236, i32 0, i32 4
  %238 = load i32, ptr %237, align 8, !tbaa !102
  %239 = icmp ugt i32 %238, 1
  br i1 %239, label %240, label %274

240:                                              ; preds = %235
  %241 = load i32, ptr %9, align 4, !tbaa !9
  %242 = call noundef zeroext i1 @_ZL22packing_is_vec4_paddedN11spirv_cross21BufferPackingStandardE(i32 noundef %241)
  br i1 %242, label %243, label %250

243:                                              ; preds = %240
  %244 = load ptr, ptr %7, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %244, i32 0, i32 4
  %246 = load i32, ptr %245, align 8, !tbaa !102
  %247 = mul i32 %246, 4
  %248 = load i32, ptr %20, align 4, !tbaa !100
  %249 = mul i32 %247, %248
  store i32 %249, ptr %13, align 4, !tbaa !100
  br label %273

250:                                              ; preds = %240
  %251 = load ptr, ptr %7, align 8, !tbaa !5
  %252 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %251, i32 0, i32 5
  %253 = load i32, ptr %252, align 4, !tbaa !106
  %254 = icmp eq i32 %253, 3
  br i1 %254, label %255, label %262

255:                                              ; preds = %250
  %256 = load ptr, ptr %7, align 8, !tbaa !5
  %257 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %256, i32 0, i32 4
  %258 = load i32, ptr %257, align 8, !tbaa !102
  %259 = mul i32 %258, 4
  %260 = load i32, ptr %20, align 4, !tbaa !100
  %261 = mul i32 %259, %260
  store i32 %261, ptr %13, align 4, !tbaa !100
  br label %272

262:                                              ; preds = %250
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %263, i32 0, i32 4
  %265 = load i32, ptr %264, align 8, !tbaa !102
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %266, i32 0, i32 5
  %268 = load i32, ptr %267, align 4, !tbaa !106
  %269 = mul i32 %265, %268
  %270 = load i32, ptr %20, align 4, !tbaa !100
  %271 = mul i32 %269, %270
  store i32 %271, ptr %13, align 4, !tbaa !100
  br label %272

272:                                              ; preds = %262, %255
  br label %273

273:                                              ; preds = %272, %243
  br label %274

274:                                              ; preds = %273, %235, %232
  %275 = load i32, ptr %9, align 4, !tbaa !9
  %276 = call noundef zeroext i1 @_ZL15packing_is_hlslN11spirv_cross21BufferPackingStandardE(i32 noundef %275)
  br i1 %276, label %277, label %294

277:                                              ; preds = %274
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %278, i32 0, i32 5
  %280 = load i32, ptr %279, align 4, !tbaa !106
  %281 = icmp ugt i32 %280, 1
  br i1 %281, label %282, label %294

282:                                              ; preds = %277
  %283 = load ptr, ptr %7, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %283, i32 0, i32 4
  %285 = load i32, ptr %284, align 8, !tbaa !102
  %286 = sub i32 4, %285
  %287 = load ptr, ptr %7, align 8, !tbaa !5
  %288 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %287, i32 0, i32 3
  %289 = load i32, ptr %288, align 4, !tbaa !103
  %290 = udiv i32 %289, 8
  %291 = mul i32 %286, %290
  %292 = load i32, ptr %13, align 4, !tbaa !100
  %293 = sub i32 %292, %291
  store i32 %293, ptr %13, align 4, !tbaa !100
  br label %294

294:                                              ; preds = %282, %277, %274
  br label %295

295:                                              ; preds = %294, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %296

296:                                              ; preds = %295, %162
  %297 = load i32, ptr %13, align 4, !tbaa !100
  store i32 %297, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %298

298:                                              ; preds = %296, %79, %41
  %299 = load i32, ptr %5, align 4
  ret i32 %299

300:                                              ; preds = %161, %45, %32
  %301 = load ptr, ptr %10, align 8
  %302 = load i32, ptr %11, align 4
  %303 = insertvalue { ptr, i32 } poison, ptr %301, 0
  %304 = insertvalue { ptr, i32 } %303, i32 %302, 1
  resume { ptr, i32 } %304
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross12CompilerGLSL21to_array_size_literalERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(336)) #1 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN11spirv_cross21BufferPackingStandardE", !7, i64 0}
!11 = !{!12, !25, i64 124}
!12 = !{!"_ZTSN11spirv_cross8SPIRTypeE", !13, i64 0, !16, i64 12, !17, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !18, i64 32, !22, i64 88, !15, i64 120, !25, i64 124, !25, i64 125, !26, i64 128, !27, i64 136, !18, i64 192, !30, i64 248, !31, i64 272, !31, i64 276, !35, i64 280}
!13 = !{!"_ZTSN11spirv_cross8IVariantE", !14, i64 8}
!14 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN3spv2OpE", !7, i64 0}
!17 = !{!"_ZTSN11spirv_cross8SPIRType8BaseTypeE", !7, i64 0}
!18 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !19, i64 0, !20, i64 16, !21, i64 24}
!19 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !6, i64 0, !20, i64 8}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!22 = !{!"_ZTSN11spirv_cross11SmallVectorIbLm8EEE", !23, i64 0, !20, i64 16, !24, i64 24}
!23 = !{!"_ZTSN11spirv_cross10VectorViewIbEE", !6, i64 0, !20, i64 8}
!24 = !{!"_ZTSN11spirv_cross13AlignedBufferIbLm8EEE", !7, i64 0}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTSN3spv12StorageClassE", !7, i64 0}
!27 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EEE", !28, i64 0, !20, i64 16, !29, i64 24}
!28 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEE", !6, i64 0, !20, i64 8}
!29 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE1EEELm8EEE", !7, i64 0}
!30 = !{!"_ZTSN11spirv_cross8SPIRType9ImageTypeE", !31, i64 0, !32, i64 4, !25, i64 8, !25, i64 9, !25, i64 10, !15, i64 12, !33, i64 16, !34, i64 20}
!31 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !15, i64 0}
!32 = !{!"_ZTSN3spv3DimE", !7, i64 0}
!33 = !{!"_ZTSN3spv11ImageFormatE", !7, i64 0}
!34 = !{!"_ZTSN3spv15AccessQualifierE", !7, i64 0}
!35 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !36, i64 0}
!36 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE", !6, i64 0, !20, i64 8, !37, i64 16, !20, i64 24, !38, i64 32, !6, i64 48}
!37 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!38 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !39, i64 0, !20, i64 8}
!39 = !{!"float", !7, i64 0}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = !{!43, !80, i64 1756}
!43 = !{!"_ZTSN11spirv_cross8CompilerE", !44, i64 8, !18, i64 1928, !18, i64 1984, !6, i64 2040, !6, i64 2048, !15, i64 2056, !87, i64 2064, !25, i64 2120, !85, i64 2128, !25, i64 2184, !25, i64 2185, !89, i64 2192, !18, i64 2312, !92, i64 2368, !85, i64 2400, !85, i64 2456, !85, i64 2512, !85, i64 2568, !85, i64 2624, !84, i64 2680, !84, i64 2744, !15, i64 2808, !15, i64 2812, !25, i64 2816, !85, i64 2824, !25, i64 2880, !25, i64 2881, !15, i64 2884, !94, i64 2888, !18, i64 2944, !96, i64 3000, !85, i64 3056, !25, i64 3112, !98, i64 3120}
!44 = !{!"_ZTSN11spirv_cross8ParsedIRE", !45, i64 0, !51, i64 8, !55, i64 32, !58, i64 248, !7, i64 304, !60, i64 1088, !60, i64 1144, !63, i64 1200, !65, i64 1256, !68, i64 1312, !71, i64 1592, !74, i64 1624, !76, i64 1680, !78, i64 1736, !79, i64 1740, !80, i64 1748, !81, i64 1752, !15, i64 1756, !15, i64 1760, !82, i64 1768, !84, i64 1800, !85, i64 1864}
!45 = !{!"_ZTSSt10unique_ptrIN11spirv_cross15ObjectPoolGroupESt14default_deleteIS1_EE", !46, i64 0}
!46 = !{!"_ZTSSt15__uniq_ptr_dataIN11spirv_cross15ObjectPoolGroupESt14default_deleteIS1_ELb1ELb1EE", !47, i64 0}
!47 = !{!"_ZTSSt15__uniq_ptr_implIN11spirv_cross15ObjectPoolGroupESt14default_deleteIS1_EE", !48, i64 0}
!48 = !{!"_ZTSSt5tupleIJPN11spirv_cross15ObjectPoolGroupESt14default_deleteIS1_EEE", !49, i64 0}
!49 = !{!"_ZTSSt11_Tuple_implILm0EJPN11spirv_cross15ObjectPoolGroupESt14default_deleteIS1_EEE", !50, i64 0}
!50 = !{!"_ZTSSt10_Head_baseILm0EPN11spirv_cross15ObjectPoolGroupELb0EE", !6, i64 0}
!51 = !{!"_ZTSSt6vectorIjSaIjEE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!55 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7VariantELm8EEE", !56, i64 0, !20, i64 16, !57, i64 24}
!56 = !{!"_ZTSN11spirv_cross10VectorViewINS_7VariantEEE", !6, i64 0, !20, i64 8}
!57 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7VariantELm8EEE", !7, i64 0}
!58 = !{!"_ZTSSt13unordered_mapIN11spirv_cross7TypedIDILNS0_5TypesE0EEENS0_4MetaESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S4_EEE", !59, i64 0}
!59 = !{!"_ZTSSt10_HashtableIN11spirv_cross7TypedIDILNS0_5TypesE0EEESt4pairIKS3_NS0_4MetaEESaIS7_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !20, i64 8, !37, i64 16, !20, i64 24, !38, i64 32, !6, i64 48}
!60 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !61, i64 0, !20, i64 16, !62, i64 24}
!61 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !6, i64 0, !20, i64 8}
!62 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !7, i64 0}
!63 = !{!"_ZTSSt13unordered_mapIN11spirv_cross7TypedIDILNS0_5TypesE0EEEjSt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_jEEE", !64, i64 0}
!64 = !{!"_ZTSSt10_HashtableIN11spirv_cross7TypedIDILNS0_5TypesE0EEESt4pairIKS3_jESaIS6_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !20, i64 8, !37, i64 16, !20, i64 24, !38, i64 32, !6, i64 48}
!65 = !{!"_ZTSN11spirv_cross11SmallVectorIN3spv10CapabilityELm8EEE", !66, i64 0, !20, i64 16, !67, i64 24}
!66 = !{!"_ZTSN11spirv_cross10VectorViewIN3spv10CapabilityEEE", !6, i64 0, !20, i64 8}
!67 = !{!"_ZTSN11spirv_cross13AlignedBufferIN3spv10CapabilityELm8EEE", !7, i64 0}
!68 = !{!"_ZTSN11spirv_cross11SmallVectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm8EEE", !69, i64 0, !20, i64 16, !70, i64 24}
!69 = !{!"_ZTSN11spirv_cross10VectorViewINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !6, i64 0, !20, i64 8}
!70 = !{!"_ZTSN11spirv_cross13AlignedBufferINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm8EEE", !7, i64 0}
!71 = !{!"_ZTSN11spirv_cross11SmallVectorIhLm8EEE", !72, i64 0, !20, i64 16, !73, i64 24}
!72 = !{!"_ZTSN11spirv_cross10VectorViewIhEE", !6, i64 0, !20, i64 8}
!73 = !{!"_ZTSN11spirv_cross13AlignedBufferIhLm8EEE", !7, i64 0}
!74 = !{!"_ZTSSt13unordered_mapIN11spirv_cross7TypedIDILNS0_5TypesE6EEES3_St4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S3_EEE", !75, i64 0}
!75 = !{!"_ZTSSt10_HashtableIN11spirv_cross7TypedIDILNS0_5TypesE6EEESt4pairIKS3_S3_ESaIS6_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !20, i64 8, !37, i64 16, !20, i64 24, !38, i64 32, !6, i64 48}
!76 = !{!"_ZTSSt13unordered_mapIN11spirv_cross7TypedIDILNS0_5TypesE4EEENS0_14SPIREntryPointESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S4_EEE", !77, i64 0}
!77 = !{!"_ZTSSt10_HashtableIN11spirv_cross7TypedIDILNS0_5TypesE4EEESt4pairIKS3_NS0_14SPIREntryPointEESaIS7_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !20, i64 8, !37, i64 16, !20, i64 24, !38, i64 32, !6, i64 48}
!78 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE4EEE", !15, i64 0}
!79 = !{!"_ZTSN11spirv_cross8ParsedIR6SourceE", !15, i64 0, !25, i64 4, !25, i64 5, !25, i64 6}
!80 = !{!"_ZTSN3spv15AddressingModelE", !7, i64 0}
!81 = !{!"_ZTSN3spv11MemoryModelE", !7, i64 0}
!82 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !83, i64 0, !20, i64 8, !7, i64 16}
!83 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!84 = !{!"_ZTSN11spirv_cross6BitsetE", !20, i64 0, !85, i64 8}
!85 = !{!"_ZTSSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE", !86, i64 0}
!86 = !{!"_ZTSSt10_HashtableIjjSaIjENSt8__detail9_IdentityESt8equal_toIjESt4hashIjENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !20, i64 8, !37, i64 16, !20, i64 24, !38, i64 32, !6, i64 48}
!87 = !{!"_ZTSSt13unordered_setIN11spirv_cross7TypedIDILNS0_5TypesE2EEESt4hashIS3_ESt8equal_toIS3_ESaIS3_EE", !88, i64 0}
!88 = !{!"_ZTSSt10_HashtableIN11spirv_cross7TypedIDILNS0_5TypesE2EEES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb1ELb1ELb1EEEE", !6, i64 0, !20, i64 8, !37, i64 16, !20, i64 24, !38, i64 32, !6, i64 48}
!89 = !{!"_ZTSN11spirv_cross11SmallVectorINS_20CombinedImageSamplerELm8EEE", !90, i64 0, !20, i64 16, !91, i64 24}
!90 = !{!"_ZTSN11spirv_cross10VectorViewINS_20CombinedImageSamplerEEE", !6, i64 0, !20, i64 8}
!91 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_20CombinedImageSamplerELm8EEE", !7, i64 0}
!92 = !{!"_ZTSSt8functionIFvRKN11spirv_cross8SPIRTypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS9_EE", !93, i64 0, !6, i64 24}
!93 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!94 = !{!"_ZTSSt13unordered_mapIjSt10unique_ptrIN11spirv_cross3CFGESt14default_deleteIS2_EESt4hashIjESt8equal_toIjESaISt4pairIKjS5_EEE", !95, i64 0}
!95 = !{!"_ZTSSt10_HashtableIjSt4pairIKjSt10unique_ptrIN11spirv_cross3CFGESt14default_deleteIS4_EEESaIS8_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !20, i64 8, !37, i64 16, !20, i64 24, !38, i64 32, !6, i64 48}
!96 = !{!"_ZTSSt13unordered_mapIjN11spirv_cross8Compiler17PhysicalBlockMetaESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEE", !97, i64 0}
!97 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN11spirv_cross8Compiler17PhysicalBlockMetaEESaIS5_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !20, i64 8, !37, i64 16, !20, i64 24, !38, i64 32, !6, i64 48}
!98 = !{!"_ZTSSt13unordered_mapIjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIjESt8equal_toIjESaISt4pairIKjS5_EEE", !99, i64 0}
!99 = !{!"_ZTSSt10_HashtableIjSt4pairIKjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS8_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !20, i64 8, !37, i64 16, !20, i64 24, !38, i64 32, !6, i64 48}
!100 = !{!15, !15, i64 0}
!101 = !{!12, !17, i64 16}
!102 = !{!12, !15, i64 24}
!103 = !{!12, !15, i64 20}
!104 = distinct !{!104, !105}
!105 = !{!"llvm.loop.mustprogress"}
!106 = !{!12, !15, i64 28}


; 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::Bitset" = type { i64, %"class.std::unordered_set" }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.74" }
%"class.std::_Hashtable.74" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }

@_ZTIN11spirv_cross13CompilerErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.255 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.256 = external hidden unnamed_addr constant [85 x i8], align 1

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross6Bitset3getEj(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(488) ptr @_ZNSt13unordered_mapIN11spirv_cross7TypedIDILNS0_5TypesE0EEENS0_4MetaESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S4_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN11spirv_cross12CompilerGLSL24type_to_packed_base_sizeERKNS_8SPIRTypeENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(336), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN11spirv_cross12CompilerGLSL24type_to_packed_alignmentERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(336), ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler19is_physical_pointerERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL22packing_is_vec4_paddedN11spirv_cross21BufferPackingStandardE(i32 noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler8is_arrayERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross6BitsetC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL17packing_is_scalarN11spirv_cross21BufferPackingStandardE(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL15packing_is_hlslN11spirv_cross21BufferPackingStandardE(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN11spirv_cross12CompilerGLSL27type_to_packed_array_strideERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(336), ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN11spirv_cross12CompilerGLSL19type_to_packed_sizeERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(336) %1, ptr noundef nonnull align 8 dereferenceable(64) %2, i32 noundef %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca %"class.spirv_cross::Bitset", align 8
  %7 = alloca i32, align 4
  %8 = tail call noundef zeroext i1 @_ZNK11spirv_cross8Compiler19is_physical_pointerERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 8 dereferenceable(336) %1)
  br i1 %8, label %9, label %27

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %1, i64 124
  %11 = load i8, ptr %10, align 4, !tbaa !5, !range !37, !noundef !38
  %12 = trunc nuw i8 %11 to i1
  br i1 %12, label %18, label %13

13:                                               ; preds = %9
  %14 = tail call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN11spirv_cross13CompilerErrorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull @.str.255)
          to label %15 unwind label %16

15:                                               ; preds = %13
  tail call void @__cxa_throw(ptr nonnull %14, ptr nonnull @_ZTIN11spirv_cross13CompilerErrorE, ptr nonnull @_ZNSt13runtime_errorD2Ev) #8
  unreachable

16:                                               ; preds = %13
  %17 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %14) #7
  br label %156

18:                                               ; preds = %9
  %19 = getelementptr inbounds i8, ptr %0, i64 1756
  %20 = load i32, ptr %19, align 4, !tbaa !39
  %21 = icmp eq i32 %20, 5348
  br i1 %21, label %155, label %22

22:                                               ; preds = %18
  %23 = tail call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN11spirv_cross13CompilerErrorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull @.str.256)
          to label %24 unwind label %25

24:                                               ; preds = %22
  tail call void @__cxa_throw(ptr nonnull %23, ptr nonnull @_ZTIN11spirv_cross13CompilerErrorE, ptr nonnull @_ZNSt13runtime_errorD2Ev) #8
  unreachable

25:                                               ; preds = %22
  %26 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %23) #7
  br label %156

27:                                               ; preds = %4
  %28 = tail call noundef zeroext i1 @_ZNK11spirv_cross8Compiler8is_arrayERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 8 dereferenceable(336) %1)
  br i1 %28, label %29, label %43

29:                                               ; preds = %27
  %30 = tail call noundef i32 @_ZNK11spirv_cross12CompilerGLSL21to_array_size_literalERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(336) %1)
  %31 = tail call noundef i32 @_ZN11spirv_cross12CompilerGLSL27type_to_packed_array_strideERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(336) %1, ptr noundef nonnull align 8 dereferenceable(64) %2, i32 noundef %3)
  %32 = mul i32 %31, %30
  %33 = tail call noundef zeroext i1 @_ZL15packing_is_hlslN11spirv_cross21BufferPackingStandardE(i32 noundef %3)
  %34 = getelementptr inbounds i8, ptr %1, i64 16
  %35 = load i32, ptr %34, align 8
  %.not = icmp ne i32 %35, 15
  %or.cond.not = select i1 %33, i1 %.not, i1 false
  br i1 %or.cond.not, label %36, label %155

36:                                               ; preds = %29
  %37 = getelementptr inbounds i8, ptr %1, i64 24
  %38 = load i32, ptr %37, align 8, !tbaa !97
  %.neg85 = add i32 %38, -4
  %39 = getelementptr inbounds i8, ptr %1, i64 20
  %40 = load i32, ptr %39, align 4, !tbaa !98
  %41 = lshr i32 %40, 3
  %.neg86 = mul i32 %41, %.neg85
  %42 = add i32 %.neg86, %32
  br label %155

43:                                               ; preds = %27
  %44 = getelementptr inbounds i8, ptr %1, i64 16
  %45 = load i32, ptr %44, align 8, !tbaa !99
  %46 = icmp eq i32 %45, 15
  br i1 %46, label %47, label %89

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 1, ptr %5, align 4, !tbaa !100
  %48 = getelementptr inbounds i8, ptr %1, i64 136
  %49 = tail call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %48) #7
  %.not102 = icmp eq i64 %49, 0
  br i1 %.not102, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %47
  %50 = getelementptr inbounds i8, ptr %0, i64 256
  %51 = getelementptr inbounds i8, ptr %1, i64 8
  br label %52

._crit_edge:                                      ; preds = %77, %47
  %.075.lcssa = phi i32 [ 0, %47 ], [ %82, %77 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %155

52:                                               ; preds = %.lr.ph, %77
  %53 = phi i64 [ 0, %.lr.ph ], [ %84, %77 ]
  %.074101 = phi i32 [ 0, %.lr.ph ], [ %83, %77 ]
  %.075100 = phi i32 [ 0, %.lr.ph ], [ %82, %77 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #7
  %54 = call noundef nonnull align 8 dereferenceable(488) ptr @_ZNSt13unordered_mapIN11spirv_cross7TypedIDILNS0_5TypesE0EEENS0_4MetaESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S4_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(56) %50, ptr noundef nonnull align 4 dereferenceable(4) %51)
  %55 = getelementptr inbounds i8, ptr %54, i64 392
  %56 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross10VectorViewINS_4Meta10DecorationEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %55, i64 noundef %53) #7
  %57 = getelementptr inbounds i8, ptr %56, i64 128
  call void @_ZN11spirv_cross6BitsetC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %6, ptr noundef nonnull align 8 dereferenceable(64) %57)
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %48, i64 noundef %53) #7
  %59 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %58)
  %60 = invoke noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %59)
          to label %61 unwind label %71

61:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %62 = invoke noundef i32 @_ZN11spirv_cross12CompilerGLSL24type_to_packed_alignmentERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(336) %60, ptr noundef nonnull align 8 dereferenceable(64) %6, i32 noundef %3)
          to label %63 unwind label %73

63:                                               ; preds = %61
  store i32 %62, ptr %7, align 4, !tbaa !100
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %65 = load i32, ptr %64, align 4, !tbaa !100
  %66 = getelementptr inbounds i8, ptr %60, i64 16
  %67 = load i32, ptr %66, align 8, !tbaa !99
  %68 = icmp eq i32 %67, 15
  %69 = load i32, ptr %7, align 4
  %storemerge = select i1 %68, i32 %69, i32 1
  store i32 %storemerge, ptr %5, align 4, !tbaa !100
  %70 = invoke noundef i32 @_ZN11spirv_cross12CompilerGLSL19type_to_packed_sizeERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(336) %60, ptr noundef nonnull align 8 dereferenceable(64) %6, i32 noundef %3)
          to label %77 unwind label %75

71:                                               ; preds = %52
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %88

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

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

77:                                               ; preds = %63
  %78 = add i32 %.075100, -1
  %79 = add i32 %78, %65
  %80 = sub i32 0, %65
  %81 = and i32 %79, %80
  %82 = add i32 %70, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @_ZN11spirv_cross6BitsetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #7
  %83 = add i32 %.074101, 1
  %84 = zext i32 %83 to i64
  %85 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %48) #7
  %86 = icmp ugt i64 %85, %84
  br i1 %86, label %52, label %._crit_edge, !llvm.loop !101

87:                                               ; preds = %75, %73
  %.pn = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  br label %88

88:                                               ; preds = %87, %71
  %.pn.pn = phi { ptr, i32 } [ %.pn, %87 ], [ %72, %71 ]
  call void @_ZN11spirv_cross6BitsetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %156

89:                                               ; preds = %43
  %90 = tail call noundef i32 @_ZN11spirv_cross12CompilerGLSL24type_to_packed_base_sizeERKNS_8SPIRTypeENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(336) %1, i32 noundef %3)
  %91 = tail call noundef zeroext i1 @_ZL17packing_is_scalarN11spirv_cross21BufferPackingStandardE(i32 noundef %3)
  br i1 %91, label %92, label %99

92:                                               ; preds = %89
  %93 = getelementptr inbounds i8, ptr %1, i64 24
  %94 = load i32, ptr %93, align 8, !tbaa !97
  %95 = getelementptr inbounds i8, ptr %1, i64 28
  %96 = load i32, ptr %95, align 4, !tbaa !103
  %97 = mul i32 %94, %90
  %98 = mul i32 %97, %96
  br label %155

99:                                               ; preds = %89
  %100 = getelementptr inbounds i8, ptr %1, i64 28
  %101 = load i32, ptr %100, align 4, !tbaa !103
  %102 = icmp eq i32 %101, 1
  %103 = getelementptr inbounds i8, ptr %1, i64 24
  %104 = load i32, ptr %103, align 8
  %105 = mul i32 %104, %90
  %.176 = select i1 %102, i32 %105, i32 0
  %106 = tail call noundef zeroext i1 @_ZNK11spirv_cross6Bitset3getEj(ptr noundef nonnull align 8 dereferenceable(64) %2, i32 noundef 5)
  %107 = load i32, ptr %100, align 4
  %108 = icmp ugt i32 %107, 1
  %or.cond92 = select i1 %106, i1 %108, i1 false
  br i1 %or.cond92, label %109, label %125

109:                                              ; preds = %99
  %110 = tail call noundef zeroext i1 @_ZL22packing_is_vec4_paddedN11spirv_cross21BufferPackingStandardE(i32 noundef %3)
  br i1 %110, label %111, label %115

111:                                              ; preds = %109
  %112 = load i32, ptr %100, align 4, !tbaa !103
  %113 = shl i32 %90, 2
  %114 = mul i32 %113, %112
  br label %125

115:                                              ; preds = %109
  %116 = load i32, ptr %103, align 8, !tbaa !97
  %117 = icmp eq i32 %116, 3
  %118 = load i32, ptr %100, align 4, !tbaa !103
  br i1 %117, label %119, label %122

119:                                              ; preds = %115
  %120 = shl i32 %90, 2
  %121 = mul i32 %120, %118
  br label %125

122:                                              ; preds = %115
  %123 = mul i32 %116, %90
  %124 = mul i32 %123, %118
  br label %125

125:                                              ; preds = %111, %122, %119, %99
  %.277 = phi i32 [ %114, %111 ], [ %121, %119 ], [ %124, %122 ], [ %.176, %99 ]
  %126 = tail call noundef zeroext i1 @_ZNK11spirv_cross6Bitset3getEj(ptr noundef nonnull align 8 dereferenceable(64) %2, i32 noundef 4)
  %127 = load i32, ptr %103, align 8
  %128 = icmp ugt i32 %127, 1
  %or.cond96 = select i1 %126, i1 %128, i1 false
  br i1 %or.cond96, label %129, label %145

129:                                              ; preds = %125
  %130 = tail call noundef zeroext i1 @_ZL22packing_is_vec4_paddedN11spirv_cross21BufferPackingStandardE(i32 noundef %3)
  br i1 %130, label %131, label %135

131:                                              ; preds = %129
  %132 = load i32, ptr %103, align 8, !tbaa !97
  %133 = shl i32 %90, 2
  %134 = mul i32 %133, %132
  br label %145

135:                                              ; preds = %129
  %136 = load i32, ptr %100, align 4, !tbaa !103
  %137 = icmp eq i32 %136, 3
  %138 = load i32, ptr %103, align 8, !tbaa !97
  br i1 %137, label %139, label %142

139:                                              ; preds = %135
  %140 = shl i32 %90, 2
  %141 = mul i32 %140, %138
  br label %145

142:                                              ; preds = %135
  %143 = mul i32 %136, %90
  %144 = mul i32 %143, %138
  br label %145

145:                                              ; preds = %131, %142, %139, %125
  %.3 = phi i32 [ %134, %131 ], [ %141, %139 ], [ %144, %142 ], [ %.277, %125 ]
  %146 = tail call noundef zeroext i1 @_ZL15packing_is_hlslN11spirv_cross21BufferPackingStandardE(i32 noundef %3)
  %147 = load i32, ptr %100, align 4
  %148 = icmp ugt i32 %147, 1
  %or.cond94 = select i1 %146, i1 %148, i1 false
  br i1 %or.cond94, label %149, label %155

149:                                              ; preds = %145
  %150 = load i32, ptr %103, align 8, !tbaa !97
  %.neg = add i32 %150, -4
  %151 = getelementptr inbounds i8, ptr %1, i64 20
  %152 = load i32, ptr %151, align 4, !tbaa !98
  %153 = lshr i32 %152, 3
  %.neg82 = mul i32 %153, %.neg
  %154 = add i32 %.neg82, %.3
  br label %155

155:                                              ; preds = %._crit_edge, %145, %149, %92, %29, %36, %18
  %.0 = phi i32 [ 8, %18 ], [ %42, %36 ], [ %32, %29 ], [ %.075.lcssa, %._crit_edge ], [ %98, %92 ], [ %154, %149 ], [ %.3, %145 ]
  ret i32 %.0

156:                                              ; preds = %88, %25, %16
  %.pn87 = phi { ptr, i32 } [ %26, %25 ], [ %17, %16 ], [ %.pn.pn, %88 ]
  resume { ptr, i32 } %.pn87
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross12CompilerGLSL21to_array_size_literalERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #1 align 2

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

!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, !22, i64 124}
!6 = !{!"_ZTSN11spirv_cross8SPIRTypeE", !7, i64 0, !12, i64 12, !13, i64 16, !9, i64 20, !9, i64 24, !9, i64 28, !14, i64 32, !19, i64 88, !9, i64 120, !22, i64 124, !22, i64 125, !23, i64 128, !24, i64 136, !14, i64 192, !27, i64 248, !28, i64 272, !28, i64 276, !32, i64 280}
!7 = !{!"_ZTSN11spirv_cross8IVariantE", !8, i64 8}
!8 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN3spv2OpE", !10, i64 0}
!13 = !{!"_ZTSN11spirv_cross8SPIRType8BaseTypeE", !10, i64 0}
!14 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !15, i64 0, !17, i64 16, !18, i64 24}
!15 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !16, i64 0, !17, i64 8}
!16 = !{!"any pointer", !10, i64 0}
!17 = !{!"long", !10, i64 0}
!18 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !10, i64 0}
!19 = !{!"_ZTSN11spirv_cross11SmallVectorIbLm8EEE", !20, i64 0, !17, i64 16, !21, i64 24}
!20 = !{!"_ZTSN11spirv_cross10VectorViewIbEE", !16, i64 0, !17, i64 8}
!21 = !{!"_ZTSN11spirv_cross13AlignedBufferIbLm8EEE", !10, i64 0}
!22 = !{!"bool", !10, i64 0}
!23 = !{!"_ZTSN3spv12StorageClassE", !10, i64 0}
!24 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EEE", !25, i64 0, !17, i64 16, !26, i64 24}
!25 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEE", !16, i64 0, !17, i64 8}
!26 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE1EEELm8EEE", !10, i64 0}
!27 = !{!"_ZTSN11spirv_cross8SPIRType9ImageTypeE", !28, i64 0, !29, i64 4, !22, i64 8, !22, i64 9, !22, i64 10, !9, i64 12, !30, i64 16, !31, i64 20}
!28 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !9, i64 0}
!29 = !{!"_ZTSN3spv3DimE", !10, i64 0}
!30 = !{!"_ZTSN3spv11ImageFormatE", !10, i64 0}
!31 = !{!"_ZTSN3spv15AccessQualifierE", !10, i64 0}
!32 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !33, i64 0}
!33 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE", !16, i64 0, !17, i64 8, !34, i64 16, !17, i64 24, !35, i64 32, !16, i64 48}
!34 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !16, i64 0}
!35 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !36, i64 0, !17, i64 8}
!36 = !{!"float", !10, i64 0}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = !{!40, !77, i64 1756}
!40 = !{!"_ZTSN11spirv_cross8CompilerE", !41, i64 8, !14, i64 1928, !14, i64 1984, !16, i64 2040, !16, i64 2048, !9, i64 2056, !84, i64 2064, !22, i64 2120, !82, i64 2128, !22, i64 2184, !22, i64 2185, !86, i64 2192, !14, i64 2312, !89, i64 2368, !82, i64 2400, !82, i64 2456, !82, i64 2512, !82, i64 2568, !82, i64 2624, !81, i64 2680, !81, i64 2744, !9, i64 2808, !9, i64 2812, !22, i64 2816, !82, i64 2824, !22, i64 2880, !22, i64 2881, !9, i64 2884, !91, i64 2888, !14, i64 2944, !93, i64 3000, !82, i64 3056, !22, i64 3112, !95, i64 3120}
!41 = !{!"_ZTSN11spirv_cross8ParsedIRE", !42, i64 0, !48, i64 8, !52, i64 32, !55, i64 248, !10, i64 304, !57, i64 1088, !57, i64 1144, !60, i64 1200, !62, i64 1256, !65, i64 1312, !68, i64 1592, !71, i64 1624, !73, i64 1680, !75, i64 1736, !76, i64 1740, !77, i64 1748, !78, i64 1752, !9, i64 1756, !9, i64 1760, !79, i64 1768, !81, i64 1800, !82, i64 1864}
!42 = !{!"_ZTSSt10unique_ptrIN11spirv_cross15ObjectPoolGroupESt14default_deleteIS1_EE", !43, i64 0}
!43 = !{!"_ZTSSt15__uniq_ptr_dataIN11spirv_cross15ObjectPoolGroupESt14default_deleteIS1_ELb1ELb1EE", !44, i64 0}
!44 = !{!"_ZTSSt15__uniq_ptr_implIN11spirv_cross15ObjectPoolGroupESt14default_deleteIS1_EE", !45, i64 0}
!45 = !{!"_ZTSSt5tupleIJPN11spirv_cross15ObjectPoolGroupESt14default_deleteIS1_EEE", !46, i64 0}
!46 = !{!"_ZTSSt11_Tuple_implILm0EJPN11spirv_cross15ObjectPoolGroupESt14default_deleteIS1_EEE", !47, i64 0}
!47 = !{!"_ZTSSt10_Head_baseILm0EPN11spirv_cross15ObjectPoolGroupELb0EE", !16, i64 0}
!48 = !{!"_ZTSSt6vectorIjSaIjEE", !49, i64 0}
!49 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!52 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7VariantELm8EEE", !53, i64 0, !17, i64 16, !54, i64 24}
!53 = !{!"_ZTSN11spirv_cross10VectorViewINS_7VariantEEE", !16, i64 0, !17, i64 8}
!54 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7VariantELm8EEE", !10, i64 0}
!55 = !{!"_ZTSSt13unordered_mapIN11spirv_cross7TypedIDILNS0_5TypesE0EEENS0_4MetaESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S4_EEE", !56, i64 0}
!56 = !{!"_ZTSSt10_HashtableIN11spirv_cross7TypedIDILNS0_5TypesE0EEESt4pairIKS3_NS0_4MetaEESaIS7_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb1ELb0ELb1EEEE", !16, i64 0, !17, i64 8, !34, i64 16, !17, i64 24, !35, i64 32, !16, i64 48}
!57 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !58, i64 0, !17, i64 16, !59, i64 24}
!58 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !16, i64 0, !17, i64 8}
!59 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !10, i64 0}
!60 = !{!"_ZTSSt13unordered_mapIN11spirv_cross7TypedIDILNS0_5TypesE0EEEjSt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_jEEE", !61, i64 0}
!61 = !{!"_ZTSSt10_HashtableIN11spirv_cross7TypedIDILNS0_5TypesE0EEESt4pairIKS3_jESaIS6_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb1ELb0ELb1EEEE", !16, i64 0, !17, i64 8, !34, i64 16, !17, i64 24, !35, i64 32, !16, i64 48}
!62 = !{!"_ZTSN11spirv_cross11SmallVectorIN3spv10CapabilityELm8EEE", !63, i64 0, !17, i64 16, !64, i64 24}
!63 = !{!"_ZTSN11spirv_cross10VectorViewIN3spv10CapabilityEEE", !16, i64 0, !17, i64 8}
!64 = !{!"_ZTSN11spirv_cross13AlignedBufferIN3spv10CapabilityELm8EEE", !10, i64 0}
!65 = !{!"_ZTSN11spirv_cross11SmallVectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm8EEE", !66, i64 0, !17, i64 16, !67, i64 24}
!66 = !{!"_ZTSN11spirv_cross10VectorViewINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !16, i64 0, !17, i64 8}
!67 = !{!"_ZTSN11spirv_cross13AlignedBufferINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm8EEE", !10, i64 0}
!68 = !{!"_ZTSN11spirv_cross11SmallVectorIhLm8EEE", !69, i64 0, !17, i64 16, !70, i64 24}
!69 = !{!"_ZTSN11spirv_cross10VectorViewIhEE", !16, i64 0, !17, i64 8}
!70 = !{!"_ZTSN11spirv_cross13AlignedBufferIhLm8EEE", !10, i64 0}
!71 = !{!"_ZTSSt13unordered_mapIN11spirv_cross7TypedIDILNS0_5TypesE6EEES3_St4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S3_EEE", !72, i64 0}
!72 = !{!"_ZTSSt10_HashtableIN11spirv_cross7TypedIDILNS0_5TypesE6EEESt4pairIKS3_S3_ESaIS6_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb1ELb0ELb1EEEE", !16, i64 0, !17, i64 8, !34, i64 16, !17, i64 24, !35, i64 32, !16, i64 48}
!73 = !{!"_ZTSSt13unordered_mapIN11spirv_cross7TypedIDILNS0_5TypesE4EEENS0_14SPIREntryPointESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S4_EEE", !74, i64 0}
!74 = !{!"_ZTSSt10_HashtableIN11spirv_cross7TypedIDILNS0_5TypesE4EEESt4pairIKS3_NS0_14SPIREntryPointEESaIS7_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb1ELb0ELb1EEEE", !16, i64 0, !17, i64 8, !34, i64 16, !17, i64 24, !35, i64 32, !16, i64 48}
!75 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE4EEE", !9, i64 0}
!76 = !{!"_ZTSN11spirv_cross8ParsedIR6SourceE", !9, i64 0, !22, i64 4, !22, i64 5, !22, i64 6}
!77 = !{!"_ZTSN3spv15AddressingModelE", !10, i64 0}
!78 = !{!"_ZTSN3spv11MemoryModelE", !10, i64 0}
!79 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !80, i64 0, !17, i64 8, !10, i64 16}
!80 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !16, i64 0}
!81 = !{!"_ZTSN11spirv_cross6BitsetE", !17, i64 0, !82, i64 8}
!82 = !{!"_ZTSSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE", !83, i64 0}
!83 = !{!"_ZTSSt10_HashtableIjjSaIjENSt8__detail9_IdentityESt8equal_toIjESt4hashIjENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !16, i64 0, !17, i64 8, !34, i64 16, !17, i64 24, !35, i64 32, !16, i64 48}
!84 = !{!"_ZTSSt13unordered_setIN11spirv_cross7TypedIDILNS0_5TypesE2EEESt4hashIS3_ESt8equal_toIS3_ESaIS3_EE", !85, i64 0}
!85 = !{!"_ZTSSt10_HashtableIN11spirv_cross7TypedIDILNS0_5TypesE2EEES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb1ELb1ELb1EEEE", !16, i64 0, !17, i64 8, !34, i64 16, !17, i64 24, !35, i64 32, !16, i64 48}
!86 = !{!"_ZTSN11spirv_cross11SmallVectorINS_20CombinedImageSamplerELm8EEE", !87, i64 0, !17, i64 16, !88, i64 24}
!87 = !{!"_ZTSN11spirv_cross10VectorViewINS_20CombinedImageSamplerEEE", !16, i64 0, !17, i64 8}
!88 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_20CombinedImageSamplerELm8EEE", !10, i64 0}
!89 = !{!"_ZTSSt8functionIFvRKN11spirv_cross8SPIRTypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS9_EE", !90, i64 0, !16, i64 24}
!90 = !{!"_ZTSSt14_Function_base", !10, i64 0, !16, i64 16}
!91 = !{!"_ZTSSt13unordered_mapIjSt10unique_ptrIN11spirv_cross3CFGESt14default_deleteIS2_EESt4hashIjESt8equal_toIjESaISt4pairIKjS5_EEE", !92, i64 0}
!92 = !{!"_ZTSSt10_HashtableIjSt4pairIKjSt10unique_ptrIN11spirv_cross3CFGESt14default_deleteIS4_EEESaIS8_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE", !16, i64 0, !17, i64 8, !34, i64 16, !17, i64 24, !35, i64 32, !16, i64 48}
!93 = !{!"_ZTSSt13unordered_mapIjN11spirv_cross8Compiler17PhysicalBlockMetaESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEE", !94, i64 0}
!94 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN11spirv_cross8Compiler17PhysicalBlockMetaEESaIS5_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !16, i64 0, !17, i64 8, !34, i64 16, !17, i64 24, !35, i64 32, !16, i64 48}
!95 = !{!"_ZTSSt13unordered_mapIjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIjESt8equal_toIjESaISt4pairIKjS5_EEE", !96, i64 0}
!96 = !{!"_ZTSSt10_HashtableIjSt4pairIKjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESaIS8_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE", !16, i64 0, !17, i64 8, !34, i64 16, !17, i64 24, !35, i64 32, !16, i64 48}
!97 = !{!6, !9, i64 24}
!98 = !{!6, !9, i64 20}
!99 = !{!6, !13, i64 16}
!100 = !{!9, !9, i64 0}
!101 = distinct !{!101, !102}
!102 = !{!"llvm.loop.mustprogress"}
!103 = !{!6, !9, i64 28}


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