; LLVM IR from geefr/vulkan-physics :: vulkanutils/util/pipelines/pipeline.ll (ZN8Pipeline21createShaderStageInfoEv)

; 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.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<vk::PipelineShaderStageCreateInfo, std::allocator<vk::PipelineShaderStageCreateInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<vk::PipelineShaderStageCreateInfo, std::allocator<vk::PipelineShaderStageCreateInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<vk::PipelineShaderStageCreateInfo, std::allocator<vk::PipelineShaderStageCreateInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vk::PipelineShaderStageCreateInfo, std::allocator<vk::PipelineShaderStageCreateInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::_Rb_tree_iterator.51" = type { ptr }
%"struct.vk::PipelineShaderStageCreateInfo" = type { i32, ptr, %"class.vk::Flags.52", i32, %"class.vk::ShaderModule", ptr, ptr }
%"class.vk::Flags.52" = type { i32 }
%"class.vk::ShaderModule" = type { ptr }
%class.Pipeline = type { ptr, ptr, %"class.std::map", %"class.std::map.0", %"class.std::vector", %"class.std::vector.8", %"class.std::vector.13", %"class.vk::UniqueHandle", %"class.vk::UniqueHandle.18" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<vk::ShaderStageFlagBits, std::pair<const vk::ShaderStageFlagBits, vk::UniqueHandle<vk::ShaderModule, vk::DispatchLoaderStatic>>, std::_Select1st<std::pair<const vk::ShaderStageFlagBits, vk::UniqueHandle<vk::ShaderModule, vk::DispatchLoaderStatic>>>, std::less<vk::ShaderStageFlagBits>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<vk::ShaderStageFlagBits, std::pair<const vk::ShaderStageFlagBits, vk::UniqueHandle<vk::ShaderModule, vk::DispatchLoaderStatic>>, std::_Select1st<std::pair<const vk::ShaderStageFlagBits, vk::UniqueHandle<vk::ShaderModule, vk::DispatchLoaderStatic>>>, std::less<vk::ShaderStageFlagBits>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<vk::ShaderStageFlagBits, std::pair<const vk::ShaderStageFlagBits, vk::SpecializationInfo>, std::_Select1st<std::pair<const vk::ShaderStageFlagBits, vk::SpecializationInfo>>, std::less<vk::ShaderStageFlagBits>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<vk::ShaderStageFlagBits, std::pair<const vk::ShaderStageFlagBits, vk::SpecializationInfo>, std::_Select1st<std::pair<const vk::ShaderStageFlagBits, vk::SpecializationInfo>>, std::less<vk::ShaderStageFlagBits>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<vk::DescriptorSetLayoutBinding>, std::allocator<std::vector<vk::DescriptorSetLayoutBinding>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<vk::DescriptorSetLayoutBinding>, std::allocator<std::vector<vk::DescriptorSetLayoutBinding>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<vk::DescriptorSetLayoutBinding>, std::allocator<std::vector<vk::DescriptorSetLayoutBinding>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<vk::DescriptorSetLayoutBinding>, std::allocator<std::vector<vk::DescriptorSetLayoutBinding>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<vk::UniqueHandle<vk::DescriptorSetLayout, vk::DispatchLoaderStatic>, std::allocator<vk::UniqueHandle<vk::DescriptorSetLayout, vk::DispatchLoaderStatic>>>::_Vector_impl" }
%"struct.std::_Vector_base<vk::UniqueHandle<vk::DescriptorSetLayout, vk::DispatchLoaderStatic>, std::allocator<vk::UniqueHandle<vk::DescriptorSetLayout, vk::DispatchLoaderStatic>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vk::UniqueHandle<vk::DescriptorSetLayout, vk::DispatchLoaderStatic>, std::allocator<vk::UniqueHandle<vk::DescriptorSetLayout, vk::DispatchLoaderStatic>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vk::UniqueHandle<vk::DescriptorSetLayout, vk::DispatchLoaderStatic>, std::allocator<vk::UniqueHandle<vk::DescriptorSetLayout, vk::DispatchLoaderStatic>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<vk::PushConstantRange, std::allocator<vk::PushConstantRange>>::_Vector_impl" }
%"struct.std::_Vector_base<vk::PushConstantRange, std::allocator<vk::PushConstantRange>>::_Vector_impl" = type { %"struct.std::_Vector_base<vk::PushConstantRange, std::allocator<vk::PushConstantRange>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vk::PushConstantRange, std::allocator<vk::PushConstantRange>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.vk::UniqueHandle" = type { %"class.vk::ObjectDestroy", %"class.vk::PipelineLayout" }
%"class.vk::ObjectDestroy" = type { %"class.vk::Device", %"class.vk::Optional", ptr }
%"class.vk::Device" = type { ptr }
%"class.vk::Optional" = type { ptr }
%"class.vk::PipelineLayout" = type { ptr }
%"class.vk::UniqueHandle.18" = type { %"class.vk::ObjectDestroy", %"class.vk::Pipeline" }
%"class.vk::Pipeline" = type { ptr }
%"struct.std::pair" = type { i32, %"class.vk::UniqueHandle.32" }
%"class.vk::UniqueHandle.32" = type { %"class.vk::ObjectDestroy", %"class.vk::ShaderModule" }
%"struct.std::pair.53" = type { i32, %"struct.vk::SpecializationInfo" }
%"struct.vk::SpecializationInfo" = type { i32, ptr, i64, ptr }

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

declare i32 @__gxx_personality_v0(...)

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; 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 @_ZN8Pipeline21createShaderStageInfoEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector.46") align 8 %0, ptr noundef nonnull align 8 dereferenceable(248) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.std::_Rb_tree_iterator.51", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.vk::PipelineShaderStageCreateInfo", align 8
  %14 = alloca %"struct.vk::PipelineShaderStageCreateInfo", align 8
  %15 = alloca %"class.vk::Flags.52", align 4
  %16 = alloca %"class.vk::ShaderModule", align 8
  %17 = alloca %"class.vk::Flags.52", align 4
  %18 = alloca %"class.vk::ShaderModule", align 8
  %19 = alloca %"struct.std::_Rb_tree_iterator.51", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8
  store i1 false, ptr %5, align 1
  call void @_ZNSt6vectorIN2vk29PipelineShaderStageCreateInfoESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %21 = getelementptr inbounds %class.Pipeline, ptr %20, i32 0, i32 2
  store ptr %21, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = call ptr @_ZNSt3mapIN2vk19ShaderStageFlagBitsENS0_12UniqueHandleINS0_12ShaderModuleENS0_20DispatchLoaderStaticEEESt4lessIS1_ESaISt4pairIKS1_S5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %22) #5
  %24 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %7, i32 0, i32 0
  store ptr %23, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = call ptr @_ZNSt3mapIN2vk19ShaderStageFlagBitsENS0_12UniqueHandleINS0_12ShaderModuleENS0_20DispatchLoaderStaticEEESt4lessIS1_ESaISt4pairIKS1_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %25) #5
  %27 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %8, i32 0, i32 0
  store ptr %26, ptr %27, align 8
  br label %28

28:                                               ; preds = %70, %2
  %29 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKN2vk19ShaderStageFlagBitsENS1_12UniqueHandleINS1_12ShaderModuleENS1_20DispatchLoaderStaticEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %29, label %31, label %30

30:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %81

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %32 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKN2vk19ShaderStageFlagBitsENS1_12UniqueHandleINS1_12ShaderModuleENS1_20DispatchLoaderStaticEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  store ptr %32, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %33 = getelementptr inbounds %class.Pipeline, ptr %20, i32 0, i32 3
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.std::pair", ptr %34, i32 0, i32 0
  %36 = invoke ptr @_ZNSt3mapIN2vk19ShaderStageFlagBitsENS0_18SpecializationInfoESt4lessIS1_ESaISt4pairIKS1_S2_EEE4findERS6_(ptr noundef nonnull align 8 dereferenceable(48) %33, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %37 unwind label %72

37:                                               ; preds = %31
  %38 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.51", ptr %10, i32 0, i32 0
  store ptr %36, ptr %38, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #5
  call void @_ZN2vk5FlagsINS_33PipelineShaderStageCreateFlagBitsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %15) #5
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 8, i1 false)
  call void @_ZN2vk12ShaderModuleC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %39 = getelementptr inbounds %"class.vk::Flags.52", ptr %15, i32 0, i32 0
  %40 = load i32, ptr %39, align 4
  %41 = getelementptr inbounds %"class.vk::ShaderModule", ptr %16, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8
  call void @_ZN2vk29PipelineShaderStageCreateInfoC2ENS_5FlagsINS_33PipelineShaderStageCreateFlagBitsEEENS_19ShaderStageFlagBitsENS_12ShaderModuleEPKcPKNS_18SpecializationInfoE(ptr noundef nonnull align 8 dereferenceable(48) %14, i32 %40, i32 noundef 1, ptr %42, ptr noundef null, ptr noundef null) #5
  call void @_ZN2vk5FlagsINS_33PipelineShaderStageCreateFlagBitsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %17) #5
  %43 = getelementptr inbounds %"class.vk::Flags.52", ptr %17, i32 0, i32 0
  %44 = load i32, ptr %43, align 4
  %45 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo8setFlagsENS_5FlagsINS_33PipelineShaderStageCreateFlagBitsEEE(ptr noundef nonnull align 8 dereferenceable(48) %14, i32 %44) #5
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.std::pair", ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !9
  %49 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo8setStageENS_19ShaderStageFlagBitsE(ptr noundef nonnull align 8 dereferenceable(48) %45, i32 noundef %48) #5
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.std::pair", ptr %50, i32 0, i32 1
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vk12UniqueHandleINS_12ShaderModuleENS_20DispatchLoaderStaticEE3getEv(ptr noundef nonnull align 8 dereferenceable(32) %51) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %52, i64 8, i1 false), !tbaa.struct !17
  %53 = getelementptr inbounds %"class.vk::ShaderModule", ptr %18, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8
  %55 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo9setModuleENS_12ShaderModuleE(ptr noundef nonnull align 8 dereferenceable(48) %49, ptr %54) #5
  %56 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo8setPNameEPKc(ptr noundef nonnull align 8 dereferenceable(48) %55, ptr noundef @.str) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %57 = getelementptr inbounds %class.Pipeline, ptr %20, i32 0, i32 3
  %58 = call ptr @_ZNSt3mapIN2vk19ShaderStageFlagBitsENS0_18SpecializationInfoESt4lessIS1_ESaISt4pairIKS1_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %57) #5
  %59 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.51", ptr %19, i32 0, i32 0
  store ptr %58, ptr %59, align 8
  %60 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKN2vk19ShaderStageFlagBitsENS1_18SpecializationInfoEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  br i1 %60, label %61, label %62

61:                                               ; preds = %37
  br label %65

62:                                               ; preds = %37
  %63 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKN2vk19ShaderStageFlagBitsENS1_18SpecializationInfoEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %64 = getelementptr inbounds %"struct.std::pair.53", ptr %63, i32 0, i32 1
  br label %65

65:                                               ; preds = %62, %61
  %66 = phi ptr [ null, %61 ], [ %64, %62 ]
  %67 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo22setPSpecializationInfoEPKNS_18SpecializationInfoE(ptr noundef nonnull align 8 dereferenceable(48) %56, ptr noundef %66) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %67, i64 48, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #5
  %68 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN2vk29PipelineShaderStageCreateInfoESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(48) %13)
          to label %69 unwind label %76

69:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %70

70:                                               ; preds = %69
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKN2vk19ShaderStageFlagBitsENS1_12UniqueHandleINS1_12ShaderModuleENS1_20DispatchLoaderStaticEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br label %28

72:                                               ; preds = %31
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %11, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %12, align 4
  br label %80

76:                                               ; preds = %65
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %11, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #5
  br label %80

80:                                               ; preds = %76, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @_ZNSt6vectorIN2vk29PipelineShaderStageCreateInfoESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %85

81:                                               ; preds = %30
  store i1 true, ptr %5, align 1
  %82 = load i1, ptr %5, align 1
  br i1 %82, label %84, label %83

83:                                               ; preds = %81
  call void @_ZNSt6vectorIN2vk29PipelineShaderStageCreateInfoESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %84

84:                                               ; preds = %83, %81
  ret void

85:                                               ; preds = %80
  %86 = load ptr, ptr %11, align 8
  %87 = load i32, ptr %12, align 4
  %88 = insertvalue { ptr, i32 } poison, ptr %86, 0
  %89 = insertvalue { ptr, i32 } %88, i32 %87, 1
  resume { ptr, i32 } %89
}

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vk29PipelineShaderStageCreateInfoC2ENS_5FlagsINS_33PipelineShaderStageCreateFlagBitsEEENS_19ShaderStageFlagBitsENS_12ShaderModuleEPKcPKNS_18SpecializationInfoE(ptr noundef nonnull align 8 dereferenceable(48), i32, i32 noundef, ptr, ptr noundef, ptr noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo8setFlagsENS_5FlagsINS_33PipelineShaderStageCreateFlagBitsEEE(ptr noundef nonnull align 8 dereferenceable(48), i32) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo8setStageENS_19ShaderStageFlagBitsE(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo9setModuleENS_12ShaderModuleE(ptr noundef nonnull align 8 dereferenceable(48), ptr) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo8setPNameEPKc(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo22setPSpecializationInfoEPKNS_18SpecializationInfoE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN2vk29PipelineShaderStageCreateInfoESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"_ZTSSt4pairIKN2vk19ShaderStageFlagBitsENS0_12UniqueHandleINS0_12ShaderModuleENS0_20DispatchLoaderStaticEEEE", !11, i64 0, !12, i64 8}
!11 = !{!"_ZTSN2vk19ShaderStageFlagBitsE", !7, i64 0}
!12 = !{!"_ZTSN2vk12UniqueHandleINS_12ShaderModuleENS_20DispatchLoaderStaticEEE", !13, i64 0, !16, i64 24}
!13 = !{!"_ZTSN2vk13ObjectDestroyINS_6DeviceENS_20DispatchLoaderStaticEEE", !14, i64 0, !15, i64 8, !6, i64 16}
!14 = !{!"_ZTSN2vk6DeviceE", !6, i64 0}
!15 = !{!"_ZTSN2vk8OptionalIKNS_19AllocationCallbacksEEE", !6, i64 0}
!16 = !{!"_ZTSN2vk12ShaderModuleE", !6, i64 0}
!17 = !{i64 0, i64 8, !5}
!18 = !{i64 0, i64 4, !19, i64 8, i64 8, !5, i64 16, i64 4, !21, i64 20, i64 4, !23, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 8, !5}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTSN2vk13StructureTypeE", !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{!11, !11, 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.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<vk::PipelineShaderStageCreateInfo, std::allocator<vk::PipelineShaderStageCreateInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<vk::PipelineShaderStageCreateInfo, std::allocator<vk::PipelineShaderStageCreateInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<vk::PipelineShaderStageCreateInfo, std::allocator<vk::PipelineShaderStageCreateInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vk::PipelineShaderStageCreateInfo, std::allocator<vk::PipelineShaderStageCreateInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::_Rb_tree_iterator.51" = type { ptr }
%"struct.vk::PipelineShaderStageCreateInfo" = type { i32, ptr, %"class.vk::Flags.52", i32, %"class.vk::ShaderModule", ptr, ptr }
%"class.vk::Flags.52" = type { i32 }
%"class.vk::ShaderModule" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; 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 @_ZN8Pipeline21createShaderStageInfoEv(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector.46") align 8 %0, ptr noundef nonnull align 8 dereferenceable(248) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %4 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator.51", align 8
  %6 = alloca %"struct.vk::PipelineShaderStageCreateInfo", align 8
  %7 = alloca %"struct.vk::PipelineShaderStageCreateInfo", align 8
  %8 = alloca %"class.vk::Flags.52", align 4
  %9 = alloca %"class.vk::ShaderModule", align 8
  %10 = alloca %"class.vk::Flags.52", align 4
  %11 = alloca %"struct.std::_Rb_tree_iterator.51", align 8
  tail call void @_ZNSt6vectorIN2vk29PipelineShaderStageCreateInfoESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %12 = getelementptr inbounds i8, ptr %1, i64 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %13 = tail call ptr @_ZNSt3mapIN2vk19ShaderStageFlagBitsENS0_12UniqueHandleINS0_12ShaderModuleENS0_20DispatchLoaderStaticEEESt4lessIS1_ESaISt4pairIKS1_S5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %12) #4
  store ptr %13, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %14 = tail call ptr @_ZNSt3mapIN2vk19ShaderStageFlagBitsENS0_12UniqueHandleINS0_12ShaderModuleENS0_20DispatchLoaderStaticEEESt4lessIS1_ESaISt4pairIKS1_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %12) #4
  store ptr %14, ptr %4, align 8
  %15 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKN2vk19ShaderStageFlagBitsENS1_12UniqueHandleINS1_12ShaderModuleENS1_20DispatchLoaderStaticEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %16 = getelementptr inbounds i8, ptr %1, i64 64
  br label %17

._crit_edge:                                      ; preds = %40, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret void

17:                                               ; preds = %.lr.ph, %40
  %18 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKN2vk19ShaderStageFlagBitsENS1_12UniqueHandleINS1_12ShaderModuleENS1_20DispatchLoaderStaticEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %19 = invoke ptr @_ZNSt3mapIN2vk19ShaderStageFlagBitsENS0_18SpecializationInfoESt4lessIS1_ESaISt4pairIKS1_S2_EEE4findERS6_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %20 unwind label %43

20:                                               ; preds = %17
  store ptr %19, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #4
  call void @_ZN2vk5FlagsINS_33PipelineShaderStageCreateFlagBitsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %8) #4
  store i64 0, ptr %9, align 8
  call void @_ZN2vk12ShaderModuleC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %21 = load i32, ptr %8, align 4
  %22 = load ptr, ptr %9, align 8
  call void @_ZN2vk29PipelineShaderStageCreateInfoC2ENS_5FlagsINS_33PipelineShaderStageCreateFlagBitsEEENS_19ShaderStageFlagBitsENS_12ShaderModuleEPKcPKNS_18SpecializationInfoE(ptr noundef nonnull align 8 dereferenceable(48) %7, i32 %21, i32 noundef 1, ptr %22, ptr noundef null, ptr noundef null) #4
  call void @_ZN2vk5FlagsINS_33PipelineShaderStageCreateFlagBitsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %10) #4
  %23 = load i32, ptr %10, align 4
  %24 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo8setFlagsENS_5FlagsINS_33PipelineShaderStageCreateFlagBitsEEE(ptr noundef nonnull align 8 dereferenceable(48) %7, i32 %23) #4
  %25 = load i32, ptr %18, align 8, !tbaa !5
  %26 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo8setStageENS_19ShaderStageFlagBitsE(ptr noundef nonnull align 8 dereferenceable(48) %24, i32 noundef %25) #4
  %27 = getelementptr inbounds i8, ptr %18, i64 8
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2vk12UniqueHandleINS_12ShaderModuleENS_20DispatchLoaderStaticEE3getEv(ptr noundef nonnull align 8 dereferenceable(32) %27) #4
  %.sroa.0.0.copyload = load ptr, ptr %28, align 8, !tbaa !16
  %29 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo9setModuleENS_12ShaderModuleE(ptr noundef nonnull align 8 dereferenceable(48) %26, ptr %.sroa.0.0.copyload) #4
  %30 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo8setPNameEPKc(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull @.str) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %31 = call ptr @_ZNSt3mapIN2vk19ShaderStageFlagBitsENS0_18SpecializationInfoESt4lessIS1_ESaISt4pairIKS1_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %16) #4
  store ptr %31, ptr %11, align 8
  %32 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKN2vk19ShaderStageFlagBitsENS1_18SpecializationInfoEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  br i1 %32, label %36, label %33

33:                                               ; preds = %20
  %34 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKN2vk19ShaderStageFlagBitsENS1_18SpecializationInfoEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %35 = getelementptr inbounds i8, ptr %34, i64 8
  br label %36

36:                                               ; preds = %20, %33
  %37 = phi ptr [ %35, %33 ], [ null, %20 ]
  %38 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo22setPSpecializationInfoEPKNS_18SpecializationInfoE(ptr noundef nonnull align 8 dereferenceable(48) %30, ptr noundef %37) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %38, i64 48, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #4
  %39 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN2vk29PipelineShaderStageCreateInfoESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %40 unwind label %45

40:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKN2vk19ShaderStageFlagBitsENS1_12UniqueHandleINS1_12ShaderModuleENS1_20DispatchLoaderStaticEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %42 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKN2vk19ShaderStageFlagBitsENS1_12UniqueHandleINS1_12ShaderModuleENS1_20DispatchLoaderStaticEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %42, label %17, label %._crit_edge

43:                                               ; preds = %17
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %47

45:                                               ; preds = %36
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #4
  br label %47

47:                                               ; preds = %45, %43
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @_ZNSt6vectorIN2vk29PipelineShaderStageCreateInfoESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2vk29PipelineShaderStageCreateInfoC2ENS_5FlagsINS_33PipelineShaderStageCreateFlagBitsEEENS_19ShaderStageFlagBitsENS_12ShaderModuleEPKcPKNS_18SpecializationInfoE(ptr noundef nonnull align 8 dereferenceable(48), i32, i32 noundef, ptr, ptr noundef, ptr noundef) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo9setModuleENS_12ShaderModuleE(ptr noundef nonnull align 8 dereferenceable(48), ptr) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo8setPNameEPKc(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN2vk29PipelineShaderStageCreateInfo22setPSpecializationInfoEPKNS_18SpecializationInfoE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) local_unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN2vk29PipelineShaderStageCreateInfoESaIS1_EED2Ev(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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"_ZTSSt4pairIKN2vk19ShaderStageFlagBitsENS0_12UniqueHandleINS0_12ShaderModuleENS0_20DispatchLoaderStaticEEEE", !7, i64 0, !10, i64 8}
!7 = !{!"_ZTSN2vk19ShaderStageFlagBitsE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN2vk12UniqueHandleINS_12ShaderModuleENS_20DispatchLoaderStaticEEE", !11, i64 0, !15, i64 24}
!11 = !{!"_ZTSN2vk13ObjectDestroyINS_6DeviceENS_20DispatchLoaderStaticEEE", !12, i64 0, !14, i64 8, !13, i64 16}
!12 = !{!"_ZTSN2vk6DeviceE", !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"_ZTSN2vk8OptionalIKNS_19AllocationCallbacksEEE", !13, i64 0}
!15 = !{!"_ZTSN2vk12ShaderModuleE", !13, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{i64 0, i64 4, !18, i64 8, i64 8, !16, i64 16, i64 4, !20, i64 20, i64 4, !22, i64 24, i64 8, !16, i64 32, i64 8, !16, i64 40, i64 8, !16}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTSN2vk13StructureTypeE", !8, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !8, i64 0}
!22 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass