; LLVM IR from Try/Tempest :: Engine/thirdparty/spirv_cross/spirv_cfg.ll (ZNK11spirv_cross3CFG19find_loop_dominatorEj)

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

%"struct.std::__detail::_Node_const_iterator.233" = type { %"struct.std::__detail::_Node_iterator_base.230" }
%"struct.std::__detail::_Node_iterator_base.230" = type { ptr }
%"class.spirv_cross::TypedID.201" = type { i32 }
%"class.spirv_cross::CFG" = type <{ ptr, ptr, %"class.std::unordered_map", %"class.std::unordered_map", %"class.std::unordered_map.2", %"class.std::unordered_map.16", %"class.spirv_cross::SmallVector", %"class.spirv_cross::SmallVector", i32, [4 x i8] }>
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.2" = type { %"class.std::_Hashtable.3" }
%"class.std::_Hashtable.3" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.16" = type { %"class.std::_Hashtable.17" }
%"class.std::_Hashtable.17" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", 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 { [32 x i8] }
%"struct.std::pair.231" = type { i32, %"class.spirv_cross::SmallVector" }
%"struct.spirv_cross::SPIRBlock" = type { %"struct.spirv_cross::IVariant.base", i32, i32, i32, %"class.spirv_cross::TypedID.209", %"class.spirv_cross::TypedID.209", %"class.spirv_cross::TypedID.209", %"class.spirv_cross::TypedID.201", %"class.spirv_cross::TypedID.201", %"class.spirv_cross::TypedID.209", %"class.spirv_cross::TypedID.209", %"class.spirv_cross::TypedID.209", %struct.anon, %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.221", %"class.spirv_cross::SmallVector.224", %"class.spirv_cross::SmallVector.224", %"class.spirv_cross::SmallVector.227", %"class.spirv_cross::SmallVector.227", i8, i8, i8, %"class.spirv_cross::TypedID.209", %"class.spirv_cross::TypedID.209", %"class.spirv_cross::SmallVector.206", %"class.spirv_cross::SmallVector.206", %"class.spirv_cross::SmallVector.57" }
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.201" }>
%struct.anon = type { [3 x %"class.spirv_cross::TypedID.201"], %"class.spirv_cross::TypedID.201" }
%"class.spirv_cross::SmallVector.218" = type { %"class.spirv_cross::VectorView.219", i64, %"class.spirv_cross::AlignedBuffer.220" }
%"class.spirv_cross::VectorView.219" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.220" = type { [96 x i8] }
%"class.spirv_cross::SmallVector.221" = type { %"class.spirv_cross::VectorView.222", i64, %"class.spirv_cross::AlignedBuffer.223" }
%"class.spirv_cross::VectorView.222" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.223" = type { [96 x i8] }
%"class.spirv_cross::SmallVector.224" = type { %"class.spirv_cross::VectorView.225", i64, %"class.spirv_cross::AlignedBuffer.226" }
%"class.spirv_cross::VectorView.225" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.226" = type { [64 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 { [128 x i8] }
%"class.spirv_cross::TypedID.209" = type { i32 }
%"class.spirv_cross::SmallVector.206" = type { %"class.spirv_cross::VectorView.207", i64, %"class.spirv_cross::AlignedBuffer.208" }
%"class.spirv_cross::VectorView.207" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.208" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.57" = type { %"class.spirv_cross::VectorView.58", i64, %"class.spirv_cross::AlignedBuffer.59" }
%"class.spirv_cross::VectorView.58" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.59" = type { [32 x i8] }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK11spirv_cross3CFG19find_loop_dominatorEj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %1) #2 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::__detail::_Node_const_iterator.233", align 8
  %7 = alloca %"struct.std::__detail::_Node_const_iterator.233", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.spirv_cross::TypedID.201", align 4
  %17 = alloca %"class.spirv_cross::TypedID.201", align 4
  %18 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %19 = load ptr, ptr %4, align 8
  br label %20

20:                                               ; preds = %137, %2
  %21 = load i32, ptr %5, align 4, !tbaa !9
  %22 = icmp ne i32 %21, -1
  br i1 %22, label %23, label %138

23:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %24 = getelementptr inbounds %"class.spirv_cross::CFG", ptr %19, i32 0, i32 2
  %25 = call ptr @_ZNKSt13unordered_mapIjN11spirv_cross11SmallVectorIjLm8EEESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %26 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.233", ptr %6, i32 0, i32 0
  %27 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.230", ptr %26, i32 0, i32 0
  store ptr %25, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %28 = getelementptr inbounds %"class.spirv_cross::CFG", ptr %19, i32 0, i32 2
  %29 = call ptr @_ZSt3endISt13unordered_mapIjN11spirv_cross11SmallVectorIjLm8EEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEEEDTcldtfp_3endEERKT_(ptr noundef nonnull align 8 dereferenceable(56) %28)
  %30 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.233", ptr %7, i32 0, i32 0
  %31 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.230", ptr %30, i32 0, i32 0
  store ptr %29, ptr %31, align 8
  %32 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br i1 %32, label %33, label %34

33:                                               ; preds = %23
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %135

34:                                               ; preds = %23
  %35 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %36 = getelementptr inbounds %"struct.std::pair.231", ptr %35, i32 0, i32 1
  %37 = call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewIjE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %36) #4
  br i1 %37, label %38, label %39

38:                                               ; preds = %34
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %135

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 -1, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  store i8 0, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %40 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %41 = getelementptr inbounds %"struct.std::pair.231", ptr %40, i32 0, i32 1
  store ptr %41, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = call noundef ptr @_ZNK11spirv_cross10VectorViewIjE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %42) #4
  store ptr %43, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = call noundef ptr @_ZNK11spirv_cross10VectorViewIjE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %44) #4
  store ptr %45, ptr %13, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %99, %39
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = icmp ne ptr %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  store i32 4, ptr %8, align 4
  br label %102

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %52, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %53 = getelementptr inbounds %"class.spirv_cross::CFG", ptr %19, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !13
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = call noundef nonnull align 8 dereferenceable(976) ptr @_ZN11spirv_cross8Compiler3getINS_9SPIRBlockEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %54, i32 noundef %56)
  store ptr %57, ptr %15, align 8, !tbaa !5
  %58 = load ptr, ptr %15, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %58, i32 0, i32 2
  %60 = load i32, ptr %59, align 8, !tbaa !28
  %61 = icmp eq i32 %60, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  br i1 %61, label %62, label %69

62:                                               ; preds = %51
  %63 = load ptr, ptr %15, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %63, i32 0, i32 5
  %65 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %64)
  %66 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef %66)
  %67 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %16)
  %68 = icmp eq i32 %65, %67
  br label %69

69:                                               ; preds = %62, %51
  %70 = phi i1 [ false, %51 ], [ %68, %62 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br i1 %70, label %71, label %74

71:                                               ; preds = %69
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  %73 = load i32, ptr %72, align 4, !tbaa !9
  store i32 %73, ptr %9, align 4, !tbaa !9
  store i8 1, ptr %10, align 1, !tbaa !11
  store i32 4, ptr %8, align 4
  br label %93

74:                                               ; preds = %69
  %75 = load ptr, ptr %15, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %75, i32 0, i32 2
  %77 = load i32, ptr %76, align 8, !tbaa !28
  %78 = icmp eq i32 %77, 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  br i1 %78, label %79, label %86

79:                                               ; preds = %74
  %80 = load ptr, ptr %15, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %80, i32 0, i32 4
  %82 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %81)
  %83 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef %83)
  %84 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %17)
  %85 = icmp eq i32 %82, %84
  br label %86

86:                                               ; preds = %79, %74
  %87 = phi i1 [ false, %74 ], [ %85, %79 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br i1 %87, label %88, label %91

88:                                               ; preds = %86
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = load i32, ptr %89, align 4, !tbaa !9
  store i32 %90, ptr %9, align 4, !tbaa !9
  store i32 4, ptr %8, align 4
  br label %93

91:                                               ; preds = %86
  br label %92

92:                                               ; preds = %91
  store i32 0, ptr %8, align 4
  br label %93

93:                                               ; preds = %92, %88, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  %94 = load i32, ptr %8, align 4
  switch i32 %94, label %96 [
    i32 0, label %95
  ]

95:                                               ; preds = %93
  store i32 0, ptr %8, align 4
  br label %96

96:                                               ; preds = %95, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %97 = load i32, ptr %8, align 4
  switch i32 %97, label %102 [
    i32 0, label %98
  ]

98:                                               ; preds = %96
  br label %99

99:                                               ; preds = %98
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = getelementptr inbounds i32, ptr %100, i32 1
  store ptr %101, ptr %12, align 8, !tbaa !5
  br label %46

102:                                              ; preds = %96, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = icmp eq i32 %104, -1
  br i1 %105, label %106, label %111

106:                                              ; preds = %103
  %107 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %108 = getelementptr inbounds %"struct.std::pair.231", ptr %107, i32 0, i32 1
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK11spirv_cross10VectorViewIjE5frontEv(ptr noundef nonnull align 8 dereferenceable(16) %108) #4
  %110 = load i32, ptr %109, align 4, !tbaa !9
  store i32 %110, ptr %9, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %106, %103
  %112 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %112, ptr %5, align 4, !tbaa !9
  %113 = load i8, ptr %10, align 1, !tbaa !11, !range !55, !noundef !56
  %114 = trunc i8 %113 to i1
  br i1 %114, label %133, label %115

115:                                              ; preds = %111
  %116 = load i32, ptr %5, align 4, !tbaa !9
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %133

118:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %119 = getelementptr inbounds %"class.spirv_cross::CFG", ptr %19, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !13
  %121 = load i32, ptr %5, align 4, !tbaa !9
  %122 = call noundef nonnull align 8 dereferenceable(976) ptr @_ZN11spirv_cross8Compiler3getINS_9SPIRBlockEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %120, i32 noundef %121)
  store ptr %122, ptr %18, align 8, !tbaa !5
  %123 = load ptr, ptr %18, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %123, i32 0, i32 2
  %125 = load i32, ptr %124, align 8, !tbaa !28
  %126 = icmp eq i32 %125, 1
  br i1 %126, label %127, label %129

127:                                              ; preds = %118
  %128 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %128, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %130

129:                                              ; preds = %118
  store i32 0, ptr %8, align 4
  br label %130

130:                                              ; preds = %129, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  %131 = load i32, ptr %8, align 4
  switch i32 %131, label %134 [
    i32 0, label %132
  ]

132:                                              ; preds = %130
  br label %133

133:                                              ; preds = %132, %115, %111
  store i32 0, ptr %8, align 4
  br label %134

134:                                              ; preds = %133, %130
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %135

135:                                              ; preds = %134, %38, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %136 = load i32, ptr %8, align 4
  switch i32 %136, label %142 [
    i32 0, label %137
    i32 1, label %140
  ]

137:                                              ; preds = %135
  br label %20, !llvm.loop !57

138:                                              ; preds = %20
  %139 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %139, ptr %3, align 4
  br label %140

140:                                              ; preds = %138, %135
  %141 = load i32, ptr %3, align 4
  ret i32 %141

142:                                              ; preds = %135
  unreachable
}

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

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

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSN11spirv_cross3CFGE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 72, !21, i64 128, !23, i64 184, !25, i64 240, !25, i64 296, !10, i64 352}
!15 = !{!"_ZTSSt13unordered_mapIjN11spirv_cross11SmallVectorIjLm8EEESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEE", !16, i64 0}
!16 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEESaIS5_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!19 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !20, i64 0, !17, i64 8}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE", !22, i64 0}
!22 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!23 = !{!"_ZTSSt13unordered_mapIjN11spirv_cross3CFG10VisitOrderESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEE", !24, i64 0}
!24 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN11spirv_cross3CFG10VisitOrderEESaIS5_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!25 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !26, i64 0, !17, i64 16, !27, i64 24}
!26 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !6, i64 0, !17, i64 8}
!27 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!28 = !{!29, !33, i64 16}
!29 = !{!"_ZTSN11spirv_cross9SPIRBlockE", !30, i64 0, !32, i64 12, !33, i64 16, !34, i64 20, !35, i64 24, !35, i64 28, !35, i64 32, !31, i64 36, !31, i64 40, !35, i64 44, !35, i64 48, !35, i64 52, !36, i64 56, !37, i64 72, !40, i64 192, !43, i64 312, !43, i64 400, !46, i64 488, !46, i64 640, !12, i64 792, !12, i64 793, !12, i64 794, !35, i64 796, !35, i64 800, !49, i64 808, !49, i64 864, !52, i64 920}
!30 = !{!"_ZTSN11spirv_cross8IVariantE", !31, i64 8}
!31 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !10, i64 0}
!32 = !{!"_ZTSN11spirv_cross9SPIRBlock10TerminatorE", !7, i64 0}
!33 = !{!"_ZTSN11spirv_cross9SPIRBlock5MergeE", !7, i64 0}
!34 = !{!"_ZTSN11spirv_cross9SPIRBlock5HintsE", !7, i64 0}
!35 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !10, i64 0}
!36 = !{!"_ZTSN11spirv_cross9SPIRBlockUt1_E", !7, i64 0, !31, i64 12}
!37 = !{!"_ZTSN11spirv_cross11SmallVectorINS_11InstructionELm8EEE", !38, i64 0, !17, i64 16, !39, i64 24}
!38 = !{!"_ZTSN11spirv_cross10VectorViewINS_11InstructionEEE", !6, i64 0, !17, i64 8}
!39 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_11InstructionELm8EEE", !7, i64 0}
!40 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock3PhiELm8EEE", !41, i64 0, !17, i64 16, !42, i64 24}
!41 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock3PhiEEE", !6, i64 0, !17, i64 8}
!42 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock3PhiELm8EEE", !7, i64 0}
!43 = !{!"_ZTSN11spirv_cross11SmallVectorISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !44, i64 0, !17, i64 16, !45, i64 24}
!44 = !{!"_ZTSN11spirv_cross10VectorViewISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEEEE", !6, i64 0, !17, i64 8}
!45 = !{!"_ZTSN11spirv_cross13AlignedBufferISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !7, i64 0}
!46 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock4CaseELm8EEE", !47, i64 0, !17, i64 16, !48, i64 24}
!47 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock4CaseEEE", !6, i64 0, !17, i64 8}
!48 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock4CaseELm8EEE", !7, i64 0}
!49 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE2EEELm8EEE", !50, i64 0, !17, i64 16, !51, i64 24}
!50 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE2EEEEE", !6, i64 0, !17, i64 8}
!51 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE2EEELm8EEE", !7, i64 0}
!52 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !53, i64 0, !17, i64 16, !54, i64 24}
!53 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !6, i64 0, !17, i64 8}
!54 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !7, i64 0}
!55 = !{i8 0, i8 2}
!56 = !{}
!57 = distinct !{!57, !58}
!58 = !{!"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"

%"struct.std::__detail::_Node_const_iterator.233" = type { %"struct.std::__detail::_Node_iterator_base.230" }
%"struct.std::__detail::_Node_iterator_base.230" = type { ptr }
%"class.spirv_cross::TypedID.201" = type { i32 }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK11spirv_cross3CFG19find_loop_dominatorEj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %1) local_unnamed_addr #2 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::__detail::_Node_const_iterator.233", align 8
  %5 = alloca %"struct.std::__detail::_Node_const_iterator.233", align 8
  %6 = alloca %"class.spirv_cross::TypedID.201", align 4
  %7 = alloca %"class.spirv_cross::TypedID.201", align 4
  store i32 %1, ptr %3, align 4, !tbaa !5
  %.not4063 = icmp eq i32 %1, -1
  br i1 %.not4063, label %.loopexit, label %.lr.ph64

.lr.ph64:                                         ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  br label %9

thread-pre-split:                                 ; preds = %51, %53
  %.pr = phi i32 [ %.334, %51 ], [ %58, %53 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  %.not40 = icmp eq i32 %.pr, -1
  br i1 %.not40, label %.loopexit, label %9

9:                                                ; preds = %.lr.ph64, %thread-pre-split
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %10 = call ptr @_ZNKSt13unordered_mapIjN11spirv_cross11SmallVectorIjLm8EEESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store ptr %10, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %11 = call ptr @_ZSt3endISt13unordered_mapIjN11spirv_cross11SmallVectorIjLm8EEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEEEDTcldtfp_3endEERKT_(ptr noundef nonnull align 8 dereferenceable(56) %8)
  store ptr %11, ptr %5, align 8
  %12 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br i1 %12, label %.thread56, label %13

13:                                               ; preds = %9
  %14 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %15 = getelementptr inbounds i8, ptr %14, i64 8
  %16 = call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewIjE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #4
  br i1 %16, label %.thread56, label %17

17:                                               ; preds = %13
  %18 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = call noundef ptr @_ZNK11spirv_cross10VectorViewIjE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  %21 = call noundef ptr @_ZNK11spirv_cross10VectorViewIjE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  %.not4161 = icmp eq ptr %20, %21
  br i1 %.not4161, label %.thread50, label %.lr.ph

.lr.ph:                                           ; preds = %17, %43
  %.03862 = phi ptr [ %44, %43 ], [ %20, %17 ]
  %22 = load ptr, ptr %0, align 8, !tbaa !9
  %23 = load i32, ptr %.03862, align 4, !tbaa !5
  %24 = call noundef nonnull align 8 dereferenceable(976) ptr @_ZN11spirv_cross8Compiler3getINS_9SPIRBlockEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %22, i32 noundef %23)
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %26 = load i32, ptr %25, align 8, !tbaa !25
  %27 = icmp eq i32 %26, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  br i1 %27, label %28, label %.critedge

28:                                               ; preds = %.lr.ph
  %29 = getelementptr inbounds i8, ptr %24, i64 28
  %30 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %29)
  %31 = load i32, ptr %3, align 4, !tbaa !5
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef %31)
  %32 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  %33 = icmp eq i32 %30, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  br i1 %33, label %45, label %thread-pre-split43

.critedge:                                        ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  br label %34

thread-pre-split43:                               ; preds = %28
  %.pr44 = load i32, ptr %25, align 8, !tbaa !25
  br label %34

34:                                               ; preds = %thread-pre-split43, %.critedge
  %35 = phi i32 [ %.pr44, %thread-pre-split43 ], [ %26, %.critedge ]
  %36 = icmp eq i32 %35, 2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  br i1 %36, label %37, label %.critedge4

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %24, i64 24
  %39 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %38)
  %40 = load i32, ptr %3, align 4, !tbaa !5
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef %40)
  %41 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %7)
  %42 = icmp eq i32 %39, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  br i1 %42, label %45, label %43

.critedge4:                                       ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  br label %43

43:                                               ; preds = %37, %.critedge4
  %44 = getelementptr inbounds i8, ptr %.03862, i64 4
  %.not41 = icmp eq ptr %44, %21
  br i1 %.not41, label %.thread50, label %.lr.ph

45:                                               ; preds = %37, %28
  %.237 = phi i1 [ true, %28 ], [ false, %37 ]
  %.233 = load i32, ptr %.03862, align 4, !tbaa !5
  %46 = icmp eq i32 %.233, -1
  br i1 %46, label %.thread50, label %51

.thread50:                                        ; preds = %43, %17, %45
  %.23754 = phi i1 [ %.237, %45 ], [ false, %17 ], [ false, %43 ]
  %47 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK11spirv_cross10VectorViewIjE5frontEv(ptr noundef nonnull align 8 dereferenceable(16) %48) #4
  %50 = load i32, ptr %49, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %.thread50, %45
  %.23753 = phi i1 [ %.23754, %.thread50 ], [ %.237, %45 ]
  %.334 = phi i32 [ %50, %.thread50 ], [ %.233, %45 ]
  store i32 %.334, ptr %3, align 4, !tbaa !5
  %52 = icmp eq i32 %.334, 0
  %or.cond.not = select i1 %.23753, i1 true, i1 %52
  br i1 %or.cond.not, label %thread-pre-split, label %53

53:                                               ; preds = %51
  %54 = load ptr, ptr %0, align 8, !tbaa !9
  %55 = call noundef nonnull align 8 dereferenceable(976) ptr @_ZN11spirv_cross8Compiler3getINS_9SPIRBlockEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %54, i32 noundef %.334)
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %57 = load i32, ptr %56, align 8, !tbaa !25
  %.not = icmp eq i32 %57, 1
  %58 = load i32, ptr %3, align 4
  br i1 %.not, label %.thread56, label %thread-pre-split

.thread56:                                        ; preds = %9, %13, %53
  %.4.ph = phi i32 [ -1, %13 ], [ -1, %9 ], [ %58, %53 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %.loopexit

.loopexit:                                        ; preds = %thread-pre-split, %2, %.thread56
  %.5 = phi i32 [ %.4.ph, %.thread56 ], [ -1, %2 ], [ -1, %thread-pre-split ]
  ret i32 %.5
}

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN11spirv_cross3CFGE", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 72, !18, i64 128, !20, i64 184, !22, i64 240, !22, i64 296, !6, i64 352}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"_ZTSSt13unordered_mapIjN11spirv_cross11SmallVectorIjLm8EEESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEE", !13, i64 0}
!13 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEESaIS5_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !11, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !11, i64 48}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTSSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE", !19, i64 0}
!19 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !11, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !11, i64 48}
!20 = !{!"_ZTSSt13unordered_mapIjN11spirv_cross3CFG10VisitOrderESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN11spirv_cross3CFG10VisitOrderEESaIS5_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !11, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !11, i64 48}
!22 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !23, i64 0, !14, i64 16, !24, i64 24}
!23 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !11, i64 0, !14, i64 8}
!24 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!25 = !{!26, !30, i64 16}
!26 = !{!"_ZTSN11spirv_cross9SPIRBlockE", !27, i64 0, !29, i64 12, !30, i64 16, !31, i64 20, !32, i64 24, !32, i64 28, !32, i64 32, !28, i64 36, !28, i64 40, !32, i64 44, !32, i64 48, !32, i64 52, !33, i64 56, !34, i64 72, !37, i64 192, !40, i64 312, !40, i64 400, !43, i64 488, !43, i64 640, !46, i64 792, !46, i64 793, !46, i64 794, !32, i64 796, !32, i64 800, !47, i64 808, !47, i64 864, !50, i64 920}
!27 = !{!"_ZTSN11spirv_cross8IVariantE", !28, i64 8}
!28 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !6, i64 0}
!29 = !{!"_ZTSN11spirv_cross9SPIRBlock10TerminatorE", !7, i64 0}
!30 = !{!"_ZTSN11spirv_cross9SPIRBlock5MergeE", !7, i64 0}
!31 = !{!"_ZTSN11spirv_cross9SPIRBlock5HintsE", !7, i64 0}
!32 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !6, i64 0}
!33 = !{!"_ZTSN11spirv_cross9SPIRBlockUt1_E", !7, i64 0, !28, i64 12}
!34 = !{!"_ZTSN11spirv_cross11SmallVectorINS_11InstructionELm8EEE", !35, i64 0, !14, i64 16, !36, i64 24}
!35 = !{!"_ZTSN11spirv_cross10VectorViewINS_11InstructionEEE", !11, i64 0, !14, i64 8}
!36 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_11InstructionELm8EEE", !7, i64 0}
!37 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock3PhiELm8EEE", !38, i64 0, !14, i64 16, !39, i64 24}
!38 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock3PhiEEE", !11, i64 0, !14, i64 8}
!39 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock3PhiELm8EEE", !7, i64 0}
!40 = !{!"_ZTSN11spirv_cross11SmallVectorISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !41, i64 0, !14, i64 16, !42, i64 24}
!41 = !{!"_ZTSN11spirv_cross10VectorViewISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEEEE", !11, i64 0, !14, i64 8}
!42 = !{!"_ZTSN11spirv_cross13AlignedBufferISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !7, i64 0}
!43 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock4CaseELm8EEE", !44, i64 0, !14, i64 16, !45, i64 24}
!44 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock4CaseEEE", !11, i64 0, !14, i64 8}
!45 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock4CaseELm8EEE", !7, i64 0}
!46 = !{!"bool", !7, i64 0}
!47 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE2EEELm8EEE", !48, i64 0, !14, i64 16, !49, i64 24}
!48 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE2EEEEE", !11, i64 0, !14, i64 8}
!49 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE2EEELm8EEE", !7, i64 0}
!50 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !51, i64 0, !14, i64 16, !52, i64 24}
!51 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !11, i64 0, !14, i64 8}
!52 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !7, i64 0}


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