; LLVM IR from thepowersgang/mrustc :: tools/minicargo (repository)

; 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.PackageManifest = type <{ %"class.helpers::path", %"class.std::__cxx11::basic_string", %struct.PackageVersion, %"class.std::__cxx11::basic_string", i32, [4 x i8], %"class.std::__cxx11::basic_string", %"struct.PackageManifest::Dependencies", %"class.std::map.36", %"class.std::vector.41", %class.BuildScriptOutput, %"class.std::map.56", %"class.std::vector", %"class.std::vector", i8, i8, [6 x i8] }>
%"class.helpers::path" = type { %"class.std::__cxx11::basic_string" }
%struct.PackageVersion = type { i32, i32, i32, i8, %"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] }
%"struct.PackageManifest::Dependencies" = type { %"class.std::vector.31", %"class.std::vector.31", %"class.std::vector.31" }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<PackageRef, std::allocator<PackageRef>>::_Vector_impl" }
%"struct.std::_Vector_base<PackageRef, std::allocator<PackageRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<PackageRef, std::allocator<PackageRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PackageRef, std::allocator<PackageRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.36" = type { %"class.std::_Rb_tree.37" }
%"class.std::_Rb_tree.37" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, PackageManifest::Dependencies>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, PackageManifest::Dependencies>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, PackageManifest::Dependencies>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, PackageManifest::Dependencies>>, std::less<std::__cxx11::basic_string<char>>>::_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::vector.41" = type { %"struct.std::_Vector_base.42" }
%"struct.std::_Vector_base.42" = type { %"struct.std::_Vector_base<PackageTarget, std::allocator<PackageTarget>>::_Vector_impl" }
%"struct.std::_Vector_base<PackageTarget, std::allocator<PackageTarget>>::_Vector_impl" = type { %"struct.std::_Vector_base<PackageTarget, std::allocator<PackageTarget>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PackageTarget, std::allocator<PackageTarget>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.BuildScriptOutput = type { %"class.std::vector", %"class.std::vector.46", %"class.std::vector.46", %"class.std::vector", %"class.std::vector", %"class.std::vector.51", %"class.std::vector.51" }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<std::pair<const char *, std::__cxx11::basic_string<char>>, std::allocator<std::pair<const char *, std::__cxx11::basic_string<char>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<const char *, std::__cxx11::basic_string<char>>, std::allocator<std::pair<const char *, std::__cxx11::basic_string<char>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<const char *, std::__cxx11::basic_string<char>>, std::allocator<std::pair<const char *, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<const char *, std::__cxx11::basic_string<char>>, std::allocator<std::pair<const char *, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.56" = type { %"class.std::_Rb_tree.57" }
%"class.std::_Rb_tree.57" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char>>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char>>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char>>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char>>>>, std::less<std::__cxx11::basic_string<char>>>::_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::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%struct.DebugFunctionScope = type { ptr }
%"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.71 = type { ptr, ptr }
%"struct.std::pair.67" = type { %"struct.std::_Rb_tree_iterator", %"struct.std::_Rb_tree_iterator" }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%class.anon.77 = type { ptr }
%class.anon.78 = type { ptr }
%class.anon.79 = type { ptr }
%class.anon.80 = type { ptr }
%class.anon.81 = type { ptr, ptr }
%class.Repository = type { %"class.std::multimap", %"class.std::map", ptr }
%"class.std::multimap" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Repository::Entry>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Repository::Entry>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Repository::Entry>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Repository::Entry>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map" = type { %"class.std::_Rb_tree.23" }
%"class.std::_Rb_tree.23" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<PackageManifest>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<PackageManifest>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<PackageManifest>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<PackageManifest>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair.69" = type { %"class.std::__cxx11::basic_string", %"struct.Repository::Entry" }
%"struct.Repository::Entry" = type <{ %"class.std::__cxx11::basic_string", %struct.PackageVersion, %"class.std::shared_ptr", i8, [7 x i8] }>

@.str = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr
@_ZTISt13runtime_error = external constant ptr
@__FUNCTION__._ZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpec = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

; 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(...)

declare void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

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

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

declare void @__cxa_free_exception(ptr)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4

declare void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef) #1

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #5

declare void @_ZN15PackageManifest14load_from_tomlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK17WorkspaceManifest(ptr dead_on_unwind writable sret(%class.PackageManifest) align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10shared_ptrI15PackageManifestEC2IS0_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #6 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #7

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNSt8multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryESt4lessIS5_ESaISt4pairIKS5_S7_EEE11equal_rangeERSB_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) #6 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) #8

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpec(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(104) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #6 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.DebugFunctionScope, align 8
  %10 = alloca %"class.std::function", align 8
  %11 = alloca %class.anon.71, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair.67", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca %"class.std::function", align 8
  %18 = alloca %class.anon.77, align 8
  %19 = alloca %"class.std::function", align 8
  %20 = alloca %class.anon.78, align 8
  %21 = alloca %"class.std::function", align 8
  %22 = alloca %class.anon.79, align 8
  %23 = alloca %"class.std::function", align 8
  %24 = alloca %class.anon.80, align 8
  %25 = alloca %"class.std::function", align 8
  %26 = alloca %class.anon.81, align 8
  %27 = alloca %"class.std::shared_ptr", align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca ptr, align 8
  %31 = alloca i1, align 1
  %32 = alloca i32, align 4
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %33 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #11
  %34 = getelementptr inbounds %class.anon.71, ptr %11, i32 0, i32 0
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %35, ptr %34, align 8, !tbaa !5
  %36 = getelementptr inbounds %class.anon.71, ptr %11, i32 0, i32 1
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %37, ptr %36, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(16) %11) #11
  invoke void @_ZN18DebugFunctionScopeC2EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef @__FUNCTION__._ZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpec, ptr noundef %10)
          to label %38 unwind label %52

38:                                               ; preds = %4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #11
  %39 = getelementptr inbounds %class.Repository, ptr %33, i32 0, i32 0
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = invoke { ptr, ptr } @_ZNSt8multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryESt4lessIS5_ESaISt4pairIKS5_S7_EEE11equal_rangeERSB_(ptr noundef nonnull align 8 dereferenceable(48) %39, ptr noundef nonnull align 8 dereferenceable(32) %40)
          to label %42 unwind label %56

42:                                               ; preds = %38
  %43 = getelementptr inbounds { ptr, ptr }, ptr %14, i32 0, i32 0
  %44 = extractvalue { ptr, ptr } %41, 0
  store ptr %44, ptr %43, align 8
  %45 = getelementptr inbounds { ptr, ptr }, ptr %14, i32 0, i32 1
  %46 = extractvalue { ptr, ptr } %41, 1
  store ptr %46, ptr %45, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #11
  store ptr null, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #11
  %47 = getelementptr inbounds %"struct.std::pair.67", ptr %14, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %47, i64 8, i1 false), !tbaa.struct !9
  br label %48

48:                                               ; preds = %133, %42
  %49 = getelementptr inbounds %"struct.std::pair.67", ptr %14, i32 0, i32 1
  %50 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEESD_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %49) #11
  br i1 %50, label %60, label %51

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

52:                                               ; preds = %4
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %12, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #11
  br label %224

56:                                               ; preds = %38
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %12, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %13, align 4
  br label %223

60:                                               ; preds = %48
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #11
  %63 = getelementptr inbounds %"struct.std::pair.69", ptr %62, i32 0, i32 1
  %64 = getelementptr inbounds %"struct.Repository::Entry", ptr %63, i32 0, i32 1
  %65 = invoke noundef zeroext i1 @_ZNK18PackageVersionSpec7acceptsERK14PackageVersion(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 8 dereferenceable(48) %64)
          to label %66 unwind label %79

66:                                               ; preds = %60
  br i1 %65, label %67, label %122

67:                                               ; preds = %66
  %68 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #11
  %69 = getelementptr inbounds %"struct.std::pair.69", ptr %68, i32 0, i32 1
  %70 = getelementptr inbounds %"struct.Repository::Entry", ptr %69, i32 0, i32 3
  %71 = load i8, ptr %70, align 8, !tbaa !10, !range !22, !noundef !23
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %87

73:                                               ; preds = %67
  br label %74

74:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #11
  %75 = getelementptr inbounds %class.anon.77, ptr %18, i32 0, i32 0
  store ptr %16, ptr %75, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #11
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %17)
          to label %76 unwind label %83

76:                                               ; preds = %74
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77
  br label %121

79:                                               ; preds = %90, %60
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %12, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %13, align 4
  br label %135

83:                                               ; preds = %74
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %12, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  br label %135

87:                                               ; preds = %67
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %98

90:                                               ; preds = %87
  %91 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #11
  %92 = getelementptr inbounds %"struct.std::pair.69", ptr %91, i32 0, i32 1
  %93 = getelementptr inbounds %"struct.Repository::Entry", ptr %92, i32 0, i32 1
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.Repository::Entry", ptr %94, i32 0, i32 1
  %96 = invoke noundef zeroext i1 @_ZNK14PackageVersiongtERKS_(ptr noundef nonnull align 8 dereferenceable(48) %93, ptr noundef nonnull align 8 dereferenceable(48) %95)
          to label %97 unwind label %79

97:                                               ; preds = %90
  br i1 %96, label %98, label %110

98:                                               ; preds = %97, %87
  br label %99

99:                                               ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #11
  %100 = getelementptr inbounds %class.anon.78, ptr %20, i32 0, i32 0
  store ptr %16, ptr %100, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #11
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %19)
          to label %101 unwind label %106

101:                                              ; preds = %99
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #11
  br label %102

102:                                              ; preds = %101
  br label %103

103:                                              ; preds = %102
  %104 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #11
  %105 = getelementptr inbounds %"struct.std::pair.69", ptr %104, i32 0, i32 1
  store ptr %105, ptr %15, align 8, !tbaa !5
  br label %120

106:                                              ; preds = %99
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %12, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #11
  br label %135

110:                                              ; preds = %97
  br label %111

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #11
  %112 = getelementptr inbounds %class.anon.79, ptr %22, i32 0, i32 0
  store ptr %16, ptr %112, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #11
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %21)
          to label %113 unwind label %116

113:                                              ; preds = %111
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #11
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  br label %120

116:                                              ; preds = %111
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %12, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #11
  br label %135

120:                                              ; preds = %115, %103
  br label %121

121:                                              ; preds = %120, %78
  br label %132

122:                                              ; preds = %66
  br label %123

123:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #11
  %124 = getelementptr inbounds %class.anon.80, ptr %24, i32 0, i32 0
  store ptr %16, ptr %124, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #11
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %23)
          to label %125 unwind label %128

125:                                              ; preds = %123
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  br label %132

128:                                              ; preds = %123
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %12, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  br label %135

132:                                              ; preds = %127, %121
  br label %133

133:                                              ; preds = %132
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #11
  br label %48, !llvm.loop !24

135:                                              ; preds = %128, %116, %106, %83, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  br label %222

136:                                              ; preds = %51
  %137 = load ptr, ptr %15, align 8, !tbaa !5
  %138 = icmp ne ptr %137, null
  br i1 %138, label %139, label %220

139:                                              ; preds = %136
  br label %140

140:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #11
  %141 = getelementptr inbounds %class.anon.81, ptr %26, i32 0, i32 0
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %142, ptr %141, align 8, !tbaa !5
  %143 = getelementptr inbounds %class.anon.81, ptr %26, i32 0, i32 1
  store ptr %15, ptr %143, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(16) %26) #11
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %25)
          to label %144 unwind label %157

144:                                              ; preds = %140
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #11
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  %147 = load ptr, ptr %15, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.Repository::Entry", ptr %147, i32 0, i32 2
  %149 = call noundef zeroext i1 @_ZNKSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %148) #11
  br i1 %149, label %217, label %150

150:                                              ; preds = %146
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.Repository::Entry", ptr %151, i32 0, i32 0
  %153 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %152, ptr noundef @.str)
          to label %154 unwind label %161

154:                                              ; preds = %150
  br i1 %153, label %155, label %165

155:                                              ; preds = %154
  %156 = call ptr @__cxa_allocate_exception(i64 8) #11
  store ptr @.str.7, ptr %156, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr %156, ptr @_ZTIPKc, ptr null) #12
          to label %233 unwind label %161

157:                                              ; preds = %140
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %12, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #11
  br label %222

161:                                              ; preds = %155, %150
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %12, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %13, align 4
  br label %222

165:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #11
  %166 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 600) #13
          to label %167 unwind label %177

167:                                              ; preds = %165
  %168 = load ptr, ptr %15, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.Repository::Entry", ptr %168, i32 0, i32 0
  %170 = getelementptr inbounds %class.Repository, ptr %33, i32 0, i32 2
  %171 = load ptr, ptr %170, align 8, !tbaa !26
  invoke void @_ZN15PackageManifest14load_from_tomlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK17WorkspaceManifest(ptr dead_on_unwind writable sret(%class.PackageManifest) align 8 %166, ptr noundef nonnull align 8 dereferenceable(32) %169, ptr noundef %171)
          to label %172 unwind label %181

172:                                              ; preds = %167
  invoke void @_ZNSt10shared_ptrI15PackageManifestEC2IS0_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef %166)
          to label %173 unwind label %177

173:                                              ; preds = %172
  %174 = load ptr, ptr %15, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.Repository::Entry", ptr %174, i32 0, i32 2
  %176 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI15PackageManifestEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(16) %175, ptr noundef nonnull align 8 dereferenceable(16) %27) #11
  call void @_ZNSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #11
  br label %216

177:                                              ; preds = %172, %165
  %178 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %12, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %13, align 4
  br label %185

181:                                              ; preds = %167
  %182 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %12, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %166, i64 noundef 600) #14
  br label %185

185:                                              ; preds = %181, %177
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #11
  br label %186

186:                                              ; preds = %185
  %187 = load i32, ptr %13, align 4
  %188 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #11
  %189 = icmp eq i32 %187, %188
  br i1 %189, label %190, label %222

190:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #11
  %191 = load ptr, ptr %12, align 8
  %192 = call ptr @__cxa_begin_catch(ptr %191) #11
  store ptr %192, ptr %28, align 8
  store i1 true, ptr %31, align 1
  %193 = call ptr @__cxa_allocate_exception(i64 16) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #11
  %194 = load ptr, ptr %15, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.Repository::Entry", ptr %194, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #11
  %196 = load ptr, ptr %28, align 8, !tbaa !5
  %197 = load ptr, ptr %196, align 8, !tbaa !39
  %198 = getelementptr inbounds ptr, ptr %197, i64 2
  %199 = load ptr, ptr %198, align 8
  %200 = call noundef ptr %199(ptr noundef nonnull align 8 dereferenceable(8) %196) #11
  store ptr %200, ptr %30, align 8, !tbaa !5
  invoke void @_Z6formatIJA25_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEA5_cPKcEES6_DpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef nonnull align 1 dereferenceable(25) @.str.8, ptr noundef nonnull align 8 dereferenceable(32) %195, ptr noundef nonnull align 1 dereferenceable(5) @.str.9, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %201 unwind label %203

201:                                              ; preds = %190
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %193, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %202 unwind label %207

202:                                              ; preds = %201
  store i1 false, ptr %31, align 1
  invoke void @__cxa_throw(ptr %193, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #12
          to label %233 unwind label %207

203:                                              ; preds = %190
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %12, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %13, align 4
  br label %211

207:                                              ; preds = %202, %201
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %12, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #11
  br label %211

211:                                              ; preds = %207, %203
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #11
  %212 = load i1, ptr %31, align 1
  br i1 %212, label %213, label %214

213:                                              ; preds = %211
  call void @__cxa_free_exception(ptr %193) #11
  br label %214

214:                                              ; preds = %213, %211
  invoke void @__cxa_end_catch()
          to label %215 unwind label %230

215:                                              ; preds = %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  br label %222

216:                                              ; preds = %173
  br label %217

217:                                              ; preds = %216, %146
  %218 = load ptr, ptr %15, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.Repository::Entry", ptr %218, i32 0, i32 2
  call void @_ZNSt10shared_ptrI15PackageManifestEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %219) #11
  store i32 1, ptr %32, align 4
  br label %221

220:                                              ; preds = %136
  call void @_ZNSt10shared_ptrI15PackageManifestEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #11
  store i32 1, ptr %32, align 4
  br label %221

221:                                              ; preds = %220, %217
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #11
  call void @_ZN18DebugFunctionScopeD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #11
  ret void

222:                                              ; preds = %215, %186, %161, %157, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  br label %223

223:                                              ; preds = %222, %56
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #11
  call void @_ZN18DebugFunctionScopeD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #11
  br label %224

224:                                              ; preds = %223, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #11
  br label %225

225:                                              ; preds = %224
  %226 = load ptr, ptr %12, align 8
  %227 = load i32, ptr %13, align 4
  %228 = insertvalue { ptr, i32 } poison, ptr %226, 0
  %229 = insertvalue { ptr, i32 } %228, i32 %227, 1
  resume { ptr, i32 } %229

230:                                              ; preds = %214
  %231 = landingpad { ptr, i32 }
          catch ptr null
  %232 = extractvalue { ptr, i32 } %231, 0
  call void @__clang_call_terminate(ptr %232) #15
  unreachable

233:                                              ; preds = %202, %155
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN18DebugFunctionScopeC2EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef) unnamed_addr #6 align 2

declare noundef zeroext i1 @_ZNK18PackageVersionSpec7acceptsERK14PackageVersion(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK14PackageVersiongtERKS_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #9

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6formatIJA25_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEA5_cPKcEES6_DpRKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 1 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(5), ptr noundef nonnull align 8 dereferenceable(8)) #6

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #10

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "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 = { 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 #5 = { nobuiltin allocsize(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 #6 = { 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 #7 = { nobuiltin nounwind "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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind memory(none) }
attributes #10 = { noinline noreturn nounwind uwtable "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 #11 = { nounwind }
attributes #12 = { noreturn }
attributes #13 = { builtin allocsize(0) }
attributes #14 = { builtin nounwind }
attributes #15 = { noreturn 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 = !{i64 0, i64 8, !5}
!10 = !{!11, !18, i64 128}
!11 = !{!"_ZTSSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEE", !12, i64 0, !15, i64 32}
!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 = !{!"_ZTSN10Repository5EntryE", !12, i64 0, !16, i64 32, !19, i64 80, !18, i64 96}
!16 = !{!"_ZTS14PackageVersion", !17, i64 0, !17, i64 4, !17, i64 8, !18, i64 12, !12, i64 16}
!17 = !{!"int", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSSt10shared_ptrI15PackageManifestE", !20, i64 0}
!20 = !{!"_ZTSSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !21, i64 8}
!21 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27, !6, i64 96}
!27 = !{!"_ZTS10Repository", !28, i64 0, !36, i64 48, !6, i64 96}
!28 = !{!"_ZTSSt8multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryESt4lessIS5_ESaISt4pairIKS5_S7_EEE", !29, i64 0}
!29 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N10Repository5EntryEESt10_Select1stISA_ESt4lessIS5_ESaISA_EE", !30, i64 0}
!30 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N10Repository5EntryEESt10_Select1stISA_ESt4lessIS5_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !31, i64 0, !33, i64 8}
!31 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !32, i64 0}
!32 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!33 = !{!"_ZTSSt15_Rb_tree_header", !34, i64 0, !14, i64 32}
!34 = !{!"_ZTSSt18_Rb_tree_node_base", !35, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!35 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!36 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI15PackageManifestESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !37, i64 0}
!37 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrI15PackageManifestEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !38, i64 0}
!38 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrI15PackageManifestEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !31, i64 0, !33, i64 8}
!39 = !{!40, !40, i64 0}
!40 = !{!"vtable pointer", !8, 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.PackageManifest = type <{ %"class.helpers::path", %"class.std::__cxx11::basic_string", %struct.PackageVersion, %"class.std::__cxx11::basic_string", i32, [4 x i8], %"class.std::__cxx11::basic_string", %"struct.PackageManifest::Dependencies", %"class.std::map.36", %"class.std::vector.41", %class.BuildScriptOutput, %"class.std::map.56", %"class.std::vector", %"class.std::vector", i8, i8, [6 x i8] }>
%"class.helpers::path" = type { %"class.std::__cxx11::basic_string" }
%struct.PackageVersion = type { i32, i32, i32, i8, %"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] }
%"struct.PackageManifest::Dependencies" = type { %"class.std::vector.31", %"class.std::vector.31", %"class.std::vector.31" }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<PackageRef, std::allocator<PackageRef>>::_Vector_impl" }
%"struct.std::_Vector_base<PackageRef, std::allocator<PackageRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<PackageRef, std::allocator<PackageRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PackageRef, std::allocator<PackageRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.36" = type { %"class.std::_Rb_tree.37" }
%"class.std::_Rb_tree.37" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, PackageManifest::Dependencies>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, PackageManifest::Dependencies>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, PackageManifest::Dependencies>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, PackageManifest::Dependencies>>, std::less<std::__cxx11::basic_string<char>>>::_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::vector.41" = type { %"struct.std::_Vector_base.42" }
%"struct.std::_Vector_base.42" = type { %"struct.std::_Vector_base<PackageTarget, std::allocator<PackageTarget>>::_Vector_impl" }
%"struct.std::_Vector_base<PackageTarget, std::allocator<PackageTarget>>::_Vector_impl" = type { %"struct.std::_Vector_base<PackageTarget, std::allocator<PackageTarget>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PackageTarget, std::allocator<PackageTarget>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.BuildScriptOutput = type { %"class.std::vector", %"class.std::vector.46", %"class.std::vector.46", %"class.std::vector", %"class.std::vector", %"class.std::vector.51", %"class.std::vector.51" }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<std::pair<const char *, std::__cxx11::basic_string<char>>, std::allocator<std::pair<const char *, std::__cxx11::basic_string<char>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<const char *, std::__cxx11::basic_string<char>>, std::allocator<std::pair<const char *, std::__cxx11::basic_string<char>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<const char *, std::__cxx11::basic_string<char>>, std::allocator<std::pair<const char *, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<const char *, std::__cxx11::basic_string<char>>, std::allocator<std::pair<const char *, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.56" = type { %"class.std::_Rb_tree.57" }
%"class.std::_Rb_tree.57" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char>>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char>>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char>>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char>>>>, std::less<std::__cxx11::basic_string<char>>>::_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::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%struct.DebugFunctionScope = type { ptr }
%"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.71 = type { ptr, ptr }
%"struct.std::pair.67" = type { %"struct.std::_Rb_tree_iterator", %"struct.std::_Rb_tree_iterator" }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%class.anon.77 = type { ptr }
%class.anon.78 = type { ptr }
%class.anon.79 = type { ptr }
%class.anon.80 = type { ptr }
%class.anon.81 = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr
@_ZTISt13runtime_error = external constant ptr
@__FUNCTION__._ZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpec = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; 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(...)

declare void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #4

declare void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #5

declare void @_ZN15PackageManifest14load_from_tomlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK17WorkspaceManifest(ptr dead_on_unwind writable sret(%class.PackageManifest) align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10shared_ptrI15PackageManifestEC2IS0_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #6 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #7

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNSt8multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryESt4lessIS5_ESaISt4pairIKS5_S7_EEE11equal_rangeERSB_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEESD_(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 ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpec(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(104) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %struct.DebugFunctionScope, align 8
  %6 = alloca %"class.std::function", align 8
  %7 = alloca %class.anon.71, align 8
  %8 = alloca %"struct.std::pair.67", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %11 = alloca %"class.std::function", align 8
  %12 = alloca %class.anon.77, align 8
  %13 = alloca %"class.std::function", align 8
  %14 = alloca %class.anon.78, align 8
  %15 = alloca %"class.std::function", align 8
  %16 = alloca %class.anon.79, align 8
  %17 = alloca %"class.std::function", align 8
  %18 = alloca %class.anon.80, align 8
  %19 = alloca %"class.std::function", align 8
  %20 = alloca %class.anon.81, align 8
  %21 = alloca %"class.std::shared_ptr", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #10
  store ptr %2, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %3, ptr %24, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %7) #10
  invoke void @_ZN18DebugFunctionScopeC2EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull @__FUNCTION__._ZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpec, ptr noundef nonnull %6)
          to label %25 unwind label %34

25:                                               ; preds = %4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #10
  %26 = invoke { ptr, ptr } @_ZNSt8multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryESt4lessIS5_ESaISt4pairIKS5_S7_EEE11equal_rangeERSB_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %27 unwind label %38

27:                                               ; preds = %25
  %28 = extractvalue { ptr, ptr } %26, 0
  store ptr %28, ptr %8, align 8
  %29 = getelementptr inbounds i8, ptr %8, i64 8
  %30 = extractvalue { ptr, ptr } %26, 1
  store ptr %30, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  %31 = ptrtoint ptr %28 to i64
  store i64 %31, ptr %10, align 8, !tbaa !5
  %32 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEESD_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %29) #10
  br i1 %32, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  br label %142

._crit_edge:                                      ; preds = %80
  %33 = icmp eq ptr %81, null
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  br i1 %33, label %142, label %86

34:                                               ; preds = %4
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  %37 = extractvalue { ptr, i32 } %35, 1
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #10
  br label %146

38:                                               ; preds = %25
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  %41 = extractvalue { ptr, i32 } %39, 1
  br label %145

.lr.ph:                                           ; preds = %27, %80
  %42 = phi ptr [ %81, %80 ], [ null, %27 ]
  %43 = phi ptr [ %82, %80 ], [ null, %27 ]
  %44 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  %45 = getelementptr inbounds i8, ptr %44, i64 64
  %46 = invoke noundef zeroext i1 @_ZNK18PackageVersionSpec7acceptsERK14PackageVersion(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(48) %45)
          to label %47 unwind label %55

47:                                               ; preds = %.lr.ph
  br i1 %46, label %48, label %76

48:                                               ; preds = %47
  %49 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  %50 = getelementptr inbounds i8, ptr %49, i64 128
  %51 = load i8, ptr %50, align 8, !tbaa !9, !range !21, !noundef !22
  %52 = trunc nuw i8 %51 to i1
  br i1 %52, label %53, label %59

53:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #10
  store ptr %10, ptr %12, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %11)
          to label %54 unwind label %57

54:                                               ; preds = %53
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  br label %80

55:                                               ; preds = %60, %.lr.ph
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %85

57:                                               ; preds = %53
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  br label %85

59:                                               ; preds = %48
  %.not22 = icmp eq ptr %43, null
  br i1 %.not22, label %66, label %60

60:                                               ; preds = %59
  %61 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  %62 = getelementptr inbounds i8, ptr %61, i64 64
  %63 = getelementptr inbounds i8, ptr %42, i64 32
  %64 = invoke noundef zeroext i1 @_ZNK14PackageVersiongtERKS_(ptr noundef nonnull align 8 dereferenceable(48) %62, ptr noundef nonnull align 8 dereferenceable(48) %63)
          to label %65 unwind label %55

65:                                               ; preds = %60
  br i1 %64, label %66, label %72

66:                                               ; preds = %59, %65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #10
  store ptr %10, ptr %14, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #10
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %13)
          to label %67 unwind label %70

67:                                               ; preds = %66
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #10
  %68 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  %69 = getelementptr inbounds i8, ptr %68, i64 32
  store ptr %69, ptr %9, align 8, !tbaa !5
  br label %80

70:                                               ; preds = %66
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #10
  br label %85

72:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #10
  store ptr %10, ptr %16, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #10
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %15)
          to label %73 unwind label %74

73:                                               ; preds = %72
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #10
  br label %80

74:                                               ; preds = %72
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #10
  br label %85

76:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #10
  store ptr %10, ptr %18, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #10
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %17)
          to label %77 unwind label %78

77:                                               ; preds = %76
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  br label %80

78:                                               ; preds = %76
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  br label %85

80:                                               ; preds = %77, %67, %73, %54
  %81 = phi ptr [ %42, %77 ], [ %69, %67 ], [ %42, %73 ], [ %42, %54 ]
  %82 = phi ptr [ %43, %77 ], [ %69, %67 ], [ %42, %73 ], [ %43, %54 ]
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  %84 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEEESD_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %29) #10
  br i1 %84, label %.lr.ph, label %._crit_edge, !llvm.loop !23

85:                                               ; preds = %78, %74, %70, %57, %55
  %.pn23 = phi { ptr, i32 } [ %58, %57 ], [ %71, %70 ], [ %75, %74 ], [ %56, %55 ], [ %79, %78 ]
  %.011 = extractvalue { ptr, i32 } %.pn23, 0
  %.013 = extractvalue { ptr, i32 } %.pn23, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  br label %144

86:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #10
  store ptr %2, ptr %20, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %20, i64 8
  store ptr %9, ptr %87, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(16) %20) #10
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %19)
          to label %88 unwind label %97

88:                                               ; preds = %86
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #10
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 80
  %91 = call noundef zeroext i1 @_ZNKSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %90) #10
  br i1 %91, label %139, label %92

92:                                               ; preds = %88
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %93, ptr noundef nonnull @.str)
  br i1 %94, label %95, label %105

95:                                               ; preds = %92
  %96 = call ptr @__cxa_allocate_exception(i64 8) #10
  store ptr @.str.7, ptr %96, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr nonnull %96, ptr nonnull @_ZTIPKc, ptr null) #11
          to label %152 unwind label %101

97:                                               ; preds = %86
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  %100 = extractvalue { ptr, i32 } %98, 1
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #10
  br label %144

101:                                              ; preds = %95
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  %104 = extractvalue { ptr, i32 } %102, 1
  br label %144

105:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #10
  %106 = invoke noalias noundef nonnull dereferenceable(600) ptr @_Znwm(i64 noundef 600) #12
          to label %107 unwind label %116

107:                                              ; preds = %105
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %1, i64 96
  %110 = load ptr, ptr %109, align 8, !tbaa !25
  invoke void @_ZN15PackageManifest14load_from_tomlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK17WorkspaceManifest(ptr dead_on_unwind nonnull writable sret(%class.PackageManifest) align 8 %106, ptr noundef nonnull align 8 dereferenceable(32) %108, ptr noundef %110)
          to label %111 unwind label %118

111:                                              ; preds = %107
  invoke void @_ZNSt10shared_ptrI15PackageManifestEC2IS0_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull %106)
          to label %112 unwind label %116

112:                                              ; preds = %111
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = getelementptr inbounds i8, ptr %113, i64 80
  %115 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI15PackageManifestEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(16) %114, ptr noundef nonnull align 8 dereferenceable(16) %21) #10
  call void @_ZNSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #10
  br label %139

116:                                              ; preds = %111, %105
  %117 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %120

118:                                              ; preds = %107
  %119 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZdlPvm(ptr noundef nonnull %106, i64 noundef 600) #13
  br label %120

120:                                              ; preds = %118, %116
  %.pn = phi { ptr, i32 } [ %117, %116 ], [ %119, %118 ]
  %.112 = extractvalue { ptr, i32 } %.pn, 0
  %.114 = extractvalue { ptr, i32 } %.pn, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #10
  %121 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #10
  %122 = icmp eq i32 %.114, %121
  br i1 %122, label %123, label %144

123:                                              ; preds = %120
  %124 = call ptr @__cxa_begin_catch(ptr %.112) #10
  %125 = call ptr @__cxa_allocate_exception(i64 16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #10
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #10
  %127 = load ptr, ptr %124, align 8, !tbaa !38
  %128 = getelementptr inbounds i8, ptr %127, i64 16
  %129 = load ptr, ptr %128, align 8
  %130 = call noundef ptr %129(ptr noundef nonnull align 8 dereferenceable(8) %124) #10
  store ptr %130, ptr %23, align 8, !tbaa !5
  invoke void @_Z6formatIJA25_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEA5_cPKcEES6_DpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull align 1 dereferenceable(25) @.str.8, ptr noundef nonnull align 8 dereferenceable(32) %126, ptr noundef nonnull align 1 dereferenceable(5) @.str.9, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %131 unwind label %.thread

131:                                              ; preds = %123
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %125, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %133 unwind label %.thread33

.thread33:                                        ; preds = %131
  %132 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #10
  br label %137

133:                                              ; preds = %131
  invoke void @__cxa_throw(ptr nonnull %125, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #11
          to label %152 unwind label %135

.thread:                                          ; preds = %123
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #10
  br label %137

135:                                              ; preds = %133
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #10
  br label %138

137:                                              ; preds = %.thread33, %.thread
  %.pn37 = phi { ptr, i32 } [ %134, %.thread ], [ %132, %.thread33 ]
  call void @__cxa_free_exception(ptr %125) #10
  br label %138

138:                                              ; preds = %135, %137
  %.pn37.pn = phi { ptr, i32 } [ %.pn37, %137 ], [ %136, %135 ]
  %.229 = extractvalue { ptr, i32 } %.pn37.pn, 0
  %.21531 = extractvalue { ptr, i32 } %.pn37.pn, 1
  invoke void @__cxa_end_catch()
          to label %144 unwind label %149

139:                                              ; preds = %112, %88
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %140, i64 80
  call void @_ZNSt10shared_ptrI15PackageManifestEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %141) #10
  br label %143

142:                                              ; preds = %._crit_edge.thread, %._crit_edge
  call void @_ZNSt10shared_ptrI15PackageManifestEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #10
  br label %143

143:                                              ; preds = %142, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #10
  call void @_ZN18DebugFunctionScopeD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  ret void

144:                                              ; preds = %138, %120, %101, %97, %85
  %.316 = phi i32 [ %.013, %85 ], [ %104, %101 ], [ %.114, %120 ], [ %100, %97 ], [ %.21531, %138 ]
  %.3 = phi ptr [ %.011, %85 ], [ %103, %101 ], [ %.112, %120 ], [ %99, %97 ], [ %.229, %138 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  br label %145

145:                                              ; preds = %144, %38
  %.417 = phi i32 [ %.316, %144 ], [ %41, %38 ]
  %.4 = phi ptr [ %.3, %144 ], [ %40, %38 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #10
  call void @_ZN18DebugFunctionScopeD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #10
  br label %146

146:                                              ; preds = %145, %34
  %.518 = phi i32 [ %.417, %145 ], [ %37, %34 ]
  %.5 = phi ptr [ %.4, %145 ], [ %36, %34 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  %147 = insertvalue { ptr, i32 } poison, ptr %.5, 0
  %148 = insertvalue { ptr, i32 } %147, i32 %.518, 1
  resume { ptr, i32 } %148

149:                                              ; preds = %138
  %150 = landingpad { ptr, i32 }
          catch ptr null
  %151 = extractvalue { ptr, i32 } %150, 0
  call void @__clang_call_terminate(ptr %151) #14
  unreachable

152:                                              ; preds = %133, %95
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN18DebugFunctionScopeC2EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef) unnamed_addr #6 align 2

declare noundef zeroext i1 @_ZNK18PackageVersionSpec7acceptsERK14PackageVersion(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK14PackageVersiongtERKS_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpecE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #8

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6formatIJA25_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEA5_cPKcEES6_DpRKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 1 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(5), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #9

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "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 = { 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 #5 = { nobuiltin allocsize(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 #6 = { 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 #7 = { nobuiltin nounwind "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 #8 = { nofree nosync nounwind memory(none) }
attributes #9 = { noinline noreturn nounwind uwtable "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 #10 = { nounwind }
attributes #11 = { noreturn }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { builtin nounwind }
attributes #14 = { noreturn 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, !17, i64 128}
!10 = !{!"_ZTSSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryEE", !11, i64 0, !14, i64 32}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN10Repository5EntryE", !11, i64 0, !15, i64 32, !18, i64 80, !17, i64 96}
!15 = !{!"_ZTS14PackageVersion", !16, i64 0, !16, i64 4, !16, i64 8, !17, i64 12, !11, i64 16}
!16 = !{!"int", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSSt10shared_ptrI15PackageManifestE", !19, i64 0}
!19 = !{!"_ZTSSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !20, i64 8}
!20 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!26, !6, i64 96}
!26 = !{!"_ZTS10Repository", !27, i64 0, !35, i64 48, !6, i64 96}
!27 = !{!"_ZTSSt8multimapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10Repository5EntryESt4lessIS5_ESaISt4pairIKS5_S7_EEE", !28, i64 0}
!28 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N10Repository5EntryEESt10_Select1stISA_ESt4lessIS5_ESaISA_EE", !29, i64 0}
!29 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N10Repository5EntryEESt10_Select1stISA_ESt4lessIS5_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !30, i64 0, !32, i64 8}
!30 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !31, i64 0}
!31 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!32 = !{!"_ZTSSt15_Rb_tree_header", !33, i64 0, !13, i64 32}
!33 = !{!"_ZTSSt18_Rb_tree_node_base", !34, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!34 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!35 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI15PackageManifestESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !36, i64 0}
!36 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrI15PackageManifestEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !37, i64 0}
!37 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrI15PackageManifestEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !30, i64 0, !32, i64 8}
!38 = !{!39, !39, i64 0}
!39 = !{!"vtable pointer", !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass