; 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::TypedID.280" = type { i32 }
%"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::IVariant" = type <{ ptr, %"class.spirv_cross::TypedID.280", [4 x i8] }>
%"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::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::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 }

; 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 i32 @__gxx_personality_v0(...)

; 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)) #2 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler14has_decorationENS_7TypedIDILNS_5TypesE0EEEN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176), i32, i32 noundef) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; 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) #2 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_cross8Compiler8is_arrayERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336)) #5

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

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

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

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

; 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
declare dso_local noundef i32 @_ZN11spirv_cross12CompilerGLSL19type_to_packed_sizeERKNS_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 zeroext i1 @_ZN11spirv_cross12CompilerGLSL26buffer_is_packing_standardERKNS_8SPIRTypeENS_21BufferPackingStandardEPjjj(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(336) %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca %"class.spirv_cross::TypedID.280", align 4
  %18 = alloca %"class.spirv_cross::TypedID.280", align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.spirv_cross::TypedID.280", align 4
  %24 = alloca %"class.spirv_cross::Bitset", align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i8, align 1
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !11
  store i32 %5, ptr %13, align 4, !tbaa !11
  %37 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 1, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #8
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %38, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 8 %39, i64 4, i1 false), !tbaa.struct !13
  %40 = getelementptr inbounds %"class.spirv_cross::TypedID.280", ptr %17, i32 0, i32 0
  %41 = load i32, ptr %40, align 4
  %42 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler14has_decorationENS_7TypedIDILNS_5TypesE0EEEN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176) %37, i32 %41, i32 noundef 2)
  br i1 %42, label %49, label %43

43:                                               ; preds = %6
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %44, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %45, i64 4, i1 false), !tbaa.struct !13
  %46 = getelementptr inbounds %"class.spirv_cross::TypedID.280", ptr %18, i32 0, i32 0
  %47 = load i32, ptr %46, align 4
  %48 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler14has_decorationENS_7TypedIDILNS_5TypesE0EEEN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176) %37, i32 %47, i32 noundef 3)
  br label %49

49:                                               ; preds = %43, %6
  %50 = phi i1 [ true, %6 ], [ %48, %43 ]
  %51 = zext i1 %50 to i8
  store i8 %51, ptr %16, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %52

52:                                               ; preds = %299, %49
  %53 = load i32, ptr %19, align 4, !tbaa !11
  %54 = zext i32 %53 to i64
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %55, i32 0, i32 12
  %57 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %56) #8
  %58 = icmp ult i64 %54, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %52
  store i32 2, ptr %20, align 4
  br label %306

60:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %61, i32 0, i32 12
  %63 = load i32, ptr %19, align 4, !tbaa !11
  %64 = zext i32 %63 to i64
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %62, i64 noundef %64) #8
  %66 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %65)
  %67 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %37, i32 noundef %66)
  store ptr %67, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %68 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %37, i32 0, i32 1
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %69, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %70, i64 4, i1 false), !tbaa.struct !13
  %71 = getelementptr inbounds %"class.spirv_cross::TypedID.280", ptr %23, i32 0, i32 0
  %72 = load i32, ptr %71, align 4
  %73 = call noundef ptr @_ZN11spirv_cross8ParsedIR9find_metaENS_7TypedIDILNS_5TypesE0EEE(ptr noundef nonnull align 8 dereferenceable(1920) %68, i32 %72)
  store ptr %73, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #8
  %74 = load ptr, ptr %22, align 8, !tbaa !5
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %83

76:                                               ; preds = %60
  %77 = load ptr, ptr %22, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.spirv_cross::Meta", ptr %77, i32 0, i32 1
  %79 = load i32, ptr %19, align 4, !tbaa !11
  %80 = zext i32 %79 to i64
  %81 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross10VectorViewINS_4Meta10DecorationEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %78, i64 noundef %80) #8
  %82 = getelementptr inbounds %"struct.spirv_cross::Meta::Decoration", ptr %81, i32 0, i32 4
  call void @_ZN11spirv_cross6BitsetC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %24, ptr noundef nonnull align 8 dereferenceable(64) %82)
  br label %84

83:                                               ; preds = %60
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 64, i1 false)
  call void @_ZN11spirv_cross6BitsetC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %24) #8
  br label %84

84:                                               ; preds = %83, %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %85 = load ptr, ptr %21, align 8, !tbaa !5
  %86 = load i32, ptr %10, align 4, !tbaa !9
  %87 = invoke noundef i32 @_ZN11spirv_cross12CompilerGLSL24type_to_packed_alignmentERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848) %37, ptr noundef nonnull align 8 dereferenceable(336) %85, ptr noundef nonnull align 8 dereferenceable(64) %24, i32 noundef %86)
          to label %88 unwind label %118

88:                                               ; preds = %84
  store i32 %87, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #8
  %89 = load i8, ptr %16, align 1, !tbaa !14, !range !16, !noundef !17
  %90 = trunc i8 %89 to i1
  br i1 %90, label %91, label %104

91:                                               ; preds = %88
  %92 = load i32, ptr %19, align 4, !tbaa !11
  %93 = add i32 %92, 1
  %94 = zext i32 %93 to i64
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %95, i32 0, i32 12
  %97 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %96) #8
  %98 = icmp eq i64 %94, %97
  br i1 %98, label %99, label %104

99:                                               ; preds = %91
  %100 = load ptr, ptr %21, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %100, i32 0, i32 6
  %102 = call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewIjE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %101) #8
  %103 = xor i1 %102, true
  br label %104

104:                                              ; preds = %99, %91, %88
  %105 = phi i1 [ false, %91 ], [ false, %88 ], [ %103, %99 ]
  %106 = zext i1 %105 to i8
  store i8 %106, ptr %28, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !11
  %107 = load i8, ptr %28, align 1, !tbaa !14, !range !16, !noundef !17
  %108 = trunc i8 %107 to i1
  br i1 %108, label %109, label %113

109:                                              ; preds = %104
  %110 = load i32, ptr %10, align 4, !tbaa !9
  %111 = invoke noundef zeroext i1 @_ZL15packing_is_hlslN11spirv_cross21BufferPackingStandardE(i32 noundef %110)
          to label %112 unwind label %122

112:                                              ; preds = %109
  br i1 %111, label %113, label %126

113:                                              ; preds = %112, %104
  %114 = load ptr, ptr %21, align 8, !tbaa !5
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = invoke noundef i32 @_ZN11spirv_cross12CompilerGLSL19type_to_packed_sizeERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848) %37, ptr noundef nonnull align 8 dereferenceable(336) %114, ptr noundef nonnull align 8 dereferenceable(64) %24, i32 noundef %115)
          to label %117 unwind label %122

117:                                              ; preds = %113
  store i32 %116, ptr %29, align 4, !tbaa !11
  br label %126

118:                                              ; preds = %84
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %26, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %27, align 4
  br label %305

122:                                              ; preds = %113, %109
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %26, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %27, align 4
  br label %304

126:                                              ; preds = %117, %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = load i32, ptr %19, align 4, !tbaa !11
  %129 = invoke noundef i32 @_ZNK11spirv_cross8Compiler25type_struct_member_offsetERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176) %37, ptr noundef nonnull align 8 dereferenceable(336) %127, i32 noundef %128)
          to label %130 unwind label %140

130:                                              ; preds = %126
  store i32 %129, ptr %30, align 4, !tbaa !11
  %131 = load i32, ptr %10, align 4, !tbaa !9
  %132 = invoke noundef zeroext i1 @_ZL15packing_is_hlslN11spirv_cross21BufferPackingStandardE(i32 noundef %131)
          to label %133 unwind label %140

133:                                              ; preds = %130
  br i1 %132, label %134, label %171

134:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %135 = load i32, ptr %10, align 4, !tbaa !9
  %136 = invoke noundef zeroext i1 @_ZL27packing_has_flexible_offsetN11spirv_cross21BufferPackingStandardE(i32 noundef %135)
          to label %137 unwind label %144

137:                                              ; preds = %134
  br i1 %136, label %138, label %148

138:                                              ; preds = %137
  %139 = load i32, ptr %30, align 4, !tbaa !11
  store i32 %139, ptr %31, align 4, !tbaa !11
  br label %150

140:                                              ; preds = %130, %126
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %26, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %27, align 4
  br label %303

144:                                              ; preds = %134
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %26, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %27, align 4
  br label %170

148:                                              ; preds = %137
  %149 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %149, ptr %31, align 4, !tbaa !11
  br label %150

150:                                              ; preds = %148, %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %151 = load i32, ptr %31, align 4, !tbaa !11
  %152 = udiv i32 %151, 16
  store i32 %152, ptr %32, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %153 = load i32, ptr %31, align 4, !tbaa !11
  %154 = load i32, ptr %29, align 4, !tbaa !11
  %155 = add i32 %153, %154
  %156 = sub i32 %155, 1
  %157 = udiv i32 %156, 16
  store i32 %157, ptr %33, align 4, !tbaa !11
  %158 = load i32, ptr %32, align 4, !tbaa !11
  %159 = load i32, ptr %33, align 4, !tbaa !11
  %160 = icmp ne i32 %158, %159
  br i1 %160, label %161, label %169

161:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 16, ptr %34, align 4, !tbaa !11
  %162 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %163 unwind label %165

163:                                              ; preds = %161
  %164 = load i32, ptr %162, align 4, !tbaa !11
  store i32 %164, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %169

165:                                              ; preds = %161
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %26, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %170

169:                                              ; preds = %163, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %171

170:                                              ; preds = %165, %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %303

171:                                              ; preds = %169, %133
  %172 = load i32, ptr %30, align 4, !tbaa !11
  %173 = load i32, ptr %13, align 4, !tbaa !11
  %174 = icmp uge i32 %172, %173
  br i1 %174, label %175, label %176

175:                                              ; preds = %171
  store i32 2, ptr %20, align 4
  br label %296

176:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %177 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %178 unwind label %199

178:                                              ; preds = %176
  %179 = load i32, ptr %177, align 4, !tbaa !11
  store i32 %179, ptr %35, align 4, !tbaa !11
  %180 = load i32, ptr %14, align 4, !tbaa !11
  %181 = load i32, ptr %35, align 4, !tbaa !11
  %182 = add i32 %180, %181
  %183 = sub i32 %182, 1
  %184 = load i32, ptr %35, align 4, !tbaa !11
  %185 = sub i32 %184, 1
  %186 = xor i32 %185, -1
  %187 = and i32 %183, %186
  store i32 %187, ptr %14, align 4, !tbaa !11
  %188 = load ptr, ptr %21, align 8, !tbaa !5
  %189 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %188, i32 0, i32 2
  %190 = load i32, ptr %189, align 8, !tbaa !18
  %191 = icmp eq i32 %190, 15
  br i1 %191, label %192, label %203

192:                                              ; preds = %178
  %193 = load ptr, ptr %21, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %193, i32 0, i32 9
  %195 = load i8, ptr %194, align 4, !tbaa !45, !range !16, !noundef !17
  %196 = trunc i8 %195 to i1
  br i1 %196, label %203, label %197

197:                                              ; preds = %192
  %198 = load i32, ptr %25, align 4, !tbaa !11
  store i32 %198, ptr %15, align 4, !tbaa !11
  br label %204

199:                                              ; preds = %246, %242, %238, %208, %176
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %26, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %27, align 4
  br label %302

203:                                              ; preds = %192, %178
  store i32 1, ptr %15, align 4, !tbaa !11
  br label %204

204:                                              ; preds = %203, %197
  %205 = load i32, ptr %30, align 4, !tbaa !11
  %206 = load i32, ptr %12, align 4, !tbaa !11
  %207 = icmp uge i32 %205, %206
  br i1 %207, label %208, label %291

208:                                              ; preds = %204
  %209 = load i32, ptr %10, align 4, !tbaa !9
  %210 = invoke noundef zeroext i1 @_ZL27packing_has_flexible_offsetN11spirv_cross21BufferPackingStandardE(i32 noundef %209)
          to label %211 unwind label %199

211:                                              ; preds = %208
  br i1 %210, label %224, label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %30, align 4, !tbaa !11
  %214 = load i32, ptr %14, align 4, !tbaa !11
  %215 = icmp ne i32 %213, %214
  br i1 %215, label %216, label %223

216:                                              ; preds = %212
  %217 = load ptr, ptr %11, align 8, !tbaa !5
  %218 = icmp ne ptr %217, null
  br i1 %218, label %219, label %222

219:                                              ; preds = %216
  %220 = load i32, ptr %19, align 4, !tbaa !11
  %221 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %220, ptr %221, align 4, !tbaa !11
  br label %222

222:                                              ; preds = %219, %216
  store i1 false, ptr %7, align 1
  store i32 1, ptr %20, align 4
  br label %295

223:                                              ; preds = %212
  br label %238

224:                                              ; preds = %211
  %225 = load i32, ptr %30, align 4, !tbaa !11
  %226 = load i32, ptr %35, align 4, !tbaa !11
  %227 = sub i32 %226, 1
  %228 = and i32 %225, %227
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %237

230:                                              ; preds = %224
  %231 = load ptr, ptr %11, align 8, !tbaa !5
  %232 = icmp ne ptr %231, null
  br i1 %232, label %233, label %236

233:                                              ; preds = %230
  %234 = load i32, ptr %19, align 4, !tbaa !11
  %235 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %234, ptr %235, align 4, !tbaa !11
  br label %236

236:                                              ; preds = %233, %230
  store i1 false, ptr %7, align 1
  store i32 1, ptr %20, align 4
  br label %295

237:                                              ; preds = %224
  br label %238

238:                                              ; preds = %237, %223
  %239 = load ptr, ptr %21, align 8, !tbaa !5
  %240 = invoke noundef zeroext i1 @_ZNK11spirv_cross8Compiler8is_arrayERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %37, ptr noundef nonnull align 8 dereferenceable(336) %239)
          to label %241 unwind label %199

241:                                              ; preds = %238
  br i1 %240, label %242, label %259

242:                                              ; preds = %241
  %243 = load ptr, ptr %21, align 8, !tbaa !5
  %244 = load i32, ptr %10, align 4, !tbaa !9
  %245 = invoke noundef i32 @_ZN11spirv_cross12CompilerGLSL27type_to_packed_array_strideERKNS_8SPIRTypeERKNS_6BitsetENS_21BufferPackingStandardE(ptr noundef nonnull align 8 dereferenceable(9848) %37, ptr noundef nonnull align 8 dereferenceable(336) %243, ptr noundef nonnull align 8 dereferenceable(64) %24, i32 noundef %244)
          to label %246 unwind label %199

246:                                              ; preds = %242
  %247 = load ptr, ptr %9, align 8, !tbaa !5
  %248 = load i32, ptr %19, align 4, !tbaa !11
  %249 = invoke noundef i32 @_ZNK11spirv_cross8Compiler31type_struct_member_array_strideERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176) %37, ptr noundef nonnull align 8 dereferenceable(336) %247, i32 noundef %248)
          to label %250 unwind label %199

250:                                              ; preds = %246
  %251 = icmp ne i32 %245, %249
  br i1 %251, label %252, label %259

252:                                              ; preds = %250
  %253 = load ptr, ptr %11, align 8, !tbaa !5
  %254 = icmp ne ptr %253, null
  br i1 %254, label %255, label %258

255:                                              ; preds = %252
  %256 = load i32, ptr %19, align 4, !tbaa !11
  %257 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %256, ptr %257, align 4, !tbaa !11
  br label %258

258:                                              ; preds = %255, %252
  store i1 false, ptr %7, align 1
  store i32 1, ptr %20, align 4
  br label %295

259:                                              ; preds = %250, %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %260 = load i32, ptr %10, align 4, !tbaa !9
  %261 = invoke noundef i32 @_ZL28packing_to_substruct_packingN11spirv_cross21BufferPackingStandardE(i32 noundef %260)
          to label %262 unwind label %282

262:                                              ; preds = %259
  store i32 %261, ptr %36, align 4, !tbaa !9
  %263 = load ptr, ptr %21, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %263, i32 0, i32 9
  %265 = load i8, ptr %264, align 4, !tbaa !45, !range !16, !noundef !17
  %266 = trunc i8 %265 to i1
  br i1 %266, label %287, label %267

267:                                              ; preds = %262
  %268 = load ptr, ptr %21, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %268, i32 0, i32 12
  %270 = call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %269) #8
  br i1 %270, label %287, label %271

271:                                              ; preds = %267
  %272 = load ptr, ptr %21, align 8, !tbaa !5
  %273 = load i32, ptr %36, align 4, !tbaa !9
  %274 = invoke noundef zeroext i1 @_ZN11spirv_cross12CompilerGLSL26buffer_is_packing_standardERKNS_8SPIRTypeENS_21BufferPackingStandardEPjjj(ptr noundef nonnull align 8 dereferenceable(9848) %37, ptr noundef nonnull align 8 dereferenceable(336) %272, i32 noundef %273, ptr noundef null, i32 noundef 0, i32 noundef -1)
          to label %275 unwind label %282

275:                                              ; preds = %271
  br i1 %274, label %287, label %276

276:                                              ; preds = %275
  %277 = load ptr, ptr %11, align 8, !tbaa !5
  %278 = icmp ne ptr %277, null
  br i1 %278, label %279, label %286

279:                                              ; preds = %276
  %280 = load i32, ptr %19, align 4, !tbaa !11
  %281 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %280, ptr %281, align 4, !tbaa !11
  br label %286

282:                                              ; preds = %271, %259
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %26, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %302

286:                                              ; preds = %279, %276
  store i1 false, ptr %7, align 1
  store i32 1, ptr %20, align 4
  br label %288

287:                                              ; preds = %275, %267, %262
  store i32 0, ptr %20, align 4
  br label %288

288:                                              ; preds = %287, %286
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  %289 = load i32, ptr %20, align 4
  switch i32 %289, label %295 [
    i32 0, label %290
  ]

290:                                              ; preds = %288
  br label %291

291:                                              ; preds = %290, %204
  %292 = load i32, ptr %30, align 4, !tbaa !11
  %293 = load i32, ptr %29, align 4, !tbaa !11
  %294 = add i32 %292, %293
  store i32 %294, ptr %14, align 4, !tbaa !11
  store i32 0, ptr %20, align 4
  br label %295

295:                                              ; preds = %291, %288, %258, %236, %222
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %296

296:                                              ; preds = %295, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @_ZN11spirv_cross6BitsetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %24) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  %297 = load i32, ptr %20, align 4
  switch i32 %297, label %306 [
    i32 0, label %298
  ]

298:                                              ; preds = %296
  br label %299

299:                                              ; preds = %298
  %300 = load i32, ptr %19, align 4, !tbaa !11
  %301 = add i32 %300, 1
  store i32 %301, ptr %19, align 4, !tbaa !11
  br label %52, !llvm.loop !46

302:                                              ; preds = %282, %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %303

303:                                              ; preds = %302, %170, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %304

304:                                              ; preds = %303, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  br label %305

305:                                              ; preds = %304, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @_ZN11spirv_cross6BitsetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %24) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %311

306:                                              ; preds = %296, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  %307 = load i32, ptr %20, align 4
  switch i32 %307, label %309 [
    i32 2, label %308
  ]

308:                                              ; preds = %306
  store i1 true, ptr %7, align 1
  store i32 1, ptr %20, align 4
  br label %309

309:                                              ; preds = %308, %306
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  %310 = load i1, ptr %7, align 1
  ret i1 %310

311:                                              ; preds = %305
  %312 = load ptr, ptr %26, align 8
  %313 = load i32, ptr %27, align 4
  %314 = insertvalue { ptr, i32 } poison, ptr %312, 0
  %315 = insertvalue { ptr, i32 } %314, i32 %313, 1
  resume { ptr, i32 } %315
}

declare noundef ptr @_ZN11spirv_cross8ParsedIR9find_metaENS_7TypedIDILNS_5TypesE0EEE(ptr noundef nonnull align 8 dereferenceable(1920), i32) #5

declare noundef i32 @_ZNK11spirv_cross8Compiler25type_struct_member_offsetERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336), i32 noundef) #5

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

declare noundef i32 @_ZNK11spirv_cross8Compiler31type_struct_member_array_strideERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336), i32 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL28packing_to_substruct_packingN11spirv_cross21BufferPackingStandardE(i32 noundef) #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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN11spirv_cross21BufferPackingStandardE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 4, !11}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !23, i64 16}
!19 = !{!"_ZTSN11spirv_cross8SPIRTypeE", !20, i64 0, !22, i64 12, !23, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !24, i64 32, !28, i64 88, !12, i64 120, !15, i64 124, !15, i64 125, !31, i64 128, !32, i64 136, !24, i64 192, !35, i64 248, !36, i64 272, !36, i64 276, !40, i64 280}
!20 = !{!"_ZTSN11spirv_cross8IVariantE", !21, i64 8}
!21 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !12, i64 0}
!22 = !{!"_ZTSN3spv2OpE", !7, i64 0}
!23 = !{!"_ZTSN11spirv_cross8SPIRType8BaseTypeE", !7, i64 0}
!24 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !25, i64 0, !26, i64 16, !27, i64 24}
!25 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !6, i64 0, !26, i64 8}
!26 = !{!"long", !7, i64 0}
!27 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!28 = !{!"_ZTSN11spirv_cross11SmallVectorIbLm8EEE", !29, i64 0, !26, i64 16, !30, i64 24}
!29 = !{!"_ZTSN11spirv_cross10VectorViewIbEE", !6, i64 0, !26, i64 8}
!30 = !{!"_ZTSN11spirv_cross13AlignedBufferIbLm8EEE", !7, i64 0}
!31 = !{!"_ZTSN3spv12StorageClassE", !7, i64 0}
!32 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EEE", !33, i64 0, !26, i64 16, !34, i64 24}
!33 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEE", !6, i64 0, !26, i64 8}
!34 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE1EEELm8EEE", !7, i64 0}
!35 = !{!"_ZTSN11spirv_cross8SPIRType9ImageTypeE", !36, i64 0, !37, i64 4, !15, i64 8, !15, i64 9, !15, i64 10, !12, i64 12, !38, i64 16, !39, i64 20}
!36 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !12, i64 0}
!37 = !{!"_ZTSN3spv3DimE", !7, i64 0}
!38 = !{!"_ZTSN3spv11ImageFormatE", !7, i64 0}
!39 = !{!"_ZTSN3spv15AccessQualifierE", !7, i64 0}
!40 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !41, i64 0}
!41 = !{!"_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, !26, i64 8, !42, i64 16, !26, i64 24, !43, i64 32, !6, i64 48}
!42 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!43 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !44, i64 0, !26, i64 8}
!44 = !{!"float", !7, i64 0}
!45 = !{!19, !15, i64 124}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}


; 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 }

; 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 i32 @__gxx_personality_v0(...)

; 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 #2 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler14has_decorationENS_7TypedIDILNS_5TypesE0EEEN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176), i32, i32 noundef) local_unnamed_addr #5

; 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 #2 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_cross8Compiler8is_arrayERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #5

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

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

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

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

; 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
declare dso_local noundef i32 @_ZN11spirv_cross12CompilerGLSL19type_to_packed_sizeERKNS_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 zeroext i1 @_ZN11spirv_cross12CompilerGLSL26buffer_is_packing_standardERKNS_8SPIRTypeENS_21BufferPackingStandardEPjjj(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(336) %1, i32 noundef %2, ptr noundef writeonly %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca i32, align 4
  %8 = alloca %"class.spirv_cross::Bitset", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  store i32 1, ptr %7, align 4, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %.sroa.047.0.copyload = load i32, ptr %11, align 8, !tbaa !5
  %12 = tail call noundef zeroext i1 @_ZNK11spirv_cross8Compiler14has_decorationENS_7TypedIDILNS_5TypesE0EEEN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 %.sroa.047.0.copyload, i32 noundef 2)
  br i1 %12, label %15, label %13

13:                                               ; preds = %6
  %.sroa.046.0.copyload = load i32, ptr %11, align 8, !tbaa !5
  %14 = tail call noundef zeroext i1 @_ZNK11spirv_cross8Compiler14has_decorationENS_7TypedIDILNS_5TypesE0EEEN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 %.sroa.046.0.copyload, i32 noundef 3)
  br label %15

15:                                               ; preds = %13, %6
  %16 = phi i1 [ true, %6 ], [ %14, %13 ]
  %17 = getelementptr inbounds i8, ptr %1, i64 136
  %18 = tail call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  %.not144 = icmp eq i64 %18, 0
  br i1 %.not144, label %.loopexit, label %.lr.ph

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

20:                                               ; preds = %.lr.ph, %109
  %21 = phi i64 [ 0, %.lr.ph ], [ %112, %109 ]
  %.080143 = phi i32 [ 0, %.lr.ph ], [ %110, %109 ]
  %.083142 = phi i32 [ 0, %.lr.ph ], [ %111, %109 ]
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %21) #7
  %23 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %22)
  %24 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %23)
  %.sroa.0.0.copyload = load i32, ptr %11, align 8, !tbaa !5
  %25 = call noundef ptr @_ZN11spirv_cross8ParsedIR9find_metaENS_7TypedIDILNS_5TypesE0EEE(ptr noundef nonnull align 8 dereferenceable(1920) %19, i32 %.sroa.0.0.copyload)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #7
  %.not = icmp eq ptr %25, null
  br i1 %.not, label %30, label %26

26:                                               ; preds = %20
  %27 = getelementptr inbounds i8, ptr %25, i64 392
  %28 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross10VectorViewINS_4Meta10DecorationEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %27, i64 noundef %21) #7
  %29 = getelementptr inbounds i8, ptr %28, i64 128
  call void @_ZN11spirv_cross6BitsetC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %8, ptr noundef nonnull align 8 dereferenceable(64) %29)
  br label %31

30:                                               ; preds = %20
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @_ZN11spirv_cross6BitsetC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %8) #7
  br label %31

31:                                               ; preds = %30, %26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %32 = 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) %24, ptr noundef nonnull align 8 dereferenceable(64) %8, i32 noundef %2)
          to label %33 unwind label %45

33:                                               ; preds = %31
  store i32 %32, ptr %9, align 4, !tbaa !5
  br i1 %16, label %34, label %.critedge

34:                                               ; preds = %33
  %35 = add i32 %.083142, 1
  %36 = zext i32 %35 to i64
  %37 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  %38 = icmp eq i64 %37, %36
  br i1 %38, label %39, label %.critedge

39:                                               ; preds = %34
  %40 = getelementptr inbounds i8, ptr %24, i64 32
  %41 = call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewIjE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %40) #7
  br i1 %41, label %.critedge, label %42

42:                                               ; preds = %39
  %43 = call noundef zeroext i1 @_ZL15packing_is_hlslN11spirv_cross21BufferPackingStandardE(i32 noundef %2)
  br i1 %43, label %.critedge, label %49

.critedge:                                        ; preds = %34, %33, %42, %39
  %44 = 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) %24, ptr noundef nonnull align 8 dereferenceable(64) %8, i32 noundef %2)
          to label %49 unwind label %47

45:                                               ; preds = %31
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %115

47:                                               ; preds = %.critedge
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %115

49:                                               ; preds = %.critedge, %42
  %.093 = phi i32 [ 0, %42 ], [ %44, %.critedge ]
  %50 = invoke noundef i32 @_ZNK11spirv_cross8Compiler25type_struct_member_offsetERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 8 dereferenceable(336) %1, i32 noundef %.083142)
          to label %51 unwind label %57

51:                                               ; preds = %49
  %52 = call noundef zeroext i1 @_ZL15packing_is_hlslN11spirv_cross21BufferPackingStandardE(i32 noundef %2)
  br i1 %52, label %53, label %62

53:                                               ; preds = %51
  %54 = call noundef zeroext i1 @_ZL27packing_has_flexible_offsetN11spirv_cross21BufferPackingStandardE(i32 noundef %2)
  %..080 = select i1 %54, i32 %50, i32 %.080143
  %55 = add i32 %.093, -1
  %56 = add i32 %55, %..080
  %.not106.unshifted = xor i32 %56, %..080
  %.not106 = icmp ult i32 %.not106.unshifted, 16
  br i1 %.not106, label %62, label %59

57:                                               ; preds = %49
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %115

59:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  store i32 16, ptr %10, align 4, !tbaa !5
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %61 = load i32, ptr %60, align 4, !tbaa !5
  store i32 %61, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br label %62

62:                                               ; preds = %53, %59, %51
  %.not107.not = icmp uge i32 %50, %5
  br i1 %.not107.not, label %.critedge121.thread, label %63

63:                                               ; preds = %62
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = add i32 %.080143, -1
  %67 = add i32 %66, %65
  %68 = add i32 %65, -1
  %69 = sub i32 0, %65
  %70 = and i32 %67, %69
  %71 = getelementptr inbounds i8, ptr %24, i64 16
  %72 = load i32, ptr %71, align 8, !tbaa !9
  %73 = icmp eq i32 %72, 15
  %74 = getelementptr inbounds i8, ptr %24, i64 124
  %75 = load i8, ptr %74, align 4, !range !38
  %76 = trunc nuw i8 %75 to i1
  %77 = load i32, ptr %9, align 4
  %spec.select = select i1 %76, i32 1, i32 %77
  %storemerge = select i1 %73, i32 %spec.select, i32 1
  store i32 %storemerge, ptr %7, align 4, !tbaa !5
  %.not108 = icmp ult i32 %50, %4
  br i1 %.not108, label %109, label %80

78:                                               ; preds = %92, %90, %87
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %115

80:                                               ; preds = %63
  %81 = call noundef zeroext i1 @_ZL27packing_has_flexible_offsetN11spirv_cross21BufferPackingStandardE(i32 noundef %2)
  br i1 %81, label %84, label %82

82:                                               ; preds = %80
  %.not109 = icmp eq i32 %50, %70
  br i1 %.not109, label %87, label %83

83:                                               ; preds = %82
  %.not110 = icmp eq ptr %3, null
  br i1 %.not110, label %.critedge121.thread, label %.critedge121.thread.sink.split

84:                                               ; preds = %80
  %85 = and i32 %68, %50
  %.not111 = icmp eq i32 %85, 0
  br i1 %.not111, label %87, label %86

86:                                               ; preds = %84
  %.not119 = icmp eq ptr %3, null
  br i1 %.not119, label %.critedge121.thread, label %.critedge121.thread.sink.split

87:                                               ; preds = %84, %82
  %88 = invoke noundef zeroext i1 @_ZNK11spirv_cross8Compiler8is_arrayERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 8 dereferenceable(336) %24)
          to label %89 unwind label %78

89:                                               ; preds = %87
  br i1 %88, label %90, label %96

90:                                               ; preds = %89
  %91 = invoke 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) %24, ptr noundef nonnull align 8 dereferenceable(64) %8, i32 noundef %2)
          to label %92 unwind label %78

92:                                               ; preds = %90
  %93 = invoke noundef i32 @_ZNK11spirv_cross8Compiler31type_struct_member_array_strideERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 8 dereferenceable(336) %1, i32 noundef %.083142)
          to label %94 unwind label %78

94:                                               ; preds = %92
  %.not112 = icmp eq i32 %91, %93
  br i1 %.not112, label %96, label %95

95:                                               ; preds = %94
  %.not118 = icmp eq ptr %3, null
  br i1 %.not118, label %.critedge121.thread, label %.critedge121.thread.sink.split

96:                                               ; preds = %94, %89
  %97 = call noundef i32 @_ZL28packing_to_substruct_packingN11spirv_cross21BufferPackingStandardE(i32 noundef %2)
  %98 = load i8, ptr %74, align 4, !tbaa !39, !range !38, !noundef !40
  %99 = trunc nuw i8 %98 to i1
  br i1 %99, label %109, label %100

100:                                              ; preds = %96
  %101 = getelementptr inbounds i8, ptr %24, i64 136
  %102 = call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %101) #7
  br i1 %102, label %109, label %103

103:                                              ; preds = %100
  %104 = invoke noundef zeroext i1 @_ZN11spirv_cross12CompilerGLSL26buffer_is_packing_standardERKNS_8SPIRTypeENS_21BufferPackingStandardEPjjj(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(336) %24, i32 noundef %97, ptr noundef null, i32 noundef 0, i32 noundef -1)
          to label %105 unwind label %107

105:                                              ; preds = %103
  br i1 %104, label %109, label %106

106:                                              ; preds = %105
  %.not117 = icmp eq ptr %3, null
  br i1 %.not117, label %.critedge121.thread, label %.critedge121.thread.sink.split

107:                                              ; preds = %103
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %115

.critedge121.thread.sink.split:                   ; preds = %106, %95, %86, %83
  store i32 %.083142, ptr %3, align 4, !tbaa !5
  br label %.critedge121.thread

.critedge121.thread:                              ; preds = %62, %.critedge121.thread.sink.split, %83, %86, %95, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @_ZN11spirv_cross6BitsetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %8) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #7
  br label %.loopexit

109:                                              ; preds = %105, %100, %96, %63
  %110 = add i32 %50, %.093
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @_ZN11spirv_cross6BitsetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %8) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #7
  %111 = add i32 %.083142, 1
  %112 = zext i32 %111 to i64
  %113 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  %114 = icmp ugt i64 %113, %112
  br i1 %114, label %20, label %.loopexit, !llvm.loop !41

115:                                              ; preds = %47, %78, %107, %57, %45
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %46, %45 ], [ %48, %47 ], [ %58, %57 ], [ %108, %107 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @_ZN11spirv_cross6BitsetD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %8) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  resume { ptr, i32 } %.pn.pn.pn.pn

.loopexit:                                        ; preds = %109, %15, %.critedge121.thread
  %.387 = phi i1 [ %.not107.not, %.critedge121.thread ], [ true, %15 ], [ true, %109 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  ret i1 %.387
}

declare noundef ptr @_ZN11spirv_cross8ParsedIR9find_metaENS_7TypedIDILNS_5TypesE0EEE(ptr noundef nonnull align 8 dereferenceable(1920), i32) local_unnamed_addr #5

declare noundef i32 @_ZNK11spirv_cross8Compiler25type_struct_member_offsetERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336), i32 noundef) local_unnamed_addr #5

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

declare noundef i32 @_ZNK11spirv_cross8Compiler31type_struct_member_array_strideERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336), i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL28packing_to_substruct_packingN11spirv_cross21BufferPackingStandardE(i32 noundef) local_unnamed_addr #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 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 16}
!10 = !{!"_ZTSN11spirv_cross8SPIRTypeE", !11, i64 0, !13, i64 12, !14, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !15, i64 32, !20, i64 88, !6, i64 120, !23, i64 124, !23, i64 125, !24, i64 128, !25, i64 136, !15, i64 192, !28, i64 248, !29, i64 272, !29, i64 276, !33, i64 280}
!11 = !{!"_ZTSN11spirv_cross8IVariantE", !12, i64 8}
!12 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !6, i64 0}
!13 = !{!"_ZTSN3spv2OpE", !7, i64 0}
!14 = !{!"_ZTSN11spirv_cross8SPIRType8BaseTypeE", !7, i64 0}
!15 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !16, i64 0, !18, i64 16, !19, i64 24}
!16 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !17, i64 0, !18, i64 8}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!20 = !{!"_ZTSN11spirv_cross11SmallVectorIbLm8EEE", !21, i64 0, !18, i64 16, !22, i64 24}
!21 = !{!"_ZTSN11spirv_cross10VectorViewIbEE", !17, i64 0, !18, i64 8}
!22 = !{!"_ZTSN11spirv_cross13AlignedBufferIbLm8EEE", !7, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{!"_ZTSN3spv12StorageClassE", !7, i64 0}
!25 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EEE", !26, i64 0, !18, i64 16, !27, i64 24}
!26 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEE", !17, i64 0, !18, i64 8}
!27 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE1EEELm8EEE", !7, i64 0}
!28 = !{!"_ZTSN11spirv_cross8SPIRType9ImageTypeE", !29, i64 0, !30, i64 4, !23, i64 8, !23, i64 9, !23, i64 10, !6, i64 12, !31, i64 16, !32, i64 20}
!29 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !6, i64 0}
!30 = !{!"_ZTSN3spv3DimE", !7, i64 0}
!31 = !{!"_ZTSN3spv11ImageFormatE", !7, i64 0}
!32 = !{!"_ZTSN3spv15AccessQualifierE", !7, i64 0}
!33 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !34, i64 0}
!34 = !{!"_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", !17, i64 0, !18, i64 8, !35, i64 16, !18, i64 24, !36, i64 32, !17, i64 48}
!35 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !17, i64 0}
!36 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !37, i64 0, !18, i64 8}
!37 = !{!"float", !7, i64 0}
!38 = !{i8 0, i8 2}
!39 = !{!10, !23, i64 124}
!40 = !{}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}


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