; LLVM IR from khushmmehta/Scorch-V :: src/ScorchVkEngine/Abstractions/Rendering (Shader)

; 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::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.VkPipelineShaderStageCreateInfo = type { i32, ptr, i32, i32, ptr, ptr, ptr }
%class.Shader = type { i32, [2 x %struct.VkPipelineShaderStageCreateInfo], ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

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

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) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::vector.0", align 8
  %8 = alloca %"class.std::vector.0", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.VkPipelineShaderStageCreateInfo, align 8
  %12 = alloca %struct.VkPipelineShaderStageCreateInfo, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8
  %14 = getelementptr inbounds %class.Shader, ptr %13, i32 0, i32 0
  store i32 2, ptr %14, align 8, !tbaa !9
  %15 = getelementptr inbounds %class.Shader, ptr %13, i32 0, i32 1
  %16 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %15, i64 2
  br label %17

17:                                               ; preds = %17, %3
  %18 = phi ptr [ %15, %3 ], [ %26, %17 ]
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 48, i1 false)
  %19 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %18, i32 0, i32 0
  %20 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %18, i32 0, i32 1
  %21 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %18, i32 0, i32 2
  %22 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %18, i32 0, i32 3
  %23 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %18, i32 0, i32 4
  %24 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %18, i32 0, i32 5
  %25 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %18, i32 0, i32 6
  %26 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %18, i64 1
  %27 = icmp eq ptr %26, %16
  br i1 %27, label %28, label %17

28:                                               ; preds = %17
  %29 = getelementptr inbounds %class.Shader, ptr %13, i32 0, i32 2
  %30 = call noundef ptr @_ZN19PresentationManager11getInstanceEv()
  store ptr %30, ptr %29, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN6Shader8readFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::vector.0") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %31)
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #5
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN6Shader8readFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::vector.0") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %33 unwind label %56

33:                                               ; preds = %28
  %34 = invoke noundef ptr @_ZN6Shader18createShaderModuleERKSt6vectorIcSaIcEE(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %35 unwind label %60

35:                                               ; preds = %33
  %36 = getelementptr inbounds %class.Shader, ptr %13, i32 0, i32 3
  store ptr %34, ptr %36, align 8, !tbaa !13
  %37 = invoke noundef ptr @_ZN6Shader18createShaderModuleERKSt6vectorIcSaIcEE(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %38 unwind label %60

38:                                               ; preds = %35
  %39 = getelementptr inbounds %class.Shader, ptr %13, i32 0, i32 4
  store ptr %37, ptr %39, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #5
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 48, i1 false)
  %40 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %11, i32 0, i32 0
  store i32 18, ptr %40, align 8, !tbaa !15
  %41 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %11, i32 0, i32 3
  store i32 1, ptr %41, align 4, !tbaa !19
  %42 = getelementptr inbounds %class.Shader, ptr %13, i32 0, i32 3
  %43 = load ptr, ptr %42, align 8, !tbaa !13
  %44 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %11, i32 0, i32 4
  store ptr %43, ptr %44, align 8, !tbaa !20
  %45 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %11, i32 0, i32 5
  store ptr @.str.2, ptr %45, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 48, ptr %12) #5
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 48, i1 false)
  %46 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %12, i32 0, i32 0
  store i32 18, ptr %46, align 8, !tbaa !15
  %47 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %12, i32 0, i32 3
  store i32 16, ptr %47, align 4, !tbaa !19
  %48 = getelementptr inbounds %class.Shader, ptr %13, i32 0, i32 4
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  %50 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %12, i32 0, i32 4
  store ptr %49, ptr %50, align 8, !tbaa !20
  %51 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %12, i32 0, i32 5
  store ptr @.str.2, ptr %51, align 8, !tbaa !21
  %52 = getelementptr inbounds %class.Shader, ptr %13, i32 0, i32 1
  %53 = getelementptr inbounds [2 x %struct.VkPipelineShaderStageCreateInfo], ptr %52, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 8 %11, i64 48, i1 false), !tbaa.struct !22
  %54 = getelementptr inbounds %class.Shader, ptr %13, i32 0, i32 1
  %55 = getelementptr inbounds [2 x %struct.VkPipelineShaderStageCreateInfo], ptr %54, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %12, i64 48, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #5
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  ret void

56:                                               ; preds = %28
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %9, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %10, align 4
  br label %64

60:                                               ; preds = %35, %33
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %9, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %10, align 4
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  br label %64

64:                                               ; preds = %60, %56
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  br label %65

65:                                               ; preds = %64
  %66 = load ptr, ptr %9, align 8
  %67 = load i32, ptr %10, align 4
  %68 = insertvalue { ptr, i32 } poison, ptr %66, 0
  %69 = insertvalue { ptr, i32 } %68, i32 %67, 1
  resume { ptr, i32 } %69
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN19PresentationManager11getInstanceEv() #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Shader8readFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.0") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN6Shader18createShaderModuleERKSt6vectorIcSaIcEE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24)) #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) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS6Shader", !11, i64 0, !7, i64 8, !6, i64 104, !6, i64 112, !6, i64 120}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 104}
!13 = !{!10, !6, i64 112}
!14 = !{!10, !6, i64 120}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS31VkPipelineShaderStageCreateInfo", !17, i64 0, !6, i64 8, !11, i64 16, !18, i64 20, !6, i64 24, !6, i64 32, !6, i64 40}
!17 = !{!"_ZTS15VkStructureType", !7, i64 0}
!18 = !{!"_ZTS21VkShaderStageFlagBits", !7, i64 0}
!19 = !{!16, !18, i64 20}
!20 = !{!16, !6, i64 24}
!21 = !{!16, !6, i64 32}
!22 = !{i64 0, i64 4, !23, i64 8, i64 8, !5, i64 16, i64 4, !24, i64 20, i64 4, !25, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 8, !5}
!23 = !{!17, !17, i64 0}
!24 = !{!11, !11, i64 0}
!25 = !{!18, !18, 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::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

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

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) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca %"class.std::vector.0", align 8
  store i32 2, ptr %0, align 8, !tbaa !5
  %scevgep = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %scevgep, i8 0, i64 96, i1 false)
  %6 = getelementptr inbounds i8, ptr %0, i64 104
  %7 = tail call noundef ptr @_ZN19PresentationManager11getInstanceEv()
  store ptr %7, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  call void @_ZN6Shader8readFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.0") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  invoke void @_ZN6Shader8readFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.0") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %8 unwind label %17

8:                                                ; preds = %3
  %9 = invoke noundef ptr @_ZN6Shader18createShaderModuleERKSt6vectorIcSaIcEE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %10 unwind label %19

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %0, i64 112
  store ptr %9, ptr %11, align 8, !tbaa !12
  %12 = invoke noundef ptr @_ZN6Shader18createShaderModuleERKSt6vectorIcSaIcEE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %13 unwind label %19

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %0, i64 120
  store ptr %12, ptr %14, align 8, !tbaa !13
  %15 = load ptr, ptr %11, align 8, !tbaa !12
  store i32 18, ptr %scevgep, align 8, !tbaa !14
  %.sroa.53.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 12
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %.sroa.53.0..sroa_idx, i8 0, i64 16, i1 false)
  %.sroa.54.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 28
  store i32 1, ptr %.sroa.54.0..sroa_idx, align 4, !tbaa !16
  %.sroa.65.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %15, ptr %.sroa.65.0..sroa_idx, align 8, !tbaa !18
  %.sroa.76.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  store ptr @.str.2, ptr %.sroa.76.0..sroa_idx, align 8, !tbaa !18
  %.sroa.87.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 48
  store ptr null, ptr %.sroa.87.0..sroa_idx, align 8, !tbaa !18
  %16 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 18, ptr %16, align 8, !tbaa !14
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 60
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %.sroa.5.0..sroa_idx, i8 0, i64 16, i1 false)
  %.sroa.51.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 76
  store i32 16, ptr %.sroa.51.0..sroa_idx, align 4, !tbaa !16
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %12, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !18
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 88
  store ptr @.str.2, ptr %.sroa.7.0..sroa_idx, align 8, !tbaa !18
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 96
  store ptr null, ptr %.sroa.8.0..sroa_idx, align 8, !tbaa !18
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  ret void

17:                                               ; preds = %3
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %21

19:                                               ; preds = %10, %8
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  br label %21

21:                                               ; preds = %19, %17
  %.pn = phi { ptr, i32 } [ %20, %19 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN19PresentationManager11getInstanceEv() local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Shader8readFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.0") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN6Shader18createShaderModuleERKSt6vectorIcSaIcEE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS6Shader", !7, i64 0, !8, i64 8, !10, i64 104, !10, i64 112, !10, i64 120}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 104}
!12 = !{!6, !10, i64 112}
!13 = !{!6, !10, i64 120}
!14 = !{!15, !15, i64 0}
!15 = !{!"_ZTS15VkStructureType", !8, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTS21VkShaderStageFlagBits", !8, i64 0}
!18 = !{!10, !10, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopIdiomRecognizePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass