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

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

%"class.spirv_cross::ParsedIR::LoopLock" = type { ptr }
%"class.spirv_cross::TypedID.281" = type { i32 }
%"class.spirv_cross::TypedID.280" = 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::SPIRType" = type { %"struct.spirv_cross::IVariant.base", i32, i32, i32, i32, i32, %"class.spirv_cross::SmallVector.92", %"class.spirv_cross::SmallVector.284", i32, i8, i8, i32, %"class.spirv_cross::SmallVector.227", %"class.spirv_cross::SmallVector.92", %"struct.spirv_cross::SPIRType::ImageType", %"class.spirv_cross::TypedID.281", %"class.spirv_cross::TypedID.281", %"class.std::unordered_set.165" }
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.280" }>
%"class.spirv_cross::SmallVector.284" = type { %"class.spirv_cross::VectorView.285", i64, %"class.spirv_cross::AlignedBuffer.286" }
%"class.spirv_cross::VectorView.285" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.286" = type { [8 x i8] }
%"class.spirv_cross::SmallVector.227" = type { %"class.spirv_cross::VectorView.228", i64, %"class.spirv_cross::AlignedBuffer.229" }
%"class.spirv_cross::VectorView.228" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.229" = type { [32 x i8] }
%"struct.spirv_cross::SPIRType::ImageType" = type { %"class.spirv_cross::TypedID.281", i32, i8, i8, i8, i32, i32, i32 }
%"class.std::unordered_set.165" = type { %"class.std::_Hashtable.166" }
%"class.std::_Hashtable.166" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

@.str.11 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.1680 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__._ZN11spirv_cross12CompilerGLSL18reorder_type_aliasEv = external hidden unnamed_addr constant [53 x i8], align 1
@.str.1681 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1682 = external hidden unnamed_addr constant [36 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross12CompilerGLSL18reorder_type_aliasEv(ptr noundef nonnull align 8 dereferenceable(9848) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.spirv_cross::ParsedIR::LoopLock", align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.spirv_cross::TypedID.281", align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"class.spirv_cross::TypedID.280", align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  %16 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %15, i32 0, i32 1
  call void @_ZNK11spirv_cross8ParsedIR21create_loop_hard_lockEv(ptr dead_on_unwind writable sret(%"class.spirv_cross::ParsedIR::LoopLock") align 8 %3, ptr noundef nonnull align 8 dereferenceable(1920) %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %17 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %15, i32 0, i32 1
  %18 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %17, i32 0, i32 4
  %19 = getelementptr inbounds [14 x %"class.spirv_cross::SmallVector.7"], ptr %18, i64 0, i64 1
  store ptr %19, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = invoke noundef ptr @_ZSt5beginIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(56) %20)
          to label %22 unwind label %30

22:                                               ; preds = %1
  store ptr %21, ptr %5, align 8, !tbaa !5
  br label %23

23:                                               ; preds = %153, %22
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = invoke noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %25)
          to label %27 unwind label %30

27:                                               ; preds = %23
  %28 = icmp ne ptr %24, %26
  br i1 %28, label %34, label %29

29:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %158

30:                                               ; preds = %23, %1
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %6, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %7, align 4
  br label %157

34:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = invoke noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %37 unwind label %77

37:                                               ; preds = %34
  %38 = invoke noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %15, i32 noundef %36)
          to label %39 unwind label %77

39:                                               ; preds = %37
  store ptr %38, ptr %8, align 8, !tbaa !5
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %40, i32 0, i32 15
  %42 = invoke noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %41)
          to label %43 unwind label %77

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  invoke void @_ZN11spirv_cross7TypedIDILNS_5TypesE1EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef 0)
          to label %44 unwind label %81

44:                                               ; preds = %43
  %45 = invoke noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %46 unwind label %81

46:                                               ; preds = %44
  %47 = icmp ne i32 %42, %45
  br i1 %47, label %48, label %56

48:                                               ; preds = %46
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %49, i32 0, i32 15
  %51 = invoke noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %50)
          to label %52 unwind label %81

52:                                               ; preds = %48
  %53 = invoke noundef zeroext i1 @_ZNK11spirv_cross8Compiler23has_extended_decorationEjNS_19ExtendedDecorationsE(ptr noundef nonnull align 8 dereferenceable(3176) %15, i32 noundef %51, i32 noundef 0)
          to label %54 unwind label %81

54:                                               ; preds = %52
  %55 = xor i1 %53, true
  br label %56

56:                                               ; preds = %54, %46
  %57 = phi i1 [ false, %46 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br i1 %57, label %58, label %152

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = invoke noundef ptr @_ZSt5beginIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(56) %59)
          to label %61 unwind label %85

61:                                               ; preds = %58
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = invoke noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %62)
          to label %64 unwind label %85

64:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %65, i32 0, i32 15
  invoke void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2ILS1_1EEERKNS0_IXT_EEE(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %66)
          to label %67 unwind label %89

67:                                               ; preds = %64
  %68 = invoke noundef ptr @_ZSt4findIPN11spirv_cross7TypedIDILNS0_5TypesE0EEES3_ET_S5_S5_RKT0_(ptr noundef %60, ptr noundef %63, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %69 unwind label %89

69:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  store ptr %68, ptr %10, align 8, !tbaa !5
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = invoke noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %71)
          to label %73 unwind label %85

73:                                               ; preds = %69
  %74 = icmp ne ptr %70, %72
  br i1 %74, label %75, label %76

75:                                               ; preds = %73
  br label %94

76:                                               ; preds = %73
  call void @__assert_fail(ptr noundef @.str.1680, ptr noundef @.str.11, i32 noundef 18514, ptr noundef @__PRETTY_FUNCTION__._ZN11spirv_cross12CompilerGLSL18reorder_type_aliasEv) #9
  unreachable

77:                                               ; preds = %39, %37, %34
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %6, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %7, align 4
  br label %156

81:                                               ; preds = %52, %48, %44, %43
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %6, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %156

85:                                               ; preds = %69, %61, %58
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %6, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %7, align 4
  br label %151

89:                                               ; preds = %67, %64
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %6, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %151

93:                                               ; No predecessors!
  br label %94

94:                                               ; preds = %93, %75
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = icmp ult ptr %95, %96
  br i1 %97, label %98, label %150

98:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %99 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %15, i32 0, i32 1
  %100 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %99, i32 0, i32 5
  store ptr %100, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = invoke noundef ptr @_ZSt5beginIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(56) %101)
          to label %103 unwind label %126

103:                                              ; preds = %98
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = invoke noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %104)
          to label %106 unwind label %126

106:                                              ; preds = %103
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = invoke noundef ptr @_ZSt4findIPN11spirv_cross7TypedIDILNS0_5TypesE0EEES3_ET_S5_S5_RKT0_(ptr noundef %102, ptr noundef %105, ptr noundef nonnull align 4 dereferenceable(4) %107)
          to label %109 unwind label %126

109:                                              ; preds = %106
  store ptr %108, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = invoke noundef ptr @_ZSt5beginIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(56) %110)
          to label %112 unwind label %130

112:                                              ; preds = %109
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = invoke noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %113)
          to label %115 unwind label %130

115:                                              ; preds = %112
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = invoke noundef ptr @_ZSt4findIPN11spirv_cross7TypedIDILNS0_5TypesE0EEES3_ET_S5_S5_RKT0_(ptr noundef %111, ptr noundef %114, ptr noundef nonnull align 4 dereferenceable(4) %116)
          to label %118 unwind label %130

118:                                              ; preds = %115
  store ptr %117, ptr %14, align 8, !tbaa !5
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = invoke noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %120)
          to label %122 unwind label %130

122:                                              ; preds = %118
  %123 = icmp ne ptr %119, %121
  br i1 %123, label %124, label %125

124:                                              ; preds = %122
  br label %135

125:                                              ; preds = %122
  call void @__assert_fail(ptr noundef @.str.1681, ptr noundef @.str.11, i32 noundef 18522, ptr noundef @__PRETTY_FUNCTION__._ZN11spirv_cross12CompilerGLSL18reorder_type_aliasEv) #9
  unreachable

126:                                              ; preds = %106, %103, %98
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %6, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %7, align 4
  br label %149

130:                                              ; preds = %135, %118, %115, %112, %109
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %6, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %149

134:                                              ; No predecessors!
  br label %135

135:                                              ; preds = %134, %124
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = invoke noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %137)
          to label %139 unwind label %130

139:                                              ; preds = %135
  %140 = icmp ne ptr %136, %138
  br i1 %140, label %141, label %142

141:                                              ; preds = %139
  br label %144

142:                                              ; preds = %139
  call void @__assert_fail(ptr noundef @.str.1682, ptr noundef @.str.11, i32 noundef 18523, ptr noundef @__PRETTY_FUNCTION__._ZN11spirv_cross12CompilerGLSL18reorder_type_aliasEv) #9
  unreachable

143:                                              ; No predecessors!
  br label %144

144:                                              ; preds = %143, %141
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZSt4swapIN11spirv_cross7TypedIDILNS0_5TypesE0EEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS7_ESt18is_move_assignableIS7_EEE5valueEvE4typeERS7_SG_(ptr noundef nonnull align 4 dereferenceable(4) %145, ptr noundef nonnull align 4 dereferenceable(4) %146) #8
  %147 = load ptr, ptr %13, align 8, !tbaa !5
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZSt4swapIN11spirv_cross7TypedIDILNS0_5TypesE0EEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS7_ESt18is_move_assignableIS7_EEE5valueEvE4typeERS7_SG_(ptr noundef nonnull align 4 dereferenceable(4) %147, ptr noundef nonnull align 4 dereferenceable(4) %148) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %150

149:                                              ; preds = %130, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %151

150:                                              ; preds = %144, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %152

151:                                              ; preds = %149, %89, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %156

152:                                              ; preds = %150, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %153

153:                                              ; preds = %152
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds %"class.spirv_cross::TypedID.280", ptr %154, i32 1
  store ptr %155, ptr %5, align 8, !tbaa !5
  br label %23, !llvm.loop !9

156:                                              ; preds = %151, %81, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %157

157:                                              ; preds = %156, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @_ZN11spirv_cross8ParsedIR8LoopLockD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %159

158:                                              ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @_ZN11spirv_cross8ParsedIR8LoopLockD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  ret void

159:                                              ; preds = %157
  %160 = load ptr, ptr %6, align 8
  %161 = load i32, ptr %7, align 4
  %162 = insertvalue { ptr, i32 } poison, ptr %160, 0
  %163 = insertvalue { ptr, i32 } %162, i32 %161, 1
  resume { ptr, i32 } %163
}

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

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

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

declare void @_ZNK11spirv_cross8ParsedIR21create_loop_hard_lockEv(ptr dead_on_unwind writable sret(%"class.spirv_cross::ParsedIR::LoopLock") align 8, ptr noundef nonnull align 8 dereferenceable(1920)) #4

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4findIPN11spirv_cross7TypedIDILNS0_5TypesE0EEES3_ET_S5_S5_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIN11spirv_cross7TypedIDILNS0_5TypesE0EEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS7_ESt18is_move_assignableIS7_EEE5valueEvE4typeERS7_SG_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.spirv_cross::ParsedIR::LoopLock" = type { ptr }
%"class.spirv_cross::TypedID.281" = type { i32 }
%"class.spirv_cross::TypedID.280" = type { i32 }

@.str.11 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.1680 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__._ZN11spirv_cross12CompilerGLSL18reorder_type_aliasEv = external hidden unnamed_addr constant [53 x i8], align 1
@.str.1681 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1682 = external hidden unnamed_addr constant [36 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross12CompilerGLSL18reorder_type_aliasEv(ptr noundef nonnull align 8 dereferenceable(9848) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.spirv_cross::ParsedIR::LoopLock", align 8
  %3 = alloca %"class.spirv_cross::TypedID.281", align 4
  %4 = alloca %"class.spirv_cross::TypedID.280", align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZNK11spirv_cross8ParsedIR21create_loop_hard_lockEv(ptr dead_on_unwind nonnull writable sret(%"class.spirv_cross::ParsedIR::LoopLock") align 8 %2, ptr noundef nonnull align 8 dereferenceable(1920) %5)
  %6 = getelementptr inbounds i8, ptr %0, i64 368
  %7 = call noundef ptr @_ZSt5beginIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(56) %6)
  %8 = call noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %6)
  %.not44 = icmp eq ptr %7, %8
  br i1 %.not44, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 1096
  br label %10

._crit_edge:                                      ; preds = %56, %1
  call void @_ZN11spirv_cross8ParsedIR8LoopLockD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  ret void

10:                                               ; preds = %.lr.ph, %56
  %.045 = phi ptr [ %7, %.lr.ph ], [ %57, %56 ]
  %11 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %.045)
  %12 = invoke noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %11)
          to label %13 unwind label %29

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %12, i64 272
  %15 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE1EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 0)
  %16 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  %.not37 = icmp eq i32 %15, %16
  br i1 %.not37, label %.critedge, label %17

17:                                               ; preds = %13
  %18 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE1EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %14)
  %19 = invoke noundef zeroext i1 @_ZNK11spirv_cross8Compiler23has_extended_decorationEjNS_19ExtendedDecorationsE(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %18, i32 noundef 0)
          to label %20 unwind label %31

20:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  br i1 %19, label %56, label %21

21:                                               ; preds = %20
  %22 = call noundef ptr @_ZSt5beginIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(56) %6)
  %23 = call noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  invoke void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2ILS1_1EEERKNS0_IXT_EEE(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %24 unwind label %33

24:                                               ; preds = %21
  %25 = invoke noundef ptr @_ZSt4findIPN11spirv_cross7TypedIDILNS0_5TypesE0EEES3_ET_S5_S5_RKT0_(ptr noundef %22, ptr noundef %23, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %26 unwind label %33

26:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  %27 = call noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %6)
  %.not38 = icmp eq ptr %25, %27
  br i1 %.not38, label %28, label %35

28:                                               ; preds = %26
  call void @__assert_fail(ptr noundef nonnull @.str.1680, ptr noundef nonnull @.str.11, i32 noundef 18514, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11spirv_cross12CompilerGLSL18reorder_type_aliasEv) #9
  unreachable

29:                                               ; preds = %10
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %59

31:                                               ; preds = %17
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  br label %59

33:                                               ; preds = %24, %21
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  br label %59

35:                                               ; preds = %26
  %36 = icmp ult ptr %.045, %25
  br i1 %36, label %37, label %56

37:                                               ; preds = %35
  %38 = call noundef ptr @_ZSt5beginIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(56) %9)
  %39 = call noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %9)
  %40 = invoke noundef ptr @_ZSt4findIPN11spirv_cross7TypedIDILNS0_5TypesE0EEES3_ET_S5_S5_RKT0_(ptr noundef %38, ptr noundef %39, ptr noundef nonnull align 4 dereferenceable(4) %.045)
          to label %41 unwind label %48

41:                                               ; preds = %37
  %42 = call noundef ptr @_ZSt5beginIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(56) %9)
  %43 = call noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %9)
  %44 = invoke noundef ptr @_ZSt4findIPN11spirv_cross7TypedIDILNS0_5TypesE0EEES3_ET_S5_S5_RKT0_(ptr noundef %42, ptr noundef %43, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %45 unwind label %50

45:                                               ; preds = %41
  %46 = call noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %9)
  %.not42 = icmp eq ptr %40, %46
  br i1 %.not42, label %47, label %52

47:                                               ; preds = %45
  call void @__assert_fail(ptr noundef nonnull @.str.1681, ptr noundef nonnull @.str.11, i32 noundef 18522, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11spirv_cross12CompilerGLSL18reorder_type_aliasEv) #9
  unreachable

48:                                               ; preds = %37
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %59

50:                                               ; preds = %41
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %59

52:                                               ; preds = %45
  %53 = call noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %9)
  %.not43 = icmp eq ptr %44, %53
  br i1 %.not43, label %54, label %55

54:                                               ; preds = %52
  call void @__assert_fail(ptr noundef nonnull @.str.1682, ptr noundef nonnull @.str.11, i32 noundef 18523, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11spirv_cross12CompilerGLSL18reorder_type_aliasEv) #9
  unreachable

55:                                               ; preds = %52
  call void @_ZSt4swapIN11spirv_cross7TypedIDILNS0_5TypesE0EEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS7_ESt18is_move_assignableIS7_EEE5valueEvE4typeERS7_SG_(ptr noundef nonnull align 4 dereferenceable(4) %.045, ptr noundef nonnull align 4 dereferenceable(4) %25) #8
  call void @_ZSt4swapIN11spirv_cross7TypedIDILNS0_5TypesE0EEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS7_ESt18is_move_assignableIS7_EEE5valueEvE4typeERS7_SG_(ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %44) #8
  br label %56

.critedge:                                        ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  br label %56

56:                                               ; preds = %35, %55, %.critedge, %20
  %57 = getelementptr inbounds i8, ptr %.045, i64 4
  %58 = call noundef ptr @_ZSt3endIN11spirv_cross11SmallVectorINS0_7TypedIDILNS0_5TypesE0EEELm8EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %6)
  %.not = icmp eq ptr %57, %58
  br i1 %.not, label %._crit_edge, label %10, !llvm.loop !5

59:                                               ; preds = %33, %50, %48, %31, %29
  %.pn.pn.pn = phi { ptr, i32 } [ %32, %31 ], [ %30, %29 ], [ %34, %33 ], [ %51, %50 ], [ %49, %48 ]
  call void @_ZN11spirv_cross8ParsedIR8LoopLockD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

declare void @_ZNK11spirv_cross8ParsedIR21create_loop_hard_lockEv(ptr dead_on_unwind writable sret(%"class.spirv_cross::ParsedIR::LoopLock") align 8, ptr noundef nonnull align 8 dereferenceable(1920)) local_unnamed_addr #4

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4findIPN11spirv_cross7TypedIDILNS0_5TypesE0EEES3_ET_S5_S5_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIN11spirv_cross7TypedIDILNS0_5TypesE0EEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS7_ESt18is_move_assignableIS7_EEE5valueEvE4typeERS7_SG_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass