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

; 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" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.spirv_cross::SPIRFunction::Parameter" = type <{ %"class.spirv_cross::TypedID.328", %"class.spirv_cross::TypedID.324", i32, i32, i8, [3 x i8] }>
%"class.spirv_cross::TypedID.328" = type { i32 }
%"class.spirv_cross::TypedID.324" = type { i32 }
%"struct.spirv_cross::SPIRFunction" = type <{ %"struct.spirv_cross::IVariant.base", %"class.spirv_cross::TypedID.328", %"class.spirv_cross::TypedID.328", [4 x i8], %"class.spirv_cross::SmallVector.395", %"class.spirv_cross::SmallVector.395", %"class.spirv_cross::SmallVector.334", %"class.spirv_cross::TypedID.331", [4 x i8], %"class.spirv_cross::SmallVector.398", %"class.spirv_cross::SmallVector.401", %"struct.spirv_cross::SPIRFunction::EntryLine", %"class.spirv_cross::SmallVector.404", %"class.spirv_cross::SmallVector.404", %"class.spirv_cross::SmallVector.10", i8, i8, i8, [5 x i8] }>
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.324" }>
%"class.spirv_cross::SmallVector.395" = type { %"class.spirv_cross::VectorView.396", i64, %"class.spirv_cross::AlignedBuffer.397" }
%"class.spirv_cross::VectorView.396" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.397" = type { [160 x i8] }
%"class.spirv_cross::SmallVector.334" = type { %"class.spirv_cross::VectorView.335", i64, %"class.spirv_cross::AlignedBuffer.336" }
%"class.spirv_cross::VectorView.335" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.336" = type { [32 x i8] }
%"class.spirv_cross::TypedID.331" = type { i32 }
%"class.spirv_cross::SmallVector.398" = type { %"class.spirv_cross::VectorView.399", i64, %"class.spirv_cross::AlignedBuffer.400" }
%"class.spirv_cross::VectorView.399" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.400" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.401" = type { %"class.spirv_cross::VectorView.402", i64, %"class.spirv_cross::AlignedBuffer.403" }
%"class.spirv_cross::VectorView.402" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.403" = type { [128 x i8] }
%"struct.spirv_cross::SPIRFunction::EntryLine" = type { i32, i32 }
%"class.spirv_cross::SmallVector.404" = type <{ %"class.spirv_cross::VectorView.405", i64, [8 x i8] }>
%"class.spirv_cross::VectorView.405" = type { ptr, i64 }
%"class.spirv_cross::SmallVector.10" = type { %"class.spirv_cross::VectorView.11", i64, %"class.spirv_cross::AlignedBuffer.12" }
%"class.spirv_cross::VectorView.11" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.12" = type { [32 x i8] }
%"struct.spirv_cross::SPIRBlock" = type { %"struct.spirv_cross::IVariant.base", i32, i32, i32, %"class.spirv_cross::TypedID.331", %"class.spirv_cross::TypedID.331", %"class.spirv_cross::TypedID.331", %"class.spirv_cross::TypedID.324", %"class.spirv_cross::TypedID.324", %"class.spirv_cross::TypedID.331", %"class.spirv_cross::TypedID.331", %"class.spirv_cross::TypedID.331", %struct.anon.407, %"class.spirv_cross::SmallVector.408", %"class.spirv_cross::SmallVector.411", %"class.spirv_cross::SmallVector.414", %"class.spirv_cross::SmallVector.414", %"class.spirv_cross::SmallVector.417", %"class.spirv_cross::SmallVector.417", i8, i8, i8, %"class.spirv_cross::TypedID.331", %"class.spirv_cross::TypedID.331", %"class.spirv_cross::SmallVector.334", %"class.spirv_cross::SmallVector.334", %"class.spirv_cross::SmallVector.10" }
%struct.anon.407 = type { [3 x %"class.spirv_cross::TypedID.324"], %"class.spirv_cross::TypedID.324" }
%"class.spirv_cross::SmallVector.408" = type { %"class.spirv_cross::VectorView.409", i64, %"class.spirv_cross::AlignedBuffer.410" }
%"class.spirv_cross::VectorView.409" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.410" = type { [96 x i8] }
%"class.spirv_cross::SmallVector.411" = type { %"class.spirv_cross::VectorView.412", i64, %"class.spirv_cross::AlignedBuffer.413" }
%"class.spirv_cross::VectorView.412" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.413" = type { [96 x i8] }
%"class.spirv_cross::SmallVector.414" = type { %"class.spirv_cross::VectorView.415", i64, %"class.spirv_cross::AlignedBuffer.416" }
%"class.spirv_cross::VectorView.415" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.416" = type { [64 x i8] }
%"class.spirv_cross::SmallVector.417" = type { %"class.spirv_cross::VectorView.418", i64, %"class.spirv_cross::AlignedBuffer.419" }
%"class.spirv_cross::VectorView.418" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.419" = type { [128 x i8] }
%"struct.spirv_cross::Instruction" = type { i16, i16, i32, i32 }
%"struct.spirv_cross::SPIRVariable" = type { %"struct.spirv_cross::IVariant.base", %"class.spirv_cross::TypedID.328", i32, i32, %"class.spirv_cross::TypedID.324", %"class.spirv_cross::TypedID.330", %"class.spirv_cross::SmallVector.92", i8, i8, %"class.spirv_cross::TypedID.324", %"class.spirv_cross::SmallVector.10", i8, i8, i8, i8, i32, %"class.spirv_cross::TypedID.331", i8, i8, i8, ptr }
%"class.spirv_cross::TypedID.330" = type { i32 }
%"class.spirv_cross::SmallVector.92" = type { %"class.spirv_cross::VectorView.93", i64, %"class.spirv_cross::AlignedBuffer.94" }
%"class.spirv_cross::VectorView.93" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.94" = type { [32 x i8] }
%"struct.spirv_cross::IVariant" = type <{ ptr, %"class.spirv_cross::TypedID.324", [4 x i8] }>

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare noundef i32 @_ZNK11spirv_cross8Compiler14get_decorationENS_7TypedIDILNS_5TypesE0EEEN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176), i32, i32 noundef) #3

declare noundef zeroext i1 @_ZNK11spirv_cross12CompilerGLSL25is_per_primitive_variableERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(176)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross12CompilerHLSL22analyze_meshlet_writesEjjjRSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE(ptr noundef nonnull align 8 dereferenceable(10528) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(56) %4) #4 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %12 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca i8, align 1
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca %"struct.spirv_cross::SPIRFunction::Parameter", align 4
  %39 = alloca ptr, align 8
  %40 = alloca i8, align 1
  %41 = alloca i32, align 4
  %42 = alloca %"class.spirv_cross::TypedID.324", align 4
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca i32, align 4
  %49 = alloca %"struct.spirv_cross::SPIRFunction::Parameter", align 4
  %50 = alloca %"struct.spirv_cross::SPIRFunction::Parameter", align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  %51 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = call ptr @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE4findERKj(ptr noundef nonnull align 8 dereferenceable(56) %52, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %54 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %11, i32 0, i32 0
  %55 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %54, i32 0, i32 0
  store ptr %53, ptr %55, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = call ptr @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %56) #5
  %58 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %12, i32 0, i32 0
  %59 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %58, i32 0, i32 0
  store ptr %57, ptr %59, align 8
  %60 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIjLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br i1 %60, label %61, label %62

61:                                               ; preds = %5
  br label %320

62:                                               ; preds = %5
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56) %63, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %65 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 0
  %66 = extractvalue { ptr, i8 } %64, 0
  store ptr %66, ptr %65, align 8
  %67 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 1
  %68 = extractvalue { ptr, i8 } %64, 1
  store i8 %68, ptr %67, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = call noundef nonnull align 8 dereferenceable(795) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRFunctionEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %51, i32 noundef %69)
  store ptr %70, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction", ptr %71, i32 0, i32 9
  store ptr %72, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE6EEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %73) #5
  store ptr %74, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %75 = load ptr, ptr %15, align 8, !tbaa !5
  %76 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE6EEEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %75) #5
  store ptr %76, ptr %17, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %316, %62
  %78 = load ptr, ptr %16, align 8, !tbaa !5
  %79 = load ptr, ptr %17, align 8, !tbaa !5
  %80 = icmp ne ptr %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  store i32 2, ptr %18, align 4
  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 %319

82:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %83 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %83, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %84 = load ptr, ptr %19, align 8, !tbaa !5
  %85 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %84)
  %86 = call noundef nonnull align 8 dereferenceable(976) ptr @_ZN11spirv_cross8Compiler3getINS_9SPIRBlockEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %51, i32 noundef %85)
  store ptr %86, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %87 = load ptr, ptr %20, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %87, i32 0, i32 13
  store ptr %88, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %89 = load ptr, ptr %21, align 8, !tbaa !5
  %90 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_11InstructionEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %89) #5
  store ptr %90, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %91 = load ptr, ptr %21, align 8, !tbaa !5
  %92 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_11InstructionEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %91) #5
  store ptr %92, ptr %23, align 8, !tbaa !5
  br label %93

93:                                               ; preds = %312, %82
  %94 = load ptr, ptr %22, align 8, !tbaa !5
  %95 = load ptr, ptr %23, align 8, !tbaa !5
  %96 = icmp ne ptr %94, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %93
  store i32 4, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %315

98:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %99 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %99, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %100 = load ptr, ptr %24, align 8, !tbaa !5
  %101 = call noundef ptr @_ZNK11spirv_cross8Compiler6streamERKNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(3176) %51, ptr noundef nonnull align 4 dereferenceable(12) %100)
  store ptr %101, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %102 = load ptr, ptr %24, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.spirv_cross::Instruction", ptr %102, i32 0, i32 0
  %104 = load i16, ptr %103, align 4, !tbaa !11
  %105 = zext i16 %104 to i32
  store i32 %105, ptr %26, align 4, !tbaa !14
  %106 = load i32, ptr %26, align 4, !tbaa !14
  switch i32 %106, label %310 [
    i32 57, label %107
    i32 62, label %196
    i32 61, label %196
    i32 66, label %196
    i32 65, label %196
    i32 67, label %196
    i32 70, label %196
    i32 68, label %196
  ]

107:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %108 = load ptr, ptr %25, align 8, !tbaa !5
  %109 = getelementptr inbounds i32, ptr %108, i64 2
  %110 = load i32, ptr %109, align 4, !tbaa !9
  store i32 %110, ptr %27, align 4, !tbaa !9
  %111 = load i32, ptr %27, align 4, !tbaa !9
  %112 = load i32, ptr %8, align 4, !tbaa !9
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11spirv_cross12CompilerHLSL22analyze_meshlet_writesEjjjRSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE(ptr noundef nonnull align 8 dereferenceable(10528) %51, i32 noundef %111, i32 noundef %112, i32 noundef %113, ptr noundef nonnull align 8 dereferenceable(56) %114)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %115 = load i32, ptr %27, align 4, !tbaa !9
  %116 = call noundef nonnull align 8 dereferenceable(795) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRFunctionEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %51, i32 noundef %115)
  store ptr %116, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %117 = load ptr, ptr %28, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction", ptr %117, i32 0, i32 4
  store ptr %118, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %119 = load ptr, ptr %29, align 8, !tbaa !5
  %120 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction9ParameterEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %119) #5
  store ptr %120, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %121 = load ptr, ptr %29, align 8, !tbaa !5
  %122 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction9ParameterEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %121) #5
  store ptr %122, ptr %31, align 8, !tbaa !5
  br label %123

123:                                              ; preds = %192, %107
  %124 = load ptr, ptr %30, align 8, !tbaa !5
  %125 = load ptr, ptr %31, align 8, !tbaa !5
  %126 = icmp ne ptr %124, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %123
  store i32 7, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %195

128:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %129 = load ptr, ptr %30, align 8, !tbaa !5
  store ptr %129, ptr %32, align 8, !tbaa !5
  %130 = load ptr, ptr %32, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %130, i32 0, i32 4
  %132 = load i8, ptr %131, align 4, !tbaa !16, !range !21, !noundef !22
  %133 = trunc i8 %132 to i1
  br i1 %133, label %135, label %134

134:                                              ; preds = %128
  store i32 8, ptr %18, align 4
  br label %189

135:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #5
  store i8 0, ptr %33, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction", ptr %136, i32 0, i32 4
  store ptr %137, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  %138 = load ptr, ptr %34, align 8, !tbaa !5
  %139 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction9ParameterEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %138) #5
  store ptr %139, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  %140 = load ptr, ptr %34, align 8, !tbaa !5
  %141 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction9ParameterEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %140) #5
  store ptr %141, ptr %36, align 8, !tbaa !5
  br label %142

142:                                              ; preds = %161, %135
  %143 = load ptr, ptr %35, align 8, !tbaa !5
  %144 = load ptr, ptr %36, align 8, !tbaa !5
  %145 = icmp ne ptr %143, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %142
  store i32 9, ptr %18, align 4
  br label %164

147:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  %148 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %148, ptr %37, align 8, !tbaa !5
  %149 = load ptr, ptr %37, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %149, i32 0, i32 1
  %151 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %150)
  %152 = load ptr, ptr %32, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %152, i32 0, i32 1
  %154 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %153)
  %155 = icmp eq i32 %151, %154
  br i1 %155, label %156, label %157

156:                                              ; preds = %147
  store i8 1, ptr %33, align 1, !tbaa !23
  store i32 9, ptr %18, align 4
  br label %158

157:                                              ; preds = %147
  store i32 0, ptr %18, align 4
  br label %158

158:                                              ; preds = %157, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  %159 = load i32, ptr %18, align 4
  switch i32 %159, label %164 [
    i32 0, label %160
  ]

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160
  %162 = load ptr, ptr %35, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %162, i32 1
  store ptr %163, ptr %35, align 8, !tbaa !5
  br label %142

164:                                              ; preds = %158, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br label %165

165:                                              ; preds = %164
  %166 = load i8, ptr %33, align 1, !tbaa !23, !range !21, !noundef !22
  %167 = trunc i8 %166 to i1
  br i1 %167, label %188, label %168

168:                                              ; preds = %165
  %169 = load ptr, ptr %14, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction", ptr %169, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 20, ptr %38) #5
  %171 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %38, i32 0, i32 0
  %172 = load ptr, ptr %32, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %172, i32 0, i32 1
  %174 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %173)
  %175 = call noundef i32 @_ZNK11spirv_cross8Compiler18expression_type_idEj(ptr noundef nonnull align 8 dereferenceable(3176) %51, i32 noundef %174)
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE1EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %171, i32 noundef %175)
  %176 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %38, i32 0, i32 1
  %177 = load ptr, ptr %32, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %177, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %176, ptr align 4 %178, i64 4, i1 false), !tbaa.struct !24
  %179 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %38, i32 0, i32 2
  %180 = load ptr, ptr %32, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %180, i32 0, i32 2
  %182 = load i32, ptr %181, align 4, !tbaa !25
  store i32 %182, ptr %179, align 4, !tbaa !25
  %183 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %38, i32 0, i32 3
  %184 = load ptr, ptr %32, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %184, i32 0, i32 3
  %186 = load i32, ptr %185, align 4, !tbaa !26
  store i32 %186, ptr %183, align 4, !tbaa !26
  %187 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %38, i32 0, i32 4
  store i8 1, ptr %187, align 4, !tbaa !16
  call void @_ZN11spirv_cross11SmallVectorINS_12SPIRFunction9ParameterELm8EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(184) %170, ptr noundef nonnull align 4 dereferenceable(17) %38) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr %38) #5
  br label %188

188:                                              ; preds = %168, %165
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #5
  store i32 0, ptr %18, align 4
  br label %189

189:                                              ; preds = %188, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  %190 = load i32, ptr %18, align 4
  switch i32 %190, label %321 [
    i32 0, label %191
    i32 8, label %192
  ]

191:                                              ; preds = %189
  br label %192

192:                                              ; preds = %191, %189
  %193 = load ptr, ptr %30, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %193, i32 1
  store ptr %194, ptr %30, align 8, !tbaa !5
  br label %123

195:                                              ; preds = %127
  store i32 6, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %311

196:                                              ; preds = %98, %98, %98, %98, %98, %98, %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  %197 = load ptr, ptr %25, align 8, !tbaa !5
  %198 = load i32, ptr %26, align 4, !tbaa !14
  %199 = icmp eq i32 %198, 62
  %200 = zext i1 %199 to i64
  %201 = select i1 %199, i32 0, i32 2
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds i32, ptr %197, i64 %202
  %204 = load i32, ptr %203, align 4, !tbaa !9
  %205 = call noundef ptr @_ZN11spirv_cross8Compiler9maybe_getINS_12SPIRVariableEEEPT_j(ptr noundef nonnull align 8 dereferenceable(3176) %51, i32 noundef %204)
  store ptr %205, ptr %39, align 8, !tbaa !5
  %206 = load ptr, ptr %39, align 8, !tbaa !5
  %207 = icmp ne ptr %206, null
  br i1 %207, label %208, label %309

208:                                              ; preds = %196
  %209 = load ptr, ptr %39, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %209, i32 0, i32 2
  %211 = load i32, ptr %210, align 8, !tbaa !27
  %212 = icmp eq i32 %211, 3
  br i1 %212, label %218, label %213

213:                                              ; preds = %208
  %214 = load ptr, ptr %39, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %214, i32 0, i32 2
  %216 = load i32, ptr %215, align 8, !tbaa !27
  %217 = icmp eq i32 %216, 5402
  br i1 %217, label %218, label %309

218:                                              ; preds = %213, %208
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #5
  store i8 0, ptr %40, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #5
  %219 = load ptr, ptr %39, align 8, !tbaa !5
  %220 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %219, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 8 %220, i64 4, i1 false), !tbaa.struct !24
  %221 = getelementptr inbounds %"class.spirv_cross::TypedID.324", ptr %42, i32 0, i32 0
  %222 = load i32, ptr %221, align 4
  %223 = call noundef i32 @_ZNK11spirv_cross8Compiler14get_decorationENS_7TypedIDILNS_5TypesE0EEEN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176) %51, i32 %222, i32 noundef 11)
  store i32 %223, ptr %41, align 4, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #5
  %224 = load ptr, ptr %39, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %224, i32 0, i32 1
  %226 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %225)
  store i32 %226, ptr %43, align 4, !tbaa !9
  %227 = load ptr, ptr %39, align 8, !tbaa !5
  %228 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %227, i32 0, i32 2
  %229 = load i32, ptr %228, align 8, !tbaa !27
  %230 = icmp ne i32 %229, 5402
  br i1 %230, label %231, label %249

231:                                              ; preds = %218
  %232 = load i32, ptr %41, align 4, !tbaa !40
  %233 = icmp ne i32 %232, 5294
  br i1 %233, label %234, label %249

234:                                              ; preds = %231
  %235 = load i32, ptr %41, align 4, !tbaa !40
  %236 = icmp ne i32 %235, 5295
  br i1 %236, label %237, label %249

237:                                              ; preds = %234
  %238 = load i32, ptr %41, align 4, !tbaa !40
  %239 = icmp ne i32 %238, 5296
  br i1 %239, label %240, label %249

240:                                              ; preds = %237
  %241 = load ptr, ptr %39, align 8, !tbaa !5
  %242 = call noundef zeroext i1 @_ZNK11spirv_cross12CompilerGLSL25is_per_primitive_variableERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(9848) %51, ptr noundef nonnull align 8 dereferenceable(176) %241)
  br i1 %242, label %243, label %245

243:                                              ; preds = %240
  %244 = load i32, ptr %9, align 4, !tbaa !9
  br label %247

245:                                              ; preds = %240
  %246 = load i32, ptr %8, align 4, !tbaa !9
  br label %247

247:                                              ; preds = %245, %243
  %248 = phi i32 [ %244, %243 ], [ %246, %245 ]
  store i32 %248, ptr %43, align 4, !tbaa !9
  br label %249

249:                                              ; preds = %247, %237, %234, %231, %218
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #5
  %250 = load ptr, ptr %14, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction", ptr %250, i32 0, i32 4
  store ptr %251, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #5
  %252 = load ptr, ptr %44, align 8, !tbaa !5
  %253 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction9ParameterEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %252) #5
  store ptr %253, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #5
  %254 = load ptr, ptr %44, align 8, !tbaa !5
  %255 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction9ParameterEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %254) #5
  store ptr %255, ptr %46, align 8, !tbaa !5
  br label %256

256:                                              ; preds = %273, %249
  %257 = load ptr, ptr %45, align 8, !tbaa !5
  %258 = load ptr, ptr %46, align 8, !tbaa !5
  %259 = icmp ne ptr %257, %258
  br i1 %259, label %261, label %260

260:                                              ; preds = %256
  store i32 11, ptr %18, align 4
  br label %276

261:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #5
  %262 = load ptr, ptr %45, align 8, !tbaa !5
  store ptr %262, ptr %47, align 8, !tbaa !5
  %263 = load ptr, ptr %47, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %263, i32 0, i32 1
  %265 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %264)
  %266 = load i32, ptr %43, align 4, !tbaa !9
  %267 = icmp eq i32 %265, %266
  br i1 %267, label %268, label %269

268:                                              ; preds = %261
  store i8 1, ptr %40, align 1, !tbaa !23
  store i32 11, ptr %18, align 4
  br label %270

269:                                              ; preds = %261
  store i32 0, ptr %18, align 4
  br label %270

270:                                              ; preds = %269, %268
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #5
  %271 = load i32, ptr %18, align 4
  switch i32 %271, label %276 [
    i32 0, label %272
  ]

272:                                              ; preds = %270
  br label %273

273:                                              ; preds = %272
  %274 = load ptr, ptr %45, align 8, !tbaa !5
  %275 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %274, i32 1
  store ptr %275, ptr %45, align 8, !tbaa !5
  br label %256

276:                                              ; preds = %270, %260
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #5
  br label %277

277:                                              ; preds = %276
  %278 = load i8, ptr %40, align 1, !tbaa !23, !range !21, !noundef !22
  %279 = trunc i8 %278 to i1
  br i1 %279, label %308, label %280

280:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #5
  %281 = load i32, ptr %43, align 4, !tbaa !9
  %282 = call noundef i32 @_ZNK11spirv_cross8Compiler18expression_type_idEj(ptr noundef nonnull align 8 dereferenceable(3176) %51, i32 noundef %281)
  store i32 %282, ptr %48, align 4, !tbaa !9
  %283 = load ptr, ptr %39, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %283, i32 0, i32 2
  %285 = load i32, ptr %284, align 8, !tbaa !27
  %286 = icmp eq i32 %285, 5402
  br i1 %286, label %287, label %297

287:                                              ; preds = %280
  %288 = load ptr, ptr %14, align 8, !tbaa !5
  %289 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction", ptr %288, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 20, ptr %49) #5
  %290 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %49, i32 0, i32 0
  %291 = load i32, ptr %48, align 4, !tbaa !9
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE1EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %290, i32 noundef %291)
  %292 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %49, i32 0, i32 1
  %293 = load i32, ptr %43, align 4, !tbaa !9
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %292, i32 noundef %293)
  %294 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %49, i32 0, i32 2
  store i32 1, ptr %294, align 4, !tbaa !25
  %295 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %49, i32 0, i32 3
  store i32 0, ptr %295, align 4, !tbaa !26
  %296 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %49, i32 0, i32 4
  store i8 1, ptr %296, align 4, !tbaa !16
  call void @_ZN11spirv_cross11SmallVectorINS_12SPIRFunction9ParameterELm8EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(184) %289, ptr noundef nonnull align 4 dereferenceable(17) %49) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr %49) #5
  br label %307

297:                                              ; preds = %280
  %298 = load ptr, ptr %14, align 8, !tbaa !5
  %299 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction", ptr %298, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 20, ptr %50) #5
  %300 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %50, i32 0, i32 0
  %301 = load i32, ptr %48, align 4, !tbaa !9
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE1EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %300, i32 noundef %301)
  %302 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %50, i32 0, i32 1
  %303 = load i32, ptr %43, align 4, !tbaa !9
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %302, i32 noundef %303)
  %304 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %50, i32 0, i32 2
  store i32 1, ptr %304, align 4, !tbaa !25
  %305 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %50, i32 0, i32 3
  store i32 1, ptr %305, align 4, !tbaa !26
  %306 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::Parameter", ptr %50, i32 0, i32 4
  store i8 1, ptr %306, align 4, !tbaa !16
  call void @_ZN11spirv_cross11SmallVectorINS_12SPIRFunction9ParameterELm8EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(184) %299, ptr noundef nonnull align 4 dereferenceable(17) %50) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr %50) #5
  br label %307

307:                                              ; preds = %297, %287
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #5
  br label %308

308:                                              ; preds = %307, %277
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #5
  br label %309

309:                                              ; preds = %308, %213, %196
  store i32 6, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  br label %311

310:                                              ; preds = %98
  br label %311

311:                                              ; preds = %310, %309, %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %312

312:                                              ; preds = %311
  %313 = load ptr, ptr %22, align 8, !tbaa !5
  %314 = getelementptr inbounds %"struct.spirv_cross::Instruction", ptr %313, i32 1
  store ptr %314, ptr %22, align 8, !tbaa !5
  br label %93

315:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %316

316:                                              ; preds = %315
  %317 = load ptr, ptr %16, align 8, !tbaa !5
  %318 = getelementptr inbounds %"class.spirv_cross::TypedID.331", ptr %317, i32 1
  store ptr %318, ptr %16, align 8, !tbaa !5
  br label %77

319:                                              ; preds = %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %320

320:                                              ; preds = %319, %61
  ret void

321:                                              ; preds = %189
  unreachable
}

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE6EEEE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 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) #4 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorINS_12SPIRFunction9ParameterELm8EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 4 dereferenceable(17)) #1 align 2

declare noundef i32 @_ZNK11spirv_cross8Compiler18expression_type_idEj(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) #3

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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, !13, i64 0}
!12 = !{!"_ZTSN11spirv_cross11InstructionE", !13, i64 0, !13, i64 2, !10, i64 4, !10, i64 8}
!13 = !{!"short", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"_ZTSN3spv2OpE", !7, i64 0}
!16 = !{!17, !20, i64 16}
!17 = !{!"_ZTSN11spirv_cross12SPIRFunction9ParameterE", !18, i64 0, !19, i64 4, !10, i64 8, !10, i64 12, !20, i64 16}
!18 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !10, i64 0}
!19 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !10, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!20, !20, i64 0}
!24 = !{i64 0, i64 4, !9}
!25 = !{!17, !10, i64 8}
!26 = !{!17, !10, i64 12}
!27 = !{!28, !30, i64 16}
!28 = !{!"_ZTSN11spirv_cross12SPIRVariableE", !29, i64 0, !18, i64 12, !30, i64 16, !10, i64 20, !19, i64 24, !31, i64 28, !32, i64 32, !20, i64 88, !20, i64 89, !19, i64 92, !36, i64 96, !20, i64 152, !20, i64 153, !20, i64 154, !20, i64 155, !10, i64 156, !39, i64 160, !20, i64 164, !20, i64 165, !20, i64 166, !6, i64 168}
!29 = !{!"_ZTSN11spirv_cross8IVariantE", !19, i64 8}
!30 = !{!"_ZTSN3spv12StorageClassE", !7, i64 0}
!31 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE2EEE", !10, i64 0}
!32 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !33, i64 0, !34, i64 16, !35, i64 24}
!33 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !6, i64 0, !34, i64 8}
!34 = !{!"long", !7, i64 0}
!35 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!36 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !37, i64 0, !34, i64 16, !38, i64 24}
!37 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !6, i64 0, !34, i64 8}
!38 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !7, i64 0}
!39 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !10, i64 0}
!40 = !{!41, !41, i64 0}
!41 = !{!"_ZTSN3spv7BuiltInE", !7, i64 0}


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

%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.spirv_cross::SPIRFunction::Parameter" = type <{ %"class.spirv_cross::TypedID.328", %"class.spirv_cross::TypedID.324", i32, i32, i8, [3 x i8] }>
%"class.spirv_cross::TypedID.328" = type { i32 }
%"class.spirv_cross::TypedID.324" = type { i32 }

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

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

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

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

declare noundef i32 @_ZNK11spirv_cross8Compiler14get_decorationENS_7TypedIDILNS_5TypesE0EEEN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176), i32, i32 noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZNK11spirv_cross12CompilerGLSL25is_per_primitive_variableERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross12CompilerHLSL22analyze_meshlet_writesEjjjRSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE(ptr noundef nonnull align 8 dereferenceable(10528) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(56) %4) local_unnamed_addr #3 align 2 {
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %9 = alloca %"struct.spirv_cross::SPIRFunction::Parameter", align 4
  %10 = alloca %"struct.spirv_cross::SPIRFunction::Parameter", align 4
  %11 = alloca %"struct.spirv_cross::SPIRFunction::Parameter", align 4
  store i32 %1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %12 = call ptr @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE4findERKj(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %6)
  store ptr %12, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %13 = call ptr @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #4
  store ptr %13, ptr %8, align 8
  %14 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIjLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br i1 %14, label %.loopexit113, label %15

15:                                               ; preds = %5
  %16 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %17 = load i32, ptr %6, align 4, !tbaa !5
  %18 = call noundef nonnull align 8 dereferenceable(795) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRFunctionEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %17)
  %19 = getelementptr inbounds i8, ptr %18, i64 456
  %20 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE6EEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  %21 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE6EEEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  %.not129 = icmp eq ptr %20, %21
  br i1 %.not129, label %.loopexit113, label %.lr.ph132

.lr.ph132:                                        ; preds = %15
  %22 = getelementptr inbounds i8, ptr %18, i64 24
  %23 = getelementptr inbounds i8, ptr %11, i64 4
  %24 = getelementptr inbounds i8, ptr %11, i64 8
  %25 = getelementptr inbounds i8, ptr %11, i64 12
  %26 = getelementptr inbounds i8, ptr %11, i64 16
  %27 = getelementptr inbounds i8, ptr %10, i64 4
  %28 = getelementptr inbounds i8, ptr %10, i64 8
  %29 = getelementptr inbounds i8, ptr %10, i64 12
  %30 = getelementptr inbounds i8, ptr %10, i64 16
  %31 = getelementptr inbounds i8, ptr %9, i64 4
  %32 = getelementptr inbounds i8, ptr %9, i64 12
  %33 = getelementptr inbounds i8, ptr %9, i64 16
  br label %34

34:                                               ; preds = %.lr.ph132, %._crit_edge
  %.0130 = phi ptr [ %20, %.lr.ph132 ], [ %40, %._crit_edge ]
  %35 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %.0130)
  %36 = call noundef nonnull align 8 dereferenceable(976) ptr @_ZN11spirv_cross8Compiler3getINS_9SPIRBlockEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %35)
  %37 = getelementptr inbounds i8, ptr %36, i64 72
  %38 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_11InstructionEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %37) #4
  %39 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_11InstructionEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %37) #4
  %.not104126 = icmp eq ptr %38, %39
  br i1 %.not104126, label %._crit_edge, label %.lr.ph128

