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

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

%"class.spirv_cross::SmallVector.313" = type { %"class.spirv_cross::VectorView.314", i64, %"class.spirv_cross::AlignedBuffer.315" }
%"class.spirv_cross::VectorView.314" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.315" = type { [40 x i8] }
%"class.std::initializer_list.499" = type { ptr, i64 }

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN11spirv_cross12CompilerGLSL27ShaderSubgroupSupportHelper26get_candidates_for_featureENS1_7FeatureE(ptr dead_on_unwind noalias writable sret(%"class.spirv_cross::SmallVector.313") align 8 %0, i32 noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::initializer_list.499", align 8
  %6 = alloca [3 x i32], align 4
  %7 = alloca %"class.std::initializer_list.499", align 8
  %8 = alloca [4 x i32], align 4
  %9 = alloca %"class.std::initializer_list.499", align 8
  %10 = alloca [3 x i32], align 4
  %11 = alloca %"class.std::initializer_list.499", align 8
  %12 = alloca [2 x i32], align 4
  %13 = alloca %"class.std::initializer_list.499", align 8
  %14 = alloca [2 x i32], align 4
  %15 = alloca %"class.std::initializer_list.499", align 8
  %16 = alloca [3 x i32], align 4
  %17 = alloca %"class.std::initializer_list.499", align 8
  %18 = alloca [2 x i32], align 4
  %19 = alloca %"class.std::initializer_list.499", align 8
  %20 = alloca [4 x i32], align 4
  %21 = alloca %"class.std::initializer_list.499", align 8
  %22 = alloca [3 x i32], align 4
  %23 = alloca %"class.std::initializer_list.499", align 8
  %24 = alloca [4 x i32], align 4
  %25 = alloca %"class.std::initializer_list.499", align 8
  %26 = alloca [1 x i32], align 4
  %27 = alloca %"class.std::initializer_list.499", align 8
  %28 = alloca [1 x i32], align 4
  %29 = alloca %"class.std::initializer_list.499", align 8
  %30 = alloca [2 x i32], align 4
  store ptr %0, ptr %3, align 8
  store i32 %1, ptr %4, align 4, !tbaa !5
  %31 = load i32, ptr %4, align 4, !tbaa !5
  switch i32 %31, label %148 [
    i32 0, label %32
    i32 1, label %41
    i32 2, label %51
    i32 3, label %60
    i32 4, label %68
    i32 5, label %76
    i32 6, label %85
    i32 7, label %93
    i32 8, label %103
    i32 9, label %104
    i32 12, label %105
    i32 10, label %114
    i32 11, label %124
    i32 13, label %131
    i32 14, label %132
    i32 15, label %139
    i32 16, label %140
    i32 17, label %140
    i32 18, label %140
    i32 19, label %140
    i32 20, label %140
    i32 21, label %140
    i32 22, label %140
    i32 23, label %140
    i32 24, label %140
    i32 25, label %140
    i32 26, label %140
    i32 27, label %140
  ]

32:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #2
  store i32 0, ptr %6, align 4, !tbaa !9
  %33 = getelementptr inbounds i32, ptr %6, i64 1
  store i32 5, ptr %33, align 4, !tbaa !9
  %34 = getelementptr inbounds i32, ptr %6, i64 2
  store i32 7, ptr %34, align 4, !tbaa !9
  %35 = getelementptr inbounds %"class.std::initializer_list.499", ptr %5, i32 0, i32 0
  store ptr %6, ptr %35, align 8, !tbaa !11
  %36 = getelementptr inbounds %"class.std::initializer_list.499", ptr %5, i32 0, i32 1
  store i64 3, ptr %36, align 8, !tbaa !15
  %37 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8
  %39 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 1
  %40 = load i64, ptr %39, align 8
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr %38, i64 %40) #2
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #2
  br label %149

41:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #2
  store i32 1, ptr %8, align 4, !tbaa !9
  %42 = getelementptr inbounds i32, ptr %8, i64 1
  store i32 5, ptr %42, align 4, !tbaa !9
  %43 = getelementptr inbounds i32, ptr %8, i64 2
  store i32 9, ptr %43, align 4, !tbaa !9
  %44 = getelementptr inbounds i32, ptr %8, i64 3
  store i32 7, ptr %44, align 4, !tbaa !9
  %45 = getelementptr inbounds %"class.std::initializer_list.499", ptr %7, i32 0, i32 0
  store ptr %8, ptr %45, align 8, !tbaa !11
  %46 = getelementptr inbounds %"class.std::initializer_list.499", ptr %7, i32 0, i32 1
  store i64 4, ptr %46, align 8, !tbaa !15
  %47 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8
  %49 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  %50 = load i64, ptr %49, align 8
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr %48, i64 %50) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #2
  br label %149

51:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #2
  store i32 1, ptr %10, align 4, !tbaa !9
  %52 = getelementptr inbounds i32, ptr %10, i64 1
  store i32 5, ptr %52, align 4, !tbaa !9
  %53 = getelementptr inbounds i32, ptr %10, i64 2
  store i32 7, ptr %53, align 4, !tbaa !9
  %54 = getelementptr inbounds %"class.std::initializer_list.499", ptr %9, i32 0, i32 0
  store ptr %10, ptr %54, align 8, !tbaa !11
  %55 = getelementptr inbounds %"class.std::initializer_list.499", ptr %9, i32 0, i32 1
  store i64 3, ptr %55, align 8, !tbaa !15
  %56 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8
  %58 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %59 = load i64, ptr %58, align 8
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr %57, i64 %59) #2
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #2
  br label %149

60:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  store i32 1, ptr %12, align 4, !tbaa !9
  %61 = getelementptr inbounds i32, ptr %12, i64 1
  store i32 5, ptr %61, align 4, !tbaa !9
  %62 = getelementptr inbounds %"class.std::initializer_list.499", ptr %11, i32 0, i32 0
  store ptr %12, ptr %62, align 8, !tbaa !11
  %63 = getelementptr inbounds %"class.std::initializer_list.499", ptr %11, i32 0, i32 1
  store i64 2, ptr %63, align 8, !tbaa !15
  %64 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8
  %66 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %67 = load i64, ptr %66, align 8
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr %65, i64 %67) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  br label %149

68:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #2
  store i32 1, ptr %14, align 4, !tbaa !9
  %69 = getelementptr inbounds i32, ptr %14, i64 1
  store i32 5, ptr %69, align 4, !tbaa !9
  %70 = getelementptr inbounds %"class.std::initializer_list.499", ptr %13, i32 0, i32 0
  store ptr %14, ptr %70, align 8, !tbaa !11
  %71 = getelementptr inbounds %"class.std::initializer_list.499", ptr %13, i32 0, i32 1
  store i64 2, ptr %71, align 8, !tbaa !15
  %72 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8
  %74 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %75 = load i64, ptr %74, align 8
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr %73, i64 %75) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #2
  br label %149

76:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #2
  store i32 0, ptr %16, align 4, !tbaa !9
  %77 = getelementptr inbounds i32, ptr %16, i64 1
  store i32 6, ptr %77, align 4, !tbaa !9
  %78 = getelementptr inbounds i32, ptr %16, i64 2
  store i32 7, ptr %78, align 4, !tbaa !9
  %79 = getelementptr inbounds %"class.std::initializer_list.499", ptr %15, i32 0, i32 0
  store ptr %16, ptr %79, align 8, !tbaa !11
  %80 = getelementptr inbounds %"class.std::initializer_list.499", ptr %15, i32 0, i32 1
  store i64 3, ptr %80, align 8, !tbaa !15
  %81 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8
  %83 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %84 = load i64, ptr %83, align 8
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr %82, i64 %84) #2
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #2
  br label %149

85:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #2
  store i32 0, ptr %18, align 4, !tbaa !9
  %86 = getelementptr inbounds i32, ptr %18, i64 1
  store i32 5, ptr %86, align 4, !tbaa !9
  %87 = getelementptr inbounds %"class.std::initializer_list.499", ptr %17, i32 0, i32 0
  store ptr %18, ptr %87, align 8, !tbaa !11
  %88 = getelementptr inbounds %"class.std::initializer_list.499", ptr %17, i32 0, i32 1
  store i64 2, ptr %88, align 8, !tbaa !15
  %89 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8
  %91 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %92 = load i64, ptr %91, align 8
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr %90, i64 %92) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #2
  br label %149

93:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #2
  store i32 2, ptr %20, align 4, !tbaa !9
  %94 = getelementptr inbounds i32, ptr %20, i64 1
  store i32 4, ptr %94, align 4, !tbaa !9
  %95 = getelementptr inbounds i32, ptr %20, i64 2
  store i32 8, ptr %95, align 4, !tbaa !9
  %96 = getelementptr inbounds i32, ptr %20, i64 3
  store i32 9, ptr %96, align 4, !tbaa !9
  %97 = getelementptr inbounds %"class.std::initializer_list.499", ptr %19, i32 0, i32 0
  store ptr %20, ptr %97, align 8, !tbaa !11
  %98 = getelementptr inbounds %"class.std::initializer_list.499", ptr %19, i32 0, i32 1
  store i64 4, ptr %98, align 8, !tbaa !15
  %99 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8
  %101 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %102 = load i64, ptr %101, align 8
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr %100, i64 %102) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #2
  br label %149

103:                                              ; preds = %2
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %0) #2
  br label %149

104:                                              ; preds = %2
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %0) #2
  br label %149

105:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #2
  store i32 0, ptr %22, align 4, !tbaa !9
  %106 = getelementptr inbounds i32, ptr %22, i64 1
  store i32 5, ptr %106, align 4, !tbaa !9
  %107 = getelementptr inbounds i32, ptr %22, i64 2
  store i32 7, ptr %107, align 4, !tbaa !9
  %108 = getelementptr inbounds %"class.std::initializer_list.499", ptr %21, i32 0, i32 0
  store ptr %22, ptr %108, align 8, !tbaa !11
  %109 = getelementptr inbounds %"class.std::initializer_list.499", ptr %21, i32 0, i32 1
  store i64 3, ptr %109, align 8, !tbaa !15
  %110 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8
  %112 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %113 = load i64, ptr %112, align 8
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr %111, i64 %113) #2
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #2
  br label %149

114:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #2
  store i32 1, ptr %24, align 4, !tbaa !9
  %115 = getelementptr inbounds i32, ptr %24, i64 1
  store i32 5, ptr %115, align 4, !tbaa !9
  %116 = getelementptr inbounds i32, ptr %24, i64 2
  store i32 7, ptr %116, align 4, !tbaa !9
  %117 = getelementptr inbounds i32, ptr %24, i64 3
  store i32 9, ptr %117, align 4, !tbaa !9
  %118 = getelementptr inbounds %"class.std::initializer_list.499", ptr %23, i32 0, i32 0
  store ptr %24, ptr %118, align 8, !tbaa !11
  %119 = getelementptr inbounds %"class.std::initializer_list.499", ptr %23, i32 0, i32 1
  store i64 4, ptr %119, align 8, !tbaa !15
  %120 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8
  %122 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %123 = load i64, ptr %122, align 8
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr %121, i64 %123) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #2
  br label %149

124:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #2
  store i32 1, ptr %26, align 4, !tbaa !9
  %125 = getelementptr inbounds %"class.std::initializer_list.499", ptr %25, i32 0, i32 0
  store ptr %26, ptr %125, align 8, !tbaa !11
  %126 = getelementptr inbounds %"class.std::initializer_list.499", ptr %25, i32 0, i32 1
  store i64 1, ptr %126, align 8, !tbaa !15
  %127 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8
  %129 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %130 = load i64, ptr %129, align 8
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr %128, i64 %130) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #2
  br label %149

131:                                              ; preds = %2
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %0) #2
  br label %149

132:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #2
  store i32 5, ptr %28, align 4, !tbaa !9
  %133 = getelementptr inbounds %"class.std::initializer_list.499", ptr %27, i32 0, i32 0
  store ptr %28, ptr %133, align 8, !tbaa !11
  %134 = getelementptr inbounds %"class.std::initializer_list.499", ptr %27, i32 0, i32 1
  store i64 1, ptr %134, align 8, !tbaa !15
  %135 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8
  %137 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 1
  %138 = load i64, ptr %137, align 8
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr %136, i64 %138) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #2
  br label %149

139:                                              ; preds = %2
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %0) #2
  br label %149

140:                                              ; preds = %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #2
  store i32 3, ptr %30, align 4, !tbaa !9
  %141 = getelementptr inbounds i32, ptr %30, i64 1
  store i32 6, ptr %141, align 4, !tbaa !9
  %142 = getelementptr inbounds %"class.std::initializer_list.499", ptr %29, i32 0, i32 0
  store ptr %30, ptr %142, align 8, !tbaa !11
  %143 = getelementptr inbounds %"class.std::initializer_list.499", ptr %29, i32 0, i32 1
  store i64 2, ptr %143, align 8, !tbaa !15
  %144 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8
  %146 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 1
  %147 = load i64, ptr %146, align 8
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr %145, i64 %147) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #2
  br label %149

148:                                              ; preds = %2
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %0) #2
  br label %149

149:                                              ; preds = %148, %140, %139, %132, %131, %124, %114, %105, %104, %103, %93, %85, %76, %68, %60, %51, %41, %32
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64), ptr, i64) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #1 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 = { 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 = !{!"_ZTSN11spirv_cross12CompilerGLSL27ShaderSubgroupSupportHelper7FeatureE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN11spirv_cross12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateE", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSSt16initializer_listIN11spirv_cross12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateEE", !13, i64 0, !14, i64 8}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !14, i64 8}


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

%"class.spirv_cross::SmallVector.313" = type { %"class.spirv_cross::VectorView.314", i64, %"class.spirv_cross::AlignedBuffer.315" }
%"class.spirv_cross::VectorView.314" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.315" = type { [40 x i8] }

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN11spirv_cross12CompilerGLSL27ShaderSubgroupSupportHelper26get_candidates_for_featureENS1_7FeatureE(ptr dead_on_unwind noalias writable sret(%"class.spirv_cross::SmallVector.313") align 8 %0, i32 noundef %1) local_unnamed_addr #1 align 2 {
  %3 = alloca [3 x i32], align 4
  %4 = alloca [4 x i32], align 16
  %5 = alloca [3 x i32], align 4
  %6 = alloca [2 x i32], align 4
  %7 = alloca [2 x i32], align 4
  %8 = alloca [3 x i32], align 4
  %9 = alloca [2 x i32], align 4
  %10 = alloca [4 x i32], align 16
  %11 = alloca [3 x i32], align 4
  %12 = alloca [4 x i32], align 16
  %13 = alloca [1 x i32], align 4
  %14 = alloca [1 x i32], align 4
  %15 = alloca [2 x i32], align 4
  switch i32 %1, label %45 [
    i32 0, label %16
    i32 1, label %19
    i32 2, label %20
    i32 3, label %23
    i32 4, label %25
    i32 5, label %27
    i32 6, label %30
    i32 7, label %32
    i32 8, label %33
    i32 9, label %34
    i32 12, label %35
    i32 10, label %38
    i32 11, label %39
    i32 13, label %40
    i32 14, label %41
    i32 15, label %42
    i32 16, label %43
    i32 17, label %43
    i32 18, label %43
    i32 19, label %43
    i32 20, label %43
    i32 21, label %43
    i32 22, label %43
    i32 23, label %43
    i32 24, label %43
    i32 25, label %43
    i32 26, label %43
    i32 27, label %43
  ]

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #2
  store i32 0, ptr %3, align 4, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 5, ptr %17, align 4, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %3, i64 8
  store i32 7, ptr %18, align 4, !tbaa !5
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nonnull %3, i64 3) #2
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #2
  br label %46

19:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #2
  store <4 x i32> <i32 1, i32 5, i32 9, i32 7>, ptr %4, align 16, !tbaa !5
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nonnull %4, i64 4) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #2
  br label %46

20:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #2
  store i32 1, ptr %5, align 4, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 5, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 7, ptr %22, align 4, !tbaa !5
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nonnull %5, i64 3) #2
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #2
  br label %46

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #2
  store i32 1, ptr %6, align 4, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %6, i64 4
  store i32 5, ptr %24, align 4, !tbaa !5
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nonnull %6, i64 2) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #2
  br label %46

25:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #2
  store i32 1, ptr %7, align 4, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %7, i64 4
  store i32 5, ptr %26, align 4, !tbaa !5
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nonnull %7, i64 2) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #2
  br label %46

27:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #2
  store i32 0, ptr %8, align 4, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %8, i64 4
  store i32 6, ptr %28, align 4, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %8, i64 8
  store i32 7, ptr %29, align 4, !tbaa !5
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nonnull %8, i64 3) #2
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #2
  br label %46

30:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #2
  store i32 0, ptr %9, align 4, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %9, i64 4
  store i32 5, ptr %31, align 4, !tbaa !5
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nonnull %9, i64 2) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #2
  br label %46

32:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #2
  store <4 x i32> <i32 2, i32 4, i32 8, i32 9>, ptr %10, align 16, !tbaa !5
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nonnull %10, i64 4) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #2
  br label %46

33:                                               ; preds = %2
  tail call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %0) #2
  br label %46

34:                                               ; preds = %2
  tail call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %0) #2
  br label %46

35:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #2
  store i32 0, ptr %11, align 4, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %11, i64 4
  store i32 5, ptr %36, align 4, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %11, i64 8
  store i32 7, ptr %37, align 4, !tbaa !5
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nonnull %11, i64 3) #2
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #2
  br label %46

38:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #2
  store <4 x i32> <i32 1, i32 5, i32 7, i32 9>, ptr %12, align 16, !tbaa !5
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nonnull %12, i64 4) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #2
  br label %46

39:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #2
  store i32 1, ptr %13, align 4, !tbaa !5
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nonnull %13, i64 1) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #2
  br label %46

40:                                               ; preds = %2
  tail call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %0) #2
  br label %46

41:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #2
  store i32 5, ptr %14, align 4, !tbaa !5
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nonnull %14, i64 1) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #2
  br label %46

42:                                               ; preds = %2
  tail call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %0) #2
  br label %46

43:                                               ; preds = %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #2
  store i32 3, ptr %15, align 4, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %15, i64 4
  store i32 6, ptr %44, align 4, !tbaa !5
  call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nonnull %15, i64 2) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #2
  br label %46

45:                                               ; preds = %2
  tail call void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %0) #2
  br label %46

46:                                               ; preds = %45, %43, %42, %41, %40, %39, %38, %35, %34, %33, %32, %30, %27, %25, %23, %20, %19, %16
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2IS3_EESt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(64), ptr, i64) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorINS_12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateELm10EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #1 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 = { 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 = !{!"_ZTSN11spirv_cross12CompilerGLSL27ShaderSubgroupSupportHelper9CandidateE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,TailCallElimPass