; 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.std::__detail::_Node_iterator.347" = type { %"struct.std::__detail::_Node_iterator_base.348" }
%"struct.std::__detail::_Node_iterator_base.348" = type { ptr }
%"struct.std::__detail::_Node_const_iterator.299" = type { %"struct.std::__detail::_Node_iterator_base.300" }
%"struct.std::__detail::_Node_iterator_base.300" = type { ptr }
%"class.spirv_cross::DominatorBuilder" = type <{ ptr, i32, [4 x i8] }>
%"struct.std::__detail::_Node_const_iterator.359" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.spirv_cross::Compiler::StaticExpressionAccessHandler" = type <{ %"struct.spirv_cross::Compiler::OpcodeHandler", ptr, i32, i32, i32, [4 x i8] }>
%"struct.spirv_cross::Compiler::OpcodeHandler" = type { ptr }
%"class.spirv_cross::TypedID.162" = 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.spirv_cross::SmallVector.7" = type { %"class.spirv_cross::VectorView.8", i64, %"class.spirv_cross::AlignedBuffer.9" }
%"class.spirv_cross::VectorView.8" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.9" = type { [32 x i8] }
%"class.std::unordered_map.10" = type { %"class.std::_Hashtable.11" }
%"class.std::_Hashtable.11" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::SmallVector.24" = type { %"class.spirv_cross::VectorView.25", i64, %"class.spirv_cross::AlignedBuffer.26" }
%"class.spirv_cross::VectorView.25" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.26" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.27" = type { %"class.spirv_cross::VectorView.28", i64, %"class.spirv_cross::AlignedBuffer.29" }
%"class.spirv_cross::VectorView.28" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.29" = type { [256 x i8] }
%"class.spirv_cross::SmallVector.30" = type { %"class.spirv_cross::VectorView.31", i64, %"class.spirv_cross::AlignedBuffer.32" }
%"class.spirv_cross::VectorView.31" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.32" = type { [8 x i8] }
%"class.std::unordered_map.33" = type { %"class.std::_Hashtable.34" }
%"class.std::_Hashtable.34" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.52" = type { %"class.std::_Hashtable.53" }
%"class.std::_Hashtable.53" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::TypedID" = type { i32 }
%"struct.spirv_cross::ParsedIR::Source" = type <{ i32, i8, i8, i8, i8 }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::unordered_set.95" = type { %"class.std::_Hashtable.96" }
%"class.std::_Hashtable.96" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::SmallVector.114" = type { %"class.spirv_cross::VectorView.115", i64, %"class.spirv_cross::AlignedBuffer.116" }
%"class.spirv_cross::VectorView.115" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.116" = type { [96 x i8] }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.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.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.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::IVariant" = type <{ ptr, %"class.spirv_cross::TypedID.162", [4 x i8] }>
%"struct.std::pair.349" = type { i32, %"class.std::unique_ptr.351" }
%"class.std::unique_ptr.351" = type { %"struct.std::__uniq_ptr_data.352" }
%"struct.std::__uniq_ptr_data.352" = type { %"class.std::__uniq_ptr_impl.353" }
%"class.std::__uniq_ptr_impl.353" = type { %"class.std::tuple.354" }
%"class.std::tuple.354" = type { %"struct.std::_Tuple_impl.355" }
%"struct.std::_Tuple_impl.355" = type { %"struct.std::_Head_base.358" }
%"struct.std::_Head_base.358" = type { ptr }
%"struct.spirv_cross::Compiler::AnalyzeVariableScopeAccessHandler" = type { %"struct.spirv_cross::Compiler::OpcodeHandler", ptr, ptr, %"class.std::unordered_map.301", %"class.std::unordered_map.301", %"class.std::unordered_map.194", %"class.std::unordered_map.301", %"class.std::unordered_map.301", %"class.std::unordered_set", %"class.std::unordered_map.301", ptr }
%"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 }
%"class.std::unordered_map.301" = type { %"class.std::_Hashtable.302" }
%"class.std::_Hashtable.302" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::pair.343" = type { i32, %"class.std::unordered_set" }
%"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::TypedID.165" = type { i32 }
%"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::SPIRConstant" = type { %"struct.spirv_cross::IVariant.base", %"class.spirv_cross::TypedID.163", %"struct.spirv_cross::SPIRConstant::ConstantMatrix", i8, i8, i8, %"class.spirv_cross::SmallVector.235", %"class.std::__cxx11::basic_string" }
%"struct.spirv_cross::SPIRConstant::ConstantMatrix" = type { [4 x %"struct.spirv_cross::SPIRConstant::ConstantVector"], [4 x %"class.spirv_cross::TypedID.162"], i32, [4 x i8] }
%"struct.spirv_cross::SPIRConstant::ConstantVector" = type <{ [4 x %"union.spirv_cross::SPIRConstant::Constant"], [4 x %"class.spirv_cross::TypedID.162"], i32, [4 x i8] }>
%"union.spirv_cross::SPIRConstant::Constant" = type { i64 }
%"class.spirv_cross::SmallVector.235" = type { %"class.spirv_cross::VectorView.236", i64, %"class.spirv_cross::AlignedBuffer.237" }
%"class.spirv_cross::VectorView.236" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.237" = type { [32 x i8] }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(336) ptr @_ZNK11spirv_cross8Compiler15expression_typeEj(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross8Compiler30traverse_all_reachable_opcodesERKNS_9SPIRBlockERNS0_13OpcodeHandlerE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(976), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIjLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3endISt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES3_S5_SaISt4pairIKjS7_EEEEDTcldtfp_3endEERKT_(ptr noundef nonnull align 8 dereferenceable(56)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross8Compiler24find_function_local_lutsERNS_12SPIRFunctionERKNS0_33AnalyzeVariableScopeAccessHandlerEb(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 8 dereferenceable(795) %1, ptr noundef nonnull align 8 dereferenceable(424) %2, i1 noundef zeroext %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.std::__detail::_Node_iterator.347", align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.std::__detail::_Node_const_iterator.299", align 8
  %14 = alloca %"struct.std::__detail::_Node_const_iterator.299", align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"struct.std::__detail::_Node_const_iterator.299", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"struct.std::__detail::_Node_const_iterator.299", align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"class.spirv_cross::DominatorBuilder", align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"struct.std::__detail::_Node_const_iterator.359", align 8
  %32 = alloca %"struct.std::__detail::_Node_const_iterator.359", align 8
  %33 = alloca ptr, align 8
  %34 = alloca i32, align 4
  %35 = alloca %"struct.spirv_cross::Compiler::StaticExpressionAccessHandler", align 8
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca %"class.spirv_cross::TypedID.162", align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %39 = zext i1 %3 to i8
  store i8 %39, ptr %8, align 1, !tbaa !9
  %40 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %41 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %40, i32 0, i32 29
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %42, i32 0, i32 1
  %44 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %43)
  store i32 %44, ptr %11, align 4, !tbaa !11
  %45 = call ptr @_ZNSt13unordered_mapIjSt10unique_ptrIN11spirv_cross3CFGESt14default_deleteIS2_EESt4hashIjESt8equal_toIjESaISt4pairIKjS5_EEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(56) %41, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %46 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.347", ptr %10, i32 0, i32 0
  %47 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.348", ptr %46, i32 0, i32 0
  store ptr %45, ptr %47, align 8
  %48 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjSt10unique_ptrIN11spirv_cross3CFGESt14default_deleteIS5_EEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %49 = getelementptr inbounds %"struct.std::pair.349", ptr %48, i32 0, i32 1
  %50 = call noundef nonnull align 8 dereferenceable(356) ptr @_ZNKSt10unique_ptrIN11spirv_cross3CFGESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %49) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  store ptr %50, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.spirv_cross::Compiler::AnalyzeVariableScopeAccessHandler", ptr %51, i32 0, i32 3
  store ptr %52, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = call ptr @_ZNKSt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES2_S4_SaISt4pairIKjS6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %53) #6
  %55 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.299", ptr %13, i32 0, i32 0
  %56 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.300", ptr %55, i32 0, i32 0
  store ptr %54, ptr %56, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = call ptr @_ZNKSt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES2_S4_SaISt4pairIKjS6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %57) #6
  %59 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.299", ptr %14, i32 0, i32 0
  %60 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.300", ptr %59, i32 0, i32 0
  store ptr %58, ptr %60, align 8
  br label %61

61:                                               ; preds = %276, %4
  %62 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br i1 %62, label %64, label %63

63:                                               ; preds = %61
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %278

64:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %65 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  store ptr %65, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %66 = load ptr, ptr %16, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.std::pair.343", ptr %66, i32 0, i32 1
  store ptr %67, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.std::pair.343", ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 8, !tbaa !13
  %71 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRVariableEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %40, i32 noundef %70)
  store ptr %71, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %72 = load ptr, ptr %16, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.std::pair.343", ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !13
  %75 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZNK11spirv_cross8Compiler15expression_typeEj(ptr noundef nonnull align 8 dereferenceable(3176) %40, i32 noundef %74)
  store ptr %75, ptr %19, align 8, !tbaa !5
  %76 = load ptr, ptr %18, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %76, i32 0, i32 19
  %78 = load i8, ptr %77, align 2, !tbaa !21, !range !35, !noundef !36
  %79 = trunc i8 %78 to i1
  br i1 %79, label %101, label %80

80:                                               ; preds = %64
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.spirv_cross::Compiler::AnalyzeVariableScopeAccessHandler", ptr %81, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %83 = load ptr, ptr %18, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %83, i32 0, i32 1
  %85 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %84)
  store i32 %85, ptr %20, align 4, !tbaa !11
  %86 = call noundef i64 @_ZNKSt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES2_S4_SaISt4pairIKjS6_EEE5countERS8_(ptr noundef nonnull align 8 dereferenceable(56) %82, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %87 = icmp ne i64 %86, 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  br i1 %87, label %96, label %88

88:                                               ; preds = %80
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.spirv_cross::Compiler::AnalyzeVariableScopeAccessHandler", ptr %89, i32 0, i32 7
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %91, i32 0, i32 1
  %93 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %92)
  store i32 %93, ptr %21, align 4, !tbaa !11
  %94 = call noundef i64 @_ZNKSt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES2_S4_SaISt4pairIKjS6_EEE5countERS8_(ptr noundef nonnull align 8 dereferenceable(56) %90, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %95 = icmp ne i64 %94, 0
  br label %96

96:                                               ; preds = %88, %80
  %97 = phi i1 [ true, %80 ], [ %95, %88 ]
  %98 = load ptr, ptr %18, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %98, i32 0, i32 19
  %100 = zext i1 %97 to i8
  store i8 %100, ptr %99, align 2, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %101

101:                                              ; preds = %96, %64
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  %102 = load ptr, ptr %18, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %102, i32 0, i32 2
  %104 = load i32, ptr %103, align 8, !tbaa !37
  %105 = icmp eq i32 %104, 7
  br i1 %105, label %116, label %106

106:                                              ; preds = %101
  %107 = load i8, ptr %8, align 1, !tbaa !9, !range !35, !noundef !36
  %108 = trunc i8 %107 to i1
  br i1 %108, label %109, label %114

109:                                              ; preds = %106
  %110 = load ptr, ptr %18, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %110, i32 0, i32 2
  %112 = load i32, ptr %111, align 8, !tbaa !37
  %113 = icmp eq i32 %112, 6
  br label %114

114:                                              ; preds = %109, %106
  %115 = phi i1 [ false, %106 ], [ %113, %109 ]
  br label %116

116:                                              ; preds = %114, %101
  %117 = phi i1 [ true, %101 ], [ %115, %114 ]
  %118 = zext i1 %117 to i8
  store i8 %118, ptr %22, align 1, !tbaa !9
  %119 = load i8, ptr %22, align 1, !tbaa !9, !range !35, !noundef !36
  %120 = trunc i8 %119 to i1
  br i1 %120, label %122, label %121

121:                                              ; preds = %116
  store i32 3, ptr %15, align 4
  br label %270

122:                                              ; preds = %116
  %123 = load ptr, ptr %18, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %123, i32 0, i32 12
  %125 = load i8, ptr %124, align 1, !tbaa !38, !range !35, !noundef !36
  %126 = trunc i8 %125 to i1
  br i1 %126, label %127, label %128

127:                                              ; preds = %122
  store i32 3, ptr %15, align 4
  br label %270

128:                                              ; preds = %122
  %129 = load ptr, ptr %19, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %129, i32 0, i32 6
  %131 = call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewIjE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %130) #6
  br i1 %131, label %132, label %133

132:                                              ; preds = %128
  store i32 3, ptr %15, align 4
  br label %270

133:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !11
  %134 = load ptr, ptr %18, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %134, i32 0, i32 4
  %136 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %135)
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %159

138:                                              ; preds = %133
  %139 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %40, i32 0, i32 1
  %140 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %139, i32 0, i32 2
  %141 = load ptr, ptr %18, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %141, i32 0, i32 4
  %143 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %142)
  %144 = zext i32 %143 to i64
  %145 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %140, i64 noundef %144) #6
  %146 = call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %145)
  %147 = icmp ne i32 %146, 3
  br i1 %147, label %148, label %149

148:                                              ; preds = %138
  store i32 3, ptr %15, align 4
  br label %269

149:                                              ; preds = %138
  %150 = load ptr, ptr %18, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %150, i32 0, i32 4
  %152 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %151)
  store i32 %152, ptr %23, align 4, !tbaa !11
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %153, i32 0, i32 19
  %155 = load i8, ptr %154, align 2, !tbaa !21, !range !35, !noundef !36
  %156 = trunc i8 %155 to i1
  br i1 %156, label %157, label %158

157:                                              ; preds = %149
  store i32 3, ptr %15, align 4
  br label %269

158:                                              ; preds = %149
  br label %258

159:                                              ; preds = %133
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.spirv_cross::Compiler::AnalyzeVariableScopeAccessHandler", ptr %160, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %162 = load ptr, ptr %18, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %162, i32 0, i32 1
  %164 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %163)
  store i32 %164, ptr %24, align 4, !tbaa !11
  %165 = call noundef i64 @_ZNKSt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES2_S4_SaISt4pairIKjS6_EEE5countERS8_(ptr noundef nonnull align 8 dereferenceable(56) %161, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %166 = icmp ne i64 %165, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br i1 %166, label %167, label %168

167:                                              ; preds = %159
  store i32 3, ptr %15, align 4
  br label %269

168:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.spirv_cross::Compiler::AnalyzeVariableScopeAccessHandler", ptr %169, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %171 = load ptr, ptr %18, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %171, i32 0, i32 1
  %173 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %172)
  store i32 %173, ptr %26, align 4, !tbaa !11
  %174 = call ptr @_ZNKSt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES2_S4_SaISt4pairIKjS6_EEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %170, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %175 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.299", ptr %25, i32 0, i32 0
  %176 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.300", ptr %175, i32 0, i32 0
  store ptr %174, ptr %176, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.spirv_cross::Compiler::AnalyzeVariableScopeAccessHandler", ptr %177, i32 0, i32 6
  %179 = call ptr @_ZSt3endISt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES3_S5_SaISt4pairIKjS7_EEEEDTcldtfp_3endEERKT_(ptr noundef nonnull align 8 dereferenceable(56) %178)
  %180 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.299", ptr %27, i32 0, i32 0
  %181 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.300", ptr %180, i32 0, i32 0
  store ptr %179, ptr %181, align 8
  %182 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br i1 %182, label %183, label %184

183:                                              ; preds = %168
  store i32 3, ptr %15, align 4
  br label %255

184:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %185 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %186 = getelementptr inbounds %"struct.std::pair.343", ptr %185, i32 0, i32 1
  store ptr %186, ptr %28, align 8, !tbaa !5
  %187 = load ptr, ptr %28, align 8, !tbaa !5
  %188 = call noundef i64 @_ZNKSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %187) #6
  %189 = icmp ne i64 %188, 1
  br i1 %189, label %190, label %191

190:                                              ; preds = %184
  store i32 3, ptr %15, align 4
  br label %254

191:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #6
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11spirv_cross16DominatorBuilderC1ERKNS_3CFGE(ptr noundef nonnull align 8 dereferenceable(12) %29, ptr noundef nonnull align 8 dereferenceable(356) %192)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %193 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %193, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %194 = load ptr, ptr %30, align 8, !tbaa !5
  %195 = call ptr @_ZNKSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %194) #6
  %196 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.359", ptr %31, i32 0, i32 0
  %197 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %196, i32 0, i32 0
  store ptr %195, ptr %197, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %198 = load ptr, ptr %30, align 8, !tbaa !5
  %199 = call ptr @_ZNKSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %198) #6
  %200 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.359", ptr %32, i32 0, i32 0
  %201 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %200, i32 0, i32 0
  store ptr %199, ptr %201, align 8
  br label %202

202:                                              ; preds = %209, %191
  %203 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIjLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  br i1 %203, label %205, label %204

204:                                              ; preds = %202
  store i32 4, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %211

205:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %206 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt8__detail20_Node_const_iteratorIjLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  store ptr %206, ptr %33, align 8, !tbaa !5
  %207 = load ptr, ptr %33, align 8, !tbaa !5
  %208 = load i32, ptr %207, align 4, !tbaa !11
  call void @_ZN11spirv_cross16DominatorBuilder9add_blockEj(ptr noundef nonnull align 8 dereferenceable(12) %29, i32 noundef %208)
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %209

209:                                              ; preds = %205
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorIjLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  br label %202

211:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %212 = call noundef i32 @_ZNK11spirv_cross16DominatorBuilder13get_dominatorEv(ptr noundef nonnull align 8 dereferenceable(12) %29)
  store i32 %212, ptr %34, align 4, !tbaa !11
  %213 = load ptr, ptr %28, align 8, !tbaa !5
  %214 = call noundef i64 @_ZNKSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE5countERKj(ptr noundef nonnull align 8 dereferenceable(56) %213, ptr noundef nonnull align 4 dereferenceable(4) %34)
  %215 = icmp eq i64 %214, 0
  br i1 %215, label %216, label %217

216:                                              ; preds = %211
  store i32 3, ptr %15, align 4
  br label %253

217:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #6
  %218 = load ptr, ptr %18, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %218, i32 0, i32 1
  %220 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %219)
  call void @_ZN11spirv_cross8Compiler29StaticExpressionAccessHandlerC1ERS0_j(ptr noundef nonnull align 8 dereferenceable(28) %35, ptr noundef nonnull align 8 dereferenceable(3176) %40, i32 noundef %220)
  %221 = load i32, ptr %34, align 4, !tbaa !11
  %222 = invoke noundef nonnull align 8 dereferenceable(976) ptr @_ZN11spirv_cross8Compiler3getINS_9SPIRBlockEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %40, i32 noundef %221)
          to label %223 unwind label %234

223:                                              ; preds = %217
  %224 = invoke noundef zeroext i1 @_ZNK11spirv_cross8Compiler30traverse_all_reachable_opcodesERKNS_9SPIRBlockERNS0_13OpcodeHandlerE(ptr noundef nonnull align 8 dereferenceable(3176) %40, ptr noundef nonnull align 8 dereferenceable(976) %222, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %225 unwind label %234

225:                                              ; preds = %223
  %226 = getelementptr inbounds %"struct.spirv_cross::Compiler::StaticExpressionAccessHandler", ptr %35, i32 0, i32 4
  %227 = load i32, ptr %226, align 8, !tbaa !39
  %228 = icmp ne i32 %227, 1
  br i1 %228, label %233, label %229

229:                                              ; preds = %225
  %230 = getelementptr inbounds %"struct.spirv_cross::Compiler::StaticExpressionAccessHandler", ptr %35, i32 0, i32 3
  %231 = load i32, ptr %230, align 4, !tbaa !42
  %232 = icmp eq i32 %231, 0
  br i1 %232, label %233, label %238

233:                                              ; preds = %229, %225
  store i32 3, ptr %15, align 4
  br label %252

234:                                              ; preds = %238, %223, %217
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %36, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %37, align 4
  call void @_ZN11spirv_cross8Compiler13OpcodeHandlerD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %35) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %279

238:                                              ; preds = %229
  %239 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %40, i32 0, i32 1
  %240 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %239, i32 0, i32 2
  %241 = getelementptr inbounds %"struct.spirv_cross::Compiler::StaticExpressionAccessHandler", ptr %35, i32 0, i32 3
  %242 = load i32, ptr %241, align 4, !tbaa !42
  %243 = zext i32 %242 to i64
  %244 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %240, i64 noundef %243) #6
  %245 = invoke noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %244)
          to label %246 unwind label %234

246:                                              ; preds = %238
  %247 = icmp ne i32 %245, 3
  br i1 %247, label %248, label %249

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

249:                                              ; preds = %246
  %250 = getelementptr inbounds %"struct.spirv_cross::Compiler::StaticExpressionAccessHandler", ptr %35, i32 0, i32 3
  %251 = load i32, ptr %250, align 4, !tbaa !42
  store i32 %251, ptr %23, align 4, !tbaa !11
  store i32 0, ptr %15, align 4
  br label %252

252:                                              ; preds = %249, %248, %233
  call void @_ZN11spirv_cross8Compiler13OpcodeHandlerD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %35) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #6
  br label %253

253:                                              ; preds = %252, %216
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  br label %254

254:                                              ; preds = %253, %190
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %255

255:                                              ; preds = %254, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  %256 = load i32, ptr %15, align 4
  switch i32 %256, label %269 [
    i32 0, label %257
  ]

257:                                              ; preds = %255
  br label %258

258:                                              ; preds = %257, %158
  %259 = load i32, ptr %23, align 4, !tbaa !11
  %260 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRConstantEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %40, i32 noundef %259)
  %261 = getelementptr inbounds %"struct.spirv_cross::SPIRConstant", ptr %260, i32 0, i32 5
  store i8 1, ptr %261, align 2, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  %262 = load i32, ptr %23, align 4, !tbaa !11
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %38, i32 noundef %262)
  %263 = load ptr, ptr %18, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %263, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %264, ptr align 4 %38, i64 4, i1 false), !tbaa.struct !51
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  %265 = load ptr, ptr %18, align 8, !tbaa !5
  %266 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %265, i32 0, i32 8
  store i8 1, ptr %266, align 1, !tbaa !52
  %267 = load ptr, ptr %18, align 8, !tbaa !5
  %268 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %267, i32 0, i32 14
  store i8 1, ptr %268, align 1, !tbaa !53
  store i32 0, ptr %15, align 4
  br label %269

269:                                              ; preds = %258, %255, %167, %157, %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %270

270:                                              ; preds = %269, %132, %127, %121
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %271 = load i32, ptr %15, align 4
  switch i32 %271, label %273 [
    i32 0, label %272
  ]

272:                                              ; preds = %270
  store i32 0, ptr %15, align 4
  br label %273

273:                                              ; preds = %272, %270
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %274 = load i32, ptr %15, align 4
  switch i32 %274, label %284 [
    i32 0, label %275
    i32 3, label %276
  ]

275:                                              ; preds = %273
  br label %276

276:                                              ; preds = %275, %273
  %277 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %61

278:                                              ; preds = %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret void

279:                                              ; preds = %234
  %280 = load ptr, ptr %36, align 8
  %281 = load i32, ptr %37, align 4
  %282 = insertvalue { ptr, i32 } poison, ptr %280, 0
  %283 = insertvalue { ptr, i32 } %282, i32 %281, 1
  resume { ptr, i32 } %283

284:                                              ; preds = %273
  unreachable
}

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

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

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

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

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

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

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

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

declare void @_ZN11spirv_cross16DominatorBuilderC1ERKNS_3CFGE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(356)) unnamed_addr #5

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

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

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

declare void @_ZN11spirv_cross16DominatorBuilder9add_blockEj(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) #5

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

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

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

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

declare void @_ZN11spirv_cross8Compiler29StaticExpressionAccessHandlerC1ERS0_j(ptr, ptr, i32)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTSSt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEE", !12, i64 0, !15, i64 8}
!15 = !{!"_ZTSSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE", !16, i64 0}
!16 = !{!"_ZTSSt10_HashtableIjjSaIjENSt8__detail9_IdentityESt8equal_toIjESt4hashIjENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!19 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !20, i64 0, !17, i64 8}
!20 = !{!"float", !7, i64 0}
!21 = !{!22, !10, i64 166}
!22 = !{!"_ZTSN11spirv_cross12SPIRVariableE", !23, i64 0, !25, i64 12, !26, i64 16, !12, i64 20, !24, i64 24, !27, i64 28, !28, i64 32, !10, i64 88, !10, i64 89, !24, i64 92, !31, i64 96, !10, i64 152, !10, i64 153, !10, i64 154, !10, i64 155, !12, i64 156, !34, i64 160, !10, i64 164, !10, i64 165, !10, i64 166, !6, i64 168}
!23 = !{!"_ZTSN11spirv_cross8IVariantE", !24, i64 8}
!24 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !12, i64 0}
!25 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !12, i64 0}
!26 = !{!"_ZTSN3spv12StorageClassE", !7, i64 0}
!27 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE2EEE", !12, i64 0}
!28 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !29, i64 0, !17, i64 16, !30, i64 24}
!29 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !6, i64 0, !17, i64 8}
!30 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!31 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !32, i64 0, !17, i64 16, !33, i64 24}
!32 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !6, i64 0, !17, i64 8}
!33 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !7, i64 0}
!34 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !12, i64 0}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!22, !26, i64 16}
!38 = !{!22, !10, i64 153}
!39 = !{!40, !12, i64 24}
!40 = !{!"_ZTSN11spirv_cross8Compiler29StaticExpressionAccessHandlerE", !41, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !12, i64 24}
!41 = !{!"_ZTSN11spirv_cross8Compiler13OpcodeHandlerE"}
!42 = !{!40, !12, i64 20}
!43 = !{!44, !10, i64 266}
!44 = !{!"_ZTSN11spirv_cross12SPIRConstantE", !23, i64 0, !25, i64 12, !45, i64 16, !10, i64 264, !10, i64 265, !10, i64 266, !46, i64 272, !49, i64 328}
!45 = !{!"_ZTSN11spirv_cross12SPIRConstant14ConstantMatrixE", !7, i64 0, !7, i64 224, !12, i64 240}
!46 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE3EEELm8EEE", !47, i64 0, !17, i64 16, !48, i64 24}
!47 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE3EEEEE", !6, i64 0, !17, i64 8}
!48 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE3EEELm8EEE", !7, i64 0}
!49 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !50, i64 0, !17, i64 8, !7, i64 16}
!50 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!51 = !{i64 0, i64 4, !11}
!52 = !{!22, !10, i64 89}
!53 = !{!22, !10, i64 155}


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

%"struct.std::__detail::_Node_iterator.347" = type { %"struct.std::__detail::_Node_iterator_base.348" }
%"struct.std::__detail::_Node_iterator_base.348" = type { ptr }
%"struct.std::__detail::_Node_const_iterator.299" = type { %"struct.std::__detail::_Node_iterator_base.300" }
%"struct.std::__detail::_Node_iterator_base.300" = type { ptr }
%"class.spirv_cross::DominatorBuilder" = type <{ ptr, i32, [4 x i8] }>
%"struct.std::__detail::_Node_const_iterator.359" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.spirv_cross::Compiler::StaticExpressionAccessHandler" = type <{ %"struct.spirv_cross::Compiler::OpcodeHandler", ptr, i32, i32, i32, [4 x i8] }>
%"struct.spirv_cross::Compiler::OpcodeHandler" = type { ptr }
%"class.spirv_cross::TypedID.162" = type { i32 }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross8Compiler30traverse_all_reachable_opcodesERKNS_9SPIRBlockERNS0_13OpcodeHandlerE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(976), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 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 #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3endISt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES3_S5_SaISt4pairIKjS7_EEEEDTcldtfp_3endEERKT_(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross8Compiler24find_function_local_lutsERNS_12SPIRFunctionERKNS0_33AnalyzeVariableScopeAccessHandlerEb(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 8 dereferenceable(795) %1, ptr noundef nonnull align 8 dereferenceable(424) %2, i1 noundef zeroext %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.std::__detail::_Node_iterator.347", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::__detail::_Node_const_iterator.299", align 8
  %8 = alloca %"struct.std::__detail::_Node_const_iterator.299", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::__detail::_Node_const_iterator.299", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::__detail::_Node_const_iterator.299", align 8
  %15 = alloca %"class.spirv_cross::DominatorBuilder", align 8
  %16 = alloca %"struct.std::__detail::_Node_const_iterator.359", align 8
  %17 = alloca %"struct.std::__detail::_Node_const_iterator.359", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"struct.spirv_cross::Compiler::StaticExpressionAccessHandler", align 8
  %20 = alloca %"class.spirv_cross::TypedID.162", align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %21 = getelementptr inbounds i8, ptr %0, i64 2888
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %22 = getelementptr inbounds i8, ptr %1, i64 8
  %23 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %22)
  store i32 %23, ptr %6, align 4, !tbaa !5
  %24 = call ptr @_ZNSt13unordered_mapIjSt10unique_ptrIN11spirv_cross3CFGESt14default_deleteIS2_EESt4hashIjESt8equal_toIjESaISt4pairIKjS5_EEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 4 dereferenceable(4) %6)
  store ptr %24, ptr %5, align 8
  %25 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjSt10unique_ptrIN11spirv_cross3CFGESt14default_deleteIS5_EEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = call noundef nonnull align 8 dereferenceable(356) ptr @_ZNKSt10unique_ptrIN11spirv_cross3CFGESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %28 = getelementptr inbounds i8, ptr %2, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %29 = call ptr @_ZNKSt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES2_S4_SaISt4pairIKjS6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %28) #5
  store ptr %29, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %30 = call ptr @_ZNKSt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES2_S4_SaISt4pairIKjS6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %28) #5
  store ptr %30, ptr %8, align 8
  %31 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %31, label %.lr.ph76, label %._crit_edge77

.lr.ph76:                                         ; preds = %4
  %32 = getelementptr inbounds i8, ptr %2, i64 192
  %33 = getelementptr inbounds i8, ptr %2, i64 248
  %34 = getelementptr inbounds i8, ptr %0, i64 40
  %35 = getelementptr inbounds i8, ptr %19, i64 24
  %36 = getelementptr inbounds i8, ptr %19, i64 20
  br label %37

._crit_edge77:                                    ; preds = %131, %4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  ret void

37:                                               ; preds = %.lr.ph76, %131
  %38 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = load i32, ptr %38, align 8, !tbaa !9
  %41 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRVariableEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %40)
  %42 = load i32, ptr %38, align 8, !tbaa !9
  %43 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZNK11spirv_cross8Compiler15expression_typeEj(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %42)
  %44 = getelementptr inbounds i8, ptr %41, i64 166
  %45 = load i8, ptr %44, align 2, !tbaa !18, !range !33, !noundef !34
  %46 = trunc nuw i8 %45 to i1
  br i1 %46, label %58, label %47

47:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  %48 = getelementptr inbounds i8, ptr %41, i64 8
  %49 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %48)
  store i32 %49, ptr %9, align 4, !tbaa !5
  %50 = call noundef i64 @_ZNKSt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES2_S4_SaISt4pairIKjS6_EEE5countERS8_(ptr noundef nonnull align 8 dereferenceable(56) %32, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %.not = icmp eq i64 %50, 0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  br i1 %.not, label %51, label %55

51:                                               ; preds = %47
  %52 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %48)
  store i32 %52, ptr %10, align 4, !tbaa !5
  %53 = call noundef i64 @_ZNKSt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES2_S4_SaISt4pairIKjS6_EEE5countERS8_(ptr noundef nonnull align 8 dereferenceable(56) %33, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %54 = icmp ne i64 %53, 0
  br label %55

55:                                               ; preds = %51, %47
  %56 = phi i1 [ true, %47 ], [ %54, %51 ]
  %57 = zext i1 %56 to i8
  store i8 %57, ptr %44, align 2, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  br label %58

58:                                               ; preds = %55, %37
  %59 = getelementptr inbounds i8, ptr %41, i64 16
  %60 = load i32, ptr %59, align 8, !tbaa !35
  %61 = icmp eq i32 %60, 7
  %62 = icmp eq i32 %60, 6
  %spec.select = and i1 %62, %3
  %or.cond60 = or i1 %61, %spec.select
  br i1 %or.cond60, label %.critedge, label %131

.critedge:                                        ; preds = %58
  %63 = getelementptr inbounds i8, ptr %41, i64 153
  %64 = load i8, ptr %63, align 1, !tbaa !36, !range !33, !noundef !34
  %65 = trunc nuw i8 %64 to i1
  br i1 %65, label %131, label %66

66:                                               ; preds = %.critedge
  %67 = getelementptr inbounds i8, ptr %43, i64 32
  %68 = call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewIjE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %67) #5
  br i1 %68, label %131, label %69

69:                                               ; preds = %66
  %70 = getelementptr inbounds i8, ptr %41, i64 24
  %71 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %70)
  %.not55 = icmp eq i32 %71, 0
  br i1 %.not55, label %81, label %72

72:                                               ; preds = %69
  %73 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %70)
  %74 = zext i32 %73 to i64
  %75 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %34, i64 noundef %74) #5
  %76 = call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %75)
  %.not59 = icmp eq i32 %76, 3
  br i1 %.not59, label %77, label %131

77:                                               ; preds = %72
  %78 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %70)
  %79 = load i8, ptr %44, align 2, !tbaa !18, !range !33, !noundef !34
  %80 = trunc nuw i8 %79 to i1
  br i1 %80, label %131, label %124

81:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %82 = getelementptr inbounds i8, ptr %41, i64 8
  %83 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %82)
  store i32 %83, ptr %11, align 4, !tbaa !5
  %84 = call noundef i64 @_ZNKSt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES2_S4_SaISt4pairIKjS6_EEE5countERS8_(ptr noundef nonnull align 8 dereferenceable(56) %33, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %.not56 = icmp eq i64 %84, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br i1 %.not56, label %85, label %131

85:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  %86 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %82)
  store i32 %86, ptr %13, align 4, !tbaa !5
  %87 = call ptr @_ZNKSt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES2_S4_SaISt4pairIKjS6_EEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %32, ptr noundef nonnull align 4 dereferenceable(4) %13)
  store ptr %87, ptr %12, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %88 = call ptr @_ZSt3endISt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES3_S5_SaISt4pairIKjS7_EEEEDTcldtfp_3endEERKT_(ptr noundef nonnull align 8 dereferenceable(56) %32)
  store ptr %88, ptr %14, align 8
  %89 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br i1 %89, label %.thread, label %90

90:                                               ; preds = %85
  %91 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  %93 = call noundef i64 @_ZNKSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %92) #5
  %.not57 = icmp eq i64 %93, 1
  br i1 %.not57, label %94, label %.thread

94:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #5
  call void @_ZN11spirv_cross16DominatorBuilderC1ERKNS_3CFGE(ptr noundef nonnull align 8 dereferenceable(12) %15, ptr noundef nonnull align 8 dereferenceable(356) %27)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %95 = call ptr @_ZNKSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %39) #5
  store ptr %95, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  %96 = call ptr @_ZNKSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %39) #5
  store ptr %96, ptr %17, align 8
  %97 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIjLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br i1 %97, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  %98 = call noundef i32 @_ZNK11spirv_cross16DominatorBuilder13get_dominatorEv(ptr noundef nonnull align 8 dereferenceable(12) %15)
  store i32 %98, ptr %18, align 4, !tbaa !5
  %99 = call noundef i64 @_ZNKSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE5countERKj(ptr noundef nonnull align 8 dereferenceable(56) %92, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %100 = icmp eq i64 %99, 0
  br i1 %100, label %.thread66, label %105

.thread66:                                        ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %131

.lr.ph:                                           ; preds = %94, %.lr.ph
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt8__detail20_Node_const_iteratorIjLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %102 = load i32, ptr %101, align 4, !tbaa !5
  call void @_ZN11spirv_cross16DominatorBuilder9add_blockEj(ptr noundef nonnull align 8 dereferenceable(12) %15, i32 noundef %102)
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorIjLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %104 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIjLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br i1 %104, label %.lr.ph, label %._crit_edge

105:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #5
  %106 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %82)
  call void @_ZN11spirv_cross8Compiler29StaticExpressionAccessHandlerC1ERS0_j(ptr noundef nonnull align 8 dereferenceable(28) %19, ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %106)
  %107 = load i32, ptr %18, align 4, !tbaa !5
  %108 = invoke noundef nonnull align 8 dereferenceable(976) ptr @_ZN11spirv_cross8Compiler3getINS_9SPIRBlockEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %107)
          to label %109 unwind label %116

109:                                              ; preds = %105
  %110 = invoke noundef zeroext i1 @_ZNK11spirv_cross8Compiler30traverse_all_reachable_opcodesERKNS_9SPIRBlockERNS0_13OpcodeHandlerE(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 8 dereferenceable(976) %108, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %111 unwind label %116

111:                                              ; preds = %109
  %112 = load i32, ptr %35, align 8, !tbaa !37
  %113 = icmp ne i32 %112, 1
  %114 = load i32, ptr %36, align 4
  %115 = icmp eq i32 %114, 0
  %or.cond = select i1 %113, i1 true, i1 %115
  br i1 %or.cond, label %.thread71, label %118

116:                                              ; preds = %109, %105
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN11spirv_cross8Compiler13OpcodeHandlerD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  resume { ptr, i32 } %117

118:                                              ; preds = %111
  %119 = zext i32 %114 to i64
  %120 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %34, i64 noundef %119) #5
  %121 = call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %120)
  %.not58 = icmp eq i32 %121, 3
  br i1 %.not58, label %122, label %.thread71

.thread:                                          ; preds = %85, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %131

.thread71:                                        ; preds = %111, %118
  call void @_ZN11spirv_cross8Compiler13OpcodeHandlerD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %131

122:                                              ; preds = %118
  %123 = load i32, ptr %36, align 4
  call void @_ZN11spirv_cross8Compiler13OpcodeHandlerD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %124

124:                                              ; preds = %122, %77
  %.452 = phi i32 [ %78, %77 ], [ %123, %122 ]
  %125 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRConstantEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %.452)
  %126 = getelementptr inbounds i8, ptr %125, i64 266
  store i8 1, ptr %126, align 2, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #5
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %.452)
  %127 = getelementptr inbounds i8, ptr %41, i64 92
  %128 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %128, ptr %127, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  %129 = getelementptr inbounds i8, ptr %41, i64 89
  store i8 1, ptr %129, align 1, !tbaa !48
  %130 = getelementptr inbounds i8, ptr %41, i64 155
  store i8 1, ptr %130, align 1, !tbaa !49
  br label %131

131:                                              ; preds = %.thread71, %.thread66, %.thread, %58, %124, %72, %77, %81, %66, %.critedge
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %133 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %133, label %37, label %._crit_edge77
}

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

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

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

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

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

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

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

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

declare void @_ZN11spirv_cross16DominatorBuilderC1ERKNS_3CFGE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(356)) unnamed_addr #4

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

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

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

declare void @_ZN11spirv_cross16DominatorBuilder9add_blockEj(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross16DominatorBuilder13get_dominatorEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #2 align 2

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

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

declare void @_ZN11spirv_cross8Compiler29StaticExpressionAccessHandlerC1ERS0_j(ptr, ptr, i32) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSSt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEE", !6, i64 0, !11, i64 8}
!11 = !{!"_ZTSSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE", !12, i64 0}
!12 = !{!"_ZTSSt10_HashtableIjjSaIjENSt8__detail9_IdentityESt8equal_toIjESt4hashIjENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !13, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !13, i64 48}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !13, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !7, i64 0}
!18 = !{!19, !28, i64 166}
!19 = !{!"_ZTSN11spirv_cross12SPIRVariableE", !20, i64 0, !22, i64 12, !23, i64 16, !6, i64 20, !21, i64 24, !24, i64 28, !25, i64 32, !28, i64 88, !28, i64 89, !21, i64 92, !29, i64 96, !28, i64 152, !28, i64 153, !28, i64 154, !28, i64 155, !6, i64 156, !32, i64 160, !28, i64 164, !28, i64 165, !28, i64 166, !13, i64 168}
!20 = !{!"_ZTSN11spirv_cross8IVariantE", !21, i64 8}
!21 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !6, i64 0}
!22 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !6, i64 0}
!23 = !{!"_ZTSN3spv12StorageClassE", !7, i64 0}
!24 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE2EEE", !6, i64 0}
!25 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !26, i64 0, !14, i64 16, !27, i64 24}
!26 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !13, i64 0, !14, i64 8}
!27 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !30, i64 0, !14, i64 16, !31, i64 24}
!30 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !13, i64 0, !14, i64 8}
!31 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !7, i64 0}
!32 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !6, i64 0}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!19, !23, i64 16}
!36 = !{!19, !28, i64 153}
!37 = !{!38, !6, i64 24}
!38 = !{!"_ZTSN11spirv_cross8Compiler29StaticExpressionAccessHandlerE", !39, i64 0, !13, i64 8, !6, i64 16, !6, i64 20, !6, i64 24}
!39 = !{!"_ZTSN11spirv_cross8Compiler13OpcodeHandlerE"}
!40 = !{!41, !28, i64 266}
!41 = !{!"_ZTSN11spirv_cross12SPIRConstantE", !20, i64 0, !22, i64 12, !42, i64 16, !28, i64 264, !28, i64 265, !28, i64 266, !43, i64 272, !46, i64 328}
!42 = !{!"_ZTSN11spirv_cross12SPIRConstant14ConstantMatrixE", !7, i64 0, !7, i64 224, !6, i64 240}
!43 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE3EEELm8EEE", !44, i64 0, !14, i64 16, !45, i64 24}
!44 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE3EEEEE", !13, i64 0, !14, i64 8}
!45 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE3EEELm8EEE", !7, i64 0}
!46 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !47, i64 0, !14, i64 8, !7, i64 16}
!47 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!48 = !{!19, !28, i64 89}
!49 = !{!19, !28, i64 155}


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