; LLVM IR from thepowersgang/mrustc :: tools/minicargo/build.ll (ZN9BuildListC2ERK15PackageManifestRK12BuildOptions)

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

%struct.ListBuilder = type { %"class.std::vector.41" }
%"class.std::vector.41" = type { %"struct.std::_Vector_base.42" }
%"struct.std::_Vector_base.42" = type { %"struct.std::_Vector_base<ListBuilder::Ent, std::allocator<ListBuilder::Ent>>::_Vector_impl" }
%"struct.std::_Vector_base<ListBuilder::Ent, std::allocator<ListBuilder::Ent>>::_Vector_impl" = type { %"struct.std::_Vector_base<ListBuilder::Ent, std::allocator<ListBuilder::Ent>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ListBuilder::Ent, std::allocator<ListBuilder::Ent>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.BuildList::BuildList(const PackageManifest &, const BuildOptions &)::ListBuilder::Ent" = type { ptr, i8, i32 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.BuildList::Entry" = type { ptr, i8, %"class.std::vector.46" }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.BuildList = type { ptr, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<BuildList::Entry, std::allocator<BuildList::Entry>>::_Vector_impl" }
%"struct.std::_Vector_base<BuildList::Entry, std::allocator<BuildList::Entry>>::_Vector_impl" = type { %"struct.std::_Vector_base<BuildList::Entry, std::allocator<BuildList::Entry>>::_Vector_impl_data" }
%"struct.std::_Vector_base<BuildList::Entry, std::allocator<BuildList::Entry>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.BuildOptions = type <{ %"class.helpers::path", %"class.helpers::path", %"class.std::vector.36", i8, i8, [6 x i8], ptr, i32, [4 x i8] }>
%"class.helpers::path" = type { %"class.std::__cxx11::basic_string" }
%"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::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<helpers::path, std::allocator<helpers::path>>::_Vector_impl" }
%"struct.std::_Vector_base<helpers::path, std::allocator<helpers::path>>::_Vector_impl" = type { %"struct.std::_Vector_base<helpers::path, std::allocator<helpers::path>>::_Vector_impl_data" }
%"struct.std::_Vector_base<helpers::path, std::allocator<helpers::path>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9BuildListC2ERK15PackageManifestRK12BuildOptions(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(594) %1, ptr noundef nonnull align 8 dereferenceable(108) %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca %struct.ListBuilder, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.BuildList::BuildList(const PackageManifest &, const BuildOptions &)::ListBuilder::Ent", align 8
  %12 = alloca %"class.std::function", align 8
  %13 = alloca %class.anon, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"struct.BuildList::Entry", 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
  %19 = load ptr, ptr %4, align 8
  %20 = getelementptr inbounds %class.BuildList, ptr %19, i32 0, i32 0
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %21, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds %class.BuildList, ptr %19, i32 0, i32 1
  call void @_ZNSt6vectorIN9BuildList5EntryESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.BuildOptions, ptr %23, i32 0, i32 6
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = icmp ne ptr %25, null
  %27 = zext i1 %26 to i8
  store i8 %27, ptr %7, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  call void @_ZZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilderC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.BuildOptions, ptr %29, i32 0, i32 1
  %31 = invoke noundef zeroext i1 @_ZNK7helpers4path8is_validEv(ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %32 unwind label %52

32:                                               ; preds = %3
  %33 = xor i1 %31, true
  %34 = load i8, ptr %7, align 1, !tbaa !21, !range !22, !noundef !23
  %35 = trunc i8 %34 to i1
  %36 = xor i1 %35, true
  invoke void @_ZZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder16add_dependenciesES2_jbb(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(594) %28, i32 noundef 0, i1 noundef zeroext %33, i1 noundef zeroext %36)
          to label %37 unwind label %52

37:                                               ; preds = %32
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = invoke noundef zeroext i1 @_ZNK15PackageManifest11has_libraryEv(ptr noundef nonnull align 8 dereferenceable(594) %38)
          to label %40 unwind label %52

40:                                               ; preds = %37
  br i1 %39, label %41, label %60

41:                                               ; preds = %40
  %42 = getelementptr inbounds %struct.ListBuilder, ptr %8, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %43 = getelementptr inbounds %"struct.BuildList::BuildList(const PackageManifest &, const BuildOptions &)::ListBuilder::Ent", ptr %11, i32 0, i32 0
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %44, ptr %43, align 8, !tbaa !24
  %45 = getelementptr inbounds %"struct.BuildList::BuildList(const PackageManifest &, const BuildOptions &)::ListBuilder::Ent", ptr %11, i32 0, i32 1
  %46 = load i8, ptr %7, align 1, !tbaa !21, !range !22, !noundef !23
  %47 = trunc i8 %46 to i1
  %48 = xor i1 %47, true
  %49 = zext i1 %48 to i8
  store i8 %49, ptr %45, align 8, !tbaa !27
  %50 = getelementptr inbounds %"struct.BuildList::BuildList(const PackageManifest &, const BuildOptions &)::ListBuilder::Ent", ptr %11, i32 0, i32 2
  store i32 0, ptr %50, align 4, !tbaa !28
  invoke void @_ZNSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE9push_backEOS8_(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %51 unwind label %56

51:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %60

52:                                               ; preds = %85, %84, %37, %32, %3
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %9, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %10, align 4
  br label %122

56:                                               ; preds = %41
  %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
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %122

60:                                               ; preds = %51, %40
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.BuildOptions, ptr %61, i32 0, i32 7
  %63 = load i32, ptr %62, align 8, !tbaa !29
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %84

65:                                               ; preds = %60
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  %67 = getelementptr inbounds %class.anon, ptr %13, i32 0, i32 0
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %68, ptr %67, align 8, !tbaa !5
  %69 = getelementptr inbounds %class.anon, ptr %13, i32 0, i32 1
  store ptr %8, ptr %69, align 8, !tbaa !5
  %70 = getelementptr inbounds %class.anon, ptr %13, i32 0, i32 2
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %71, ptr %70, align 8, !tbaa !5
  %72 = getelementptr inbounds %class.anon, ptr %13, i32 0, i32 3
  store ptr %7, ptr %72, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvRK10PackageRefEEC2IZN9BuildListC1ERK15PackageManifestRK12BuildOptionsE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %73 unwind label %75

73:                                               ; preds = %65
  invoke void @_ZNK15PackageManifest21iter_dev_dependenciesESt8functionIFvRK10PackageRefEE(ptr noundef nonnull align 8 dereferenceable(594) %66, ptr noundef %12)
          to label %74 unwind label %79

74:                                               ; preds = %73
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  br label %84

75:                                               ; preds = %65
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %9, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %10, align 4
  br label %83

79:                                               ; preds = %73
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %9, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %10, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %83

83:                                               ; preds = %79, %75
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  br label %122

84:                                               ; preds = %74, %60
  invoke void @_ZZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder9sort_listEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %85 unwind label %52

85:                                               ; preds = %84
  %86 = getelementptr inbounds %class.BuildList, ptr %19, i32 0, i32 1
  %87 = getelementptr inbounds %struct.ListBuilder, ptr %8, i32 0, i32 0
  %88 = call noundef i64 @_ZNKSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #6
  invoke void @_ZNSt6vectorIN9BuildList5EntryESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %88)
          to label %89 unwind label %52

89:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %90 = getelementptr inbounds %struct.ListBuilder, ptr %8, i32 0, i32 0
  store ptr %90, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = call ptr @_ZNSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #6
  %93 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %92, ptr %93, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = call ptr @_ZNSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #6
  %96 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %95, ptr %96, align 8
  br label %97

97:                                               ; preds = %115, %89
  %98 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESt6vectorIS9_SaIS9_EEEEbRKNS_17__normal_iteratorIT_T0_EESJ_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %98, label %100, label %99

99:                                               ; preds = %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %121

100:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %101 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESt6vectorIS9_SaIS9_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  store ptr %101, ptr %17, align 8, !tbaa !5
  %102 = getelementptr inbounds %class.BuildList, ptr %19, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #6
  %103 = getelementptr inbounds %"struct.BuildList::Entry", ptr %18, i32 0, i32 0
  %104 = load ptr, ptr %17, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.BuildList::BuildList(const PackageManifest &, const BuildOptions &)::ListBuilder::Ent", ptr %104, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8, !tbaa !24
  store ptr %106, ptr %103, align 8, !tbaa !30
  %107 = getelementptr inbounds %"struct.BuildList::Entry", ptr %18, i32 0, i32 1
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.BuildList::BuildList(const PackageManifest &, const BuildOptions &)::ListBuilder::Ent", ptr %108, i32 0, i32 1
  %110 = load i8, ptr %109, align 8, !tbaa !27, !range !22, !noundef !23
  %111 = trunc i8 %110 to i1
  %112 = zext i1 %111 to i8
  store i8 %112, ptr %107, align 8, !tbaa !36
  %113 = getelementptr inbounds %"struct.BuildList::Entry", ptr %18, i32 0, i32 2
  call void @llvm.memset.p0.i64(ptr align 8 %113, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %113) #6
  invoke void @_ZNSt6vectorIN9BuildList5EntryESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %102, ptr noundef nonnull align 8 dereferenceable(40) %18)
          to label %114 unwind label %117

114:                                              ; preds = %100
  call void @_ZN9BuildList5EntryD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %115

115:                                              ; preds = %114
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESt6vectorIS9_SaIS9_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br label %97

117:                                              ; preds = %100
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %9, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %10, align 4
  call void @_ZN9BuildList5EntryD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %122

121:                                              ; preds = %99
  call void @_ZZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  ret void

122:                                              ; preds = %117, %83, %56, %52
  call void @_ZZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @_ZNSt6vectorIN9BuildList5EntryESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  br label %123

123:                                              ; preds = %122
  %124 = load ptr, ptr %9, align 8
  %125 = load i32, ptr %10, align 4
  %126 = insertvalue { ptr, i32 } poison, ptr %124, 0
  %127 = insertvalue { ptr, i32 } %126, i32 %125, 1
  resume { ptr, i32 } %127
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder16add_dependenciesES2_jbb(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(594), i32 noundef, i1 noundef zeroext, i1 noundef zeroext) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7helpers4path8is_validEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

declare i32 @__gxx_personality_v0(...)

declare noundef zeroext i1 @_ZNK15PackageManifest11has_libraryEv(ptr noundef nonnull align 8 dereferenceable(594)) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE9push_backEOS8_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvRK10PackageRefEEC2IZN9BuildListC1ERK15PackageManifestRK12BuildOptionsE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder9sort_listEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZNKSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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, !6, i64 96}
!10 = !{!"_ZTS12BuildOptions", !11, i64 0, !11, i64 32, !15, i64 64, !19, i64 88, !19, i64 89, !6, i64 96, !20, i64 104}
!11 = !{!"_ZTSN7helpers4pathE", !12, i64 0}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !14, i64 8, !7, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIN7helpers4pathESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN7helpers4pathESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN7helpers4pathESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7helpers4pathESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN12BuildOptions4ModeE", !7, i64 0}
!21 = !{!19, !19, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !6, i64 0}
!25 = !{!"_ZTSZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntE", !6, i64 0, !19, i64 8, !26, i64 12}
!26 = !{!"int", !7, i64 0}
!27 = !{!25, !19, i64 8}
!28 = !{!25, !26, i64 12}
!29 = !{!10, !20, i64 104}
!30 = !{!31, !6, i64 0}
!31 = !{!"_ZTSN9BuildList5EntryE", !6, i64 0, !19, i64 8, !32, i64 16}
!32 = !{!"_ZTSSt6vectorIjSaIjEE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!31, !19, 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"

%struct.ListBuilder = type { %"class.std::vector.41" }
%"class.std::vector.41" = type { %"struct.std::_Vector_base.42" }
%"struct.std::_Vector_base.42" = type { %"struct.std::_Vector_base<ListBuilder::Ent, std::allocator<ListBuilder::Ent>>::_Vector_impl" }
%"struct.std::_Vector_base<ListBuilder::Ent, std::allocator<ListBuilder::Ent>>::_Vector_impl" = type { %"struct.std::_Vector_base<ListBuilder::Ent, std::allocator<ListBuilder::Ent>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ListBuilder::Ent, std::allocator<ListBuilder::Ent>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.BuildList::BuildList(const PackageManifest &, const BuildOptions &)::ListBuilder::Ent" = type { ptr, i8, i32 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.BuildList::Entry" = type { ptr, i8, %"class.std::vector.46" }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9BuildListC2ERK15PackageManifestRK12BuildOptions(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(594) %1, ptr noundef nonnull align 8 dereferenceable(108) %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i8, align 1
  %5 = alloca %struct.ListBuilder, align 8
  %6 = alloca %"struct.BuildList::BuildList(const PackageManifest &, const BuildOptions &)::ListBuilder::Ent", align 8
  %7 = alloca %"class.std::function", align 8
  %8 = alloca %class.anon, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"struct.BuildList::Entry", align 8
  store ptr %1, ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZNSt6vectorIN9BuildList5EntryESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  %13 = getelementptr inbounds i8, ptr %2, i64 96
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = icmp ne ptr %14, null
  %16 = zext i1 %15 to i8
  store i8 %16, ptr %4, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilderC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %17 = getelementptr inbounds i8, ptr %2, i64 32
  %18 = invoke noundef zeroext i1 @_ZNK7helpers4path8is_validEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %19 unwind label %30

19:                                               ; preds = %3
  %20 = xor i1 %18, true
  %21 = xor i1 %15, true
  invoke void @_ZZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder16add_dependenciesES2_jbb(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(594) %1, i32 noundef 0, i1 noundef zeroext %20, i1 noundef zeroext %21)
          to label %22 unwind label %30

22:                                               ; preds = %19
  %23 = invoke noundef zeroext i1 @_ZNK15PackageManifest11has_libraryEv(ptr noundef nonnull align 8 dereferenceable(594) %1)
          to label %24 unwind label %30

24:                                               ; preds = %22
  br i1 %23, label %25, label %34

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  store ptr %1, ptr %6, align 8, !tbaa !22
  %26 = getelementptr inbounds i8, ptr %6, i64 8
  %27 = xor i8 %16, 1
  store i8 %27, ptr %26, align 8, !tbaa !25
  %28 = getelementptr inbounds i8, ptr %6, i64 12
  store i32 0, ptr %28, align 4, !tbaa !26
  invoke void @_ZNSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE9push_backEOS8_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %29 unwind label %32

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %34

30:                                               ; preds = %49, %48, %22, %19, %3
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %67

32:                                               ; preds = %25
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %67

34:                                               ; preds = %29, %24
  %35 = getelementptr inbounds i8, ptr %2, i64 104
  %36 = load i32, ptr %35, align 8, !tbaa !27
  %.not = icmp eq i32 %36, 0
  br i1 %.not, label %48, label %37

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  store ptr %1, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr %5, ptr %38, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %8, i64 16
  store ptr %2, ptr %39, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %4, ptr %40, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvRK10PackageRefEEC2IZN9BuildListC1ERK15PackageManifestRK12BuildOptionsE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %41 unwind label %43

41:                                               ; preds = %37
  invoke void @_ZNK15PackageManifest21iter_dev_dependenciesESt8functionIFvRK10PackageRefEE(ptr noundef nonnull align 8 dereferenceable(594) %1, ptr noundef nonnull %7)
          to label %42 unwind label %45

42:                                               ; preds = %41
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %48

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

45:                                               ; preds = %41
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %47

47:                                               ; preds = %45, %43
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %67

48:                                               ; preds = %42, %34
  invoke void @_ZZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder9sort_listEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %49 unwind label %30

49:                                               ; preds = %48
  %50 = call noundef i64 @_ZNKSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  invoke void @_ZNSt6vectorIN9BuildList5EntryESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %50)
          to label %51 unwind label %30

51:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %52 = call ptr @_ZNSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %52, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %53 = call ptr @_ZNSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %53, ptr %10, align 8
  %54 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESt6vectorIS9_SaIS9_EEEEbRKNS_17__normal_iteratorIT_T0_EESJ_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %54, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %51
  %55 = getelementptr inbounds i8, ptr %11, i64 8
  %56 = getelementptr inbounds i8, ptr %11, i64 16
  br label %57

._crit_edge:                                      ; preds = %62, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  ret void

57:                                               ; preds = %.lr.ph, %62
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESt6vectorIS9_SaIS9_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #6
  %59 = load ptr, ptr %58, align 8, !tbaa !22
  store ptr %59, ptr %11, align 8, !tbaa !28
  %60 = getelementptr inbounds i8, ptr %58, i64 8
  %61 = load i8, ptr %60, align 8, !tbaa !25, !range !34, !noundef !35
  store i8 %61, ptr %55, align 8, !tbaa !36
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %56, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #6
  invoke void @_ZNSt6vectorIN9BuildList5EntryESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %62 unwind label %65

62:                                               ; preds = %57
  call void @_ZN9BuildList5EntryD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #6
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESt6vectorIS9_SaIS9_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %64 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESt6vectorIS9_SaIS9_EEEEbRKNS_17__normal_iteratorIT_T0_EESJ_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %64, label %57, label %._crit_edge

65:                                               ; preds = %57
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9BuildList5EntryD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %67

67:                                               ; preds = %65, %47, %32, %30
  %.pn19 = phi { ptr, i32 } [ %66, %65 ], [ %31, %30 ], [ %.pn, %47 ], [ %33, %32 ]
  call void @_ZZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSt6vectorIN9BuildList5EntryESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  resume { ptr, i32 } %.pn19
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder16add_dependenciesES2_jbb(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(594), i32 noundef, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7helpers4path8is_validEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

declare noundef zeroext i1 @_ZNK15PackageManifest11has_libraryEv(ptr noundef nonnull align 8 dereferenceable(594)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE9push_backEOS8_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvRK10PackageRefEEC2IZN9BuildListC1ERK15PackageManifestRK12BuildOptionsE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder9sort_listEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZNKSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt6vectorIZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntESaIS8_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint 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 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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, !6, i64 96}
!10 = !{!"_ZTS12BuildOptions", !11, i64 0, !11, i64 32, !15, i64 64, !19, i64 88, !19, i64 89, !6, i64 96, !20, i64 104}
!11 = !{!"_ZTSN7helpers4pathE", !12, i64 0}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !14, i64 8, !7, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIN7helpers4pathESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN7helpers4pathESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN7helpers4pathESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7helpers4pathESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN12BuildOptions4ModeE", !7, i64 0}
!21 = !{!19, !19, i64 0}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTSZN9BuildListC1ERK15PackageManifestRK12BuildOptionsEN11ListBuilder3EntE", !6, i64 0, !19, i64 8, !24, i64 12}
!24 = !{!"int", !7, i64 0}
!25 = !{!23, !19, i64 8}
!26 = !{!23, !24, i64 12}
!27 = !{!10, !20, i64 104}
!28 = !{!29, !6, i64 0}
!29 = !{!"_ZTSN9BuildList5EntryE", !6, i64 0, !19, i64 8, !30, i64 16}
!30 = !{!"_ZTSSt6vectorIjSaIjEE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = !{!29, !19, i64 8}


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