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

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

%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base.230" }
%"struct.std::__detail::_Node_iterator_base.230" = type { ptr }
%"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.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" }>
%"class.spirv_cross::TypedID.201" = type { i32 }
%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] }
%"struct.spirv_cross::SPIRBlock::Case" = type <{ i64, %"class.spirv_cross::TypedID.209", [4 x i8] }>
%"struct.std::pair.231" = type { i32, %"class.spirv_cross::SmallVector" }

; 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 i64 @_ZNK11spirv_cross10VectorViewIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZN11spirv_cross10VectorViewIjE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross3CFG12is_back_edgeEj(ptr noundef nonnull align 8 dereferenceable(356), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross3CFG24has_visited_forward_edgeEj(ptr noundef nonnull align 8 dereferenceable(356), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %1) #2 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %17 = alloca i64, align 8
  %18 = alloca %"struct.std::__detail::_Node_iterator", 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
  %20 = load i32, ptr %5, align 4, !tbaa !9
  %21 = call noundef zeroext i1 @_ZNK11spirv_cross3CFG24has_visited_forward_edgeEj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %20)
  br i1 %21, label %22, label %23

22:                                               ; preds = %2
  store i1 true, ptr %3, align 1
  br label %220

23:                                               ; preds = %2
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = call noundef zeroext i1 @_ZNK11spirv_cross3CFG12is_back_edgeEj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %24)
  br i1 %25, label %26, label %27

26:                                               ; preds = %23
  store i1 false, ptr %3, align 1
  br label %220

27:                                               ; preds = %23
  br label %28

28:                                               ; preds = %27
  %29 = getelementptr inbounds %"class.spirv_cross::CFG", ptr %19, i32 0, i32 5
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjN11spirv_cross3CFG10VisitOrderESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEEixERS8_(ptr noundef nonnull align 8 dereferenceable(56) %29, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross3CFG10VisitOrder3getEv(ptr noundef nonnull align 4 dereferenceable(4) %30)
  store i32 0, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %32 = getelementptr inbounds %"class.spirv_cross::CFG", ptr %19, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = load i32, ptr %5, align 4, !tbaa !9
  %35 = call noundef nonnull align 8 dereferenceable(976) ptr @_ZN11spirv_cross8Compiler3getINS_9SPIRBlockEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %33, i32 noundef %34)
  store ptr %35, ptr %6, align 8, !tbaa !5
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %36, i32 0, i32 2
  %38 = load i32, ptr %37, align 8, !tbaa !26
  %39 = icmp eq i32 %38, 1
  br i1 %39, label %40, label %50

40:                                               ; preds = %28
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %41, i32 0, i32 5
  %43 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %42)
  %44 = call noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %43)
  br i1 %44, label %45, label %50

45:                                               ; preds = %40
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %47, i32 0, i32 5
  %49 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %48)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %46, i32 noundef %49)
  br label %50

50:                                               ; preds = %45, %40, %28
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 4, !tbaa !54
  switch i32 %53, label %132 [
    i32 1, label %54
    i32 2, label %65
    i32 3, label %86
  ]

54:                                               ; preds = %50
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %55, i32 0, i32 4
  %57 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %56)
  %58 = call noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %57)
  br i1 %58, label %59, label %64

59:                                               ; preds = %54
  %60 = load i32, ptr %5, align 4, !tbaa !9
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %61, i32 0, i32 4
  %63 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %62)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %60, i32 noundef %63)
  br label %64

64:                                               ; preds = %59, %54
  br label %133

65:                                               ; preds = %50
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %66, i32 0, i32 9
  %68 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %67)
  %69 = call noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %68)
  br i1 %69, label %70, label %75

70:                                               ; preds = %65
  %71 = load i32, ptr %5, align 4, !tbaa !9
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %72, i32 0, i32 9
  %74 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %73)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %71, i32 noundef %74)
  br label %75

75:                                               ; preds = %70, %65
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %76, i32 0, i32 10
  %78 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %77)
  %79 = call noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %78)
  br i1 %79, label %80, label %85

80:                                               ; preds = %75
  %81 = load i32, ptr %5, align 4, !tbaa !9
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %82, i32 0, i32 10
  %84 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %83)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %81, i32 noundef %84)
  br label %85

85:                                               ; preds = %80, %75
  br label %133

86:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %87 = getelementptr inbounds %"class.spirv_cross::CFG", ptr %19, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !11
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNK11spirv_cross8Compiler13get_case_listERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(3176) %88, ptr noundef nonnull align 8 dereferenceable(976) %89)
  store ptr %90, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %91, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %92) #5
  store ptr %93, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %94) #5
  store ptr %95, ptr %10, align 8, !tbaa !5
  br label %96

96:                                               ; preds = %113, %86
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = icmp ne ptr %97, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %116

101:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %102, ptr %11, align 8, !tbaa !5
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock::Case", ptr %103, i32 0, i32 1
  %105 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %104)
  %106 = call noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %105)
  br i1 %106, label %107, label %112

107:                                              ; preds = %101
  %108 = load i32, ptr %5, align 4, !tbaa !9
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock::Case", ptr %109, i32 0, i32 1
  %111 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %110)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %108, i32 noundef %111)
  br label %112

112:                                              ; preds = %107, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %113

113:                                              ; preds = %112
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock::Case", ptr %114, i32 1
  store ptr %115, ptr %9, align 8, !tbaa !5
  br label %96

116:                                              ; preds = %100
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %117, i32 0, i32 11
  %119 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %118)
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %131

121:                                              ; preds = %116
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %122, i32 0, i32 11
  %124 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %123)
  %125 = call noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %124)
  br i1 %125, label %126, label %131

126:                                              ; preds = %121
  %127 = load i32, ptr %5, align 4, !tbaa !9
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %128, i32 0, i32 11
  %130 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %129)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %127, i32 noundef %130)
  br label %131

131:                                              ; preds = %126, %121, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %133

132:                                              ; preds = %50
  br label %133

133:                                              ; preds = %132, %131, %85, %64
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %134, i32 0, i32 2
  %136 = load i32, ptr %135, align 8, !tbaa !26
  %137 = icmp eq i32 %136, 2
  br i1 %137, label %138, label %212

138:                                              ; preds = %133
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %139, i32 0, i32 4
  %141 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %140)
  %142 = call noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %141)
  br i1 %142, label %143, label %212

143:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %144 = getelementptr inbounds %"class.spirv_cross::CFG", ptr %19, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %145, i32 0, i32 4
  %147 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %146)
  store i32 %147, ptr %13, align 4, !tbaa !9
  %148 = call ptr @_ZNSt13unordered_mapIjN11spirv_cross11SmallVectorIjLm8EEESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %144, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %149 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %12, i32 0, i32 0
  %150 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.230", ptr %149, i32 0, i32 0
  store ptr %148, ptr %150, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %151 = getelementptr inbounds %"class.spirv_cross::CFG", ptr %19, i32 0, i32 2
  %152 = call ptr @_ZSt3endISt13unordered_mapIjN11spirv_cross11SmallVectorIjLm8EEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %151)
  %153 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %14, i32 0, i32 0
  %154 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.230", ptr %153, i32 0, i32 0
  store ptr %152, ptr %154, align 8
  %155 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br i1 %155, label %156, label %206

156:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %157 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %158 = getelementptr inbounds %"struct.std::pair.231", ptr %157, i32 0, i32 1
  store ptr %158, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %159 = getelementptr inbounds %"class.spirv_cross::CFG", ptr %19, i32 0, i32 3
  %160 = call ptr @_ZNSt13unordered_mapIjN11spirv_cross11SmallVectorIjLm8EEESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %159, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %161 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %16, i32 0, i32 0
  %162 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.230", ptr %161, i32 0, i32 0
  store ptr %160, ptr %162, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 0, ptr %17, align 8, !tbaa !55
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %163 = getelementptr inbounds %"class.spirv_cross::CFG", ptr %19, i32 0, i32 3
  %164 = call ptr @_ZSt3endISt13unordered_mapIjN11spirv_cross11SmallVectorIjLm8EEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %163)
  %165 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %18, i32 0, i32 0
  %166 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.230", ptr %165, i32 0, i32 0
  store ptr %164, ptr %166, align 8
  %167 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br i1 %167, label %168, label %172

168:                                              ; preds = %156
  %169 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %170 = getelementptr inbounds %"struct.std::pair.231", ptr %169, i32 0, i32 1
  %171 = call noundef i64 @_ZNK11spirv_cross10VectorViewIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %170) #5
  store i64 %171, ptr %17, align 8, !tbaa !55
  br label %172

172:                                              ; preds = %168, %156
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %173, i32 0, i32 1
  %175 = load i32, ptr %174, align 4, !tbaa !54
  %176 = icmp eq i32 %175, 3
  br i1 %176, label %177, label %189

177:                                              ; preds = %172
  %178 = load i64, ptr %17, align 8, !tbaa !55
  %179 = icmp eq i64 %178, 1
  br i1 %179, label %180, label %189

180:                                              ; preds = %177
  %181 = load ptr, ptr %15, align 8, !tbaa !5
  %182 = call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewIjE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %181) #5
  br i1 %182, label %188, label %183

183:                                              ; preds = %180
  %184 = load i32, ptr %5, align 4, !tbaa !9
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %185, i32 0, i32 4
  %187 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %186)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %184, i32 noundef %187)
  br label %188

188:                                              ; preds = %183, %180
  br label %205

189:                                              ; preds = %177, %172
  %190 = load ptr, ptr %15, align 8, !tbaa !5
  %191 = call noundef i64 @_ZNK11spirv_cross10VectorViewIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %190) #5
  %192 = icmp eq i64 %191, 1
  br i1 %192, label %193, label %204

193:                                              ; preds = %189
  %194 = load ptr, ptr %15, align 8, !tbaa !5
  %195 = call noundef ptr @_ZN11spirv_cross10VectorViewIjE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %194) #5
  %196 = load i32, ptr %195, align 4, !tbaa !9
  %197 = load i32, ptr %5, align 4, !tbaa !9
  %198 = icmp ne i32 %196, %197
  br i1 %198, label %199, label %204

199:                                              ; preds = %193
  %200 = load i32, ptr %5, align 4, !tbaa !9
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %201, i32 0, i32 4
  %203 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %202)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %200, i32 noundef %203)
  br label %204

204:                                              ; preds = %199, %193, %189
  br label %205

205:                                              ; preds = %204, %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %211

206:                                              ; preds = %143
  %207 = load i32, ptr %5, align 4, !tbaa !9
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %208, i32 0, i32 4
  %210 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %209)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %19, i32 noundef %207, i32 noundef %210)
  br label %211

211:                                              ; preds = %206, %205
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %212

212:                                              ; preds = %211, %138, %133
  %213 = getelementptr inbounds %"class.spirv_cross::CFG", ptr %19, i32 0, i32 8
  %214 = load i32, ptr %213, align 8, !tbaa !56
  %215 = add i32 %214, 1
  store i32 %215, ptr %213, align 8, !tbaa !56
  %216 = getelementptr inbounds %"class.spirv_cross::CFG", ptr %19, i32 0, i32 5
  %217 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjN11spirv_cross3CFG10VisitOrderESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEEixERS8_(ptr noundef nonnull align 8 dereferenceable(56) %216, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %218 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross3CFG10VisitOrder3getEv(ptr noundef nonnull align 4 dereferenceable(4) %217)
  store i32 %215, ptr %218, align 4, !tbaa !9
  %219 = getelementptr inbounds %"class.spirv_cross::CFG", ptr %19, i32 0, i32 6
  call void @_ZN11spirv_cross11SmallVectorIjLm8EE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(56) %219, ptr noundef nonnull align 4 dereferenceable(4) %5) #5
  store i1 true, ptr %3, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %220

220:                                              ; preds = %212, %26, %22
  %221 = load i1, ptr %3, align 1
  ret i1 %221
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjN11spirv_cross3CFG10VisitOrderESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEEixERS8_(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 nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross3CFG10VisitOrder3getEv(ptr noundef nonnull align 4 dereferenceable(4)) #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
declare dso_local void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356), i32 noundef, i32 noundef) #2 align 2

declare noundef nonnull align 8 dereferenceable(152) ptr @_ZNK11spirv_cross8Compiler13get_case_listERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(976)) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_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__detailneERKNS_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_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56)) #4

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

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


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

%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base.230" }
%"struct.std::__detail::_Node_iterator_base.230" = type { ptr }

; 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 i64 @_ZNK11spirv_cross10VectorViewIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(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_iterator", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator", align 8
  store i32 %1, ptr %3, align 4, !tbaa !5
  %9 = tail call noundef zeroext i1 @_ZNK11spirv_cross3CFG24has_visited_forward_edgeEj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %1)
  br i1 %9, label %116, label %10

10:                                               ; preds = %2
  %11 = tail call noundef zeroext i1 @_ZNK11spirv_cross3CFG12is_back_edgeEj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %1)
  br i1 %11, label %116, label %12

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %0, i64 184
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjN11spirv_cross3CFG10VisitOrderESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEEixERS8_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %15 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross3CFG10VisitOrder3getEv(ptr noundef nonnull align 4 dereferenceable(4) %14)
  store i32 0, ptr %15, align 4, !tbaa !5
  %16 = load ptr, ptr %0, align 8, !tbaa !9
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = call noundef nonnull align 8 dereferenceable(976) ptr @_ZN11spirv_cross8Compiler3getINS_9SPIRBlockEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %16, i32 noundef %17)
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  %20 = load i32, ptr %19, align 8, !tbaa !25
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %22, label %29

22:                                               ; preds = %12
  %23 = getelementptr inbounds i8, ptr %18, i64 28
  %24 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %23)
  %25 = call noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %24)
  br i1 %25, label %26, label %29

26:                                               ; preds = %22
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %23)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %27, i32 noundef %28)
  br label %29

29:                                               ; preds = %26, %22, %12
  %30 = getelementptr inbounds i8, ptr %18, i64 12
  %31 = load i32, ptr %30, align 4, !tbaa !53
  switch i32 %31, label %66 [
    i32 1, label %32
    i32 2, label %36
    i32 3, label %47
  ]

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %18, i64 24
  %34 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %33)
  %35 = call noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %34)
  br i1 %35, label %.sink.split, label %66

36:                                               ; preds = %29
  %37 = getelementptr inbounds i8, ptr %18, i64 44
  %38 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %37)
  %39 = call noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %38)
  br i1 %39, label %40, label %43

40:                                               ; preds = %36
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %37)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %41, i32 noundef %42)
  br label %43

43:                                               ; preds = %40, %36
  %44 = getelementptr inbounds i8, ptr %18, i64 48
  %45 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %44)
  %46 = call noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %45)
  br i1 %46, label %.sink.split, label %66

47:                                               ; preds = %29
  %48 = load ptr, ptr %0, align 8, !tbaa !9
  %49 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNK11spirv_cross8Compiler13get_case_listERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(3176) %48, ptr noundef nonnull align 8 dereferenceable(976) %18)
  %50 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %49) #5
  %51 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %49) #5
  %.not43 = icmp eq ptr %50, %51
  br i1 %.not43, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %60, %47
  %52 = getelementptr inbounds i8, ptr %18, i64 52
  %53 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %52)
  %.not39 = icmp eq i32 %53, 0
  br i1 %.not39, label %66, label %62

.lr.ph:                                           ; preds = %47, %60
  %.03744 = phi ptr [ %61, %60 ], [ %50, %47 ]
  %54 = getelementptr inbounds i8, ptr %.03744, i64 8
  %55 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %54)
  %56 = call noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %55)
  br i1 %56, label %57, label %60

57:                                               ; preds = %.lr.ph
  %58 = load i32, ptr %3, align 4, !tbaa !5
  %59 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %54)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %58, i32 noundef %59)
  br label %60

60:                                               ; preds = %57, %.lr.ph
  %61 = getelementptr inbounds i8, ptr %.03744, i64 16
  %.not = icmp eq ptr %61, %51
  br i1 %.not, label %._crit_edge, label %.lr.ph

62:                                               ; preds = %._crit_edge
  %63 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %52)
  %64 = call noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %63)
  br i1 %64, label %.sink.split, label %66

.sink.split:                                      ; preds = %62, %43, %32
  %.sink46 = phi ptr [ %33, %32 ], [ %44, %43 ], [ %52, %62 ]
  %.sink = load i32, ptr %3, align 4, !tbaa !5
  %65 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %.sink46)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %.sink, i32 noundef %65)
  br label %66

66:                                               ; preds = %.sink.split, %._crit_edge, %62, %29, %43, %32
  %67 = load i32, ptr %19, align 8, !tbaa !25
  %68 = icmp eq i32 %67, 2
  br i1 %68, label %69, label %109

69:                                               ; preds = %66
  %70 = getelementptr inbounds i8, ptr %18, i64 24
  %71 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %70)
  %72 = call noundef zeroext i1 @_ZN11spirv_cross3CFG16post_order_visitEj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %71)
  br i1 %72, label %73, label %109

73:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %74 = getelementptr inbounds i8, ptr %0, i64 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %75 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %70)
  store i32 %75, ptr %5, align 4, !tbaa !5
  %76 = call ptr @_ZNSt13unordered_mapIjN11spirv_cross11SmallVectorIjLm8EEESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %74, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store ptr %76, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %77 = call ptr @_ZSt3endISt13unordered_mapIjN11spirv_cross11SmallVectorIjLm8EEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %74)
  store ptr %77, ptr %6, align 8
  %78 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br i1 %78, label %79, label %105

79:                                               ; preds = %73
  %80 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %81 = getelementptr inbounds i8, ptr %80, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %82 = getelementptr inbounds i8, ptr %0, i64 72
  %83 = call ptr @_ZNSt13unordered_mapIjN11spirv_cross11SmallVectorIjLm8EEESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %82, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store ptr %83, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %84 = call ptr @_ZSt3endISt13unordered_mapIjN11spirv_cross11SmallVectorIjLm8EEESt4hashIjESt8equal_toIjESaISt4pairIKjS3_EEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %82)
  store ptr %84, ptr %8, align 8
  %85 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br i1 %85, label %86, label %.thread

86:                                               ; preds = %79
  %87 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN11spirv_cross11SmallVectorIjLm8EEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %88 = getelementptr inbounds i8, ptr %87, i64 8
  %89 = call noundef i64 @_ZNK11spirv_cross10VectorViewIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %88) #5
  %90 = icmp eq i64 %89, 1
  %91 = load i32, ptr %30, align 4, !tbaa !53
  %92 = icmp eq i32 %91, 3
  %or.cond = and i1 %90, %92
  br i1 %or.cond, label %93, label %.thread

93:                                               ; preds = %86
  %94 = call noundef zeroext i1 @_ZNK11spirv_cross10VectorViewIjE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %81) #5
  br i1 %94, label %104, label %95

95:                                               ; preds = %93
  %96 = load i32, ptr %3, align 4, !tbaa !5
  br label %.sink.split47

.thread:                                          ; preds = %79, %86
  %97 = call noundef i64 @_ZNK11spirv_cross10VectorViewIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %81) #5
  %98 = icmp eq i64 %97, 1
  br i1 %98, label %99, label %104

99:                                               ; preds = %.thread
  %100 = call noundef ptr @_ZN11spirv_cross10VectorViewIjE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %81) #5
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = load i32, ptr %3, align 4, !tbaa !5
  %.not40 = icmp eq i32 %101, %102
  br i1 %.not40, label %104, label %.sink.split47

.sink.split47:                                    ; preds = %99, %95
  %.sink48 = phi i32 [ %96, %95 ], [ %102, %99 ]
  %103 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %70)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %.sink48, i32 noundef %103)
  br label %104

104:                                              ; preds = %.sink.split47, %.thread, %99, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %108

105:                                              ; preds = %73
  %106 = load i32, ptr %3, align 4, !tbaa !5
  %107 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %70)
  call void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356) %0, i32 noundef %106, i32 noundef %107)
  br label %108

108:                                              ; preds = %105, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %109

109:                                              ; preds = %108, %69, %66
  %110 = getelementptr inbounds i8, ptr %0, i64 352
  %111 = load i32, ptr %110, align 8, !tbaa !54
  %112 = add i32 %111, 1
  store i32 %112, ptr %110, align 8, !tbaa !54
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjN11spirv_cross3CFG10VisitOrderESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEEixERS8_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross3CFG10VisitOrder3getEv(ptr noundef nonnull align 4 dereferenceable(4) %113)
  store i32 %112, ptr %114, align 4, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %0, i64 240
  call void @_ZN11spirv_cross11SmallVectorIjLm8EE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(56) %115, ptr noundef nonnull align 4 dereferenceable(4) %3) #5
  br label %116

116:                                              ; preds = %10, %2, %109
  %.036 = phi i1 [ true, %109 ], [ true, %2 ], [ false, %10 ]
  ret i1 %.036
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjN11spirv_cross3CFG10VisitOrderESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEEixERS8_(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 nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross3CFG10VisitOrder3getEv(ptr noundef nonnull align 4 dereferenceable(4)) 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
declare dso_local void @_ZN11spirv_cross3CFG10add_branchEjj(ptr noundef nonnull align 8 dereferenceable(356), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

declare noundef nonnull align 8 dereferenceable(152) ptr @_ZNK11spirv_cross8Compiler13get_case_listERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(976)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_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__detailneERKNS_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_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorIjLm8EE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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}
!53 = !{!26, !29, i64 12}
!54 = !{!10, !6, i64 352}


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