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

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

%"struct.spirv_cross::Compiler::ActiveBuiltinHandler" = type { %"struct.spirv_cross::Compiler::OpcodeHandler", ptr }
%"struct.spirv_cross::Compiler::OpcodeHandler" = type { ptr }
%"struct.spirv_cross::SPIRVariable" = type { %"struct.spirv_cross::IVariant.base", %"class.spirv_cross::TypedID.163", i32, i32, %"class.spirv_cross::TypedID.162", %"class.spirv_cross::TypedID.164", %"class.spirv_cross::SmallVector.92", i8, i8, %"class.spirv_cross::TypedID.162", %"class.spirv_cross::SmallVector.7", i8, i8, i8, i8, i32, %"class.spirv_cross::TypedID.165", i8, i8, i8, ptr }
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.162" }>
%"class.spirv_cross::TypedID.163" = type { i32 }
%"class.spirv_cross::TypedID.164" = type { i32 }
%"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] }
%"class.spirv_cross::TypedID.162" = type { i32 }
%"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.spirv_cross::TypedID.165" = type { i32 }
%"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 }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"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.spirv_cross::Bitset" = type { i64, %"class.std::unordered_set" }
%"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_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 }
%"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::SPIRType" = type { %"struct.spirv_cross::IVariant.base", i32, i32, i32, i32, i32, %"class.spirv_cross::SmallVector.92", %"class.spirv_cross::SmallVector.166", i32, i8, i8, i32, %"class.spirv_cross::SmallVector.169", %"class.spirv_cross::SmallVector.92", %"struct.spirv_cross::SPIRType::ImageType", %"class.spirv_cross::TypedID.163", %"class.spirv_cross::TypedID.163", %"class.std::unordered_set.172" }
%"class.spirv_cross::SmallVector.166" = type { %"class.spirv_cross::VectorView.167", i64, %"class.spirv_cross::AlignedBuffer.168" }
%"class.spirv_cross::VectorView.167" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.168" = type { [8 x i8] }
%"class.spirv_cross::SmallVector.169" = type { %"class.spirv_cross::VectorView.170", i64, %"class.spirv_cross::AlignedBuffer.171" }
%"class.spirv_cross::VectorView.170" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.171" = type { [32 x i8] }
%"struct.spirv_cross::SPIRType::ImageType" = type { %"class.spirv_cross::TypedID.163", i32, i8, i8, i8, i32, i32, i32 }
%"class.std::unordered_set.172" = type { %"class.std::_Hashtable.173" }
%"class.std::_Hashtable.173" = 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.162", [4 x i8] }>
%"struct.spirv_cross::Meta" = type { %"struct.spirv_cross::Meta::Decoration", %"class.spirv_cross::SmallVector.192", %"class.std::unordered_map.194", 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.192" = type <{ %"class.spirv_cross::VectorView.193", i64, [8 x i8] }>
%"class.spirv_cross::VectorView.193" = type { ptr, i64 }
%"class.std::unordered_map.194" = type { %"class.std::_Hashtable.195" }
%"class.std::_Hashtable.195" = 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

; 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: 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 uwtable
declare dso_local noundef ptr @_ZN11spirv_cross8Compiler9maybe_getINS_12SPIRVariableEEEPT_j(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) #1 align 2

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

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

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

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

; 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: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRConstantEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler6handleEN3spv2OpEPKjj(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !11
  %22 = load ptr, ptr %6, align 8
  %23 = load i32, ptr %7, align 4, !tbaa !9
  switch i32 %23, label %255 [
    i32 62, label %24
    i32 63, label %32
    i32 83, label %43
    i32 61, label %43
    i32 169, label %51
    i32 245, label %62
    i32 57, label %86
    i32 65, label %110
    i32 66, label %110
    i32 67, label %110
  ]

24:                                               ; preds = %4
  %25 = load i32, ptr %9, align 4, !tbaa !11
  %26 = icmp ult i32 %25, 1
  br i1 %26, label %27, label %28

27:                                               ; preds = %24
  store i1 false, ptr %5, align 1
  br label %257

28:                                               ; preds = %24
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds i32, ptr %29, i64 0
  %31 = load i32, ptr %30, align 4, !tbaa !11
  call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef %31)
  br label %256

32:                                               ; preds = %4
  %33 = load i32, ptr %9, align 4, !tbaa !11
  %34 = icmp ult i32 %33, 2
  br i1 %34, label %35, label %36

35:                                               ; preds = %32
  store i1 false, ptr %5, align 1
  br label %257

36:                                               ; preds = %32
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds i32, ptr %37, i64 0
  %39 = load i32, ptr %38, align 4, !tbaa !11
  call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef %39)
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds i32, ptr %40, i64 1
  %42 = load i32, ptr %41, align 4, !tbaa !11
  call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef %42)
  br label %256

43:                                               ; preds = %4, %4
  %44 = load i32, ptr %9, align 4, !tbaa !11
  %45 = icmp ult i32 %44, 3
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  store i1 false, ptr %5, align 1
  br label %257

47:                                               ; preds = %43
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds i32, ptr %48, i64 2
  %50 = load i32, ptr %49, align 4, !tbaa !11
  call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef %50)
  br label %256

51:                                               ; preds = %4
  %52 = load i32, ptr %9, align 4, !tbaa !11
  %53 = icmp ult i32 %52, 5
  br i1 %53, label %54, label %55

54:                                               ; preds = %51
  store i1 false, ptr %5, align 1
  br label %257

55:                                               ; preds = %51
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds i32, ptr %56, i64 3
  %58 = load i32, ptr %57, align 4, !tbaa !11
  call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef %58)
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds i32, ptr %59, i64 4
  %61 = load i32, ptr %60, align 4, !tbaa !11
  call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef %61)
  br label %256

62:                                               ; preds = %4
  %63 = load i32, ptr %9, align 4, !tbaa !11
  %64 = icmp ult i32 %63, 2
  br i1 %64, label %65, label %66

65:                                               ; preds = %62
  store i1 false, ptr %5, align 1
  br label %257

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %67 = load i32, ptr %9, align 4, !tbaa !11
  %68 = sub i32 %67, 2
  store i32 %68, ptr %10, align 4, !tbaa !11
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds i32, ptr %69, i64 2
  store ptr %70, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %71

71:                                               ; preds = %82, %66
  %72 = load i32, ptr %11, align 4, !tbaa !11
  %73 = load i32, ptr %10, align 4, !tbaa !11
  %74 = icmp ult i32 %72, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %85

76:                                               ; preds = %71
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = load i32, ptr %11, align 4, !tbaa !11
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds i32, ptr %77, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !11
  call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef %81)
  br label %82

82:                                               ; preds = %76
  %83 = load i32, ptr %11, align 4, !tbaa !11
  %84 = add i32 %83, 2
  store i32 %84, ptr %11, align 4, !tbaa !11
  br label %71, !llvm.loop !13

85:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %256

86:                                               ; preds = %4
  %87 = load i32, ptr %9, align 4, !tbaa !11
  %88 = icmp ult i32 %87, 3
  br i1 %88, label %89, label %90

89:                                               ; preds = %86
  store i1 false, ptr %5, align 1
  br label %257

90:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %91 = load i32, ptr %9, align 4, !tbaa !11
  %92 = sub i32 %91, 3
  store i32 %92, ptr %12, align 4, !tbaa !11
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds i32, ptr %93, i64 3
  store ptr %94, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %95

95:                                               ; preds = %106, %90
  %96 = load i32, ptr %13, align 4, !tbaa !11
  %97 = load i32, ptr %12, align 4, !tbaa !11
  %98 = icmp ult i32 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %109

100:                                              ; preds = %95
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = load i32, ptr %13, align 4, !tbaa !11
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds i32, ptr %101, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !11
  call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef %105)
  br label %106

106:                                              ; preds = %100
  %107 = load i32, ptr %13, align 4, !tbaa !11
  %108 = add i32 %107, 1
  store i32 %108, ptr %13, align 4, !tbaa !11
  br label %95, !llvm.loop !15

109:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %256

110:                                              ; preds = %4, %4, %4
  %111 = load i32, ptr %9, align 4, !tbaa !11
  %112 = icmp ult i32 %111, 4
  br i1 %112, label %113, label %114

113:                                              ; preds = %110
  store i1 false, ptr %5, align 1
  br label %257

114:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %115 = getelementptr inbounds %"struct.spirv_cross::Compiler::ActiveBuiltinHandler", ptr %22, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !16
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = getelementptr inbounds i32, ptr %117, i64 2
  %119 = load i32, ptr %118, align 4, !tbaa !11
  %120 = call noundef ptr @_ZN11spirv_cross8Compiler9maybe_getINS_12SPIRVariableEEEPT_j(ptr noundef nonnull align 8 dereferenceable(3176) %116, i32 noundef %119)
  store ptr %120, ptr %14, align 8, !tbaa !5
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = icmp ne ptr %121, null
  br i1 %122, label %124, label %123

123:                                              ; preds = %114
  store i32 2, ptr %15, align 4
  br label %254

124:                                              ; preds = %114
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = getelementptr inbounds i32, ptr %125, i64 2
  %127 = load i32, ptr %126, align 4, !tbaa !11
  call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef %127)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %128 = getelementptr inbounds %"struct.spirv_cross::Compiler::ActiveBuiltinHandler", ptr %22, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8, !tbaa !16
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler22get_variable_data_typeERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(3176) %129, ptr noundef nonnull align 8 dereferenceable(176) %130)
  store ptr %131, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %132, i32 0, i32 2
  %134 = load i32, ptr %133, align 8, !tbaa !19
  %135 = icmp eq i32 %134, 1
  br i1 %135, label %136, label %140

136:                                              ; preds = %124
  %137 = getelementptr inbounds %"struct.spirv_cross::Compiler::ActiveBuiltinHandler", ptr %22, i32 0, i32 1
  %138 = load ptr, ptr %137, align 8, !tbaa !16
  %139 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %138, i32 0, i32 20
  br label %144

140:                                              ; preds = %124
  %141 = getelementptr inbounds %"struct.spirv_cross::Compiler::ActiveBuiltinHandler", ptr %22, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8, !tbaa !16
  %143 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %142, i32 0, i32 21
  br label %144

144:                                              ; preds = %140, %136
  %145 = phi ptr [ %139, %136 ], [ %143, %140 ]
  store ptr %145, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %146 = load i32, ptr %9, align 4, !tbaa !11
  %147 = sub i32 %146, 3
  store i32 %147, ptr %18, align 4, !tbaa !11
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = getelementptr inbounds i32, ptr %148, i64 3
  store ptr %149, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %150

150:                                              ; preds = %249, %144
  %151 = load i32, ptr %19, align 4, !tbaa !11
  %152 = load i32, ptr %18, align 4, !tbaa !11
  %153 = icmp ult i32 %151, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %150
  store i32 9, ptr %15, align 4
  br label %252

155:                                              ; preds = %150
  %156 = load i32, ptr %7, align 4, !tbaa !9
  %157 = icmp eq i32 %156, 67
  br i1 %157, label %158, label %162

158:                                              ; preds = %155
  %159 = load i32, ptr %19, align 4, !tbaa !11
  %160 = icmp eq i32 %159, 0
  br i1 %160, label %161, label %162

161:                                              ; preds = %158
  br label %249

162:                                              ; preds = %158, %155
  %163 = load ptr, ptr %16, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %163, i32 0, i32 6
  %165 = call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewIjE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %164) #5
  br i1 %165, label %173, label %166

166:                                              ; preds = %162
  %167 = getelementptr inbounds %"struct.spirv_cross::Compiler::ActiveBuiltinHandler", ptr %22, i32 0, i32 1
  %168 = load ptr, ptr %167, align 8, !tbaa !16
  %169 = load ptr, ptr %16, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %169, i32 0, i32 16
  %171 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %170)
  %172 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %168, i32 noundef %171)
  store ptr %172, ptr %16, align 8, !tbaa !5
  br label %248

173:                                              ; preds = %162
  %174 = load ptr, ptr %16, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %174, i32 0, i32 2
  %176 = load i32, ptr %175, align 8, !tbaa !35
  %177 = icmp eq i32 %176, 15
  br i1 %177, label %178, label %246

178:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %179 = getelementptr inbounds %"struct.spirv_cross::Compiler::ActiveBuiltinHandler", ptr %22, i32 0, i32 1
  %180 = load ptr, ptr %179, align 8, !tbaa !16
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = load i32, ptr %19, align 4, !tbaa !11
  %183 = zext i32 %182 to i64
  %184 = getelementptr inbounds i32, ptr %181, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !11
  %186 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRConstantEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %180, i32 noundef %185)
  %187 = call noundef i32 @_ZNK11spirv_cross12SPIRConstant6scalarEjj(ptr noundef nonnull align 8 dereferenceable(360) %186, i32 noundef 0, i32 noundef 0)
  store i32 %187, ptr %20, align 4, !tbaa !11
  %188 = load i32, ptr %20, align 4, !tbaa !11
  %189 = getelementptr inbounds %"struct.spirv_cross::Compiler::ActiveBuiltinHandler", ptr %22, i32 0, i32 1
  %190 = load ptr, ptr %189, align 8, !tbaa !16
  %191 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %190, i32 0, i32 1
  %192 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %191, i32 0, i32 3
  %193 = load ptr, ptr %16, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %193, i32 0, i32 1
  %195 = 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) %192, ptr noundef nonnull align 4 dereferenceable(4) %194)
  %196 = getelementptr inbounds %"struct.spirv_cross::Meta", ptr %195, i32 0, i32 1
  %197 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_4Meta10DecorationEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %196) #5
  %198 = trunc i64 %197 to i32
  %199 = icmp ult i32 %188, %198
  br i1 %199, label %200, label %236

200:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %201 = getelementptr inbounds %"struct.spirv_cross::Compiler::ActiveBuiltinHandler", ptr %22, i32 0, i32 1
  %202 = load ptr, ptr %201, align 8, !tbaa !16
  %203 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %202, i32 0, i32 1
  %204 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %203, i32 0, i32 3
  %205 = load ptr, ptr %16, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %205, i32 0, i32 1
  %207 = 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) %204, ptr noundef nonnull align 4 dereferenceable(4) %206)
  %208 = getelementptr inbounds %"struct.spirv_cross::Meta", ptr %207, i32 0, i32 1
  %209 = load i32, ptr %20, align 4, !tbaa !11
  %210 = zext i32 %209 to i64
  %211 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross10VectorViewINS_4Meta10DecorationEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %208, i64 noundef %210) #5
  store ptr %211, ptr %21, align 8, !tbaa !5
  %212 = load ptr, ptr %21, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.spirv_cross::Meta::Decoration", ptr %212, i32 0, i32 20
  %214 = load i8, ptr %213, align 4, !tbaa !53, !range !63, !noundef !64
  %215 = trunc i8 %214 to i1
  br i1 %215, label %216, label %235

216:                                              ; preds = %200
  %217 = load ptr, ptr %17, align 8, !tbaa !5
  %218 = load ptr, ptr %21, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.spirv_cross::Meta::Decoration", ptr %218, i32 0, i32 5
  %220 = load i32, ptr %219, align 8, !tbaa !65
  call void @_ZN11spirv_cross6Bitset3setEj(ptr noundef nonnull align 8 dereferenceable(64) %217, i32 noundef %220)
  %221 = getelementptr inbounds %"struct.spirv_cross::Compiler::ActiveBuiltinHandler", ptr %22, i32 0, i32 1
  %222 = load ptr, ptr %221, align 8, !tbaa !16
  %223 = load ptr, ptr %16, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %223, i32 0, i32 12
  %225 = load i32, ptr %20, align 4, !tbaa !11
  %226 = zext i32 %225 to i64
  %227 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %224, i64 noundef %226) #5
  %228 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %227)
  %229 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %222, i32 noundef %228)
  %230 = load ptr, ptr %21, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.spirv_cross::Meta::Decoration", ptr %230, i32 0, i32 5
  %232 = load i32, ptr %231, align 8, !tbaa !65
  %233 = load ptr, ptr %21, align 8, !tbaa !5
  %234 = getelementptr inbounds %"struct.spirv_cross::Meta::Decoration", ptr %233, i32 0, i32 4
  call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14handle_builtinERKNS_8SPIRTypeEN3spv7BuiltInERKNS_6BitsetE(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(336) %229, i32 noundef %232, ptr noundef nonnull align 8 dereferenceable(64) %234)
  br label %235

235:                                              ; preds = %216, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %236

236:                                              ; preds = %235, %178
  %237 = getelementptr inbounds %"struct.spirv_cross::Compiler::ActiveBuiltinHandler", ptr %22, i32 0, i32 1
  %238 = load ptr, ptr %237, align 8, !tbaa !16
  %239 = load ptr, ptr %16, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %239, i32 0, i32 12
  %241 = load i32, ptr %20, align 4, !tbaa !11
  %242 = zext i32 %241 to i64
  %243 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %240, i64 noundef %242) #5
  %244 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %243)
  %245 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %238, i32 noundef %244)
  store ptr %245, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %247

246:                                              ; preds = %173
  store i32 9, ptr %15, align 4
  br label %252

247:                                              ; preds = %236
  br label %248

248:                                              ; preds = %247, %166
  br label %249

249:                                              ; preds = %248, %161
  %250 = load i32, ptr %19, align 4, !tbaa !11
  %251 = add i32 %250, 1
  store i32 %251, ptr %19, align 4, !tbaa !11
  br label %150, !llvm.loop !66

252:                                              ; preds = %246, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %253

253:                                              ; preds = %252
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %254

254:                                              ; preds = %253, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %256

255:                                              ; preds = %4
  br label %256

256:                                              ; preds = %255, %254, %109, %85, %55, %47, %36, %28
  store i1 true, ptr %5, align 1
  br label %257

257:                                              ; preds = %256, %113, %89, %65, %54, %46, %35, %27
  %258 = load i1, ptr %5, align 1
  ret i1 %258
}

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 = { 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 #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 = { 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 = !{!"_ZTSN3spv2OpE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !6, i64 8}
!17 = !{!"_ZTSN11spirv_cross8Compiler20ActiveBuiltinHandlerE", !18, i64 0, !6, i64 8}
!18 = !{!"_ZTSN11spirv_cross8Compiler13OpcodeHandlerE"}
!19 = !{!20, !24, i64 16}
!20 = !{!"_ZTSN11spirv_cross12SPIRVariableE", !21, i64 0, !23, i64 12, !24, i64 16, !12, i64 20, !22, i64 24, !25, i64 28, !26, i64 32, !30, i64 88, !30, i64 89, !22, i64 92, !31, i64 96, !30, i64 152, !30, i64 153, !30, i64 154, !30, i64 155, !12, i64 156, !34, i64 160, !30, i64 164, !30, i64 165, !30, i64 166, !6, i64 168}
!21 = !{!"_ZTSN11spirv_cross8IVariantE", !22, i64 8}
!22 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !12, i64 0}
!23 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !12, i64 0}
!24 = !{!"_ZTSN3spv12StorageClassE", !7, i64 0}
!25 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE2EEE", !12, i64 0}
!26 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !27, i64 0, !28, i64 16, !29, i64 24}
!27 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !6, i64 0, !28, i64 8}
!28 = !{!"long", !7, i64 0}
!29 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !32, i64 0, !28, i64 16, !33, i64 24}
!32 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !6, i64 0, !28, i64 8}
!33 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !7, i64 0}
!34 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !12, i64 0}
!35 = !{!36, !37, i64 16}
!36 = !{!"_ZTSN11spirv_cross8SPIRTypeE", !21, i64 0, !10, i64 12, !37, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !26, i64 32, !38, i64 88, !12, i64 120, !30, i64 124, !30, i64 125, !24, i64 128, !41, i64 136, !26, i64 192, !44, i64 248, !23, i64 272, !23, i64 276, !48, i64 280}
!37 = !{!"_ZTSN11spirv_cross8SPIRType8BaseTypeE", !7, i64 0}
!38 = !{!"_ZTSN11spirv_cross11SmallVectorIbLm8EEE", !39, i64 0, !28, i64 16, !40, i64 24}
!39 = !{!"_ZTSN11spirv_cross10VectorViewIbEE", !6, i64 0, !28, i64 8}
!40 = !{!"_ZTSN11spirv_cross13AlignedBufferIbLm8EEE", !7, i64 0}
!41 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EEE", !42, i64 0, !28, i64 16, !43, i64 24}
!42 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEE", !6, i64 0, !28, i64 8}
!43 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE1EEELm8EEE", !7, i64 0}
!44 = !{!"_ZTSN11spirv_cross8SPIRType9ImageTypeE", !23, i64 0, !45, i64 4, !30, i64 8, !30, i64 9, !30, i64 10, !12, i64 12, !46, i64 16, !47, i64 20}
!45 = !{!"_ZTSN3spv3DimE", !7, i64 0}
!46 = !{!"_ZTSN3spv11ImageFormatE", !7, i64 0}
!47 = !{!"_ZTSN3spv15AccessQualifierE", !7, i64 0}
!48 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !49, i64 0}
!49 = !{!"_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, !28, i64 8, !50, i64 16, !28, i64 24, !51, i64 32, !6, i64 48}
!50 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!51 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !52, i64 0, !28, i64 8}
!52 = !{!"float", !7, i64 0}
!53 = !{!54, !30, i64 252}
!54 = !{!"_ZTSN11spirv_cross4Meta10DecorationE", !55, i64 0, !55, i64 32, !55, i64 64, !55, i64 96, !57, i64 128, !60, i64 192, !12, i64 196, !12, i64 200, !12, i64 204, !12, i64 208, !12, i64 212, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !12, i64 232, !12, i64 236, !12, i64 240, !12, i64 244, !61, i64 248, !30, i64 252, !30, i64 253, !62, i64 256}
!55 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !56, i64 0, !28, i64 8, !7, i64 16}
!56 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!57 = !{!"_ZTSN11spirv_cross6BitsetE", !28, i64 0, !58, i64 8}
!58 = !{!"_ZTSSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE", !59, i64 0}
!59 = !{!"_ZTSSt10_HashtableIjjSaIjENSt8__detail9_IdentityESt8equal_toIjESt4hashIjENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !28, i64 8, !50, i64 16, !28, i64 24, !51, i64 32, !6, i64 48}
!60 = !{!"_ZTSN3spv7BuiltInE", !7, i64 0}
!61 = !{!"_ZTSN3spv14FPRoundingModeE", !7, i64 0}
!62 = !{!"_ZTSN11spirv_cross4Meta10Decoration8ExtendedE", !57, i64 0, !7, i64 64}
!63 = !{i8 0, i8 2}
!64 = !{}
!65 = !{!54, !60, i64 192}
!66 = distinct !{!66, !14}


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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler22get_variable_data_typeERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross12SPIRConstant6scalarEjj(ptr noundef nonnull align 8 dereferenceable(360), i32 noundef, i32 noundef) local_unnamed_addr #2 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 #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross6Bitset3setEj(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRConstantEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14handle_builtinERKNS_8SPIRTypeEN3spv7BuiltInERKNS_6BitsetE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(336), i32 noundef, ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler6handleEN3spv2OpEPKjj(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3) unnamed_addr #0 align 2 {
  switch i32 %1, label %.loopexit [
    i32 62, label %5
    i32 63, label %7
    i32 83, label %12
    i32 61, label %12
    i32 169, label %16
    i32 245, label %22
    i32 57, label %31
    i32 65, label %38
    i32 66, label %38
    i32 67, label %38
  ]

5:                                                ; preds = %4
  %6 = icmp eq i32 %3, 0
  br i1 %6, label %.loopexit, label %.loopexit.sink.split

7:                                                ; preds = %4
  %8 = icmp ult i32 %3, 2
  br i1 %8, label %.loopexit, label %9

9:                                                ; preds = %7
  %10 = load i32, ptr %2, align 4, !tbaa !5
  tail call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %10)
  %11 = getelementptr inbounds i8, ptr %2, i64 4
  br label %.loopexit.sink.split

12:                                               ; preds = %4, %4
  %13 = icmp ult i32 %3, 3
  br i1 %13, label %.loopexit, label %14

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %2, i64 8
  br label %.loopexit.sink.split

16:                                               ; preds = %4
  %17 = icmp ult i32 %3, 5
  br i1 %17, label %.loopexit, label %18

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %2, i64 12
  %20 = load i32, ptr %19, align 4, !tbaa !5
  tail call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %20)
  %21 = getelementptr inbounds i8, ptr %2, i64 16
  br label %.loopexit.sink.split

22:                                               ; preds = %4
  %23 = icmp ult i32 %3, 2
  br i1 %23, label %.loopexit, label %24

24:                                               ; preds = %22
  %25 = add i32 %3, -2
  %26 = getelementptr inbounds i8, ptr %2, i64 8
  %.not79 = icmp eq i32 %25, 0
  br i1 %.not79, label %.loopexit, label %.lr.ph76.preheader

.lr.ph76.preheader:                               ; preds = %24
  %27 = zext i32 %25 to i64
  br label %.lr.ph76

.lr.ph76:                                         ; preds = %.lr.ph76.preheader, %.lr.ph76
  %indvars.iv89 = phi i64 [ 0, %.lr.ph76.preheader ], [ %indvars.iv.next90, %.lr.ph76 ]
  %28 = getelementptr inbounds i32, ptr %26, i64 %indvars.iv89
  %29 = load i32, ptr %28, align 4, !tbaa !5
  tail call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %29)
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 2
  %30 = icmp ult i64 %indvars.iv.next90, %27
  br i1 %30, label %.lr.ph76, label %.loopexit, !llvm.loop !9

31:                                               ; preds = %4
  %32 = icmp ult i32 %3, 3
  br i1 %32, label %.loopexit, label %33

33:                                               ; preds = %31
  %34 = add i32 %3, -3
  %35 = getelementptr inbounds i8, ptr %2, i64 12
  %.not78 = icmp eq i32 %34, 0
  br i1 %.not78, label %.loopexit, label %.lr.ph74.preheader

.lr.ph74.preheader:                               ; preds = %33
  %wide.trip.count87 = zext i32 %34 to i64
  br label %.lr.ph74

.lr.ph74:                                         ; preds = %.lr.ph74.preheader, %.lr.ph74
  %indvars.iv84 = phi i64 [ 0, %.lr.ph74.preheader ], [ %indvars.iv.next85, %.lr.ph74 ]
  %36 = getelementptr inbounds i32, ptr %35, i64 %indvars.iv84
  %37 = load i32, ptr %36, align 4, !tbaa !5
  tail call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %37)
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %exitcond88.not = icmp eq i64 %indvars.iv.next85, %wide.trip.count87
  br i1 %exitcond88.not, label %.loopexit, label %.lr.ph74, !llvm.loop !11

38:                                               ; preds = %4, %4, %4
  %39 = icmp ult i32 %3, 4
  br i1 %39, label %.loopexit, label %40

40:                                               ; preds = %38
  %41 = getelementptr inbounds i8, ptr %0, i64 8
  %42 = load ptr, ptr %41, align 8, !tbaa !12
  %43 = getelementptr inbounds i8, ptr %2, i64 8
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = tail call noundef ptr @_ZN11spirv_cross8Compiler9maybe_getINS_12SPIRVariableEEEPT_j(ptr noundef nonnull align 8 dereferenceable(3176) %42, i32 noundef %44)
  %.not = icmp eq ptr %45, null
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %40
  %46 = load i32, ptr %43, align 4, !tbaa !5
  tail call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %46)
  %47 = load ptr, ptr %41, align 8, !tbaa !12
  %48 = tail call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler22get_variable_data_typeERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(3176) %47, ptr noundef nonnull align 8 dereferenceable(176) %45)
  %49 = getelementptr inbounds i8, ptr %45, i64 16
  %50 = load i32, ptr %49, align 8, !tbaa !16
  %51 = icmp eq i32 %50, 1
  %52 = load ptr, ptr %41, align 8
  %.v = select i1 %51, i64 2680, i64 2744
  %53 = getelementptr inbounds i8, ptr %52, i64 %.v
  %54 = add i32 %3, -3
  %55 = getelementptr inbounds i8, ptr %2, i64 12
  %56 = icmp eq i32 %1, 67
  %wide.trip.count = zext i32 %54 to i64
  br i1 %56, label %106, label %57

57:                                               ; preds = %.lr.ph
  %58 = getelementptr inbounds i8, ptr %48, i64 32
  %59 = tail call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewIjE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %58) #4
  br i1 %59, label %63, label %60

60:                                               ; preds = %57
  %61 = load ptr, ptr %41, align 8, !tbaa !12
  %62 = getelementptr inbounds i8, ptr %48, i64 276
  br label %.sink.split

63:                                               ; preds = %57
  %64 = getelementptr inbounds i8, ptr %48, i64 16
  %65 = load i32, ptr %64, align 8, !tbaa !32
  %66 = icmp eq i32 %65, 15
  br i1 %66, label %67, label %.loopexit

67:                                               ; preds = %63
  %68 = load ptr, ptr %41, align 8, !tbaa !12
  %69 = load i32, ptr %55, align 4, !tbaa !5
  %70 = tail call noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRConstantEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %68, i32 noundef %69)
  %71 = tail call noundef i32 @_ZNK11spirv_cross12SPIRConstant6scalarEjj(ptr noundef nonnull align 8 dereferenceable(360) %70, i32 noundef 0, i32 noundef 0)
  %72 = load ptr, ptr %41, align 8, !tbaa !12
  %73 = getelementptr inbounds i8, ptr %72, i64 256
  %74 = getelementptr inbounds i8, ptr %48, i64 8
  %75 = tail 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) %73, ptr noundef nonnull align 4 dereferenceable(4) %74)
  %76 = getelementptr inbounds i8, ptr %75, i64 392
  %77 = tail call noundef i64 @_ZNK11spirv_cross10VectorViewINS_4Meta10DecorationEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %76) #4
  %78 = trunc i64 %77 to i32
  %79 = icmp ult i32 %71, %78
  br i1 %79, label %80, label %._crit_edge92

._crit_edge92:                                    ; preds = %67
  %.pre94 = zext i32 %71 to i64
  br label %100

80:                                               ; preds = %67
  %81 = load ptr, ptr %41, align 8, !tbaa !12
  %82 = getelementptr inbounds i8, ptr %81, i64 256
  %83 = tail 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) %82, ptr noundef nonnull align 4 dereferenceable(4) %74)
  %84 = getelementptr inbounds i8, ptr %83, i64 392
  %85 = zext i32 %71 to i64
  %86 = tail call noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross10VectorViewINS_4Meta10DecorationEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %84, i64 noundef %85) #4
  %87 = getelementptr inbounds i8, ptr %86, i64 252
  %88 = load i8, ptr %87, align 4, !tbaa !51, !range !61, !noundef !62
  %89 = trunc nuw i8 %88 to i1
  br i1 %89, label %90, label %100

90:                                               ; preds = %80
  %91 = getelementptr inbounds i8, ptr %86, i64 192
  %92 = load i32, ptr %91, align 8, !tbaa !63
  tail call void @_ZN11spirv_cross6Bitset3setEj(ptr noundef nonnull align 8 dereferenceable(64) %53, i32 noundef %92)
  %93 = load ptr, ptr %41, align 8, !tbaa !12
  %94 = getelementptr inbounds i8, ptr %48, i64 136
  %95 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %94, i64 noundef %85) #4
  %96 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %95)
  %97 = tail call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %93, i32 noundef %96)
  %98 = load i32, ptr %91, align 8, !tbaa !63
  %99 = getelementptr inbounds i8, ptr %86, i64 128
  tail call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14handle_builtinERKNS_8SPIRTypeEN3spv7BuiltInERKNS_6BitsetE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(336) %97, i32 noundef %98, ptr noundef nonnull align 8 dereferenceable(64) %99)
  br label %100

100:                                              ; preds = %._crit_edge92, %90, %80
  %.pre-phi95 = phi i64 [ %.pre94, %._crit_edge92 ], [ %85, %90 ], [ %85, %80 ]
  %101 = load ptr, ptr %41, align 8, !tbaa !12
  %102 = getelementptr inbounds i8, ptr %48, i64 136
  %103 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %102, i64 noundef %.pre-phi95) #4
  br label %.sink.split

.sink.split:                                      ; preds = %60, %100
  %.sink99 = phi ptr [ %103, %100 ], [ %62, %60 ]
  %.sink = phi ptr [ %101, %100 ], [ %61, %60 ]
  %104 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %.sink99)
  %105 = tail call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %.sink, i32 noundef %104)
  br label %106

106:                                              ; preds = %.sink.split, %.lr.ph
  %.1.peel = phi ptr [ %48, %.lr.ph ], [ %105, %.sink.split ]
  %exitcond.peel.not = icmp eq i32 %54, 1
  br i1 %exitcond.peel.not, label %.loopexit, label %.peel.next

.peel.next:                                       ; preds = %106, %154
  %indvars.iv = phi i64 [ %indvars.iv.next, %154 ], [ 1, %106 ]
  %.06370 = phi ptr [ %156, %154 ], [ %.1.peel, %106 ]
  %107 = getelementptr inbounds i8, ptr %.06370, i64 32
  %108 = tail call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewIjE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %107) #4
  br i1 %108, label %112, label %109

109:                                              ; preds = %.peel.next
  %110 = load ptr, ptr %41, align 8, !tbaa !12
  %111 = getelementptr inbounds i8, ptr %.06370, i64 276
  br label %154

112:                                              ; preds = %.peel.next
  %113 = getelementptr inbounds i8, ptr %.06370, i64 16
  %114 = load i32, ptr %113, align 8, !tbaa !32
  %115 = icmp eq i32 %114, 15
  br i1 %115, label %116, label %.loopexit

116:                                              ; preds = %112
  %117 = load ptr, ptr %41, align 8, !tbaa !12
  %118 = getelementptr inbounds i32, ptr %55, i64 %indvars.iv
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = tail call noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRConstantEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %117, i32 noundef %119)
  %121 = tail call noundef i32 @_ZNK11spirv_cross12SPIRConstant6scalarEjj(ptr noundef nonnull align 8 dereferenceable(360) %120, i32 noundef 0, i32 noundef 0)
  %122 = load ptr, ptr %41, align 8, !tbaa !12
  %123 = getelementptr inbounds i8, ptr %122, i64 256
  %124 = getelementptr inbounds i8, ptr %.06370, i64 8
  %125 = tail 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) %123, ptr noundef nonnull align 4 dereferenceable(4) %124)
  %126 = getelementptr inbounds i8, ptr %125, i64 392
  %127 = tail call noundef i64 @_ZNK11spirv_cross10VectorViewINS_4Meta10DecorationEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %126) #4
  %128 = trunc i64 %127 to i32
  %129 = icmp ult i32 %121, %128
  br i1 %129, label %130, label %._crit_edge93

._crit_edge93:                                    ; preds = %116
  %.pre = zext i32 %121 to i64
  br label %150

130:                                              ; preds = %116
  %131 = load ptr, ptr %41, align 8, !tbaa !12
  %132 = getelementptr inbounds i8, ptr %131, i64 256
  %133 = tail 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) %132, ptr noundef nonnull align 4 dereferenceable(4) %124)
  %134 = getelementptr inbounds i8, ptr %133, i64 392
  %135 = zext i32 %121 to i64
  %136 = tail call noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross10VectorViewINS_4Meta10DecorationEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %134, i64 noundef %135) #4
  %137 = getelementptr inbounds i8, ptr %136, i64 252
  %138 = load i8, ptr %137, align 4, !tbaa !51, !range !61, !noundef !62
  %139 = trunc nuw i8 %138 to i1
  br i1 %139, label %140, label %150

140:                                              ; preds = %130
  %141 = getelementptr inbounds i8, ptr %136, i64 192
  %142 = load i32, ptr %141, align 8, !tbaa !63
  tail call void @_ZN11spirv_cross6Bitset3setEj(ptr noundef nonnull align 8 dereferenceable(64) %53, i32 noundef %142)
  %143 = load ptr, ptr %41, align 8, !tbaa !12
  %144 = getelementptr inbounds i8, ptr %.06370, i64 136
  %145 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %144, i64 noundef %135) #4
  %146 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %145)
  %147 = tail call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %143, i32 noundef %146)
  %148 = load i32, ptr %141, align 8, !tbaa !63
  %149 = getelementptr inbounds i8, ptr %136, i64 128
  tail call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14handle_builtinERKNS_8SPIRTypeEN3spv7BuiltInERKNS_6BitsetE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(336) %147, i32 noundef %148, ptr noundef nonnull align 8 dereferenceable(64) %149)
  br label %150

150:                                              ; preds = %._crit_edge93, %130, %140
  %.pre-phi = phi i64 [ %.pre, %._crit_edge93 ], [ %135, %130 ], [ %135, %140 ]
  %151 = load ptr, ptr %41, align 8, !tbaa !12
  %152 = getelementptr inbounds i8, ptr %.06370, i64 136
  %153 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %152, i64 noundef %.pre-phi) #4
  br label %154

154:                                              ; preds = %109, %150
  %.sink102 = phi ptr [ %111, %109 ], [ %153, %150 ]
  %.sink100 = phi ptr [ %110, %109 ], [ %151, %150 ]
  %155 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %.sink102)
  %156 = tail call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %.sink100, i32 noundef %155)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.peel.next, !llvm.loop !64

.loopexit.sink.split:                             ; preds = %5, %18, %14, %9
  %.sink104 = phi ptr [ %11, %9 ], [ %15, %14 ], [ %21, %18 ], [ %2, %5 ]
  %157 = load i32, ptr %.sink104, align 4, !tbaa !5
  tail call void @_ZN11spirv_cross8Compiler20ActiveBuiltinHandler14add_if_builtinEj(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %157)
  br label %.loopexit

.loopexit:                                        ; preds = %112, %154, %.lr.ph74, %.lr.ph76, %.loopexit.sink.split, %63, %106, %33, %24, %4, %40, %38, %31, %22, %16, %12, %7, %5
  %.0 = phi i1 [ false, %5 ], [ false, %7 ], [ false, %12 ], [ false, %16 ], [ false, %22 ], [ false, %31 ], [ false, %38 ], [ true, %40 ], [ true, %4 ], [ true, %24 ], [ true, %33 ], [ true, %106 ], [ true, %63 ], [ true, %.loopexit.sink.split ], [ true, %.lr.ph76 ], [ true, %.lr.ph74 ], [ true, %154 ], [ true, %112 ]
  ret i1 %.0
}

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #2 = { 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 #3 = { 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 #4 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !15, i64 8}
!13 = !{!"_ZTSN11spirv_cross8Compiler20ActiveBuiltinHandlerE", !14, i64 0, !15, i64 8}
!14 = !{!"_ZTSN11spirv_cross8Compiler13OpcodeHandlerE"}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!17, !21, i64 16}
!17 = !{!"_ZTSN11spirv_cross12SPIRVariableE", !18, i64 0, !20, i64 12, !21, i64 16, !6, i64 20, !19, i64 24, !22, i64 28, !23, i64 32, !27, i64 88, !27, i64 89, !19, i64 92, !28, i64 96, !27, i64 152, !27, i64 153, !27, i64 154, !27, i64 155, !6, i64 156, !31, i64 160, !27, i64 164, !27, i64 165, !27, i64 166, !15, i64 168}
!18 = !{!"_ZTSN11spirv_cross8IVariantE", !19, i64 8}
!19 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !6, i64 0}
!20 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !6, i64 0}
!21 = !{!"_ZTSN3spv12StorageClassE", !7, i64 0}
!22 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE2EEE", !6, i64 0}
!23 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !24, i64 0, !25, i64 16, !26, i64 24}
!24 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !15, i64 0, !25, i64 8}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !29, i64 0, !25, i64 16, !30, i64 24}
!29 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !15, i64 0, !25, i64 8}
!30 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !7, i64 0}
!31 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !6, i64 0}
!32 = !{!33, !35, i64 16}
!33 = !{!"_ZTSN11spirv_cross8SPIRTypeE", !18, i64 0, !34, i64 12, !35, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !23, i64 32, !36, i64 88, !6, i64 120, !27, i64 124, !27, i64 125, !21, i64 128, !39, i64 136, !23, i64 192, !42, i64 248, !20, i64 272, !20, i64 276, !46, i64 280}
!34 = !{!"_ZTSN3spv2OpE", !7, i64 0}
!35 = !{!"_ZTSN11spirv_cross8SPIRType8BaseTypeE", !7, i64 0}
!36 = !{!"_ZTSN11spirv_cross11SmallVectorIbLm8EEE", !37, i64 0, !25, i64 16, !38, i64 24}
!37 = !{!"_ZTSN11spirv_cross10VectorViewIbEE", !15, i64 0, !25, i64 8}
!38 = !{!"_ZTSN11spirv_cross13AlignedBufferIbLm8EEE", !7, i64 0}
!39 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EEE", !40, i64 0, !25, i64 16, !41, i64 24}
!40 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEE", !15, i64 0, !25, i64 8}
!41 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE1EEELm8EEE", !7, i64 0}
!42 = !{!"_ZTSN11spirv_cross8SPIRType9ImageTypeE", !20, i64 0, !43, i64 4, !27, i64 8, !27, i64 9, !27, i64 10, !6, i64 12, !44, i64 16, !45, i64 20}
!43 = !{!"_ZTSN3spv3DimE", !7, i64 0}
!44 = !{!"_ZTSN3spv11ImageFormatE", !7, i64 0}
!45 = !{!"_ZTSN3spv15AccessQualifierE", !7, i64 0}
!46 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !47, i64 0}
!47 = !{!"_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", !15, i64 0, !25, i64 8, !48, i64 16, !25, i64 24, !49, i64 32, !15, i64 48}
!48 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !15, i64 0}
!49 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !50, i64 0, !25, i64 8}
!50 = !{!"float", !7, i64 0}
!51 = !{!52, !27, i64 252}
!52 = !{!"_ZTSN11spirv_cross4Meta10DecorationE", !53, i64 0, !53, i64 32, !53, i64 64, !53, i64 96, !55, i64 128, !58, i64 192, !6, i64 196, !6, i64 200, !6, i64 204, !6, i64 208, !6, i64 212, !6, i64 216, !6, i64 220, !6, i64 224, !6, i64 228, !6, i64 232, !6, i64 236, !6, i64 240, !6, i64 244, !59, i64 248, !27, i64 252, !27, i64 253, !60, i64 256}
!53 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !54, i64 0, !25, i64 8, !7, i64 16}
!54 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!55 = !{!"_ZTSN11spirv_cross6BitsetE", !25, i64 0, !56, i64 8}
!56 = !{!"_ZTSSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE", !57, i64 0}
!57 = !{!"_ZTSSt10_HashtableIjjSaIjENSt8__detail9_IdentityESt8equal_toIjESt4hashIjENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !15, i64 0, !25, i64 8, !48, i64 16, !25, i64 24, !49, i64 32, !15, i64 48}
!58 = !{!"_ZTSN3spv7BuiltInE", !7, i64 0}
!59 = !{!"_ZTSN3spv14FPRoundingModeE", !7, i64 0}
!60 = !{!"_ZTSN11spirv_cross4Meta10Decoration8ExtendedE", !55, i64 0, !7, i64 64}
!61 = !{i8 0, i8 2}
!62 = !{}
!63 = !{!52, !58, i64 192}
!64 = distinct !{!64, !10, !65}
!65 = !{!"llvm.loop.peeled.count", i32 1}


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