._crit_edge:                                      ; preds = %.loopexit, %34
  %40 = getelementptr inbounds i8, ptr %.0130, i64 4
  %.not = icmp eq ptr %40, %21
  br i1 %.not, label %.loopexit113, label %34

.lr.ph128:                                        ; preds = %34, %.loopexit
  %.092127 = phi ptr [ %102, %.loopexit ], [ %38, %34 ]
  %41 = call noundef ptr @_ZNK11spirv_cross8Compiler6streamERKNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 4 dereferenceable(12) %.092127)
  %42 = load i16, ptr %.092127, align 4, !tbaa !9
  switch i16 %42, label %.loopexit [
    i16 57, label %43
    i16 62, label %70
    i16 61, label %70
    i16 66, label %70
    i16 65, label %70
    i16 67, label %70
    i16 70, label %70
    i16 68, label %70
  ]

43:                                               ; preds = %.lr.ph128
  %44 = getelementptr inbounds i8, ptr %41, i64 8
  %45 = load i32, ptr %44, align 4, !tbaa !5
  call void @_ZN11spirv_cross12CompilerHLSL22analyze_meshlet_writesEjjjRSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE(ptr noundef nonnull align 8 dereferenceable(10528) %0, i32 noundef %45, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(56) %4)
  %46 = call noundef nonnull align 8 dereferenceable(795) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRFunctionEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %45)
  %47 = getelementptr inbounds i8, ptr %46, i64 24
  %48 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction9ParameterEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %47) #4
  %49 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction9ParameterEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %47) #4
  %.not108123 = icmp eq ptr %48, %49
  br i1 %.not108123, label %.loopexit, label %.lr.ph125

.lr.ph125:                                        ; preds = %43, %.loopexit135
  %.094124 = phi ptr [ %69, %.loopexit135 ], [ %48, %43 ]
  %50 = getelementptr inbounds i8, ptr %.094124, i64 16
  %51 = load i8, ptr %50, align 4, !tbaa !12, !range !17, !noundef !18
  %52 = trunc nuw i8 %51 to i1
  br i1 %52, label %53, label %.loopexit135

53:                                               ; preds = %.lr.ph125
  %54 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction9ParameterEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %22) #4
  %55 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction9ParameterEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %22) #4
  %.not109.not119 = icmp eq ptr %54, %55
  br i1 %.not109.not119, label %.critedge, label %.lr.ph122

.lr.ph122:                                        ; preds = %53
  %56 = getelementptr inbounds i8, ptr %.094124, i64 4
  br label %59

57:                                               ; preds = %59
  %58 = getelementptr inbounds i8, ptr %.098120, i64 20
  %.not109.not = icmp eq ptr %58, %55
  br i1 %.not109.not, label %.critedge, label %59

59:                                               ; preds = %.lr.ph122, %57
  %.098120 = phi ptr [ %54, %.lr.ph122 ], [ %58, %57 ]
  %60 = getelementptr inbounds i8, ptr %.098120, i64 4
  %61 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %60)
  %62 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %56)
  %.not110 = icmp eq i32 %61, %62
  br i1 %.not110, label %.loopexit135, label %57

.critedge:                                        ; preds = %57, %53
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %9) #4
  %63 = getelementptr inbounds i8, ptr %.094124, i64 4
  %64 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %63)
  %65 = call noundef i32 @_ZNK11spirv_cross8Compiler18expression_type_idEj(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %64)
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE1EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %65)
  %66 = load <2 x i32>, ptr %63, align 4, !tbaa !5
  store <2 x i32> %66, ptr %31, align 4, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %.094124, i64 12
  %68 = load i32, ptr %67, align 4, !tbaa !19
  store i32 %68, ptr %32, align 4, !tbaa !19
  store i8 1, ptr %33, align 4, !tbaa !12
  call void @_ZN11spirv_cross11SmallVectorINS_12SPIRFunction9ParameterELm8EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(184) %22, ptr noundef nonnull align 4 dereferenceable(17) %9) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %9) #4
  br label %.loopexit135

.loopexit135:                                     ; preds = %59, %.critedge, %.lr.ph125
  %69 = getelementptr inbounds i8, ptr %.094124, i64 20
  %.not108 = icmp eq ptr %69, %49
  br i1 %.not108, label %.loopexit, label %.lr.ph125

70:                                               ; preds = %.lr.ph128, %.lr.ph128, %.lr.ph128, %.lr.ph128, %.lr.ph128, %.lr.ph128, %.lr.ph128
  %71 = icmp eq i16 %42, 62
  %72 = select i1 %71, i64 0, i64 2
  %73 = getelementptr inbounds i32, ptr %41, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = call noundef ptr @_ZN11spirv_cross8Compiler9maybe_getINS_12SPIRVariableEEEPT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %74)
  %.not105 = icmp eq ptr %75, null
  br i1 %.not105, label %.loopexit, label %76

76:                                               ; preds = %70
  %77 = getelementptr inbounds i8, ptr %75, i64 16
  %78 = load i32, ptr %77, align 8, !tbaa !20
  switch i32 %78, label %.loopexit [
    i32 3, label %79
    i32 5402, label %79
  ]

79:                                               ; preds = %76, %76
  %80 = getelementptr inbounds i8, ptr %75, i64 8
  %.sroa.0.0.copyload = load i32, ptr %80, align 8, !tbaa !5
  %81 = call noundef i32 @_ZNK11spirv_cross8Compiler14get_decorationENS_7TypedIDILNS_5TypesE0EEEN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 %.sroa.0.0.copyload, i32 noundef 11)
  %82 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %80)
  %83 = load i32, ptr %77, align 8, !tbaa !20
  %84 = icmp ne i32 %83, 5402
  %85 = add i32 %81, -5297
  %86 = icmp ult i32 %85, -3
  %or.cond6 = and i1 %86, %84
  br i1 %or.cond6, label %87, label %90

87:                                               ; preds = %79
  %88 = call noundef zeroext i1 @_ZNK11spirv_cross12CompilerGLSL25is_per_primitive_variableERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(176) %75)
  %89 = select i1 %88, i32 %3, i32 %2
  br label %90

90:                                               ; preds = %87, %79
  %.095 = phi i32 [ %89, %87 ], [ %82, %79 ]
  %91 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction9ParameterEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %22) #4
  %92 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction9ParameterEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %22) #4
  %.not106.not116 = icmp eq ptr %91, %92
  br i1 %.not106.not116, label %.critedge112, label %.lr.ph

93:                                               ; preds = %.lr.ph
  %94 = getelementptr inbounds i8, ptr %.093117, i64 20
  %.not106.not = icmp eq ptr %94, %92
  br i1 %.not106.not, label %.critedge112, label %.lr.ph

.lr.ph:                                           ; preds = %90, %93
  %.093117 = phi ptr [ %94, %93 ], [ %91, %90 ]
  %95 = getelementptr inbounds i8, ptr %.093117, i64 4
  %96 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %95)
  %.not107 = icmp eq i32 %96, %.095
  br i1 %.not107, label %.loopexit, label %93

.critedge112:                                     ; preds = %93, %90
  %97 = call noundef i32 @_ZNK11spirv_cross8Compiler18expression_type_idEj(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %.095)
  %98 = load i32, ptr %77, align 8, !tbaa !20
  %99 = icmp eq i32 %98, 5402
  br i1 %99, label %100, label %101

100:                                              ; preds = %.critedge112
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %10) #4
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE1EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef %97)
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 noundef %.095)
  store i32 1, ptr %28, align 4, !tbaa !34
  store i32 0, ptr %29, align 4, !tbaa !19
  store i8 1, ptr %30, align 4, !tbaa !12
  call void @_ZN11spirv_cross11SmallVectorINS_12SPIRFunction9ParameterELm8EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(184) %22, ptr noundef nonnull align 4 dereferenceable(17) %10) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %10) #4
  br label %.loopexit

101:                                              ; preds = %.critedge112
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %11) #4
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE1EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %97)
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %23, i32 noundef %.095)
  store i32 1, ptr %24, align 4, !tbaa !34
  store i32 1, ptr %25, align 4, !tbaa !19
  store i8 1, ptr %26, align 4, !tbaa !12
  call void @_ZN11spirv_cross11SmallVectorINS_12SPIRFunction9ParameterELm8EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(184) %22, ptr noundef nonnull align 4 dereferenceable(17) %11) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %11) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %.loopexit135, %43, %70, %76, %100, %101, %.lr.ph128
  %102 = getelementptr inbounds i8, ptr %.092127, i64 12
  %.not104 = icmp eq ptr %102, %39
  br i1 %.not104, label %._crit_edge, label %.lr.ph128

.loopexit113:                                     ; preds = %._crit_edge, %15, %5
  ret void
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK11spirv_cross8Compiler6streamERKNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorINS_12SPIRFunction9ParameterELm8EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 4 dereferenceable(17)) local_unnamed_addr #1 align 2

declare noundef i32 @_ZNK11spirv_cross8Compiler18expression_type_idEj(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) local_unnamed_addr #2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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_cross11InstructionE", !11, i64 0, !11, i64 2, !6, i64 4, !6, i64 8}
!11 = !{!"short", !7, i64 0}
!12 = !{!13, !16, i64 16}
!13 = !{!"_ZTSN11spirv_cross12SPIRFunction9ParameterE", !14, i64 0, !15, i64 4, !6, i64 8, !6, i64 12, !16, i64 16}
!14 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !6, i64 0}
!15 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !6, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!13, !6, i64 12}
!20 = !{!21, !23, i64 16}
!21 = !{!"_ZTSN11spirv_cross12SPIRVariableE", !22, i64 0, !14, i64 12, !23, i64 16, !6, i64 20, !15, i64 24, !24, i64 28, !25, i64 32, !16, i64 88, !16, i64 89, !15, i64 92, !30, i64 96, !16, i64 152, !16, i64 153, !16, i64 154, !16, i64 155, !6, i64 156, !33, i64 160, !16, i64 164, !16, i64 165, !16, i64 166, !27, i64 168}
!22 = !{!"_ZTSN11spirv_cross8IVariantE", !15, i64 8}
!23 = !{!"_ZTSN3spv12StorageClassE", !7, i64 0}
!24 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE2EEE", !6, i64 0}
!25 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !26, i64 0, !28, i64 16, !29, i64 24}
!26 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !27, i64 0, !28, i64 8}
!27 = !{!"any pointer", !7, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!30 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !31, i64 0, !28, i64 16, !32, i64 24}
!31 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !27, i64 0, !28, i64 8}
!32 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !7, i64 0}
!33 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !6, i64 0}
!34 = !{!13, !6, i64 8}


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