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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.spirv_cross::Compiler::DummySamplerForCombinedImageHandler" = type <{ %"struct.spirv_cross::Compiler::OpcodeHandler", ptr, i8, [7 x i8] }>
%"struct.spirv_cross::Compiler::OpcodeHandler" = type { ptr }
%"struct.spirv_cross::SPIRType" = type { %"struct.spirv_cross::IVariant.base", i32, i32, i32, i32, i32, %"class.spirv_cross::SmallVector.92", %"class.spirv_cross::SmallVector.166", i32, i8, i8, i32, %"class.spirv_cross::SmallVector.169", %"class.spirv_cross::SmallVector.92", %"struct.spirv_cross::SPIRType::ImageType", %"class.spirv_cross::TypedID.163", %"class.spirv_cross::TypedID.163", %"class.std::unordered_set.172" }
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.162" }>
%"class.spirv_cross::TypedID.162" = type { i32 }
%"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] }
%"class.spirv_cross::SmallVector.92" = type { %"class.spirv_cross::VectorView.93", i64, %"class.spirv_cross::AlignedBuffer.94" }
%"class.spirv_cross::VectorView.93" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.94" = type { [32 x i8] }
%"struct.spirv_cross::SPIRType::ImageType" = type { %"class.spirv_cross::TypedID.163", i32, i8, i8, i8, i32, i32, i32 }
%"class.spirv_cross::TypedID.163" = type { 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.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"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 }
%"class.spirv_cross::TypedID.164" = type { i32 }
%"class.spirv_cross::SmallVector.7" = type { %"class.spirv_cross::VectorView.8", i64, %"class.spirv_cross::AlignedBuffer.9" }
%"class.spirv_cross::VectorView.8" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.9" = type { [32 x i8] }
%"class.spirv_cross::TypedID.165" = type { i32 }
%"class.spirv_cross::Compiler" = type { ptr, %"class.spirv_cross::ParsedIR", %"class.spirv_cross::SmallVector.92", %"class.spirv_cross::SmallVector.92", ptr, ptr, i32, %"class.std::unordered_set.95", i8, %"class.std::unordered_set", i8, i8, %"class.spirv_cross::SmallVector.114", %"class.spirv_cross::SmallVector.92", %"class.std::function", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.spirv_cross::Bitset", %"class.spirv_cross::Bitset", i32, i32, i8, %"class.std::unordered_set", i8, i8, i32, %"class.std::unordered_map.117", %"class.spirv_cross::SmallVector.92", %"class.std::unordered_map.131", %"class.std::unordered_set", i8, %"class.std::unordered_map.145" }
%"class.spirv_cross::ParsedIR" = type { %"class.std::unique_ptr", %"class.std::vector", %"class.spirv_cross::SmallVector", %"class.std::unordered_map", [14 x %"class.spirv_cross::SmallVector.7"], %"class.spirv_cross::SmallVector.7", %"class.spirv_cross::SmallVector.7", %"class.std::unordered_map.10", %"class.spirv_cross::SmallVector.24", %"class.spirv_cross::SmallVector.27", %"class.spirv_cross::SmallVector.30", %"class.std::unordered_map.33", %"class.std::unordered_map.52", %"class.spirv_cross::TypedID", %"struct.spirv_cross::ParsedIR::Source", i32, i32, i32, i32, %"class.std::__cxx11::basic_string", %"class.spirv_cross::Bitset", %"class.std::unordered_set" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.spirv_cross::SmallVector" = type { %"class.spirv_cross::VectorView", i64, %"class.spirv_cross::AlignedBuffer" }
%"class.spirv_cross::VectorView" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer" = type { [192 x i8] }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.10" = type { %"class.std::_Hashtable.11" }
%"class.std::_Hashtable.11" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::SmallVector.24" = type { %"class.spirv_cross::VectorView.25", i64, %"class.spirv_cross::AlignedBuffer.26" }
%"class.spirv_cross::VectorView.25" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.26" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.27" = type { %"class.spirv_cross::VectorView.28", i64, %"class.spirv_cross::AlignedBuffer.29" }
%"class.spirv_cross::VectorView.28" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.29" = type { [256 x i8] }
%"class.spirv_cross::SmallVector.30" = type { %"class.spirv_cross::VectorView.31", i64, %"class.spirv_cross::AlignedBuffer.32" }
%"class.spirv_cross::VectorView.31" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.32" = type { [8 x i8] }
%"class.std::unordered_map.33" = type { %"class.std::_Hashtable.34" }
%"class.std::_Hashtable.34" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.52" = type { %"class.std::_Hashtable.53" }
%"class.std::_Hashtable.53" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::TypedID" = type { i32 }
%"struct.spirv_cross::ParsedIR::Source" = type <{ i32, i8, i8, i8, i8 }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::unordered_set.95" = type { %"class.std::_Hashtable.96" }
%"class.std::_Hashtable.96" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::SmallVector.114" = type { %"class.spirv_cross::VectorView.115", i64, %"class.spirv_cross::AlignedBuffer.116" }
%"class.spirv_cross::VectorView.115" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.116" = type { [96 x i8] }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.spirv_cross::Bitset" = type { i64, %"class.std::unordered_set" }
%"class.std::unordered_map.117" = type { %"class.std::_Hashtable.118" }
%"class.std::_Hashtable.118" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.131" = type { %"class.std::_Hashtable.132" }
%"class.std::_Hashtable.132" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.74" }
%"class.std::_Hashtable.74" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.145" = type { %"class.std::_Hashtable.146" }
%"class.std::_Hashtable.146" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

@.str = external hidden unnamed_addr constant [1 x i8], align 1

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11spirv_cross8Compiler35DummySamplerForCombinedImageHandler6handleEN3spv2OpEPKjj(ptr noundef nonnull align 8 dereferenceable(17) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i8, align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !11
  %25 = load ptr, ptr %6, align 8
  %26 = getelementptr inbounds %"struct.spirv_cross::Compiler::DummySamplerForCombinedImageHandler", ptr %25, i32 0, i32 2
  %27 = load i8, ptr %26, align 8, !tbaa !13, !range !17, !noundef !18
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %30

29:                                               ; preds = %4
  store i1 false, ptr %5, align 1
  br label %179

30:                                               ; preds = %4
  %31 = load i32, ptr %7, align 4, !tbaa !9
  switch i32 %31, label %177 [
    i32 61, label %32
    i32 95, label %83
    i32 103, label %83
    i32 104, label %83
    i32 106, label %83
    i32 107, label %83
    i32 66, label %119
    i32 65, label %119
    i32 67, label %119
  ]

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

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

36:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds i32, ptr %37, i64 0
  %39 = load i32, ptr %38, align 4, !tbaa !11
  store i32 %39, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %40 = getelementptr inbounds %"struct.spirv_cross::Compiler::DummySamplerForCombinedImageHandler", ptr %25, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8, !tbaa !19
  %42 = load i32, ptr %10, align 4, !tbaa !11
  %43 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %41, i32 noundef %42)
  store ptr %43, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #3
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %44, i32 0, i32 2
  %46 = load i32, ptr %45, align 8, !tbaa !20
  %47 = icmp eq i32 %46, 16
  br i1 %47, label %48, label %60

48:                                               ; preds = %36
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %49, i32 0, i32 14
  %51 = getelementptr inbounds %"struct.spirv_cross::SPIRType::ImageType", ptr %50, i32 0, i32 5
  %52 = load i32, ptr %51, align 4, !tbaa !46
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %54, label %60

54:                                               ; preds = %48
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %55, i32 0, i32 14
  %57 = getelementptr inbounds %"struct.spirv_cross::SPIRType::ImageType", ptr %56, i32 0, i32 1
  %58 = load i32, ptr %57, align 4, !tbaa !47
  %59 = icmp ne i32 %58, 5
  br label %60

60:                                               ; preds = %54, %48, %36
  %61 = phi i1 [ false, %48 ], [ false, %36 ], [ %59, %54 ]
  %62 = zext i1 %61 to i8
  store i8 %62, ptr %12, align 1, !tbaa !48
  %63 = load i8, ptr %12, align 1, !tbaa !48, !range !17, !noundef !18
  %64 = trunc i8 %63 to i1
  br i1 %64, label %66, label %65

65:                                               ; preds = %60
  store i1 true, ptr %5, align 1
  store i32 1, ptr %13, align 4
  br label %81

66:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds i32, ptr %67, i64 1
  %69 = load i32, ptr %68, align 4, !tbaa !11
  store i32 %69, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds i32, ptr %70, i64 2
  %72 = load i32, ptr %71, align 4, !tbaa !11
  store i32 %72, ptr %15, align 4, !tbaa !11
  %73 = getelementptr inbounds %"struct.spirv_cross::Compiler::DummySamplerForCombinedImageHandler", ptr %25, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !19
  %75 = load i32, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #3
  store i8 1, ptr %16, align 1, !tbaa !48
  %76 = call noundef nonnull align 8 dereferenceable(236) ptr @_ZN11spirv_cross8Compiler3setINS_14SPIRExpressionEJRA1_KcRjbEEERT_jDpOT0_(ptr noundef nonnull align 8 dereferenceable(3176) %74, i32 noundef %75, ptr noundef nonnull align 1 dereferenceable(1) @.str, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 1 dereferenceable(1) %16)
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #3
  %77 = getelementptr inbounds %"struct.spirv_cross::Compiler::DummySamplerForCombinedImageHandler", ptr %25, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !19
  %79 = load i32, ptr %14, align 4, !tbaa !11
  %80 = load i32, ptr %15, align 4, !tbaa !11
  call void @_ZN11spirv_cross8Compiler13register_readEjjb(ptr noundef nonnull align 8 dereferenceable(3176) %78, i32 noundef %79, i32 noundef %80, i1 noundef zeroext true)
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %81

81:                                               ; preds = %66, %65
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %82 = load i32, ptr %13, align 4
  switch i32 %82, label %181 [
    i32 1, label %179
    i32 2, label %178
  ]

83:                                               ; preds = %30, %30, %30, %30, %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %84 = getelementptr inbounds %"struct.spirv_cross::Compiler::DummySamplerForCombinedImageHandler", ptr %25, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !19
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds i32, ptr %86, i64 2
  %88 = load i32, ptr %87, align 4, !tbaa !11
  %89 = call noundef ptr @_ZN11spirv_cross8Compiler26maybe_get_backing_variableEj(ptr noundef nonnull align 8 dereferenceable(3176) %85, i32 noundef %88)
  store ptr %89, ptr %17, align 8, !tbaa !5
  %90 = load ptr, ptr %17, align 8, !tbaa !5
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %118

92:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %93 = getelementptr inbounds %"struct.spirv_cross::Compiler::DummySamplerForCombinedImageHandler", ptr %25, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !19
  %95 = load ptr, ptr %17, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %95, i32 0, i32 1
  %97 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %96)
  %98 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %94, i32 noundef %97)
  store ptr %98, ptr %18, align 8, !tbaa !5
  %99 = load ptr, ptr %18, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %99, i32 0, i32 2
  %101 = load i32, ptr %100, align 8, !tbaa !20
  %102 = icmp eq i32 %101, 16
  br i1 %102, label %103, label %117

103:                                              ; preds = %92
  %104 = load ptr, ptr %18, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %104, i32 0, i32 14
  %106 = getelementptr inbounds %"struct.spirv_cross::SPIRType::ImageType", ptr %105, i32 0, i32 5
  %107 = load i32, ptr %106, align 4, !tbaa !46
  %108 = icmp eq i32 %107, 1
  br i1 %108, label %109, label %117

109:                                              ; preds = %103
  %110 = load ptr, ptr %18, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %110, i32 0, i32 14
  %112 = getelementptr inbounds %"struct.spirv_cross::SPIRType::ImageType", ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 4, !tbaa !47
  %114 = icmp ne i32 %113, 5
  br i1 %114, label %115, label %117

115:                                              ; preds = %109
  %116 = getelementptr inbounds %"struct.spirv_cross::Compiler::DummySamplerForCombinedImageHandler", ptr %25, i32 0, i32 2
  store i8 1, ptr %116, align 8, !tbaa !13
  br label %117

117:                                              ; preds = %115, %109, %103, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  br label %118

118:                                              ; preds = %117, %83
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  br label %178

119:                                              ; preds = %30, %30, %30
  %120 = load i32, ptr %9, align 4, !tbaa !11
  %121 = icmp ult i32 %120, 3
  br i1 %121, label %122, label %123

122:                                              ; preds = %119
  store i1 false, ptr %5, align 1
  br label %179

123:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds i32, ptr %124, i64 0
  %126 = load i32, ptr %125, align 4, !tbaa !11
  store i32 %126, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %127 = getelementptr inbounds %"struct.spirv_cross::Compiler::DummySamplerForCombinedImageHandler", ptr %25, i32 0, i32 1
  %128 = load ptr, ptr %127, align 8, !tbaa !19
  %129 = load i32, ptr %19, align 4, !tbaa !11
  %130 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %128, i32 noundef %129)
  store ptr %130, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #3
  %131 = load ptr, ptr %20, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %131, i32 0, i32 2
  %133 = load i32, ptr %132, align 8, !tbaa !20
  %134 = icmp eq i32 %133, 16
  br i1 %134, label %135, label %147

135:                                              ; preds = %123
  %136 = load ptr, ptr %20, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %136, i32 0, i32 14
  %138 = getelementptr inbounds %"struct.spirv_cross::SPIRType::ImageType", ptr %137, i32 0, i32 5
  %139 = load i32, ptr %138, align 4, !tbaa !46
  %140 = icmp eq i32 %139, 1
  br i1 %140, label %141, label %147

141:                                              ; preds = %135
  %142 = load ptr, ptr %20, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %142, i32 0, i32 14
  %144 = getelementptr inbounds %"struct.spirv_cross::SPIRType::ImageType", ptr %143, i32 0, i32 1
  %145 = load i32, ptr %144, align 4, !tbaa !47
  %146 = icmp ne i32 %145, 5
  br label %147

147:                                              ; preds = %141, %135, %123
  %148 = phi i1 [ false, %135 ], [ false, %123 ], [ %146, %141 ]
  %149 = zext i1 %148 to i8
  store i8 %149, ptr %21, align 1, !tbaa !48
  %150 = load i8, ptr %21, align 1, !tbaa !48, !range !17, !noundef !18
  %151 = trunc i8 %150 to i1
  br i1 %151, label %153, label %152

152:                                              ; preds = %147
  store i1 true, ptr %5, align 1
  store i32 1, ptr %13, align 4
  br label %175

153:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = getelementptr inbounds i32, ptr %154, i64 1
  %156 = load i32, ptr %155, align 4, !tbaa !11
  store i32 %156, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds i32, ptr %157, i64 2
  %159 = load i32, ptr %158, align 4, !tbaa !11
  store i32 %159, ptr %23, align 4, !tbaa !11
  %160 = getelementptr inbounds %"struct.spirv_cross::Compiler::DummySamplerForCombinedImageHandler", ptr %25, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8, !tbaa !19
  %162 = load i32, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #3
  store i8 1, ptr %24, align 1, !tbaa !48
  %163 = call noundef nonnull align 8 dereferenceable(236) ptr @_ZN11spirv_cross8Compiler3setINS_14SPIRExpressionEJRA1_KcRjbEEERT_jDpOT0_(ptr noundef nonnull align 8 dereferenceable(3176) %161, i32 noundef %162, ptr noundef nonnull align 1 dereferenceable(1) @.str, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 1 dereferenceable(1) %24)
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #3
  %164 = getelementptr inbounds %"struct.spirv_cross::Compiler::DummySamplerForCombinedImageHandler", ptr %25, i32 0, i32 1
  %165 = load ptr, ptr %164, align 8, !tbaa !19
  %166 = load i32, ptr %22, align 4, !tbaa !11
  %167 = load i32, ptr %23, align 4, !tbaa !11
  call void @_ZN11spirv_cross8Compiler13register_readEjjb(ptr noundef nonnull align 8 dereferenceable(3176) %165, i32 noundef %166, i32 noundef %167, i1 noundef zeroext true)
  %168 = getelementptr inbounds %"struct.spirv_cross::Compiler::DummySamplerForCombinedImageHandler", ptr %25, i32 0, i32 1
  %169 = load ptr, ptr %168, align 8, !tbaa !19
  %170 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %169, i32 0, i32 1
  %171 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %170, i32 0, i32 2
  %172 = load i32, ptr %22, align 4, !tbaa !11
  %173 = zext i32 %172 to i64
  %174 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %171, i64 noundef %173) #3
  call void @_ZN11spirv_cross7Variant22set_allow_type_rewriteEv(ptr noundef nonnull align 8 dereferenceable(21) %174)
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  br label %175

175:                                              ; preds = %153, %152
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  %176 = load i32, ptr %13, align 4
  switch i32 %176, label %181 [
    i32 1, label %179
    i32 2, label %178
  ]

177:                                              ; preds = %30
  br label %178

178:                                              ; preds = %177, %175, %118, %81
  store i1 true, ptr %5, align 1
  br label %179

179:                                              ; preds = %178, %175, %122, %81, %35, %29
  %180 = load i1, ptr %5, align 1
  ret i1 %180

181:                                              ; preds = %175, %81
  unreachable
}

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

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

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

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

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


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

@.str = external hidden unnamed_addr constant [1 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11spirv_cross8Compiler13register_readEjjb(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef, i32 noundef, i1 noundef zeroext) 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
define dso_local noundef zeroext i1 @_ZN11spirv_cross8Compiler35DummySamplerForCombinedImageHandler6handleEN3spv2OpEPKjj(ptr nocapture noundef nonnull align 8 dereferenceable(17) %0, i32 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = load i8, ptr %9, align 8, !tbaa !5, !range !12, !noundef !13
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %85, label %12

12:                                               ; preds = %4
  switch i32 %1, label %85 [
    i32 61, label %13
    i32 95, label %37
    i32 103, label %37
    i32 104, label %37
    i32 106, label %37
    i32 107, label %37
    i32 66, label %57
    i32 65, label %57
    i32 67, label %57
  ]

13:                                               ; preds = %12
  %14 = icmp ult i32 %3, 3
  br i1 %14, label %85, label %15

15:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  %16 = load i32, ptr %2, align 4, !tbaa !14
  store i32 %16, ptr %5, align 4, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !16
  %19 = tail call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %18, i32 noundef %16)
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %21 = load i32, ptr %20, align 8, !tbaa !17
  %22 = icmp eq i32 %21, 16
  %23 = getelementptr inbounds i8, ptr %19, i64 260
  %24 = load i32, ptr %23, align 4
  %25 = icmp eq i32 %24, 1
  %or.cond = select i1 %22, i1 %25, i1 false
  %26 = getelementptr inbounds i8, ptr %19, i64 252
  %27 = load i32, ptr %26, align 4
  %28 = icmp ne i32 %27, 5
  %or.cond52 = select i1 %or.cond, i1 %28, i1 false
  br i1 %or.cond52, label %29, label %.critedge

29:                                               ; preds = %15
  %30 = getelementptr inbounds i8, ptr %2, i64 4
  %31 = load i32, ptr %30, align 4, !tbaa !14
  %32 = getelementptr inbounds i8, ptr %2, i64 8
  %33 = load i32, ptr %32, align 4, !tbaa !14
  %34 = load ptr, ptr %17, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #3
  store i8 1, ptr %6, align 1, !tbaa !44
  %35 = call noundef nonnull align 8 dereferenceable(236) ptr @_ZN11spirv_cross8Compiler3setINS_14SPIRExpressionEJRA1_KcRjbEEERT_jDpOT0_(ptr noundef nonnull align 8 dereferenceable(3176) %34, i32 noundef %31, ptr noundef nonnull align 1 dereferenceable(1) @.str, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #3
  %36 = load ptr, ptr %17, align 8, !tbaa !16
  call void @_ZN11spirv_cross8Compiler13register_readEjjb(ptr noundef nonnull align 8 dereferenceable(3176) %36, i32 noundef %31, i32 noundef %33, i1 noundef zeroext true)
  br label %.critedge

.critedge:                                        ; preds = %15, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  br label %85

37:                                               ; preds = %12, %12, %12, %12, %12
  %38 = getelementptr inbounds i8, ptr %0, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  %40 = getelementptr inbounds i8, ptr %2, i64 8
  %41 = load i32, ptr %40, align 4, !tbaa !14
  %42 = tail call noundef ptr @_ZN11spirv_cross8Compiler26maybe_get_backing_variableEj(ptr noundef nonnull align 8 dereferenceable(3176) %39, i32 noundef %41)
  %.not = icmp eq ptr %42, null
  br i1 %.not, label %85, label %43

43:                                               ; preds = %37
  %44 = load ptr, ptr %38, align 8, !tbaa !16
  %45 = getelementptr inbounds i8, ptr %42, i64 12
  %46 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %45)
  %47 = tail call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %44, i32 noundef %46)
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  %49 = load i32, ptr %48, align 8, !tbaa !17
  %50 = icmp ne i32 %49, 16
  %51 = getelementptr inbounds i8, ptr %47, i64 260
  %52 = load i32, ptr %51, align 4
  %53 = icmp ne i32 %52, 1
  %or.cond40.not58 = select i1 %50, i1 true, i1 %53
  %54 = getelementptr inbounds i8, ptr %47, i64 252
  %55 = load i32, ptr %54, align 4
  %.not35 = icmp eq i32 %55, 5
  %or.cond42 = select i1 %or.cond40.not58, i1 true, i1 %.not35
  br i1 %or.cond42, label %85, label %56

56:                                               ; preds = %43
  store i8 1, ptr %9, align 8, !tbaa !5
  br label %85

57:                                               ; preds = %12, %12, %12
  %58 = icmp ult i32 %3, 3
  br i1 %58, label %85, label %59

59:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  %60 = load i32, ptr %2, align 4, !tbaa !14
  store i32 %60, ptr %7, align 4, !tbaa !14
  %61 = getelementptr inbounds i8, ptr %0, i64 8
  %62 = load ptr, ptr %61, align 8, !tbaa !16
  %63 = tail call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %62, i32 noundef %60)
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  %65 = load i32, ptr %64, align 8, !tbaa !17
  %66 = icmp eq i32 %65, 16
  %67 = getelementptr inbounds i8, ptr %63, i64 260
  %68 = load i32, ptr %67, align 4
  %69 = icmp eq i32 %68, 1
  %or.cond45 = select i1 %66, i1 %69, i1 false
  %70 = getelementptr inbounds i8, ptr %63, i64 252
  %71 = load i32, ptr %70, align 4
  %72 = icmp ne i32 %71, 5
  %or.cond55 = select i1 %or.cond45, i1 %72, i1 false
  br i1 %or.cond55, label %73, label %.critedge47

73:                                               ; preds = %59
  %74 = getelementptr inbounds i8, ptr %2, i64 4
  %75 = load i32, ptr %74, align 4, !tbaa !14
  %76 = getelementptr inbounds i8, ptr %2, i64 8
  %77 = load i32, ptr %76, align 4, !tbaa !14
  %78 = load ptr, ptr %61, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #3
  store i8 1, ptr %8, align 1, !tbaa !44
  %79 = call noundef nonnull align 8 dereferenceable(236) ptr @_ZN11spirv_cross8Compiler3setINS_14SPIRExpressionEJRA1_KcRjbEEERT_jDpOT0_(ptr noundef nonnull align 8 dereferenceable(3176) %78, i32 noundef %75, ptr noundef nonnull align 1 dereferenceable(1) @.str, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #3
  %80 = load ptr, ptr %61, align 8, !tbaa !16
  call void @_ZN11spirv_cross8Compiler13register_readEjjb(ptr noundef nonnull align 8 dereferenceable(3176) %80, i32 noundef %75, i32 noundef %77, i1 noundef zeroext true)
  %81 = load ptr, ptr %61, align 8, !tbaa !16
  %82 = getelementptr inbounds i8, ptr %81, i64 40
  %83 = zext i32 %75 to i64
  %84 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %82, i64 noundef %83) #3
  call void @_ZN11spirv_cross7Variant22set_allow_type_rewriteEv(ptr noundef nonnull align 8 dereferenceable(21) %84)
  br label %.critedge47

.critedge47:                                      ; preds = %59, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  br label %85

85:                                               ; preds = %.critedge47, %.critedge, %12, %43, %56, %37, %57, %13, %4
  %.2 = phi i1 [ false, %4 ], [ false, %13 ], [ false, %57 ], [ true, %.critedge47 ], [ true, %37 ], [ true, %56 ], [ true, %43 ], [ true, %.critedge ], [ true, %12 ]
  ret i1 %.2
}

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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, !11, i64 16}
!6 = !{!"_ZTSN11spirv_cross8Compiler35DummySamplerForCombinedImageHandlerE", !7, i64 0, !8, i64 8, !11, i64 16}
!7 = !{!"_ZTSN11spirv_cross8Compiler13OpcodeHandlerE"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !9, i64 0}
!16 = !{!6, !8, i64 8}
!17 = !{!18, !22, i64 16}
!18 = !{!"_ZTSN11spirv_cross8SPIRTypeE", !19, i64 0, !21, i64 12, !22, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !23, i64 32, !27, i64 88, !15, i64 120, !11, i64 124, !11, i64 125, !30, i64 128, !31, i64 136, !23, i64 192, !34, i64 248, !35, i64 272, !35, i64 276, !39, i64 280}
!19 = !{!"_ZTSN11spirv_cross8IVariantE", !20, i64 8}
!20 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !15, i64 0}
!21 = !{!"_ZTSN3spv2OpE", !9, i64 0}
!22 = !{!"_ZTSN11spirv_cross8SPIRType8BaseTypeE", !9, i64 0}
!23 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !24, i64 0, !25, i64 16, !26, i64 24}
!24 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !8, i64 0, !25, i64 8}
!25 = !{!"long", !9, i64 0}
!26 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !9, i64 0}
!27 = !{!"_ZTSN11spirv_cross11SmallVectorIbLm8EEE", !28, i64 0, !25, i64 16, !29, i64 24}
!28 = !{!"_ZTSN11spirv_cross10VectorViewIbEE", !8, i64 0, !25, i64 8}
!29 = !{!"_ZTSN11spirv_cross13AlignedBufferIbLm8EEE", !9, i64 0}
!30 = !{!"_ZTSN3spv12StorageClassE", !9, i64 0}
!31 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EEE", !32, i64 0, !25, i64 16, !33, i64 24}
!32 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEE", !8, i64 0, !25, i64 8}
!33 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE1EEELm8EEE", !9, i64 0}
!34 = !{!"_ZTSN11spirv_cross8SPIRType9ImageTypeE", !35, i64 0, !36, i64 4, !11, i64 8, !11, i64 9, !11, i64 10, !15, i64 12, !37, i64 16, !38, i64 20}
!35 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !15, i64 0}
!36 = !{!"_ZTSN3spv3DimE", !9, i64 0}
!37 = !{!"_ZTSN3spv11ImageFormatE", !9, i64 0}
!38 = !{!"_ZTSN3spv15AccessQualifierE", !9, i64 0}
!39 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !40, i64 0}
!40 = !{!"_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", !8, i64 0, !25, i64 8, !41, i64 16, !25, i64 24, !42, i64 32, !8, i64 48}
!41 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !8, i64 0}
!42 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !43, i64 0, !25, i64 8}
!43 = !{!"float", !9, i64 0}
!44 = !{!11, !11, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass