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

; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%struct.spvc_resources_s = type { %struct.ScratchMemoryAllocation, ptr, %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.221", %"class.spirv_cross::SmallVector.221" }
%struct.ScratchMemoryAllocation = type { ptr }
%"class.spirv_cross::SmallVector.218" = type { %"class.spirv_cross::VectorView.219", i64, %"class.spirv_cross::AlignedBuffer.220" }
%"class.spirv_cross::VectorView.219" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.220" = type { [192 x i8] }
%"class.spirv_cross::SmallVector.221" = type { %"class.spirv_cross::VectorView.222", i64, %"class.spirv_cross::AlignedBuffer.223" }
%"class.spirv_cross::VectorView.222" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.223" = type { [256 x i8] }

@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14spvc_context_s12report_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef) #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local i32 @spvc_resources_get_resource_list_for_type(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store ptr null, ptr %10, align 8, !tbaa !5
  %16 = load i32, ptr %7, align 4, !tbaa !9
  switch i32 %16, label %59 [
    i32 1, label %17
    i32 2, label %20
    i32 3, label %23
    i32 4, label %26
    i32 5, label %29
    i32 6, label %32
    i32 7, label %35
    i32 8, label %38
    i32 9, label %41
    i32 10, label %44
    i32 11, label %47
    i32 12, label %50
    i32 14, label %53
    i32 15, label %56
  ]

17:                                               ; preds = %4
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.spvc_resources_s, ptr %18, i32 0, i32 2
  store ptr %19, ptr %10, align 8, !tbaa !5
  br label %60

20:                                               ; preds = %4
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.spvc_resources_s, ptr %21, i32 0, i32 3
  store ptr %22, ptr %10, align 8, !tbaa !5
  br label %60

23:                                               ; preds = %4
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.spvc_resources_s, ptr %24, i32 0, i32 4
  store ptr %25, ptr %10, align 8, !tbaa !5
  br label %60

26:                                               ; preds = %4
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.spvc_resources_s, ptr %27, i32 0, i32 5
  store ptr %28, ptr %10, align 8, !tbaa !5
  br label %60

29:                                               ; preds = %4
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.spvc_resources_s, ptr %30, i32 0, i32 6
  store ptr %31, ptr %10, align 8, !tbaa !5
  br label %60

32:                                               ; preds = %4
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.spvc_resources_s, ptr %33, i32 0, i32 7
  store ptr %34, ptr %10, align 8, !tbaa !5
  br label %60

35:                                               ; preds = %4
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.spvc_resources_s, ptr %36, i32 0, i32 8
  store ptr %37, ptr %10, align 8, !tbaa !5
  br label %60

38:                                               ; preds = %4
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.spvc_resources_s, ptr %39, i32 0, i32 9
  store ptr %40, ptr %10, align 8, !tbaa !5
  br label %60

41:                                               ; preds = %4
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.spvc_resources_s, ptr %42, i32 0, i32 10
  store ptr %43, ptr %10, align 8, !tbaa !5
  br label %60

44:                                               ; preds = %4
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.spvc_resources_s, ptr %45, i32 0, i32 12
  store ptr %46, ptr %10, align 8, !tbaa !5
  br label %60

47:                                               ; preds = %4
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.spvc_resources_s, ptr %48, i32 0, i32 13
  store ptr %49, ptr %10, align 8, !tbaa !5
  br label %60

50:                                               ; preds = %4
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.spvc_resources_s, ptr %51, i32 0, i32 14
  store ptr %52, ptr %10, align 8, !tbaa !5
  br label %60

53:                                               ; preds = %4
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.spvc_resources_s, ptr %54, i32 0, i32 11
  store ptr %55, ptr %10, align 8, !tbaa !5
  br label %60

56:                                               ; preds = %4
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.spvc_resources_s, ptr %57, i32 0, i32 15
  store ptr %58, ptr %10, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %56, %4
  br label %60

60:                                               ; preds = %59, %53, %50, %47, %44, %41, %38, %35, %32, %29, %26, %23, %20, %17
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = icmp ne ptr %61, null
  br i1 %62, label %78, label %63

63:                                               ; preds = %60
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.spvc_resources_s, ptr %64, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #3
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #3
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %67 unwind label %69

67:                                               ; preds = %63
  invoke void @_ZN14spvc_context_s12report_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136) %66, ptr noundef %11)
          to label %68 unwind label %73

68:                                               ; preds = %67
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #3
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %85

69:                                               ; preds = %63
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %13, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %14, align 4
  br label %77

73:                                               ; preds = %67
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %13, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #3
  br label %77

77:                                               ; preds = %73, %69
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %87

78:                                               ; preds = %60
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = call noundef i64 @_ZNK11spirv_cross10VectorViewI23spvc_reflected_resourceE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %79) #3
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 %80, ptr %81, align 8, !tbaa !21
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = call noundef ptr @_ZNK11spirv_cross10VectorViewI23spvc_reflected_resourceE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %82) #3
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %83, ptr %84, align 8, !tbaa !5
  store i32 0, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %85

85:                                               ; preds = %78, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %86 = load i32, ptr %5, align 4
  ret i32 %86

87:                                               ; preds = %77
  %88 = load ptr, ptr %13, align 8
  %89 = load i32, ptr %14, align 4
  %90 = insertvalue { ptr, i32 } poison, ptr %88, 0
  %91 = insertvalue { ptr, i32 } %90, i32 %89, 1
  resume { ptr, i32 } %91
}

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = !{!"_ZTS18spvc_resource_type", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS16spvc_resources_s", !13, i64 0, !6, i64 8, !14, i64 16, !14, i64 232, !14, i64 448, !14, i64 664, !14, i64 880, !14, i64 1096, !14, i64 1312, !14, i64 1528, !14, i64 1744, !14, i64 1960, !14, i64 2176, !14, i64 2392, !14, i64 2608, !14, i64 2824, !18, i64 3040, !18, i64 3320}
!13 = !{!"_ZTS23ScratchMemoryAllocation"}
!14 = !{!"_ZTSN11spirv_cross11SmallVectorI23spvc_reflected_resourceLm8EEE", !15, i64 0, !16, i64 16, !17, i64 24}
!15 = !{!"_ZTSN11spirv_cross10VectorViewI23spvc_reflected_resourceEE", !6, i64 0, !16, i64 8}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN11spirv_cross13AlignedBufferI23spvc_reflected_resourceLm8EEE", !7, i64 0}
!18 = !{!"_ZTSN11spirv_cross11SmallVectorI31spvc_reflected_builtin_resourceLm8EEE", !19, i64 0, !16, i64 16, !20, i64 24}
!19 = !{!"_ZTSN11spirv_cross10VectorViewI31spvc_reflected_builtin_resourceEE", !6, i64 0, !16, i64 8}
!20 = !{!"_ZTSN11spirv_cross13AlignedBufferI31spvc_reflected_builtin_resourceLm8EEE", !7, i64 0}
!21 = !{!16, !16, 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"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@switch.table.spvc_resources_get_resource_list_for_type = private unnamed_addr constant [15 x i64] [i64 16, i64 232, i64 448, i64 664, i64 880, i64 1096, i64 1312, i64 1528, i64 1744, i64 2176, i64 2392, i64 2608, i64 16, i64 1960, i64 2824], align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14spvc_context_s12report_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef) local_unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local range(i32 -4, 1) i32 @spvc_resources_get_resource_list_for_type(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %switch.tableidx = add i32 %1, -1
  %7 = icmp ult i32 %switch.tableidx, 15
  br i1 %7, label %switch.hole_check, label %8

8:                                                ; preds = %switch.hole_check, %4
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #3
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #3
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %11 unwind label %13

11:                                               ; preds = %8
  invoke void @_ZN14spvc_context_s12report_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(136) %10, ptr noundef nonnull %5)
          to label %12 unwind label %15

12:                                               ; preds = %11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #3
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #3
  br label %22

13:                                               ; preds = %8
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %17

15:                                               ; preds = %11
  %16 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #3
  br label %17

17:                                               ; preds = %15, %13
  %.pn = phi { ptr, i32 } [ %16, %15 ], [ %14, %13 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #3
  resume { ptr, i32 } %.pn

switch.hole_check:                                ; preds = %4
  %switch.maskindex = trunc nuw i32 %switch.tableidx to i16
  %switch.shifted = lshr i16 28671, %switch.maskindex
  %switch.lobit = trunc i16 %switch.shifted to i1
  br i1 %switch.lobit, label %switch.lookup, label %8

switch.lookup:                                    ; preds = %switch.hole_check
  %18 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [15 x i64], ptr @switch.table.spvc_resources_get_resource_list_for_type, i64 0, i64 %18
  %switch.load = load i64, ptr %switch.gep, align 8
  %19 = getelementptr inbounds i8, ptr %0, i64 %switch.load
  %20 = tail call noundef i64 @_ZNK11spirv_cross10VectorViewI23spvc_reflected_resourceE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #3
  store i64 %20, ptr %3, align 8, !tbaa !18
  %21 = tail call noundef ptr @_ZNK11spirv_cross10VectorViewI23spvc_reflected_resourceE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #3
  store ptr %21, ptr %2, align 8, !tbaa !19
  br label %22

22:                                               ; preds = %switch.lookup, %12
  %.025 = phi i32 [ 0, %switch.lookup ], [ -4, %12 ]
  ret i32 %.025
}

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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, !8, i64 8}
!6 = !{!"_ZTS16spvc_resources_s", !7, i64 0, !8, i64 8, !11, i64 16, !11, i64 232, !11, i64 448, !11, i64 664, !11, i64 880, !11, i64 1096, !11, i64 1312, !11, i64 1528, !11, i64 1744, !11, i64 1960, !11, i64 2176, !11, i64 2392, !11, i64 2608, !11, i64 2824, !15, i64 3040, !15, i64 3320}
!7 = !{!"_ZTS23ScratchMemoryAllocation"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN11spirv_cross11SmallVectorI23spvc_reflected_resourceLm8EEE", !12, i64 0, !13, i64 16, !14, i64 24}
!12 = !{!"_ZTSN11spirv_cross10VectorViewI23spvc_reflected_resourceEE", !8, i64 0, !13, i64 8}
!13 = !{!"long", !9, i64 0}
!14 = !{!"_ZTSN11spirv_cross13AlignedBufferI23spvc_reflected_resourceLm8EEE", !9, i64 0}
!15 = !{!"_ZTSN11spirv_cross11SmallVectorI31spvc_reflected_builtin_resourceLm8EEE", !16, i64 0, !13, i64 16, !17, i64 24}
!16 = !{!"_ZTSN11spirv_cross10VectorViewI31spvc_reflected_builtin_resourceEE", !8, i64 0, !13, i64 8}
!17 = !{!"_ZTSN11spirv_cross13AlignedBufferI31spvc_reflected_builtin_resourceLm8EEE", !9, i64 0}
!18 = !{!13, !13, i64 0}
!19 = !{!8, !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass