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

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

%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.helpers::path" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.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.44", %"class.std::vector.49", %class.BuildScriptOutput, %"class.std::map.64", %"class.std::vector.12", %"class.std::vector.12", i8, i8, [6 x i8] }>
%struct.PackageVersion = type { i32, i32, i32, i8, %"class.std::__cxx11::basic_string" }
%"struct.PackageManifest::Dependencies" = type { %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.44" = type { %"class.std::_Rb_tree.45" }
%"class.std::_Rb_tree.45" = 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.49" = type { %"struct.std::_Vector_base.50" }
%"struct.std::_Vector_base.50" = 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.12", %"class.std::vector.54", %"class.std::vector.54", %"class.std::vector.12", %"class.std::vector.12", %"class.std::vector.59", %"class.std::vector.59" }
%"class.std::vector.54" = type { %"struct.std::_Vector_base.55" }
%"struct.std::_Vector_base.55" = 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.59" = type { %"struct.std::_Vector_base.60" }
%"struct.std::_Vector_base.60" = 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.64" = type { %"class.std::_Rb_tree.65" }
%"class.std::_Rb_tree.65" = 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.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = 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::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.177 = type { ptr }
%class.anon.178 = type { ptr }
%class.anon.179 = type { ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.11 }
%union.anon.11 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%class.PackageRef = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %struct.PackageVersionSpec, i8, i8, %"class.std::__cxx11::basic_string", i8, %"class.std::vector.12", i8, %"class.std::shared_ptr" }
%struct.PackageVersionSpec = type { %"class.std::vector.39" }
%"class.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<PackageVersionSpec::Bound, std::allocator<PackageVersionSpec::Bound>>::_Vector_impl" }
%"struct.std::_Vector_base<PackageVersionSpec::Bound, std::allocator<PackageVersionSpec::Bound>>::_Vector_impl" = type { %"struct.std::_Vector_base<PackageVersionSpec::Bound, std::allocator<PackageVersionSpec::Bound>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PackageVersionSpec::Bound, std::allocator<PackageVersionSpec::Bound>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@__dso_handle = external hidden global i8
@_ZTISt13runtime_error = external constant ptr
@_ZTISt9exception = external constant ptr
@.str.107 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [10 x i8], align 1
@_ZTIPKc = external constant ptr
@.str.150 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [26 x i8], align 1
@_ZZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc = external hidden global %"class.std::shared_ptr", align 8
@_ZGVZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc = external hidden global i64, align 8
@.str.156 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

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

declare i32 @__gxx_personality_v0(...)

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

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

; 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) #3

declare void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef) #4

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

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

declare ptr @__cxa_allocate_exception(i64)

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

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

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7helpers4pathdvEPKc(ptr dead_on_unwind noalias writable sret(%"class.helpers::path") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15PackageManifest14magic_manifestEPKc(ptr dead_on_unwind noalias writable sret(%class.PackageManifest) align 8, ptr noundef) #5 align 2

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

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(184) %1, ptr noundef nonnull align 8 dereferenceable(104) %2, ptr noundef nonnull align 8 dereferenceable(32) %3) #5 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 %"class.std::function", align 8
  %10 = alloca %class.anon.177, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::function", align 8
  %14 = alloca %class.anon.178, align 8
  %15 = alloca i1, align 1
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::function", align 8
  %18 = alloca %class.anon.179, align 8
  %19 = alloca %"class.helpers::path", align 8
  %20 = alloca %"class.helpers::path", align 8
  %21 = alloca %"class.std::basic_ifstream", align 8
  %22 = alloca %"class.std::shared_ptr", align 8
  %23 = alloca %"class.helpers::path", align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca ptr, align 8
  %27 = alloca i1, align 1
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca i1, align 1
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca i1, align 1
  %32 = alloca %class.PackageManifest, align 8
  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
  %34 = getelementptr inbounds %class.PackageRef, ptr %33, i32 0, i32 9
  %35 = call noundef zeroext i1 @_ZNKSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %34) #0
  br i1 %35, label %36, label %38

36:                                               ; preds = %4
  %37 = getelementptr inbounds %class.PackageRef, ptr %33, i32 0, i32 9
  call void @_ZNSt10shared_ptrI15PackageManifestEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %37) #0
  br label %235

38:                                               ; preds = %4
  %39 = call noundef zeroext i1 @_ZNK10PackageRef7has_gitEv(ptr noundef nonnull align 8 dereferenceable(184) %33)
  br i1 %39, label %40, label %50

40:                                               ; preds = %38
  br label %41

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #0
  %42 = getelementptr inbounds %class.anon.177, ptr %10, i32 0, i32 0
  store ptr %33, ptr %42, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvRSoEEC2IZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #0
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %9)
          to label %43 unwind label %46

43:                                               ; preds = %41
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #0
  br label %44

44:                                               ; preds = %43
  %45 = call ptr @__cxa_allocate_exception(i64 8) #0
  store ptr @.str.149, ptr %45, align 16, !tbaa !5
  call void @__cxa_throw(ptr %45, ptr @_ZTIPKc, ptr null) #10
  unreachable

46:                                               ; preds = %41
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %11, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #0
  br label %236

50:                                               ; preds = %38
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10PackageRef11get_versionEv(ptr noundef nonnull align 8 dereferenceable(184) %33)
  %52 = getelementptr inbounds %struct.PackageVersionSpec, ptr %51, i32 0, i32 0
  %53 = call noundef zeroext i1 @_ZNKSt6vectorIN18PackageVersionSpec5BoundESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #0
  br i1 %53, label %75, label %54

54:                                               ; preds = %50
  br label %55

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #0
  %56 = getelementptr inbounds %class.anon.178, ptr %14, i32 0, i32 0
  store ptr %33, ptr %56, align 8, !tbaa !11
  call void @"_ZNSt8functionIFvRSoEEC2IZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #0
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %13)
          to label %57 unwind label %64

57:                                               ; preds = %55
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #0
  br label %58

58:                                               ; preds = %57
  store i1 false, ptr %15, align 1
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK10PackageRef4nameB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(184) %33)
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10PackageRef11get_versionEv(ptr noundef nonnull align 8 dereferenceable(184) %33)
  call void @_ZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpec(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(104) %59, ptr noundef nonnull align 8 dereferenceable(32) %60, ptr noundef nonnull align 8 dereferenceable(24) %61)
  %62 = call noundef zeroext i1 @_ZNKSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #0
  br i1 %62, label %63, label %68

63:                                               ; preds = %58
  store i1 true, ptr %15, align 1
  store i32 1, ptr %16, align 4
  br label %69

64:                                               ; preds = %55
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %11, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #0
  br label %236

68:                                               ; preds = %58
  store i32 0, ptr %16, align 4
  br label %69

69:                                               ; preds = %68, %63
  %70 = load i1, ptr %15, align 1
  br i1 %70, label %72, label %71

71:                                               ; preds = %69
  call void @_ZNSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #0
  br label %72

72:                                               ; preds = %71, %69
  %73 = load i32, ptr %16, align 4
  switch i32 %73, label %244 [
    i32 0, label %74
    i32 1, label %235
  ]

74:                                               ; preds = %72
  br label %75

75:                                               ; preds = %74, %50
  %76 = getelementptr inbounds %class.PackageRef, ptr %33, i32 0, i32 9
  %77 = call noundef zeroext i1 @_ZNKSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %76) #0
  br i1 %77, label %178, label %78

78:                                               ; preds = %75
  %79 = call noundef zeroext i1 @_ZNK10PackageRef8has_pathEv(ptr noundef nonnull align 8 dereferenceable(184) %33)
  br i1 %79, label %80, label %178

80:                                               ; preds = %78
  br label %81

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #0
  %82 = getelementptr inbounds %class.anon.179, ptr %18, i32 0, i32 0
  store ptr %33, ptr %82, align 8, !tbaa !13
  call void @"_ZNSt8functionIFvRSoEEC2IZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #0
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %17)
          to label %83 unwind label %102

83:                                               ; preds = %81
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #0
  br label %84

84:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #0
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #0
  %85 = getelementptr inbounds %class.PackageRef, ptr %33, i32 0, i32 5
  call void @_ZN7helpers4pathC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %85)
  invoke void @_ZNK7helpers4pathdvEPKc(ptr dead_on_unwind writable sret(%"class.helpers::path") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str.150)
          to label %86 unwind label %106

86:                                               ; preds = %84
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #0
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #0
  call void @llvm.lifetime.start.p0(i64 520, ptr %21) #0
  %87 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7helpers4path3strB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %88 unwind label %110

88:                                               ; preds = %86
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %21, ptr noundef nonnull align 8 dereferenceable(32) %87, i32 noundef 8)
          to label %89 unwind label %110

89:                                               ; preds = %88
  %90 = load ptr, ptr %21, align 8, !tbaa !15
  %91 = getelementptr i8, ptr %90, i64 -24
  %92 = load i64, ptr %91, align 8
  %93 = getelementptr inbounds i8, ptr %21, i64 %92
  %94 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %93)
          to label %95 unwind label %114

95:                                               ; preds = %89
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %21) #0
  call void @llvm.lifetime.end.p0(i64 520, ptr %21) #0
  br i1 %94, label %96, label %157

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #0
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN7helpers4pathC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %98 unwind label %119

98:                                               ; preds = %96
  invoke void @_ZN10Repository9from_pathEN7helpers4pathE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %22, ptr noundef nonnull align 8 dereferenceable(104) %97, ptr noundef %23)
          to label %99 unwind label %123

99:                                               ; preds = %98
  %100 = getelementptr inbounds %class.PackageRef, ptr %33, i32 0, i32 9
  %101 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI15PackageManifestEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(16) %100, ptr noundef nonnull align 8 dereferenceable(16) %22) #0
  call void @_ZNSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #0
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #0
  br label %156

102:                                              ; preds = %81
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %11, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #0
  br label %236

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

110:                                              ; preds = %88, %86
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %11, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %12, align 4
  br label %118

114:                                              ; preds = %89
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %11, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %12, align 4
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %21) #0
  br label %118

118:                                              ; preds = %114, %110
  call void @llvm.lifetime.end.p0(i64 520, ptr %21) #0
  br label %176

119:                                              ; preds = %96
  %120 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %11, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %12, align 4
  br label %127

123:                                              ; preds = %98
  %124 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %11, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %12, align 4
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #0
  br label %127

127:                                              ; preds = %123, %119
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #0
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %12, align 4
  %130 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #0
  %131 = icmp eq i32 %129, %130
  br i1 %131, label %132, label %176

132:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #0
  %133 = load ptr, ptr %11, align 8
  %134 = call ptr @__cxa_begin_catch(ptr %133) #0
  store ptr %134, ptr %24, align 8
  store i1 true, ptr %27, align 1
  %135 = call ptr @__cxa_allocate_exception(i64 16) #0
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #0
  %136 = load ptr, ptr %24, align 8, !tbaa !5
  %137 = load ptr, ptr %136, align 8, !tbaa !15
  %138 = getelementptr inbounds ptr, ptr %137, i64 2
  %139 = load ptr, ptr %138, align 8
  %140 = call noundef ptr %139(ptr noundef nonnull align 8 dereferenceable(8) %136) #0
  store ptr %140, ptr %26, align 8, !tbaa !5
  invoke void @_Z6formatIJA25_cN7helpers4pathEA5_cPKcEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %25, ptr noundef nonnull align 1 dereferenceable(25) @.str.151, ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 1 dereferenceable(5) @.str.107, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %141 unwind label %143

141:                                              ; preds = %132
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %135, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %142 unwind label %147

142:                                              ; preds = %141
  store i1 false, ptr %27, align 1
  invoke void @__cxa_throw(ptr %135, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
          to label %244 unwind label %147

143:                                              ; preds = %132
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %11, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %12, align 4
  br label %151

147:                                              ; preds = %142, %141
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %11, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #0
  br label %151

151:                                              ; preds = %147, %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #0
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #0
  %152 = load i1, ptr %27, align 1
  br i1 %152, label %153, label %154

153:                                              ; preds = %151
  call void @__cxa_free_exception(ptr %135) #0
  br label %154

154:                                              ; preds = %153, %151
  invoke void @__cxa_end_catch()
          to label %155 unwind label %241

155:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #0
  br label %176

156:                                              ; preds = %99
  br label %175

157:                                              ; preds = %95
  store i1 true, ptr %29, align 1
  %158 = call ptr @__cxa_allocate_exception(i64 16) #0
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #0
  %159 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK10PackageRef4nameB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(184) %33)
          to label %160 unwind label %163

160:                                              ; preds = %157
  invoke void @_Z6formatIJA22_cN7helpers4pathEA6_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES9_DpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef nonnull align 1 dereferenceable(22) @.str.152, ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 1 dereferenceable(6) @.str.153, ptr noundef nonnull align 8 dereferenceable(32) %159)
          to label %161 unwind label %163

161:                                              ; preds = %160
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %158, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %162 unwind label %167

162:                                              ; preds = %161
  store i1 false, ptr %29, align 1
  invoke void @__cxa_throw(ptr %158, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
          to label %244 unwind label %167

163:                                              ; preds = %160, %157
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %11, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %12, align 4
  br label %171

167:                                              ; preds = %162, %161
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %11, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #0
  br label %171

171:                                              ; preds = %167, %163
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #0
  %172 = load i1, ptr %29, align 1
  br i1 %172, label %173, label %174

173:                                              ; preds = %171
  call void @__cxa_free_exception(ptr %158) #0
  br label %174

174:                                              ; preds = %173, %171
  br label %176

175:                                              ; preds = %156
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #0
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #0
  br label %178

176:                                              ; preds = %174, %155, %128, %118
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #0
  br label %177

177:                                              ; preds = %176, %106
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #0
  br label %236

178:                                              ; preds = %175, %78, %75
  %179 = call noundef zeroext i1 @_ZNK10PackageRef7has_gitEv(ptr noundef nonnull align 8 dereferenceable(184) %33)
  br i1 %179, label %204, label %180

180:                                              ; preds = %178
  %181 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10PackageRef11get_versionEv(ptr noundef nonnull align 8 dereferenceable(184) %33)
  %182 = getelementptr inbounds %struct.PackageVersionSpec, ptr %181, i32 0, i32 0
  %183 = call noundef zeroext i1 @_ZNKSt6vectorIN18PackageVersionSpec5BoundESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %182) #0
  br i1 %183, label %184, label %204

184:                                              ; preds = %180
  %185 = call noundef zeroext i1 @_ZNK10PackageRef8has_pathEv(ptr noundef nonnull align 8 dereferenceable(184) %33)
  br i1 %185, label %204, label %186

186:                                              ; preds = %184
  store i1 true, ptr %31, align 1
  %187 = call ptr @__cxa_allocate_exception(i64 16) #0
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #0
  %188 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK10PackageRef4nameB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(184) %33)
          to label %189 unwind label %192

189:                                              ; preds = %186
  invoke void @_Z6formatIJA15_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES6_DpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %30, ptr noundef nonnull align 1 dereferenceable(15) @.str.154, ptr noundef nonnull align 8 dereferenceable(32) %188)
          to label %190 unwind label %192

190:                                              ; preds = %189
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %187, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %191 unwind label %196

191:                                              ; preds = %190
  store i1 false, ptr %31, align 1
  invoke void @__cxa_throw(ptr %187, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
          to label %244 unwind label %196

192:                                              ; preds = %189, %186
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %11, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %12, align 4
  br label %200

196:                                              ; preds = %191, %190
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %11, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #0
  br label %200

200:                                              ; preds = %196, %192
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #0
  %201 = load i1, ptr %31, align 1
  br i1 %201, label %202, label %203

202:                                              ; preds = %200
  call void @__cxa_free_exception(ptr %187) #0
  br label %203

203:                                              ; preds = %202, %200
  br label %236

204:                                              ; preds = %184, %180, %178
  %205 = getelementptr inbounds %class.PackageRef, ptr %33, i32 0, i32 9
  %206 = call noundef zeroext i1 @_ZNKSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %205) #0
  br i1 %206, label %233, label %207

207:                                              ; preds = %204
  %208 = getelementptr inbounds %class.PackageRef, ptr %33, i32 0, i32 1
  %209 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %208, ptr noundef @.str.155)
  br i1 %209, label %210, label %232

210:                                              ; preds = %207
  %211 = load atomic i8, ptr @_ZGVZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc acquire, align 8
  %212 = icmp eq i8 %211, 0
  br i1 %212, label %213, label %220, !prof !17

213:                                              ; preds = %210
  %214 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc) #0
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %220

216:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 600, ptr %32) #0
  invoke void @_ZN15PackageManifest14magic_manifestEPKc(ptr dead_on_unwind writable sret(%class.PackageManifest) align 8 %32, ptr noundef @.str.156)
          to label %217 unwind label %223

217:                                              ; preds = %216
  invoke void @_ZSt11make_sharedI15PackageManifestJS0_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES3_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 @_ZZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc, ptr noundef nonnull align 8 dereferenceable(594) %32)
          to label %218 unwind label %227

218:                                              ; preds = %217
  call void @_ZN15PackageManifestD2Ev(ptr noundef nonnull align 8 dereferenceable(594) %32) #0
  call void @llvm.lifetime.end.p0(i64 600, ptr %32) #0
  %219 = call i32 @__cxa_atexit(ptr @_ZNSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EED2Ev, ptr @_ZZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc) #0
  br label %220

220:                                              ; preds = %218, %213, %210
  %221 = getelementptr inbounds %class.PackageRef, ptr %33, i32 0, i32 9
  %222 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI15PackageManifestEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %221, ptr noundef nonnull align 8 dereferenceable(16) @_ZZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc) #0
  br label %232

223:                                              ; preds = %216
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %11, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %12, align 4
  br label %231

227:                                              ; preds = %217
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %11, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %12, align 4
  call void @_ZN15PackageManifestD2Ev(ptr noundef nonnull align 8 dereferenceable(594) %32) #0
  br label %231

231:                                              ; preds = %227, %223
  call void @llvm.lifetime.end.p0(i64 600, ptr %32) #0
  call void @__cxa_guard_abort(ptr @_ZGVZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc) #0
  br label %236

232:                                              ; preds = %220, %207
  br label %233

233:                                              ; preds = %232, %204
  %234 = getelementptr inbounds %class.PackageRef, ptr %33, i32 0, i32 9
  call void @_ZNSt10shared_ptrI15PackageManifestEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %234) #0
  br label %235

235:                                              ; preds = %233, %72, %36
  ret void

236:                                              ; preds = %231, %203, %177, %102, %64, %46
  %237 = load ptr, ptr %11, align 8
  %238 = load i32, ptr %12, align 4
  %239 = insertvalue { ptr, i32 } poison, ptr %237, 0
  %240 = insertvalue { ptr, i32 } %239, i32 %238, 1
  resume { ptr, i32 } %240

241:                                              ; preds = %154
  %242 = landingpad { ptr, i32 }
          catch ptr null
  %243 = extractvalue { ptr, i32 } %242, 0
  call void @__clang_call_terminate(ptr %243) #11
  unreachable

244:                                              ; preds = %191, %162, %142, %72
  unreachable
}

; 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)) #2 align 2

; 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 #2 align 2

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

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

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

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

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

declare void @_ZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpec(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK10PackageRef8has_pathEv(ptr noundef nonnull align 8 dereferenceable(184)) #5 align 2

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

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

declare void @_ZN10Repository9from_pathEN7helpers4pathE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7helpers4pathC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #9 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)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6formatIJA25_cN7helpers4pathEA5_cPKcEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(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)) #5

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

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

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedI15PackageManifestJS0_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES3_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(594)) #9

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #0

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI15PackageManifestEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 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 #2 align 2

attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress 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 #6 = { 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 #7 = { nounwind memory(none) }
attributes #8 = { 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 #9 = { inlinehint 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 #10 = { noreturn }
attributes #11 = { 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, !6, i64 0}
!10 = !{!"_ZTSZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE3$_0", !6, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE3$_1", !6, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE3$_2", !6, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!"branch_weights", i32 1, i32 1048575}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.helpers::path" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.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.44", %"class.std::vector.49", %class.BuildScriptOutput, %"class.std::map.64", %"class.std::vector.12", %"class.std::vector.12", i8, i8, [6 x i8] }>
%struct.PackageVersion = type { i32, i32, i32, i8, %"class.std::__cxx11::basic_string" }
%"struct.PackageManifest::Dependencies" = type { %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.44" = type { %"class.std::_Rb_tree.45" }
%"class.std::_Rb_tree.45" = 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.49" = type { %"struct.std::_Vector_base.50" }
%"struct.std::_Vector_base.50" = 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.12", %"class.std::vector.54", %"class.std::vector.54", %"class.std::vector.12", %"class.std::vector.12", %"class.std::vector.59", %"class.std::vector.59" }
%"class.std::vector.54" = type { %"struct.std::_Vector_base.55" }
%"struct.std::_Vector_base.55" = 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.59" = type { %"struct.std::_Vector_base.60" }
%"struct.std::_Vector_base.60" = 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.64" = type { %"class.std::_Rb_tree.65" }
%"class.std::_Rb_tree.65" = 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.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = 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::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.177 = type { ptr }
%class.anon.178 = type { ptr }
%class.anon.179 = type { ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.11 }
%union.anon.11 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@__dso_handle = external hidden global i8
@_ZTISt13runtime_error = external constant ptr
@_ZTISt9exception = external constant ptr
@.str.107 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [10 x i8], align 1
@_ZTIPKc = external constant ptr
@.str.150 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [26 x i8], align 1
@_ZZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc = external hidden global %"class.std::shared_ptr", align 8
@_ZGVZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc = external hidden global i64, align 8
@.str.156 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

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

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

; 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 #3

declare void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef) local_unnamed_addr #4

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7helpers4pathdvEPKc(ptr dead_on_unwind noalias writable sret(%"class.helpers::path") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15PackageManifest14magic_manifestEPKc(ptr dead_on_unwind noalias writable sret(%class.PackageManifest) align 8, ptr noundef) local_unnamed_addr #5 align 2

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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 #8

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(184) %1, ptr noundef nonnull align 8 dereferenceable(104) %2, ptr nocapture noundef nonnull readnone align 8 dereferenceable(32) %3) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::function", align 8
  %6 = alloca %class.anon.177, align 8
  %7 = alloca %"class.std::function", align 8
  %8 = alloca %class.anon.178, align 8
  %9 = alloca %"class.std::function", align 8
  %10 = alloca %class.anon.179, align 8
  %11 = alloca %"class.helpers::path", align 8
  %12 = alloca %"class.helpers::path", align 8
  %13 = alloca %"class.std::basic_ifstream", align 8
  %14 = alloca %"class.std::shared_ptr", align 8
  %15 = alloca %"class.helpers::path", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %class.PackageManifest, align 8
  %21 = getelementptr inbounds i8, ptr %1, i64 168
  %22 = tail call noundef zeroext i1 @_ZNKSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #10
  br i1 %22, label %23, label %24

23:                                               ; preds = %4
  tail call void @_ZNSt10shared_ptrI15PackageManifestEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %21) #10
  br label %149

24:                                               ; preds = %4
  %25 = tail call noundef zeroext i1 @_ZNK10PackageRef7has_gitEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  br i1 %25, label %26, label %33

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10
  store ptr %1, ptr %6, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %5)
          to label %27 unwind label %29

27:                                               ; preds = %26
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  %28 = call ptr @__cxa_allocate_exception(i64 8) #10
  store ptr @.str.149, ptr %28, align 16, !tbaa !10
  call void @__cxa_throw(ptr nonnull %28, ptr nonnull @_ZTIPKc, ptr null) #11
  unreachable

29:                                               ; preds = %26
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  %32 = extractvalue { ptr, i32 } %30, 1
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  br label %150

33:                                               ; preds = %24
  %34 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10PackageRef11get_versionEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  %35 = tail call noundef zeroext i1 @_ZNKSt6vectorIN18PackageVersionSpec5BoundESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #10
  br i1 %35, label %45, label %36

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10
  store ptr %1, ptr %8, align 8, !tbaa !11
  call void @"_ZNSt8functionIFvRSoEEC2IZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %7)
          to label %37 unwind label %41

37:                                               ; preds = %36
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  %38 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK10PackageRef4nameB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(184) %1)
  %39 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10PackageRef11get_versionEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  call void @_ZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpec(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(104) %2, ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(24) %39)
  %40 = call noundef zeroext i1 @_ZNKSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #10
  br i1 %40, label %149, label %.thread

41:                                               ; preds = %36
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  %44 = extractvalue { ptr, i32 } %42, 1
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  br label %150

.thread:                                          ; preds = %37
  call void @_ZNSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #10
  br label %45

45:                                               ; preds = %.thread, %33
  %46 = call noundef zeroext i1 @_ZNKSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #10
  br i1 %46, label %110, label %47

47:                                               ; preds = %45
  %48 = call noundef zeroext i1 @_ZNK10PackageRef8has_pathEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  br i1 %48, label %49, label %110

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  store ptr %1, ptr %10, align 8, !tbaa !13
  call void @"_ZNSt8functionIFvRSoEEC2IZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %9)
          to label %50 unwind label %64

50:                                               ; preds = %49
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #10
  %51 = getelementptr inbounds i8, ptr %1, i64 96
  call void @_ZN7helpers4pathC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %51)
  invoke void @_ZNK7helpers4pathdvEPKc(ptr dead_on_unwind nonnull writable sret(%"class.helpers::path") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.150)
          to label %52 unwind label %68

52:                                               ; preds = %50
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #10
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %13) #10
  %53 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7helpers4path3strB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %11)
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %13, ptr noundef nonnull align 8 dereferenceable(32) %53, i32 noundef 8)
          to label %54 unwind label %72

54:                                               ; preds = %52
  %55 = load ptr, ptr %13, align 8, !tbaa !15
  %56 = getelementptr i8, ptr %55, i64 -24
  %57 = load i64, ptr %56, align 8
  %58 = getelementptr inbounds i8, ptr %13, i64 %57
  %59 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %58)
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %13) #10
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %13) #10
  br i1 %59, label %60, label %98

60:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #10
  invoke void @_ZN7helpers4pathC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %61 unwind label %76

61:                                               ; preds = %60
  invoke void @_ZN10Repository9from_pathEN7helpers4pathE(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %14, ptr noundef nonnull align 8 dereferenceable(104) %2, ptr noundef nonnull %15)
          to label %62 unwind label %78

62:                                               ; preds = %61
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI15PackageManifestEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %14) #10
  call void @_ZNSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #10
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #10
  br label %110

64:                                               ; preds = %49
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  %67 = extractvalue { ptr, i32 } %65, 1
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  br label %150

68:                                               ; preds = %50
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  %71 = extractvalue { ptr, i32 } %69, 1
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #10
  br label %109

72:                                               ; preds = %52
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  %75 = extractvalue { ptr, i32 } %73, 1
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %13) #10
  br label %108

76:                                               ; preds = %60
  %77 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %80

78:                                               ; preds = %61
  %79 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  br label %80

80:                                               ; preds = %78, %76
  %.pn29 = phi { ptr, i32 } [ %79, %78 ], [ %77, %76 ]
  %.016 = extractvalue { ptr, i32 } %.pn29, 0
  %.020 = extractvalue { ptr, i32 } %.pn29, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  %81 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #10
  %82 = icmp eq i32 %.020, %81
  br i1 %82, label %83, label %108

83:                                               ; preds = %80
  %84 = call ptr @__cxa_begin_catch(ptr %.016) #10
  %85 = call ptr @__cxa_allocate_exception(i64 16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #10
  %86 = load ptr, ptr %84, align 8, !tbaa !15
  %87 = getelementptr inbounds i8, ptr %86, i64 16
  %88 = load ptr, ptr %87, align 8
  %89 = call noundef ptr %88(ptr noundef nonnull align 8 dereferenceable(8) %84) #10
  store ptr %89, ptr %17, align 8, !tbaa !10
  invoke void @_Z6formatIJA25_cN7helpers4pathEA5_cPKcEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 1 dereferenceable(25) @.str.151, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 1 dereferenceable(5) @.str.107, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %90 unwind label %.thread38

90:                                               ; preds = %83
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %85, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %92 unwind label %.thread47

.thread47:                                        ; preds = %90
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #10
  br label %96

92:                                               ; preds = %90
  invoke void @__cxa_throw(ptr nonnull %85, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #11
          to label %156 unwind label %94

.thread38:                                        ; preds = %83
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #10
  br label %96

94:                                               ; preds = %92
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #10
  br label %97

96:                                               ; preds = %.thread47, %.thread38
  %.pn74 = phi { ptr, i32 } [ %93, %.thread38 ], [ %91, %.thread47 ]
  call void @__cxa_free_exception(ptr %85) #10
  br label %97

97:                                               ; preds = %94, %96
  %.pn74.pn = phi { ptr, i32 } [ %.pn74, %96 ], [ %95, %94 ]
  %.11743 = extractvalue { ptr, i32 } %.pn74.pn, 0
  %.12145 = extractvalue { ptr, i32 } %.pn74.pn, 1
  invoke void @__cxa_end_catch()
          to label %108 unwind label %153

98:                                               ; preds = %54
  %99 = call ptr @__cxa_allocate_exception(i64 16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #10
  %100 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK10PackageRef4nameB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(184) %1)
  invoke void @_Z6formatIJA22_cN7helpers4pathEA6_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES9_DpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 1 dereferenceable(22) @.str.152, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 1 dereferenceable(6) @.str.153, ptr noundef nonnull align 8 dereferenceable(32) %100)
          to label %101 unwind label %.thread51

101:                                              ; preds = %98
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %99, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %103 unwind label %.thread58

.thread58:                                        ; preds = %101
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #10
  br label %107

103:                                              ; preds = %101
  invoke void @__cxa_throw(ptr nonnull %99, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #11
          to label %156 unwind label %105

.thread51:                                        ; preds = %98
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #10
  br label %107

105:                                              ; preds = %103
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  %.2 = extractvalue { ptr, i32 } %106, 0
  %.222 = extractvalue { ptr, i32 } %106, 1
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #10
  br label %108

107:                                              ; preds = %.thread58, %.thread51
  %.pn = phi { ptr, i32 } [ %104, %.thread51 ], [ %102, %.thread58 ]
  %.256 = extractvalue { ptr, i32 } %.pn, 0
  %.22257 = extractvalue { ptr, i32 } %.pn, 1
  call void @__cxa_free_exception(ptr %99) #10
  br label %108

108:                                              ; preds = %105, %97, %107, %80, %72
  %.323 = phi i32 [ %.020, %80 ], [ %.22257, %107 ], [ %.222, %105 ], [ %75, %72 ], [ %.12145, %97 ]
  %.3 = phi ptr [ %.016, %80 ], [ %.256, %107 ], [ %.2, %105 ], [ %74, %72 ], [ %.11743, %97 ]
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  br label %109

109:                                              ; preds = %108, %68
  %.424 = phi i32 [ %.323, %108 ], [ %71, %68 ]
  %.4 = phi ptr [ %.3, %108 ], [ %70, %68 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #10
  br label %150

110:                                              ; preds = %62, %47, %45
  %111 = call noundef zeroext i1 @_ZNK10PackageRef7has_gitEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  br i1 %111, label %127, label %112

112:                                              ; preds = %110
  %113 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10PackageRef11get_versionEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  %114 = call noundef zeroext i1 @_ZNKSt6vectorIN18PackageVersionSpec5BoundESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #10
  br i1 %114, label %115, label %127

115:                                              ; preds = %112
  %116 = call noundef zeroext i1 @_ZNK10PackageRef8has_pathEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  br i1 %116, label %127, label %117

117:                                              ; preds = %115
  %118 = call ptr @__cxa_allocate_exception(i64 16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #10
  %119 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK10PackageRef4nameB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(184) %1)
  invoke void @_Z6formatIJA15_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES6_DpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 1 dereferenceable(15) @.str.154, ptr noundef nonnull align 8 dereferenceable(32) %119)
          to label %120 unwind label %.thread62

120:                                              ; preds = %117
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %118, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %122 unwind label %.thread69

.thread69:                                        ; preds = %120
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #10
  br label %126

122:                                              ; preds = %120
  invoke void @__cxa_throw(ptr nonnull %118, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #11
          to label %156 unwind label %124

.thread62:                                        ; preds = %117
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #10
  br label %126

124:                                              ; preds = %122
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  %.5 = extractvalue { ptr, i32 } %125, 0
  %.525 = extractvalue { ptr, i32 } %125, 1
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #10
  br label %150

126:                                              ; preds = %.thread69, %.thread62
  %.pn77 = phi { ptr, i32 } [ %123, %.thread62 ], [ %121, %.thread69 ]
  %.567 = extractvalue { ptr, i32 } %.pn77, 0
  %.52568 = extractvalue { ptr, i32 } %.pn77, 1
  call void @__cxa_free_exception(ptr %118) #10
  br label %150

127:                                              ; preds = %115, %112, %110
  %128 = call noundef zeroext i1 @_ZNKSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #10
  br i1 %128, label %148, label %129

129:                                              ; preds = %127
  %130 = getelementptr inbounds i8, ptr %1, i64 32
  %131 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %130, ptr noundef nonnull @.str.155)
  br i1 %131, label %132, label %148

132:                                              ; preds = %129
  %133 = load atomic i8, ptr @_ZGVZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc acquire, align 8
  %134 = icmp eq i8 %133, 0
  br i1 %134, label %135, label %141, !prof !17

135:                                              ; preds = %132
  %136 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc) #10
  %.not = icmp eq i32 %136, 0
  br i1 %.not, label %141, label %137

137:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 600, ptr nonnull %20) #10
  invoke void @_ZN15PackageManifest14magic_manifestEPKc(ptr dead_on_unwind nonnull writable sret(%class.PackageManifest) align 8 %20, ptr noundef nonnull @.str.156)
          to label %138 unwind label %143

138:                                              ; preds = %137
  invoke void @_ZSt11make_sharedI15PackageManifestJS0_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES3_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 @_ZZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc, ptr noundef nonnull align 8 dereferenceable(594) %20)
          to label %139 unwind label %145

139:                                              ; preds = %138
  call void @_ZN15PackageManifestD2Ev(ptr noundef nonnull align 8 dereferenceable(594) %20) #10
  call void @llvm.lifetime.end.p0(i64 600, ptr nonnull %20) #10
  %140 = call i32 @__cxa_atexit(ptr nonnull @_ZNSt12__shared_ptrI15PackageManifestLN9__gnu_cxx12_Lock_policyE2EED2Ev, ptr nonnull @_ZZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc, ptr nonnull @__dso_handle) #10
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc) #10
  br label %141

141:                                              ; preds = %139, %135, %132
  %142 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI15PackageManifestEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) @_ZZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc) #10
  br label %148

143:                                              ; preds = %137
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %147

145:                                              ; preds = %138
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN15PackageManifestD2Ev(ptr noundef nonnull align 8 dereferenceable(594) %20) #10
  br label %147

147:                                              ; preds = %145, %143
  %.pn35 = phi { ptr, i32 } [ %146, %145 ], [ %144, %143 ]
  %.6 = extractvalue { ptr, i32 } %.pn35, 0
  %.626 = extractvalue { ptr, i32 } %.pn35, 1
  call void @llvm.lifetime.end.p0(i64 600, ptr nonnull %20) #10
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE16s_manifest_alloc) #10
  br label %150

148:                                              ; preds = %129, %141, %127
  call void @_ZNSt10shared_ptrI15PackageManifestEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %21) #10
  br label %149

149:                                              ; preds = %37, %148, %23
  ret void

150:                                              ; preds = %124, %126, %147, %109, %64, %41, %29
  %.727 = phi i32 [ %32, %29 ], [ %.626, %147 ], [ %.52568, %126 ], [ %.525, %124 ], [ %.424, %109 ], [ %67, %64 ], [ %44, %41 ]
  %.7 = phi ptr [ %31, %29 ], [ %.6, %147 ], [ %.567, %126 ], [ %.5, %124 ], [ %.4, %109 ], [ %66, %64 ], [ %43, %41 ]
  %151 = insertvalue { ptr, i32 } poison, ptr %.7, 0
  %152 = insertvalue { ptr, i32 } %151, i32 %.727, 1
  resume { ptr, i32 } %152

153:                                              ; preds = %97
  %154 = landingpad { ptr, i32 }
          catch ptr null
  %155 = extractvalue { ptr, i32 } %154, 0
  call void @__clang_call_terminate(ptr %155) #12
  unreachable

156:                                              ; preds = %122, %103, %92
  unreachable
}

; 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 #2 align 2

; 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 #2 align 2

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

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

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

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

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

declare void @_ZN10Repository4findERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK18PackageVersionSpec(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK10PackageRef8has_pathEv(ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #5 align 2

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

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

declare void @_ZN10Repository9from_pathEN7helpers4pathE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7helpers4pathC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #9 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 #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6formatIJA25_cN7helpers4pathEA5_cPKcEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(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 #5

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

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

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedI15PackageManifestJS0_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES3_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(594)) local_unnamed_addr #9

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI15PackageManifestEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 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 #2 align 2

attributes #0 = { nofree nounwind }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress 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 #6 = { 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 #7 = { nofree nosync nounwind memory(none) }
attributes #8 = { 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 #9 = { inlinehint 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 #10 = { nounwind }
attributes #11 = { noreturn }
attributes #12 = { 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, !7, i64 0}
!6 = !{!"_ZTSZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE3$_0", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"_ZTSZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE3$_1", !7, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTSZN10PackageRef17load_manifest_rawER10RepositoryRKN7helpers4pathEE3$_2", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !9, i64 0}
!17 = !{!"branch_weights", i32 1, i32 1048575}


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