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

; 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.202" = type { i32 }
%"class.spirv_cross::SmallVector.222" = type { %"class.spirv_cross::VectorView.223", i64, %"class.spirv_cross::AlignedBuffer.224" }
%"class.spirv_cross::VectorView.223" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.224" = type { [32 x i8] }
%"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.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.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.spirv_cross::SPIRType" = type { %"struct.spirv_cross::IVariant.base", i32, i32, i32, i32, i32, %"class.spirv_cross::SmallVector.222", %"class.spirv_cross::SmallVector.229", i32, i8, i8, i32, %"class.spirv_cross::SmallVector.232", %"class.spirv_cross::SmallVector.222", %"struct.spirv_cross::SPIRType::ImageType", %"class.spirv_cross::TypedID.220", %"class.spirv_cross::TypedID.220", %"class.std::unordered_set.235" }
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.202" }>
%"class.spirv_cross::SmallVector.229" = type { %"class.spirv_cross::VectorView.230", i64, %"class.spirv_cross::AlignedBuffer.231" }
%"class.spirv_cross::VectorView.230" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.231" = type { [8 x i8] }
%"class.spirv_cross::SmallVector.232" = type { %"class.spirv_cross::VectorView.233", i64, %"class.spirv_cross::AlignedBuffer.234" }
%"class.spirv_cross::VectorView.233" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.234" = type { [32 x i8] }
%"struct.spirv_cross::SPIRType::ImageType" = type { %"class.spirv_cross::TypedID.220", i32, i8, i8, i8, i32, i32, i32 }
%"class.spirv_cross::TypedID.220" = type { i32 }
%"class.std::unordered_set.235" = type { %"class.std::_Hashtable.236" }
%"class.std::_Hashtable.236" = 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.202", [4 x i8] }>

@.str.1 = external hidden unnamed_addr constant [101 x i8], align 1
@_ZTIN11spirv_cross13CompilerErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@__PRETTY_FUNCTION__._ZN11spirv_cross8ParsedIR18make_constant_nullEjjb = external hidden unnamed_addr constant [73 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [48 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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: 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) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #2 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; 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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN11spirv_cross8ParsedIR17increase_bound_byEj(ptr noundef nonnull align 8 dereferenceable(1920), i32 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross8ParsedIR18make_constant_nullEjjb(ptr noundef nonnull align 8 dereferenceable(1920) %0, i32 noundef %1, i32 noundef %2, i1 noundef zeroext %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca %"class.spirv_cross::TypedID.202", align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.spirv_cross::TypedID.202", align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.spirv_cross::SmallVector.222", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.spirv_cross::TypedID.202", align 4
  %19 = alloca %"class.spirv_cross::TypedID.202", align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = alloca i32, align 4
  %24 = alloca %"class.spirv_cross::SmallVector.222", align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.spirv_cross::TypedID.202", align 4
  %27 = alloca %"class.spirv_cross::TypedID.202", align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i8, align 1
  %31 = alloca %"class.spirv_cross::TypedID.202", align 4
  %32 = alloca ptr, align 8
  %33 = alloca %"class.spirv_cross::TypedID.202", align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  %34 = zext i1 %3 to i8
  store i8 %34, ptr %8, align 1, !tbaa !11
  %35 = load ptr, ptr %5, align 8
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %35, i32 0, i32 2
  %39 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7VariantEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %38) #7
  %40 = icmp ult i64 %37, %39
  br i1 %40, label %41, label %42

41:                                               ; preds = %4
  br label %44

42:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 1035, ptr noundef @__PRETTY_FUNCTION__._ZN11spirv_cross8ParsedIR18make_constant_nullEjjb) #8
  unreachable

43:                                               ; No predecessors!
  br label %44

44:                                               ; preds = %43, %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8ParsedIR3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(1920) %35, i32 noundef %45)
  store ptr %46, ptr %9, align 8, !tbaa !5
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %47, i32 0, i32 9
  %49 = load i8, ptr %48, align 4, !tbaa !13, !range !40, !noundef !41
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %69

51:                                               ; preds = %44
  %52 = load i8, ptr %8, align 1, !tbaa !11, !range !40, !noundef !41
  %53 = trunc i8 %52 to i1
  br i1 %53, label %54, label %58

54:                                               ; preds = %51
  %55 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef %55)
  %56 = getelementptr inbounds %"class.spirv_cross::TypedID.202", ptr %10, i32 0, i32 0
  %57 = load i32, ptr %56, align 4
  call void @_ZN11spirv_cross8ParsedIR12add_typed_idENS_5TypesENS_7TypedIDILS1_0EEE(ptr noundef nonnull align 8 dereferenceable(1920) %35, i32 noundef 3, i32 %57)
  br label %58

58:                                               ; preds = %54, %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %59 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %35, i32 0, i32 2
  %60 = load i32, ptr %6, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %59, i64 noundef %61) #7
  %63 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross11variant_setINS_12SPIRConstantEJRjEEERT_RNS_7VariantEDpOT0_(ptr noundef nonnull align 8 dereferenceable(21) %62, ptr noundef nonnull align 4 dereferenceable(4) %7)
  store ptr %63, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %64 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef %64)
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %65, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %66, ptr align 4 %12, i64 4, i1 false), !tbaa.struct !42
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11spirv_cross12SPIRConstant9make_nullERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(360) %67, ptr noundef nonnull align 8 dereferenceable(336) %68)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %264

69:                                               ; preds = %44
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %70, i32 0, i32 6
  %72 = call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewIjE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %71) #7
  br i1 %72, label %160, label %73

73:                                               ; preds = %69
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %74, i32 0, i32 16
  %76 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %75)
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %73
  br label %81

79:                                               ; preds = %73
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 1049, ptr noundef @__PRETTY_FUNCTION__._ZN11spirv_cross8ParsedIR18make_constant_nullEjjb) #8
  unreachable

80:                                               ; No predecessors!
  br label %81

81:                                               ; preds = %80, %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %82 = call noundef i32 @_ZN11spirv_cross8ParsedIR17increase_bound_byEj(ptr noundef nonnull align 8 dereferenceable(1920) %35, i32 noundef 1)
  store i32 %82, ptr %13, align 4, !tbaa !9
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %84, i32 0, i32 16
  %86 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %85)
  %87 = load i8, ptr %8, align 1, !tbaa !11, !range !40, !noundef !41
  %88 = trunc i8 %87 to i1
  call void @_ZN11spirv_cross8ParsedIR18make_constant_nullEjjb(ptr noundef nonnull align 8 dereferenceable(1920) %35, i32 noundef %83, i32 noundef %86, i1 noundef zeroext %88)
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %89, i32 0, i32 7
  %91 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN11spirv_cross10VectorViewIbE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %90) #7
  %92 = load i8, ptr %91, align 1, !tbaa !11, !range !40, !noundef !41
  %93 = trunc i8 %92 to i1
  br i1 %93, label %101, label %94

94:                                               ; preds = %81
  %95 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN11spirv_cross13CompilerErrorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %95, ptr noundef @.str.7)
          to label %96 unwind label %97

96:                                               ; preds = %94
  call void @__cxa_throw(ptr %95, ptr @_ZTIN11spirv_cross13CompilerErrorE, ptr @_ZNSt13runtime_errorD2Ev) #9
  unreachable

97:                                               ; preds = %94
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %14, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %15, align 4
  call void @__cxa_free_exception(ptr %95) #7
  br label %159

101:                                              ; preds = %81
  call void @llvm.lifetime.start.p0(i64 56, ptr %16) #7
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %102, i32 0, i32 6
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %103) #7
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  call void @_ZN11spirv_cross11SmallVectorIjLm8EEC2Em(ptr noundef nonnull align 8 dereferenceable(56) %16, i64 noundef %106) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %120, %101
  %108 = load i32, ptr %17, align 4, !tbaa !9
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %109, i32 0, i32 6
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %110) #7
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %113 = icmp ult i32 %108, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %123

115:                                              ; preds = %107
  %116 = load i32, ptr %13, align 4, !tbaa !9
  %117 = load i32, ptr %17, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef %118) #7
  store i32 %116, ptr %119, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %115
  %121 = load i32, ptr %17, align 4, !tbaa !9
  %122 = add i32 %121, 1
  store i32 %122, ptr %17, align 4, !tbaa !9
  br label %107, !llvm.loop !43

123:                                              ; preds = %114
  %124 = load i8, ptr %8, align 1, !tbaa !11, !range !40, !noundef !41
  %125 = trunc i8 %124 to i1
  br i1 %125, label %126, label %136

126:                                              ; preds = %123
  %127 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 noundef %127)
          to label %128 unwind label %132

128:                                              ; preds = %126
  %129 = getelementptr inbounds %"class.spirv_cross::TypedID.202", ptr %18, i32 0, i32 0
  %130 = load i32, ptr %129, align 4
  invoke void @_ZN11spirv_cross8ParsedIR12add_typed_idENS_5TypesENS_7TypedIDILS1_0EEE(ptr noundef nonnull align 8 dereferenceable(1920) %35, i32 noundef 3, i32 %130)
          to label %131 unwind label %132

131:                                              ; preds = %128
  br label %136

132:                                              ; preds = %128, %126
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %14, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %15, align 4
  br label %158

136:                                              ; preds = %131, %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %137 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 noundef %137)
          to label %138 unwind label %149

138:                                              ; preds = %136
  %139 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %35, i32 0, i32 2
  %140 = load i32, ptr %6, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %139, i64 noundef %141) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %143 = call noundef ptr @_ZN11spirv_cross10VectorViewIjE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  store ptr %143, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %144 = call noundef i64 @_ZNK11spirv_cross10VectorViewIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  %145 = trunc i64 %144 to i32
  store i32 %145, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  store i8 0, ptr %22, align 1, !tbaa !11
  %146 = invoke noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross11variant_setINS_12SPIRConstantEJRjPjjbEEERT_RNS_7VariantEDpOT0_(ptr noundef nonnull align 8 dereferenceable(21) %142, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %147 unwind label %153

147:                                              ; preds = %138
  %148 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %146, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %148, ptr align 4 %19, i64 4, i1 false), !tbaa.struct !42
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @_ZN11spirv_cross11SmallVectorIjLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %263

149:                                              ; preds = %136
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %14, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %15, align 4
  br label %157

153:                                              ; preds = %138
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %14, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %157

157:                                              ; preds = %153, %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %158

158:                                              ; preds = %157, %132
  call void @_ZN11spirv_cross11SmallVectorIjLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #7
  br label %159

159:                                              ; preds = %158, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %265

160:                                              ; preds = %69
  %161 = load ptr, ptr %9, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %161, i32 0, i32 12
  %163 = call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %162) #7
  br i1 %163, label %244, label %164

164:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %165 = load ptr, ptr %9, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %165, i32 0, i32 12
  %167 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %166) #7
  %168 = trunc i64 %167 to i32
  %169 = call noundef i32 @_ZN11spirv_cross8ParsedIR17increase_bound_byEj(ptr noundef nonnull align 8 dereferenceable(1920) %35, i32 noundef %168)
  store i32 %169, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %24) #7
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %170, i32 0, i32 12
  %172 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %171) #7
  call void @_ZN11spirv_cross11SmallVectorIjLm8EEC2Em(ptr noundef nonnull align 8 dereferenceable(56) %24, i64 noundef %172) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %201, %164
  %174 = load i32, ptr %25, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %176, i32 0, i32 12
  %178 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %177) #7
  %179 = icmp ult i64 %175, %178
  br i1 %179, label %181, label %180

180:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %208

181:                                              ; preds = %173
  %182 = load i32, ptr %23, align 4, !tbaa !9
  %183 = load i32, ptr %25, align 4, !tbaa !9
  %184 = add i32 %182, %183
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %185, i32 0, i32 12
  %187 = load i32, ptr %25, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %186, i64 noundef %188) #7
  %190 = invoke noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %189)
          to label %191 unwind label %204

191:                                              ; preds = %181
  %192 = load i8, ptr %8, align 1, !tbaa !11, !range !40, !noundef !41
  %193 = trunc i8 %192 to i1
  invoke void @_ZN11spirv_cross8ParsedIR18make_constant_nullEjjb(ptr noundef nonnull align 8 dereferenceable(1920) %35, i32 noundef %184, i32 noundef %190, i1 noundef zeroext %193)
          to label %194 unwind label %204

194:                                              ; preds = %191
  %195 = load i32, ptr %23, align 4, !tbaa !9
  %196 = load i32, ptr %25, align 4, !tbaa !9
  %197 = add i32 %195, %196
  %198 = load i32, ptr %25, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %199) #7
  store i32 %197, ptr %200, align 4, !tbaa !9
  br label %201

201:                                              ; preds = %194
  %202 = load i32, ptr %25, align 4, !tbaa !9
  %203 = add i32 %202, 1
  store i32 %203, ptr %25, align 4, !tbaa !9
  br label %173, !llvm.loop !45

204:                                              ; preds = %191, %181
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %14, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %243

208:                                              ; preds = %180
  %209 = load i8, ptr %8, align 1, !tbaa !11, !range !40, !noundef !41
  %210 = trunc i8 %209 to i1
  br i1 %210, label %211, label %221

211:                                              ; preds = %208
  %212 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %26, i32 noundef %212)
          to label %213 unwind label %217

213:                                              ; preds = %211
  %214 = getelementptr inbounds %"class.spirv_cross::TypedID.202", ptr %26, i32 0, i32 0
  %215 = load i32, ptr %214, align 4
  invoke void @_ZN11spirv_cross8ParsedIR12add_typed_idENS_5TypesENS_7TypedIDILS1_0EEE(ptr noundef nonnull align 8 dereferenceable(1920) %35, i32 noundef 3, i32 %215)
          to label %216 unwind label %217

216:                                              ; preds = %213
  br label %221

217:                                              ; preds = %213, %211
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %14, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %15, align 4
  br label %243

221:                                              ; preds = %216, %208
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %222 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 noundef %222)
          to label %223 unwind label %234

223:                                              ; preds = %221
  %224 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %35, i32 0, i32 2
  %225 = load i32, ptr %6, align 4, !tbaa !9
  %226 = zext i32 %225 to i64
  %227 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %224, i64 noundef %226) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %228 = call noundef ptr @_ZN11spirv_cross10VectorViewIjE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  store ptr %228, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %229 = call noundef i64 @_ZNK11spirv_cross10VectorViewIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  %230 = trunc i64 %229 to i32
  store i32 %230, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #7
  store i8 0, ptr %30, align 1, !tbaa !11
  %231 = invoke noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross11variant_setINS_12SPIRConstantEJRjPjjbEEERT_RNS_7VariantEDpOT0_(ptr noundef nonnull align 8 dereferenceable(21) %227, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %232 unwind label %238

232:                                              ; preds = %223
  %233 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %231, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %233, ptr align 4 %27, i64 4, i1 false), !tbaa.struct !42
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @_ZN11spirv_cross11SmallVectorIjLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %24) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %262

234:                                              ; preds = %221
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %14, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %15, align 4
  br label %242

238:                                              ; preds = %223
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %14, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %242

242:                                              ; preds = %238, %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %243

243:                                              ; preds = %242, %217, %204
  call void @_ZN11spirv_cross11SmallVectorIjLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %24) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %265

244:                                              ; preds = %160
  %245 = load i8, ptr %8, align 1, !tbaa !11, !range !40, !noundef !41
  %246 = trunc i8 %245 to i1
  br i1 %246, label %247, label %251

247:                                              ; preds = %244
  %248 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %31, i32 noundef %248)
  %249 = getelementptr inbounds %"class.spirv_cross::TypedID.202", ptr %31, i32 0, i32 0
  %250 = load i32, ptr %249, align 4
  call void @_ZN11spirv_cross8ParsedIR12add_typed_idENS_5TypesENS_7TypedIDILS1_0EEE(ptr noundef nonnull align 8 dereferenceable(1920) %35, i32 noundef 3, i32 %250)
  br label %251

251:                                              ; preds = %247, %244
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %252 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %35, i32 0, i32 2
  %253 = load i32, ptr %6, align 4, !tbaa !9
  %254 = zext i32 %253 to i64
  %255 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %252, i64 noundef %254) #7
  %256 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross11variant_setINS_12SPIRConstantEJRjEEERT_RNS_7VariantEDpOT0_(ptr noundef nonnull align 8 dereferenceable(21) %255, ptr noundef nonnull align 4 dereferenceable(4) %7)
  store ptr %256, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %257 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %33, i32 noundef %257)
  %258 = load ptr, ptr %32, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %258, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %259, ptr align 4 %33, i64 4, i1 false), !tbaa.struct !42
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  %260 = load ptr, ptr %32, align 8, !tbaa !5
  %261 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11spirv_cross12SPIRConstant9make_nullERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(360) %260, ptr noundef nonnull align 8 dereferenceable(336) %261)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %262

262:                                              ; preds = %251, %232
  br label %263

263:                                              ; preds = %262, %147
  br label %264

264:                                              ; preds = %263, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret void

265:                                              ; preds = %243, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %266

266:                                              ; preds = %265
  %267 = load ptr, ptr %14, align 8
  %268 = load i32, ptr %15, align 4
  %269 = insertvalue { ptr, i32 } poison, ptr %267, 0
  %270 = insertvalue { ptr, i32 } %269, i32 %268, 1
  resume { ptr, i32 } %270
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8ParsedIR3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(1920), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross11variant_setINS_12SPIRConstantEJRjEEERT_RNS_7VariantEDpOT0_(ptr noundef nonnull align 8 dereferenceable(21), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12SPIRConstant9make_nullERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(360), ptr noundef nonnull align 8 dereferenceable(336)) #6 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 nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN11spirv_cross10VectorViewIbE4backEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorIjLm8EEC2Em(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross11variant_setINS_12SPIRConstantEJRjPjjbEEERT_RNS_7VariantEDpOT0_(ptr noundef nonnull align 8 dereferenceable(21), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) #4

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

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

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

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

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

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


; 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::TypedID.202" = type { i32 }
%"class.spirv_cross::SmallVector.222" = type { %"class.spirv_cross::VectorView.223", i64, %"class.spirv_cross::AlignedBuffer.224" }
%"class.spirv_cross::VectorView.223" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.224" = type { [32 x i8] }

@.str.1 = external hidden unnamed_addr constant [101 x i8], align 1
@_ZTIN11spirv_cross13CompilerErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@__PRETTY_FUNCTION__._ZN11spirv_cross8ParsedIR18make_constant_nullEjjb = external hidden unnamed_addr constant [73 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [48 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) 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 #1 align 2

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #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 #1 align 2

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN11spirv_cross8ParsedIR17increase_bound_byEj(ptr noundef nonnull align 8 dereferenceable(1920), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross8ParsedIR18make_constant_nullEjjb(ptr noundef nonnull align 8 dereferenceable(1920) %0, i32 noundef %1, i32 noundef %2, i1 noundef zeroext %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca %"class.spirv_cross::TypedID.202", align 4
  %7 = alloca %"class.spirv_cross::TypedID.202", align 4
  %8 = alloca %"class.spirv_cross::SmallVector.222", align 8
  %9 = alloca %"class.spirv_cross::TypedID.202", align 4
  %10 = alloca %"class.spirv_cross::TypedID.202", align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca %"class.spirv_cross::SmallVector.222", align 8
  %15 = alloca %"class.spirv_cross::TypedID.202", align 4
  %16 = alloca %"class.spirv_cross::TypedID.202", align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca %"class.spirv_cross::TypedID.202", align 4
  %21 = alloca %"class.spirv_cross::TypedID.202", align 4
  store i32 %2, ptr %5, align 4, !tbaa !5
  %22 = zext i32 %1 to i64
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  %24 = tail call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7VariantEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  %25 = icmp ugt i64 %24, %22
  br i1 %25, label %27, label %26

26:                                               ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 1035, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11spirv_cross8ParsedIR18make_constant_nullEjjb) #7
  unreachable

27:                                               ; preds = %4
  %28 = tail call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8ParsedIR3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(1920) %0, i32 noundef %2)
  %29 = getelementptr inbounds i8, ptr %28, i64 124
  %30 = load i8, ptr %29, align 4, !tbaa !9, !range !38, !noundef !39
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %32, label %40

32:                                               ; preds = %27
  br i1 %3, label %33, label %35

33:                                               ; preds = %32
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef %1)
  %34 = load i32, ptr %6, align 4
  call void @_ZN11spirv_cross8ParsedIR12add_typed_idENS_5TypesENS_7TypedIDILS1_0EEE(ptr noundef nonnull align 8 dereferenceable(1920) %0, i32 noundef 3, i32 %34)
  br label %35

35:                                               ; preds = %33, %32
  %36 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %22) #6
  %37 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross11variant_setINS_12SPIRConstantEJRjEEERT_RNS_7VariantEDpOT0_(ptr noundef nonnull align 8 dereferenceable(21) %36, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef %1)
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %39, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @_ZN11spirv_cross12SPIRConstant9make_nullERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(360) %37, ptr noundef nonnull align 8 dereferenceable(336) %28)
  br label %131

40:                                               ; preds = %27
  %41 = getelementptr inbounds i8, ptr %28, i64 32
  %42 = tail call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewIjE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %41) #6
  br i1 %42, label %86, label %43

43:                                               ; preds = %40
  %44 = getelementptr inbounds i8, ptr %28, i64 276
  %45 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %44)
  %.not = icmp eq i32 %45, 0
  br i1 %.not, label %46, label %47

46:                                               ; preds = %43
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 1049, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11spirv_cross8ParsedIR18make_constant_nullEjjb) #7
  unreachable

47:                                               ; preds = %43
  %48 = tail call noundef i32 @_ZN11spirv_cross8ParsedIR17increase_bound_byEj(ptr noundef nonnull align 8 dereferenceable(1920) %0, i32 noundef 1)
  %49 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %44)
  tail call void @_ZN11spirv_cross8ParsedIR18make_constant_nullEjjb(ptr noundef nonnull align 8 dereferenceable(1920) %0, i32 noundef %48, i32 noundef %49, i1 noundef zeroext %3)
  %50 = getelementptr inbounds i8, ptr %28, i64 88
  %51 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN11spirv_cross10VectorViewIbE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %50) #6
  %52 = load i8, ptr %51, align 1, !tbaa !40, !range !38, !noundef !39
  %53 = trunc nuw i8 %52 to i1
  br i1 %53, label %59, label %54

54:                                               ; preds = %47
  %55 = tail call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZN11spirv_cross13CompilerErrorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull @.str.7)
          to label %56 unwind label %57

56:                                               ; preds = %54
  tail call void @__cxa_throw(ptr nonnull %55, ptr nonnull @_ZTIN11spirv_cross13CompilerErrorE, ptr nonnull @_ZNSt13runtime_errorD2Ev) #8
  unreachable

57:                                               ; preds = %54
  %58 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %55) #6
  br label %132

59:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #6
  %60 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %41) #6
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = zext i32 %61 to i64
  call void @_ZN11spirv_cross11SmallVectorIjLm8EEC2Em(ptr noundef nonnull align 8 dereferenceable(56) %8, i64 noundef %62) #6
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %41) #6
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %.not70 = icmp eq i32 %64, 0
  br i1 %.not70, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %59
  br i1 %3, label %70, label %74

.lr.ph:                                           ; preds = %59, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %59 ]
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %indvars.iv) #6
  store i32 %48, ptr %65, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %41) #6
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = zext i32 %67 to i64
  %69 = icmp ult i64 %indvars.iv.next, %68
  br i1 %69, label %.lr.ph, label %._crit_edge, !llvm.loop !41

70:                                               ; preds = %._crit_edge
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %1)
  %71 = load i32, ptr %9, align 4
  invoke void @_ZN11spirv_cross8ParsedIR12add_typed_idENS_5TypesENS_7TypedIDILS1_0EEE(ptr noundef nonnull align 8 dereferenceable(1920) %0, i32 noundef 3, i32 %71)
          to label %74 unwind label %72

72:                                               ; preds = %70
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %85

74:                                               ; preds = %70, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef %1)
  %75 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %76 = call noundef ptr @_ZN11spirv_cross10VectorViewIjE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  store ptr %76, ptr %11, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %77 = call noundef i64 @_ZNK11spirv_cross10VectorViewIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  %78 = trunc i64 %77 to i32
  store i32 %78, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  store i8 0, ptr %13, align 1, !tbaa !40
  %79 = invoke noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross11variant_setINS_12SPIRConstantEJRjPjjbEEERT_RNS_7VariantEDpOT0_(ptr noundef nonnull align 8 dereferenceable(21) %75, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %80 unwind label %83

80:                                               ; preds = %74
  %81 = getelementptr inbounds i8, ptr %79, i64 8
  %82 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %82, ptr %81, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @_ZN11spirv_cross11SmallVectorIjLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #6
  br label %131

83:                                               ; preds = %74
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  br label %85

85:                                               ; preds = %83, %72
  %.pn = phi { ptr, i32 } [ %84, %83 ], [ %73, %72 ]
  call void @_ZN11spirv_cross11SmallVectorIjLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #6
  br label %132

86:                                               ; preds = %40
  %87 = getelementptr inbounds i8, ptr %28, i64 136
  %88 = tail call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %87) #6
  br i1 %88, label %123, label %89

89:                                               ; preds = %86
  %90 = tail call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %87) #6
  %91 = trunc i64 %90 to i32
  %92 = tail call noundef i32 @_ZN11spirv_cross8ParsedIR17increase_bound_byEj(ptr noundef nonnull align 8 dereferenceable(1920) %0, i32 noundef %91)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %14) #6
  %93 = tail call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %87) #6
  call void @_ZN11spirv_cross11SmallVectorIjLm8EEC2Em(ptr noundef nonnull align 8 dereferenceable(56) %14, i64 noundef %93) #6
  %94 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %87) #6
  %.not71 = icmp eq i64 %94, 0
  br i1 %.not71, label %._crit_edge69, label %.lr.ph68

._crit_edge69:                                    ; preds = %99, %89
  br i1 %3, label %107, label %111

.lr.ph68:                                         ; preds = %89, %99
  %95 = phi i64 [ %102, %99 ], [ 0, %89 ]
  %.05266 = phi i32 [ %101, %99 ], [ 0, %89 ]
  %96 = add i32 %.05266, %92
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %87, i64 noundef %95) #6
  %98 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %97)
  invoke void @_ZN11spirv_cross8ParsedIR18make_constant_nullEjjb(ptr noundef nonnull align 8 dereferenceable(1920) %0, i32 noundef %96, i32 noundef %98, i1 noundef zeroext %3)
          to label %99 unwind label %105

99:                                               ; preds = %.lr.ph68
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %95) #6
  store i32 %96, ptr %100, align 4, !tbaa !5
  %101 = add i32 %.05266, 1
  %102 = zext i32 %101 to i64
  %103 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %87) #6
  %104 = icmp ugt i64 %103, %102
  br i1 %104, label %.lr.ph68, label %._crit_edge69, !llvm.loop !44

105:                                              ; preds = %.lr.ph68
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %122

107:                                              ; preds = %._crit_edge69
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef %1)
  %108 = load i32, ptr %15, align 4
  invoke void @_ZN11spirv_cross8ParsedIR12add_typed_idENS_5TypesENS_7TypedIDILS1_0EEE(ptr noundef nonnull align 8 dereferenceable(1920) %0, i32 noundef 3, i32 %108)
          to label %111 unwind label %109

109:                                              ; preds = %107
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %122

111:                                              ; preds = %107, %._crit_edge69
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef %1)
  %112 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %113 = call noundef ptr @_ZN11spirv_cross10VectorViewIjE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  store ptr %113, ptr %17, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  %114 = call noundef i64 @_ZNK11spirv_cross10VectorViewIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  %115 = trunc i64 %114 to i32
  store i32 %115, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #6
  store i8 0, ptr %19, align 1, !tbaa !40
  %116 = invoke noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross11variant_setINS_12SPIRConstantEJRjPjjbEEERT_RNS_7VariantEDpOT0_(ptr noundef nonnull align 8 dereferenceable(21) %112, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %117 unwind label %120

117:                                              ; preds = %111
  %118 = getelementptr inbounds i8, ptr %116, i64 8
  %119 = load i32, ptr %16, align 4, !tbaa !5
  store i32 %119, ptr %118, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @_ZN11spirv_cross11SmallVectorIjLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %14) #6
  br label %131

120:                                              ; preds = %111
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  br label %122

122:                                              ; preds = %120, %109, %105
  %.pn62 = phi { ptr, i32 } [ %106, %105 ], [ %121, %120 ], [ %110, %109 ]
  call void @_ZN11spirv_cross11SmallVectorIjLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %14) #6
  br label %132

123:                                              ; preds = %86
  br i1 %3, label %124, label %126

124:                                              ; preds = %123
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %1)
  %125 = load i32, ptr %20, align 4
  call void @_ZN11spirv_cross8ParsedIR12add_typed_idENS_5TypesENS_7TypedIDILS1_0EEE(ptr noundef nonnull align 8 dereferenceable(1920) %0, i32 noundef 3, i32 %125)
  br label %126

126:                                              ; preds = %124, %123
  %127 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %22) #6
  %128 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross11variant_setINS_12SPIRConstantEJRjEEERT_RNS_7VariantEDpOT0_(ptr noundef nonnull align 8 dereferenceable(21) %127, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #6
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %21, i32 noundef %1)
  %129 = getelementptr inbounds i8, ptr %128, i64 8
  %130 = load i32, ptr %21, align 4, !tbaa !5
  store i32 %130, ptr %129, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  call void @_ZN11spirv_cross12SPIRConstant9make_nullERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(360) %128, ptr noundef nonnull align 8 dereferenceable(336) %28)
  br label %131

131:                                              ; preds = %80, %126, %117, %35
  ret void

132:                                              ; preds = %57, %85, %122
  %.pn62.pn = phi { ptr, i32 } [ %.pn62, %122 ], [ %.pn, %85 ], [ %58, %57 ]
  resume { ptr, i32 } %.pn62.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8ParsedIR3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(1920), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross11variant_setINS_12SPIRConstantEJRjEEERT_RNS_7VariantEDpOT0_(ptr noundef nonnull align 8 dereferenceable(21), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorIjLm8EEC2Em(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross11variant_setINS_12SPIRConstantEJRjPjjbEEERT_RNS_7VariantEDpOT0_(ptr noundef nonnull align 8 dereferenceable(21), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !23, i64 124}
!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 = !{}
!40 = !{!23, !23, i64 0}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = !{!17, !17, i64 0}
!44 = distinct !{!44, !42}


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