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

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

%struct.RunState = type <{ ptr, ptr, i8, [7 x i8] }>
%class.JobList = type { %"class.std::vector.51", %"class.std::deque", %"class.std::vector.56", %"class.std::unordered_set" }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::vector.56" = type { %"struct.std::_Vector_base.57" }
%"struct.std::_Vector_base.57" = type { %"struct.std::_Vector_base<JobList::RunningJob, std::allocator<JobList::RunningJob>>::_Vector_impl" }
%"struct.std::_Vector_base<JobList::RunningJob, std::allocator<JobList::RunningJob>>::_Vector_impl" = type { %"struct.std::_Vector_base<JobList::RunningJob, std::allocator<JobList::RunningJob>>::_Vector_impl_data" }
%"struct.std::_Vector_base<JobList::RunningJob, std::allocator<JobList::RunningJob>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.ConvertState = type { ptr, %"class.std::unordered_map", %"class.std::unordered_map.79" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable.66" }
%"class.std::_Hashtable.66" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.79" = type { %"class.std::_Hashtable.80" }
%"class.std::_Hashtable.80" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.__gnu_cxx::__normal_iterator.93" = type { ptr }
%"struct.std::pair.94" = type { %"class.std::__cxx11::basic_string", %class.Timestamp }
%"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.Timestamp = type { i64 }
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.97" }
%"struct.std::_Head_base.97" = type { ptr }
%"class.std::function.103" = 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.106 = type { ptr }
%"class.helpers::path" = type { %"class.std::__cxx11::basic_string" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%class.anon.107 = type { ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::unique_ptr.108" = type { %"struct.std::__uniq_ptr_data.109" }
%"struct.std::__uniq_ptr_data.109" = type { %"class.std::__uniq_ptr_impl.110" }
%"class.std::__uniq_ptr_impl.110" = type { %"class.std::tuple.111" }
%"class.std::tuple.111" = type { %"struct.std::_Tuple_impl.112" }
%"struct.std::_Tuple_impl.112" = type { %"struct.std::_Head_base.115" }
%"struct.std::_Head_base.115" = type { ptr }
%class.anon.116 = type { ptr, ptr, ptr, ptr }
%"class.std::function.117" = type { %"class.std::_Function_base", ptr }
%class.anon.120 = type { ptr }
%class.anon.121 = type { ptr }
%struct.BuildOptions = type <{ %"class.helpers::path", %"class.helpers::path", %"class.std::vector.36", i8, i8, [6 x i8], ptr, i32, [4 x i8] }>
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<helpers::path, std::allocator<helpers::path>>::_Vector_impl" }
%"struct.std::_Vector_base<helpers::path, std::allocator<helpers::path>>::_Vector_impl" = type { %"struct.std::_Vector_base<helpers::path, std::allocator<helpers::path>>::_Vector_impl_data" }
%"struct.std::_Vector_base<helpers::path, std::allocator<helpers::path>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.BuildList = type { ptr, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<BuildList::Entry, std::allocator<BuildList::Entry>>::_Vector_impl" }
%"struct.std::_Vector_base<BuildList::Entry, std::allocator<BuildList::Entry>>::_Vector_impl" = type { %"struct.std::_Vector_base<BuildList::Entry, std::allocator<BuildList::Entry>>::_Vector_impl_data" }
%"struct.std::_Vector_base<BuildList::Entry, std::allocator<BuildList::Entry>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.BuildList::Entry" = type { ptr, i8, %"class.std::vector.46" }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Job_BuildTarget = type { %class.Job_Build, ptr, i8, %"class.helpers::path" }
%class.Job_Build = type { %class.Job, ptr, ptr, %"class.std::__cxx11::basic_string", i8, %"class.std::vector.16" }
%class.Job = type { ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = 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 }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9BuildList5buildE12BuildOptionsjb(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, i32 noundef %2, i1 noundef zeroext %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca %struct.RunState, align 8
  %11 = alloca %class.JobList, align 8
  %12 = alloca %struct.ConvertState, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"struct.std::pair.94", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %class.Timestamp, align 8
  %24 = alloca %"struct.std::pair", align 8
  %25 = alloca %"class.std::unique_ptr", align 8
  %26 = alloca %"class.std::function.103", align 8
  %27 = alloca %class.anon.106, align 8
  %28 = alloca %class.Timestamp, align 8
  %29 = alloca %"class.helpers::path", align 8
  %30 = alloca i8, align 1
  %31 = alloca %"class.helpers::path", align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::function", align 8
  %34 = alloca %class.anon.107, align 8
  %35 = alloca %"class.std::unique_ptr.108", align 8
  %36 = alloca %class.Timestamp, align 8
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.helpers::path", align 8
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca %class.anon.116, align 8
  %41 = alloca %"class.std::function.117", align 8
  %42 = alloca %class.anon.120, align 8
  %43 = alloca %"class.std::function.117", align 8
  %44 = alloca %class.anon.121, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %45 = zext i1 %3 to i8
  store i8 %45, ptr %8, align 1, !tbaa !11
  %46 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  %47 = getelementptr inbounds %struct.BuildOptions, ptr %1, i32 0, i32 6
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %55

50:                                               ; preds = %4
  %51 = getelementptr inbounds %struct.BuildOptions, ptr %1, i32 0, i32 3
  %52 = load i8, ptr %51, align 8, !tbaa !24, !range !25, !noundef !26
  %53 = trunc i8 %52 to i1
  %54 = xor i1 %53, true
  br label %55

55:                                               ; preds = %50, %4
  %56 = phi i1 [ false, %4 ], [ %54, %50 ]
  %57 = zext i1 %56 to i8
  store i8 %57, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #7
  %58 = load i8, ptr %9, align 1, !tbaa !11, !range !25, !noundef !26
  %59 = trunc i8 %58 to i1
  call void @_ZN8RunStateC2ER12BuildOptionsb(ptr noundef nonnull align 8 dereferenceable(17) %10, ptr noundef nonnull align 8 dereferenceable(108) %1, i1 noundef zeroext %59)
  call void @llvm.lifetime.start.p0(i64 184, ptr %11) #7
  call void @_ZN7JobListC2Ev(ptr noundef nonnull align 8 dereferenceable(184) %11)
  call void @llvm.lifetime.start.p0(i64 120, ptr %12) #7
  invoke void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertStateC2ER7JobList(ptr noundef nonnull align 8 dereferenceable(120) %12, ptr noundef nonnull align 8 dereferenceable(184) %11)
          to label %60 unwind label %71

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %61 = getelementptr inbounds %class.BuildList, ptr %46, i32 0, i32 1
  store ptr %61, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %62 = load ptr, ptr %15, align 8, !tbaa !5
  %63 = call ptr @_ZNSt6vectorIN9BuildList5EntryESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #7
  %64 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.93", ptr %16, i32 0, i32 0
  store ptr %63, ptr %64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = call ptr @_ZNSt6vectorIN9BuildList5EntryESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #7
  %67 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.93", ptr %17, i32 0, i32 0
  store ptr %66, ptr %67, align 8
  br label %68

68:                                               ; preds = %224, %60
  %69 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN9BuildList5EntryESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br i1 %69, label %75, label %70

70:                                               ; preds = %68
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %246

71:                                               ; preds = %55
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %13, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %14, align 4
  br label %315

75:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %76 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN9BuildList5EntryESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  store ptr %76, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %77 = load ptr, ptr %19, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.BuildList::Entry", ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !27
  store ptr %79, ptr %20, align 8, !tbaa !5
  %80 = load ptr, ptr %20, align 8, !tbaa !5
  %81 = invoke noundef zeroext i1 @_ZNK15PackageManifest12is_std_magicEv(ptr noundef nonnull align 8 dereferenceable(594) %80)
          to label %82 unwind label %101

82:                                               ; preds = %75
  br i1 %81, label %83, label %119

83:                                               ; preds = %82
  %84 = getelementptr inbounds %struct.ConvertState, ptr %12, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #7
  %85 = load ptr, ptr %20, align 8, !tbaa !5
  %86 = load ptr, ptr %19, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.BuildList::Entry", ptr %86, i32 0, i32 1
  %88 = load i8, ptr %87, align 8, !tbaa !33, !range !25, !noundef !26
  %89 = trunc i8 %88 to i1
  invoke void @_ZNK8RunState7get_keyB5cxx11ERK15PackageManifestbbPK13PackageTarget(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull align 8 dereferenceable(17) %10, ptr noundef nonnull align 8 dereferenceable(594) %85, i1 noundef zeroext false, i1 noundef zeroext %89, ptr noundef null)
          to label %90 unwind label %105

90:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %91 = invoke i64 @_ZN9Timestamp13infinite_pastEv()
          to label %92 unwind label %109

92:                                               ; preds = %90
  %93 = getelementptr inbounds %class.Timestamp, ptr %23, i32 0, i32 0
  store i64 %91, ptr %93, align 8
  invoke void @_ZSt9make_pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9TimestampESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS8_INS9_IT0_E4typeEE6__typeEEOSA_OSF_(ptr dead_on_unwind writable sret(%"struct.std::pair.94") align 8 %21, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %94 unwind label %109

94:                                               ; preds = %92
  %95 = invoke { ptr, i8 } @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9TimestampSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S6_EEE6insertISB_IS5_S6_EEENSt9enable_ifIXsr16is_constructibleISD_OT_EE5valueESB_INSt8__detail14_Node_iteratorISD_Lb0ELb1EEEbEE4typeESK_(ptr noundef nonnull align 8 dereferenceable(56) %84, ptr noundef nonnull align 8 dereferenceable(40) %21)
          to label %96 unwind label %113

96:                                               ; preds = %94
  %97 = getelementptr inbounds { ptr, i8 }, ptr %24, i32 0, i32 0
  %98 = extractvalue { ptr, i8 } %95, 0
  store ptr %98, ptr %97, align 8
  %99 = getelementptr inbounds { ptr, i8 }, ptr %24, i32 0, i32 1
  %100 = extractvalue { ptr, i8 } %95, 1
  store i8 %100, ptr %99, align 8
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9TimestampED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #7
  store i32 3, ptr %18, align 4
  br label %218

101:                                              ; preds = %75
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %13, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %14, align 4
  br label %245

105:                                              ; preds = %83
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %13, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %14, align 4
  br label %118

109:                                              ; preds = %92, %90
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %13, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %14, align 4
  br label %117

113:                                              ; preds = %94
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %13, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %14, align 4
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9TimestampED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #7
  br label %117

117:                                              ; preds = %113, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  br label %118

118:                                              ; preds = %117, %105
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #7
  br label %245

119:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %120 = load ptr, ptr %20, align 8, !tbaa !5
  %121 = load ptr, ptr %20, align 8, !tbaa !5
  %122 = invoke noundef nonnull align 8 dereferenceable(136) ptr @_ZNK15PackageManifest11get_libraryEv(ptr noundef nonnull align 8 dereferenceable(594) %121)
          to label %123 unwind label %163

123:                                              ; preds = %119
  %124 = load ptr, ptr %19, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.BuildList::Entry", ptr %124, i32 0, i32 1
  invoke void @_ZSt11make_uniqueI15Job_BuildTargetJR8RunStateRK15PackageManifestRK13PackageTargetRKbEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %25, ptr noundef nonnull align 8 dereferenceable(17) %10, ptr noundef nonnull align 8 dereferenceable(594) %120, ptr noundef nonnull align 8 dereferenceable(136) %122, ptr noundef nonnull align 1 dereferenceable(1) %125)
          to label %126 unwind label %163

126:                                              ; preds = %123
  br label %127

127:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %128 = getelementptr inbounds %class.anon.106, ptr %27, i32 0, i32 0
  store ptr %25, ptr %128, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN9BuildList5buildE12BuildOptionsjbE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %26)
          to label %129 unwind label %167

129:                                              ; preds = %127
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %130

130:                                              ; preds = %129
  br label %131

131:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #7
  %132 = call noundef ptr @_ZNKSt10unique_ptrI15Job_BuildTargetSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  %133 = load ptr, ptr %132, align 8, !tbaa !34
  %134 = getelementptr inbounds ptr, ptr %133, i64 9
  %135 = load ptr, ptr %134, align 8
  invoke void %135(ptr dead_on_unwind writable sret(%"class.helpers::path") align 8 %29, ptr noundef nonnull align 8 dereferenceable(136) %132)
          to label %136 unwind label %171

136:                                              ; preds = %131
  %137 = invoke i64 @_ZN9Timestamp8for_fileERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %138 unwind label %175

138:                                              ; preds = %136
  %139 = getelementptr inbounds %class.Timestamp, ptr %28, i32 0, i32 0
  store i64 %137, ptr %139, align 8
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #7
  %140 = call noundef ptr @_ZNKSt10unique_ptrI15Job_BuildTargetSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  %141 = load ptr, ptr %140, align 8, !tbaa !34
  %142 = getelementptr inbounds ptr, ptr %141, i64 9
  %143 = load ptr, ptr %142, align 8
  invoke void %143(ptr dead_on_unwind writable sret(%"class.helpers::path") align 8 %31, ptr noundef nonnull align 8 dereferenceable(136) %140)
          to label %144 unwind label %180

144:                                              ; preds = %138
  %145 = invoke noundef zeroext i1 @_ZNK8RunState21outfile_needs_rebuildERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(17) %10, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %146 unwind label %184

146:                                              ; preds = %144
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #7
  %147 = zext i1 %145 to i8
  store i8 %147, ptr %30, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #7
  %148 = load ptr, ptr %20, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.BuildOptions, ptr %1, i32 0, i32 1
  %150 = call noundef ptr @_ZNKSt10unique_ptrI15Job_BuildTargetSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  %151 = getelementptr inbounds %class.Job_BuildTarget, ptr %150, i32 0, i32 3
  %152 = load ptr, ptr %19, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.BuildList::Entry", ptr %152, i32 0, i32 1
  %154 = load i8, ptr %153, align 8, !tbaa !33, !range !25, !noundef !26
  %155 = trunc i8 %154 to i1
  invoke void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertState19handle_build_scriptB5cxx11ER8RunStateRK15PackageManifestRKN7helpers4pathERS8_b(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %32, ptr noundef nonnull align 8 dereferenceable(120) %12, ptr noundef nonnull align 8 dereferenceable(17) %10, ptr noundef nonnull align 8 dereferenceable(594) %148, ptr noundef nonnull align 8 dereferenceable(32) %149, ptr noundef nonnull align 8 dereferenceable(32) %151, i1 noundef zeroext %155)
          to label %156 unwind label %189

156:                                              ; preds = %146
  %157 = invoke noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef @.str)
          to label %158 unwind label %193

158:                                              ; preds = %156
  br i1 %157, label %159, label %197

159:                                              ; preds = %158
  %160 = call noundef ptr @_ZNKSt10unique_ptrI15Job_BuildTargetSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  %161 = getelementptr inbounds %class.Job_Build, ptr %160, i32 0, i32 5
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %161, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %162 unwind label %193

162:                                              ; preds = %159
  store i8 1, ptr %30, align 1, !tbaa !11
  br label %197

163:                                              ; preds = %123, %119
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %13, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %14, align 4
  br label %244

167:                                              ; preds = %127
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %13, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %14, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %243

171:                                              ; preds = %131
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %13, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %14, align 4
  br label %179

175:                                              ; preds = %136
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %13, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %14, align 4
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  br label %179

179:                                              ; preds = %175, %171
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  br label %242

180:                                              ; preds = %138
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %13, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %14, align 4
  br label %188

184:                                              ; preds = %144
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %13, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %14, align 4
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #7
  br label %188

188:                                              ; preds = %184, %180
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #7
  br label %241

189:                                              ; preds = %146
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %13, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %14, align 4
  br label %240

193:                                              ; preds = %159, %156
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %13, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %14, align 4
  br label %239

197:                                              ; preds = %162, %158
  %198 = load ptr, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %34) #7
  %199 = getelementptr inbounds %class.anon.107, ptr %34, i32 0, i32 0
  store ptr %10, ptr %199, align 8, !tbaa !5
  %200 = getelementptr inbounds %class.anon.107, ptr %34, i32 0, i32 1
  %201 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %201, ptr %200, align 8, !tbaa !5
  %202 = getelementptr inbounds %class.anon.107, ptr %34, i32 0, i32 2
  store ptr %30, ptr %202, align 8, !tbaa !5
  %203 = getelementptr inbounds %class.anon.107, ptr %34, i32 0, i32 3
  store ptr %12, ptr %203, align 8, !tbaa !5
  %204 = getelementptr inbounds %class.anon.107, ptr %34, i32 0, i32 4
  store ptr %25, ptr %204, align 8, !tbaa !5
  %205 = getelementptr inbounds %class.anon.107, ptr %34, i32 0, i32 5
  store ptr %28, ptr %205, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvRK10PackageRefEEC2IZN9BuildList5buildE12BuildOptionsjbE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(48) %34)
          to label %206 unwind label %226

206:                                              ; preds = %197
  invoke void @_ZNK15PackageManifest22iter_main_dependenciesESt8functionIFvRK10PackageRefEE(ptr noundef nonnull align 8 dereferenceable(594) %198, ptr noundef %33)
          to label %207 unwind label %230

207:                                              ; preds = %206
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %34) #7
  %208 = load i8, ptr %30, align 1, !tbaa !11, !range !25, !noundef !26
  %209 = trunc i8 %208 to i1
  %210 = call noundef ptr @_ZNKSt10unique_ptrI15Job_BuildTargetSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  %211 = getelementptr inbounds %class.Job_Build, ptr %210, i32 0, i32 4
  %212 = zext i1 %209 to i8
  store i8 %212, ptr %211, align 8, !tbaa !36
  call void @_ZNSt10unique_ptrI3JobSt14default_deleteIS0_EEC2I15Job_BuildTargetS1_IS5_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 8 %28, i64 8, i1 false), !tbaa.struct !43
  %213 = load i8, ptr %30, align 1, !tbaa !11, !range !25, !noundef !26
  %214 = trunc i8 %213 to i1
  %215 = getelementptr inbounds %class.Timestamp, ptr %36, i32 0, i32 0
  %216 = load i64, ptr %215, align 8
  invoke void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertState7add_jobESt10unique_ptrI3JobSt14default_deleteIS3_EE9Timestampb(ptr noundef nonnull align 8 dereferenceable(120) %12, ptr noundef %35, i64 %216, i1 noundef zeroext %214)
          to label %217 unwind label %235

217:                                              ; preds = %207
  call void @_ZNSt10unique_ptrI3JobSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @_ZNSt10unique_ptrI15Job_BuildTargetSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  store i32 0, ptr %18, align 4
  br label %218

218:                                              ; preds = %217, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  %219 = load i32, ptr %18, align 4
  switch i32 %219, label %221 [
    i32 0, label %220
  ]

220:                                              ; preds = %218
  store i32 0, ptr %18, align 4
  br label %221

221:                                              ; preds = %220, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %222 = load i32, ptr %18, align 4
  switch i32 %222, label %321 [
    i32 0, label %223
    i32 3, label %224
  ]

223:                                              ; preds = %221
  br label %224

224:                                              ; preds = %223, %221
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN9BuildList5EntryESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br label %68

226:                                              ; preds = %197
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %13, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %14, align 4
  br label %234

230:                                              ; preds = %206
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %13, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %14, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #7
  br label %234

234:                                              ; preds = %230, %226
  call void @llvm.lifetime.end.p0(i64 48, ptr %34) #7
  br label %239

235:                                              ; preds = %207
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %13, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %14, align 4
  call void @_ZNSt10unique_ptrI3JobSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  br label %239

239:                                              ; preds = %235, %234, %193
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  br label %240

240:                                              ; preds = %239, %189
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #7
  br label %241

241:                                              ; preds = %240, %188
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #7
  br label %242

242:                                              ; preds = %241, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %243

243:                                              ; preds = %242, %167
  call void @_ZNSt10unique_ptrI15Job_BuildTargetSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  br label %244

244:                                              ; preds = %243, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %245

245:                                              ; preds = %244, %118, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %314

246:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #7
  invoke void @_ZN7helpers4pathC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %247 unwind label %261

247:                                              ; preds = %246
  %248 = getelementptr inbounds %class.BuildList, ptr %46, i32 0, i32 0
  %249 = load ptr, ptr %248, align 8, !tbaa !45
  %250 = invoke noundef zeroext i1 @_ZNK15PackageManifest11has_libraryEv(ptr noundef nonnull align 8 dereferenceable(594) %249)
          to label %251 unwind label %265

251:                                              ; preds = %247
  br i1 %250, label %273, label %252

252:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #7
  %253 = getelementptr inbounds %class.BuildList, ptr %46, i32 0, i32 0
  %254 = load ptr, ptr %253, align 8, !tbaa !45
  %255 = getelementptr inbounds %struct.BuildOptions, ptr %1, i32 0, i32 1
  %256 = load i8, ptr %9, align 1, !tbaa !11, !range !25, !noundef !26
  %257 = trunc i8 %256 to i1
  %258 = xor i1 %257, true
  invoke void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertState19handle_build_scriptB5cxx11ER8RunStateRK15PackageManifestRKN7helpers4pathERS8_b(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %39, ptr noundef nonnull align 8 dereferenceable(120) %12, ptr noundef nonnull align 8 dereferenceable(17) %10, ptr noundef nonnull align 8 dereferenceable(594) %254, ptr noundef nonnull align 8 dereferenceable(32) %255, ptr noundef nonnull align 8 dereferenceable(32) %38, i1 noundef zeroext %258)
          to label %259 unwind label %269

259:                                              ; preds = %252
  %260 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #7
  br label %273

261:                                              ; preds = %246
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %13, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %14, align 4
  br label %313

265:                                              ; preds = %247
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %13, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %14, align 4
  br label %312

269:                                              ; preds = %252
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %13, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #7
  br label %312

273:                                              ; preds = %259, %251
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #7
  %274 = getelementptr inbounds %class.anon.116, ptr %40, i32 0, i32 0
  store ptr %9, ptr %274, align 8, !tbaa !5
  %275 = getelementptr inbounds %class.anon.116, ptr %40, i32 0, i32 1
  store ptr %10, ptr %275, align 8, !tbaa !5
  %276 = getelementptr inbounds %class.anon.116, ptr %40, i32 0, i32 2
  store ptr %46, ptr %276, align 8, !tbaa !51
  %277 = getelementptr inbounds %class.anon.116, ptr %40, i32 0, i32 3
  store ptr %12, ptr %277, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.BuildOptions, ptr %1, i32 0, i32 7
  %279 = load i32, ptr %278, align 8, !tbaa !53
  switch i32 %279, label %300 [
    i32 0, label %280
    i32 1, label %290
  ]

280:                                              ; preds = %273
  %281 = getelementptr inbounds %class.BuildList, ptr %46, i32 0, i32 0
  %282 = load ptr, ptr %281, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %283 = getelementptr inbounds %class.anon.120, ptr %42, i32 0, i32 0
  store ptr %40, ptr %283, align 8, !tbaa !5
  call void @"_ZNSt8functionIFbRK13PackageTargetEEC2IZN9BuildList5buildE12BuildOptionsjbE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull align 8 dereferenceable(8) %42) #7
  %284 = invoke noundef zeroext i1 @_ZNK15PackageManifest16foreach_binariesESt8functionIFbRK13PackageTargetEE(ptr noundef nonnull align 8 dereferenceable(594) %282, ptr noundef %41)
          to label %285 unwind label %286

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

286:                                              ; preds = %280
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %13, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %14, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  br label %311

290:                                              ; preds = %273
  %291 = getelementptr inbounds %class.BuildList, ptr %46, i32 0, i32 0
  %292 = load ptr, ptr %291, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  %293 = getelementptr inbounds %class.anon.121, ptr %44, i32 0, i32 0
  store ptr %40, ptr %293, align 8, !tbaa !5
  call void @"_ZNSt8functionIFbRK13PackageTargetEEC2IZN9BuildList5buildE12BuildOptionsjbE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(8) %44) #7
  %294 = invoke noundef zeroext i1 @_ZNK15PackageManifest10foreach_tyEN13PackageTarget4TypeESt8functionIFbRKS0_EE(ptr noundef nonnull align 8 dereferenceable(594) %292, i32 noundef 2, ptr noundef %43)
          to label %295 unwind label %296

295:                                              ; preds = %290
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  br label %300

296:                                              ; preds = %290
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %13, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %14, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  br label %311

300:                                              ; preds = %295, %285, %273
  %301 = load i32, ptr %7, align 4, !tbaa !9
  %302 = zext i32 %301 to i64
  %303 = load i8, ptr %8, align 1, !tbaa !11, !range !25, !noundef !26
  %304 = trunc i8 %303 to i1
  %305 = invoke noundef zeroext i1 @_ZN7JobList7run_allEmb(ptr noundef nonnull align 8 dereferenceable(184) %11, i64 noundef %302, i1 noundef zeroext %304)
          to label %306 unwind label %307

306:                                              ; preds = %300
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #7
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  call void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertStateD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %12) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %12) #7
  call void @_ZN7JobListD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %11) #7
  call void @llvm.lifetime.end.p0(i64 184, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  ret i1 %305

307:                                              ; preds = %300
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %13, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %14, align 4
  br label %311

311:                                              ; preds = %307, %296, %286
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #7
  br label %312

312:                                              ; preds = %311, %269, %265
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  br label %313

313:                                              ; preds = %312, %261
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  br label %314

314:                                              ; preds = %313, %245
  call void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertStateD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %12) #7
  br label %315

315:                                              ; preds = %314, %71
  call void @llvm.lifetime.end.p0(i64 120, ptr %12) #7
  call void @_ZN7JobListD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %11) #7
  call void @llvm.lifetime.end.p0(i64 184, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  br label %316

316:                                              ; preds = %315
  %317 = load ptr, ptr %13, align 8
  %318 = load i32, ptr %14, align 4
  %319 = insertvalue { ptr, i32 } poison, ptr %317, 0
  %320 = insertvalue { ptr, i32 } %319, i32 %318, 1
  resume { ptr, i32 } %320

321:                                              ; preds = %221
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8RunStateC2ER12BuildOptionsb(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(108), i1 noundef zeroext) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertStateC2ER7JobList(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(184)) unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9TimestampSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S6_EEE6insertISB_IS5_S6_EEENSt9enable_ifIXsr16is_constructibleISD_OT_EE5valueESB_INSt8__detail14_Node_iteratorISD_Lb0ELb1EEEbEE4typeESK_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(40)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9TimestampESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS8_INS9_IT0_E4typeEE6__typeEEOSA_OSF_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.94") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8RunState7get_keyB5cxx11ERK15PackageManifestbbPK13PackageTarget(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(594), i1 noundef zeroext, i1 noundef zeroext, ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN9Timestamp13infinite_pastEv() #2 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueI15Job_BuildTargetJR8RunStateRK15PackageManifestRK13PackageTargetRKbEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(594), ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 1 dereferenceable(1)) #5

declare noundef nonnull align 8 dereferenceable(136) ptr @_ZNK15PackageManifest11get_libraryEv(ptr noundef nonnull align 8 dereferenceable(594)) #1

declare void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef) #1

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

declare i64 @_ZN9Timestamp8for_fileERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32)) #1

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertState19handle_build_scriptB5cxx11ER8RunStateRK15PackageManifestRKN7helpers4pathERS8_b(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(594), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertState7add_jobESt10unique_ptrI3JobSt14default_deleteIS3_EE9Timestampb(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, i64, i1 noundef zeroext) #2 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK15PackageManifest10foreach_tyEN13PackageTarget4TypeESt8functionIFbRKS0_EE(ptr noundef nonnull align 8 dereferenceable(594), i32 noundef, ptr noundef) #2 align 2

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

declare noundef zeroext i1 @_ZN7JobList7run_allEmb(ptr noundef nonnull align 8 dereferenceable(184), i64 noundef, i1 noundef zeroext) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertStateD2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #4 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 96}
!14 = !{!"_ZTS12BuildOptions", !15, i64 0, !15, i64 32, !19, i64 64, !12, i64 88, !12, i64 89, !6, i64 96, !23, i64 104}
!15 = !{!"_ZTSN7helpers4pathE", !16, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIN7helpers4pathESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN7helpers4pathESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7helpers4pathESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN7helpers4pathESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSN12BuildOptions4ModeE", !7, i64 0}
!24 = !{!14, !12, i64 88}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!28, !6, i64 0}
!28 = !{!"_ZTSN9BuildList5EntryE", !6, i64 0, !12, i64 8, !29, i64 16}
!29 = !{!"_ZTSSt6vectorIjSaIjEE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!28, !12, i64 8}
!34 = !{!35, !35, i64 0}
!35 = !{!"vtable pointer", !8, i64 0}
!36 = !{!37, !12, i64 56}
!37 = !{!"_ZTS9Job_Build", !38, i64 0, !6, i64 8, !6, i64 16, !16, i64 24, !12, i64 56, !39, i64 64}
!38 = !{!"_ZTS3Job"}
!39 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{i64 0, i64 8, !44}
!44 = !{!18, !18, i64 0}
!45 = !{!46, !6, i64 0}
!46 = !{!"_ZTS9BuildList", !6, i64 0, !47, i64 8}
!47 = !{!"_ZTSSt6vectorIN9BuildList5EntryESaIS1_EE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseIN9BuildList5EntryESaIS1_EE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIN9BuildList5EntryESaIS1_EE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIN9BuildList5EntryESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!51 = !{!52, !6, i64 16}
!52 = !{!"_ZTSZN9BuildList5buildE12BuildOptionsjbE3$_2", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!53 = !{!14, !23, i64 104}


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

%struct.RunState = type <{ ptr, ptr, i8, [7 x i8] }>
%class.JobList = type { %"class.std::vector.51", %"class.std::deque", %"class.std::vector.56", %"class.std::unordered_set" }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::unique_ptr<Job>, std::allocator<std::unique_ptr<Job>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::vector.56" = type { %"struct.std::_Vector_base.57" }
%"struct.std::_Vector_base.57" = type { %"struct.std::_Vector_base<JobList::RunningJob, std::allocator<JobList::RunningJob>>::_Vector_impl" }
%"struct.std::_Vector_base<JobList::RunningJob, std::allocator<JobList::RunningJob>>::_Vector_impl" = type { %"struct.std::_Vector_base<JobList::RunningJob, std::allocator<JobList::RunningJob>>::_Vector_impl_data" }
%"struct.std::_Vector_base<JobList::RunningJob, std::allocator<JobList::RunningJob>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.ConvertState = type { ptr, %"class.std::unordered_map", %"class.std::unordered_map.79" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable.66" }
%"class.std::_Hashtable.66" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.79" = type { %"class.std::_Hashtable.80" }
%"class.std::_Hashtable.80" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.__gnu_cxx::__normal_iterator.93" = type { ptr }
%"struct.std::pair.94" = type { %"class.std::__cxx11::basic_string", %class.Timestamp }
%"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.Timestamp = type { i64 }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.97" }
%"struct.std::_Head_base.97" = type { ptr }
%"class.std::function.103" = 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.106 = type { ptr }
%"class.helpers::path" = type { %"class.std::__cxx11::basic_string" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%class.anon.107 = type { ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::unique_ptr.108" = type { %"struct.std::__uniq_ptr_data.109" }
%"struct.std::__uniq_ptr_data.109" = type { %"class.std::__uniq_ptr_impl.110" }
%"class.std::__uniq_ptr_impl.110" = type { %"class.std::tuple.111" }
%"class.std::tuple.111" = type { %"struct.std::_Tuple_impl.112" }
%"struct.std::_Tuple_impl.112" = type { %"struct.std::_Head_base.115" }
%"struct.std::_Head_base.115" = type { ptr }
%class.anon.116 = type { ptr, ptr, ptr, ptr }
%"class.std::function.117" = type { %"class.std::_Function_base", ptr }
%class.anon.120 = type { ptr }
%class.anon.121 = type { ptr }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9BuildList5buildE12BuildOptionsjb(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, i32 noundef %2, i1 noundef zeroext %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i8, align 1
  %6 = alloca %struct.RunState, align 8
  %7 = alloca %class.JobList, align 8
  %8 = alloca %struct.ConvertState, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %11 = alloca %"struct.std::pair.94", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %class.Timestamp, align 8
  %14 = alloca %"class.std::unique_ptr", align 8
  %15 = alloca %"class.std::function.103", align 8
  %16 = alloca %class.anon.106, align 8
  %17 = alloca %class.Timestamp, align 8
  %18 = alloca %"class.helpers::path", align 8
  %19 = alloca i8, align 1
  %20 = alloca %"class.helpers::path", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::function", align 8
  %23 = alloca %class.anon.107, align 8
  %24 = alloca %"class.std::unique_ptr.108", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.helpers::path", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %class.anon.116, align 8
  %29 = alloca %"class.std::function.117", align 8
  %30 = alloca %class.anon.120, align 8
  %31 = alloca %"class.std::function.117", align 8
  %32 = alloca %class.anon.121, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  %33 = getelementptr inbounds i8, ptr %1, i64 96
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %.not = icmp eq ptr %34, null
  br i1 %.not, label %39, label %35

35:                                               ; preds = %4
  %36 = getelementptr inbounds i8, ptr %1, i64 88
  %37 = load i8, ptr %36, align 8, !tbaa !20, !range !21, !noundef !22
  %38 = xor i8 %37, 1
  br label %39

39:                                               ; preds = %35, %4
  %40 = phi i8 [ 0, %4 ], [ %38, %35 ]
  store i8 %40, ptr %5, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  %41 = trunc nuw i8 %40 to i1
  call void @_ZN8RunStateC2ER12BuildOptionsb(ptr noundef nonnull align 8 dereferenceable(17) %6, ptr noundef nonnull align 8 dereferenceable(108) %1, i1 noundef zeroext %41)
  call void @llvm.lifetime.start.p0(i64 184, ptr nonnull %7) #6
  call void @_ZN7JobListC2Ev(ptr noundef nonnull align 8 dereferenceable(184) %7)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %8) #6
  call void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertStateC2ER7JobList(ptr noundef nonnull align 8 dereferenceable(120) %8, ptr noundef nonnull align 8 dereferenceable(184) %7)
  %42 = getelementptr inbounds i8, ptr %0, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %43 = call ptr @_ZNSt6vectorIN9BuildList5EntryESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #6
  store ptr %43, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %44 = call ptr @_ZNSt6vectorIN9BuildList5EntryESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #6
  store ptr %44, ptr %10, align 8
  %45 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN9BuildList5EntryESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %45, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %39
  %46 = getelementptr inbounds i8, ptr %1, i64 32
  %47 = getelementptr inbounds i8, ptr %23, i64 8
  %48 = getelementptr inbounds i8, ptr %23, i64 16
  %49 = getelementptr inbounds i8, ptr %23, i64 24
  %50 = getelementptr inbounds i8, ptr %23, i64 32
  %51 = getelementptr inbounds i8, ptr %23, i64 40
  %52 = getelementptr inbounds i8, ptr %8, i64 64
  br label %55

._crit_edge:                                      ; preds = %138, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #6
  call void @_ZN7helpers4pathC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26)
  %53 = load ptr, ptr %0, align 8, !tbaa !24
  %54 = invoke noundef zeroext i1 @_ZNK15PackageManifest11has_libraryEv(ptr noundef nonnull align 8 dereferenceable(594) %53)
          to label %155 unwind label %162

55:                                               ; preds = %.lr.ph, %138
  %56 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN9BuildList5EntryESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %57 = load ptr, ptr %56, align 8, !tbaa !30
  %58 = invoke noundef zeroext i1 @_ZNK15PackageManifest12is_std_magicEv(ptr noundef nonnull align 8 dereferenceable(594) %57)
          to label %59 unwind label %70

59:                                               ; preds = %55
  br i1 %58, label %60, label %80

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  %61 = getelementptr inbounds i8, ptr %56, i64 8
  %62 = load i8, ptr %61, align 8, !tbaa !36, !range !21, !noundef !22
  %63 = trunc nuw i8 %62 to i1
  invoke void @_ZNK8RunState7get_keyB5cxx11ERK15PackageManifestbbPK13PackageTarget(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(17) %6, ptr noundef nonnull align 8 dereferenceable(594) %57, i1 noundef zeroext false, i1 noundef zeroext %63, ptr noundef null)
          to label %64 unwind label %72

64:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %65 = invoke i64 @_ZN9Timestamp13infinite_pastEv()
          to label %66 unwind label %74

66:                                               ; preds = %64
  store i64 %65, ptr %13, align 8
  invoke void @_ZSt9make_pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9TimestampESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS8_INS9_IT0_E4typeEE6__typeEEOSA_OSF_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.94") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %67 unwind label %74

67:                                               ; preds = %66
  %68 = invoke { ptr, i8 } @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9TimestampSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S6_EEE6insertISB_IS5_S6_EEENSt9enable_ifIXsr16is_constructibleISD_OT_EE5valueESB_INSt8__detail14_Node_iteratorISD_Lb0ELb1EEEbEE4typeESK_(ptr noundef nonnull align 8 dereferenceable(56) %52, ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %69 unwind label %76

69:                                               ; preds = %67
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9TimestampED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #6
  br label %138

70:                                               ; preds = %55
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %154

72:                                               ; preds = %60
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %79

74:                                               ; preds = %66, %64
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %78

76:                                               ; preds = %67
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9TimestampED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  br label %78

78:                                               ; preds = %76, %74
  %.pn50 = phi { ptr, i32 } [ %77, %76 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %79

79:                                               ; preds = %78, %72
  %.pn50.pn = phi { ptr, i32 } [ %.pn50, %78 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #6
  br label %154

80:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %81 = invoke noundef nonnull align 8 dereferenceable(136) ptr @_ZNK15PackageManifest11get_libraryEv(ptr noundef nonnull align 8 dereferenceable(594) %57)
          to label %82 unwind label %111

82:                                               ; preds = %80
  %83 = getelementptr inbounds i8, ptr %56, i64 8
  invoke void @_ZSt11make_uniqueI15Job_BuildTargetJR8RunStateRK15PackageManifestRK13PackageTargetRKbEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %14, ptr noundef nonnull align 8 dereferenceable(17) %6, ptr noundef nonnull align 8 dereferenceable(594) %57, ptr noundef nonnull align 8 dereferenceable(136) %81, ptr noundef nonnull align 1 dereferenceable(1) %83)
          to label %84 unwind label %111

84:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  store ptr %14, ptr %16, align 8, !tbaa !37
  call void @"_ZNSt8functionIFvRSoEEC2IZN9BuildList5buildE12BuildOptionsjbE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %15)
          to label %85 unwind label %113

85:                                               ; preds = %84
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #6
  %86 = call noundef ptr @_ZNKSt10unique_ptrI15Job_BuildTargetSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %87 = load ptr, ptr %86, align 8, !tbaa !38
  %88 = getelementptr inbounds i8, ptr %87, i64 72
  %89 = load ptr, ptr %88, align 8
  invoke void %89(ptr dead_on_unwind nonnull writable sret(%"class.helpers::path") align 8 %18, ptr noundef nonnull align 8 dereferenceable(136) %86)
          to label %90 unwind label %115

90:                                               ; preds = %85
  %91 = invoke i64 @_ZN9Timestamp8for_fileERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %92 unwind label %117

92:                                               ; preds = %90
  store i64 %91, ptr %17, align 8
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #6
  %93 = call noundef ptr @_ZNKSt10unique_ptrI15Job_BuildTargetSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %94 = load ptr, ptr %93, align 8, !tbaa !38
  %95 = getelementptr inbounds i8, ptr %94, i64 72
  %96 = load ptr, ptr %95, align 8
  invoke void %96(ptr dead_on_unwind nonnull writable sret(%"class.helpers::path") align 8 %20, ptr noundef nonnull align 8 dereferenceable(136) %93)
          to label %97 unwind label %120

97:                                               ; preds = %92
  %98 = invoke noundef zeroext i1 @_ZNK8RunState21outfile_needs_rebuildERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(17) %6, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %99 unwind label %122

99:                                               ; preds = %97
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  %100 = zext i1 %98 to i8
  store i8 %100, ptr %19, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #6
  %101 = call noundef ptr @_ZNKSt10unique_ptrI15Job_BuildTargetSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %102 = getelementptr inbounds i8, ptr %101, i64 104
  %103 = load i8, ptr %83, align 8, !tbaa !36, !range !21, !noundef !22
  %104 = trunc nuw i8 %103 to i1
  invoke void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertState19handle_build_scriptB5cxx11ER8RunStateRK15PackageManifestRKN7helpers4pathERS8_b(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull align 8 dereferenceable(120) %8, ptr noundef nonnull align 8 dereferenceable(17) %6, ptr noundef nonnull align 8 dereferenceable(594) %57, ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef nonnull align 8 dereferenceable(32) %102, i1 noundef zeroext %104)
          to label %105 unwind label %125

105:                                              ; preds = %99
  %106 = call noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull @.str)
  br i1 %106, label %107, label %129

107:                                              ; preds = %105
  %108 = call noundef ptr @_ZNKSt10unique_ptrI15Job_BuildTargetSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %109 = getelementptr inbounds i8, ptr %108, i64 64
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %109, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %110 unwind label %127

110:                                              ; preds = %107
  store i8 1, ptr %19, align 1, !tbaa !23
  br label %129

111:                                              ; preds = %82, %80
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %153

113:                                              ; preds = %84
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %152

115:                                              ; preds = %85
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %119

117:                                              ; preds = %90
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %119

119:                                              ; preds = %117, %115
  %.pn37 = phi { ptr, i32 } [ %118, %117 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  br label %151

120:                                              ; preds = %92
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %124

122:                                              ; preds = %97
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %124

124:                                              ; preds = %122, %120
  %.pn39 = phi { ptr, i32 } [ %123, %122 ], [ %121, %120 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  br label %150

125:                                              ; preds = %99
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %149

127:                                              ; preds = %107
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %148

129:                                              ; preds = %110, %105
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %23) #6
  store ptr %6, ptr %23, align 8, !tbaa !37
  store ptr %56, ptr %47, align 8, !tbaa !37
  store ptr %19, ptr %48, align 8, !tbaa !37
  store ptr %8, ptr %49, align 8, !tbaa !37
  store ptr %14, ptr %50, align 8, !tbaa !37
  store ptr %17, ptr %51, align 8, !tbaa !37
  invoke void @"_ZNSt8functionIFvRK10PackageRefEEC2IZN9BuildList5buildE12BuildOptionsjbE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(48) %23)
          to label %130 unwind label %141

130:                                              ; preds = %129
  invoke void @_ZNK15PackageManifest22iter_main_dependenciesESt8functionIFvRK10PackageRefEE(ptr noundef nonnull align 8 dereferenceable(594) %57, ptr noundef nonnull %22)
          to label %131 unwind label %143

131:                                              ; preds = %130
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %23) #6
  %132 = load i8, ptr %19, align 1, !tbaa !23, !range !21, !noundef !22
  %133 = call noundef ptr @_ZNKSt10unique_ptrI15Job_BuildTargetSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %134 = getelementptr inbounds i8, ptr %133, i64 56
  store i8 %132, ptr %134, align 8, !tbaa !40
  call void @_ZNSt10unique_ptrI3JobSt14default_deleteIS0_EEC2I15Job_BuildTargetS1_IS5_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %.sroa.0.0.copyload = load i64, ptr %17, align 8, !tbaa !47
  %135 = load i8, ptr %19, align 1, !tbaa !23, !range !21, !noundef !22
  %136 = trunc nuw i8 %135 to i1
  invoke void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertState7add_jobESt10unique_ptrI3JobSt14default_deleteIS3_EE9Timestampb(ptr noundef nonnull align 8 dereferenceable(120) %8, ptr noundef nonnull %24, i64 %.sroa.0.0.copyload, i1 noundef zeroext %136)
          to label %137 unwind label %146

137:                                              ; preds = %131
  call void @_ZNSt10unique_ptrI3JobSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @_ZNSt10unique_ptrI15Job_BuildTargetSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %138

138:                                              ; preds = %137, %69
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN9BuildList5EntryESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %140 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN9BuildList5EntryESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %140, label %55, label %._crit_edge

141:                                              ; preds = %129
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %145

143:                                              ; preds = %130
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %145

145:                                              ; preds = %143, %141
  %.pn41 = phi { ptr, i32 } [ %144, %143 ], [ %142, %141 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %23) #6
  br label %148

146:                                              ; preds = %131
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrI3JobSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  br label %148

148:                                              ; preds = %146, %145, %127
  %.pn43 = phi { ptr, i32 } [ %147, %146 ], [ %.pn41, %145 ], [ %128, %127 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %149

149:                                              ; preds = %148, %125
  %.pn43.pn = phi { ptr, i32 } [ %.pn43, %148 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  br label %150

150:                                              ; preds = %149, %124
  %.pn43.pn.pn = phi { ptr, i32 } [ %.pn43.pn, %149 ], [ %.pn39, %124 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  br label %151

151:                                              ; preds = %150, %119
  %.pn43.pn.pn.pn = phi { ptr, i32 } [ %.pn43.pn.pn, %150 ], [ %.pn37, %119 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %152

152:                                              ; preds = %151, %113
  %.pn43.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn43.pn.pn.pn, %151 ], [ %114, %113 ]
  call void @_ZNSt10unique_ptrI15Job_BuildTargetSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br label %153

153:                                              ; preds = %152, %111
  %.pn43.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn43.pn.pn.pn.pn, %152 ], [ %112, %111 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %154

154:                                              ; preds = %153, %79, %70
  %.pn50.pn.pn = phi { ptr, i32 } [ %.pn50.pn, %79 ], [ %.pn43.pn.pn.pn.pn.pn, %153 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %192

155:                                              ; preds = %._crit_edge
  br i1 %54, label %166, label %156

156:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %27) #6
  %157 = load ptr, ptr %0, align 8, !tbaa !24
  %158 = getelementptr inbounds i8, ptr %1, i64 32
  %159 = xor i1 %41, true
  invoke void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertState19handle_build_scriptB5cxx11ER8RunStateRK15PackageManifestRKN7helpers4pathERS8_b(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %27, ptr noundef nonnull align 8 dereferenceable(120) %8, ptr noundef nonnull align 8 dereferenceable(17) %6, ptr noundef nonnull align 8 dereferenceable(594) %157, ptr noundef nonnull align 8 dereferenceable(32) %158, ptr noundef nonnull align 8 dereferenceable(32) %26, i1 noundef zeroext %159)
          to label %160 unwind label %164

160:                                              ; preds = %156
  %161 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #6
  br label %166

162:                                              ; preds = %._crit_edge
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %191

164:                                              ; preds = %156
  %165 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #6
  br label %191

166:                                              ; preds = %160, %155
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #6
  store ptr %5, ptr %28, align 8, !tbaa !37
  %167 = getelementptr inbounds i8, ptr %28, i64 8
  store ptr %6, ptr %167, align 8, !tbaa !37
  %168 = getelementptr inbounds i8, ptr %28, i64 16
  store ptr %0, ptr %168, align 8, !tbaa !48
  %169 = getelementptr inbounds i8, ptr %28, i64 24
  store ptr %8, ptr %169, align 8, !tbaa !37
  %170 = getelementptr inbounds i8, ptr %1, i64 104
  %171 = load i32, ptr %170, align 8, !tbaa !50
  switch i32 %171, label %184 [
    i32 0, label %172
    i32 1, label %178
  ]

172:                                              ; preds = %166
  %173 = load ptr, ptr %0, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #6
  store ptr %28, ptr %30, align 8, !tbaa !37
  call void @"_ZNSt8functionIFbRK13PackageTargetEEC2IZN9BuildList5buildE12BuildOptionsjbE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  %174 = invoke noundef zeroext i1 @_ZNK15PackageManifest16foreach_binariesESt8functionIFbRK13PackageTargetEE(ptr noundef nonnull align 8 dereferenceable(594) %173, ptr noundef nonnull %29)
          to label %175 unwind label %176

175:                                              ; preds = %172
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #6
  br label %184

176:                                              ; preds = %172
  %177 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #6
  br label %190

178:                                              ; preds = %166
  %179 = load ptr, ptr %0, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #6
  store ptr %28, ptr %32, align 8, !tbaa !37
  call void @"_ZNSt8functionIFbRK13PackageTargetEEC2IZN9BuildList5buildE12BuildOptionsjbE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  %180 = invoke noundef zeroext i1 @_ZNK15PackageManifest10foreach_tyEN13PackageTarget4TypeESt8functionIFbRKS0_EE(ptr noundef nonnull align 8 dereferenceable(594) %179, i32 noundef 2, ptr noundef nonnull %31)
          to label %181 unwind label %182

181:                                              ; preds = %178
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #6
  br label %184

182:                                              ; preds = %178
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #6
  br label %190

184:                                              ; preds = %181, %175, %166
  %185 = zext i32 %2 to i64
  %186 = invoke noundef zeroext i1 @_ZN7JobList7run_allEmb(ptr noundef nonnull align 8 dereferenceable(184) %7, i64 noundef %185, i1 noundef zeroext %3)
          to label %187 unwind label %188

187:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #6
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  call void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertStateD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %8) #6
  call void @_ZN7JobListD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %7) #6
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  ret i1 %186

188:                                              ; preds = %184
  %189 = landingpad { ptr, i32 }
          cleanup
  br label %190

190:                                              ; preds = %188, %182, %176
  %.pn = phi { ptr, i32 } [ %189, %188 ], [ %183, %182 ], [ %177, %176 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #6
  br label %191

191:                                              ; preds = %190, %164, %162
  %.pn.pn = phi { ptr, i32 } [ %.pn, %190 ], [ %165, %164 ], [ %163, %162 ]
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  br label %192

192:                                              ; preds = %191, %154
  %.pn50.pn.pn.pn = phi { ptr, i32 } [ %.pn50.pn.pn, %154 ], [ %.pn.pn, %191 ]
  call void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertStateD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %8) #6
  call void @_ZN7JobListD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %7) #6
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn50.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8RunStateC2ER12BuildOptionsb(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(108), i1 noundef zeroext) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertStateC2ER7JobList(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(184)) unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9TimestampSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S6_EEE6insertISB_IS5_S6_EEENSt9enable_ifIXsr16is_constructibleISD_OT_EE5valueESB_INSt8__detail14_Node_iteratorISD_Lb0ELb1EEEbEE4typeESK_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9TimestampESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS8_INS9_IT0_E4typeEE6__typeEEOSA_OSF_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.94") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8RunState7get_keyB5cxx11ERK15PackageManifestbbPK13PackageTarget(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(594), i1 noundef zeroext, i1 noundef zeroext, ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN9Timestamp13infinite_pastEv() local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueI15Job_BuildTargetJR8RunStateRK15PackageManifestRK13PackageTargetRKbEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(594), ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5

declare noundef nonnull align 8 dereferenceable(136) ptr @_ZNK15PackageManifest11get_libraryEv(ptr noundef nonnull align 8 dereferenceable(594)) local_unnamed_addr #1

declare void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef) local_unnamed_addr #1

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

declare i64 @_ZN9Timestamp8for_fileERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertState19handle_build_scriptB5cxx11ER8RunStateRK15PackageManifestRKN7helpers4pathERS8_b(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(594), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertState7add_jobESt10unique_ptrI3JobSt14default_deleteIS3_EE9Timestampb(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, i64, i1 noundef zeroext) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK15PackageManifest10foreach_tyEN13PackageTarget4TypeESt8functionIFbRKS0_EE(ptr noundef nonnull align 8 dereferenceable(594), i32 noundef, ptr noundef) local_unnamed_addr #2 align 2

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

declare noundef zeroext i1 @_ZN7JobList7run_allEmb(ptr noundef nonnull align 8 dereferenceable(184), i64 noundef, i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZZN9BuildList5buildE12BuildOptionsjbEN12ConvertStateD2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #4 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 96}
!6 = !{!"_ZTS12BuildOptions", !7, i64 0, !7, i64 32, !14, i64 64, !18, i64 88, !18, i64 89, !10, i64 96, !19, i64 104}
!7 = !{!"_ZTSN7helpers4pathE", !8, i64 0}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !9, i64 0, !13, i64 8, !11, i64 16}
!9 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"long", !11, i64 0}
!14 = !{!"_ZTSSt6vectorIN7helpers4pathESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN7helpers4pathESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN7helpers4pathESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN7helpers4pathESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!18 = !{!"bool", !11, i64 0}
!19 = !{!"_ZTSN12BuildOptions4ModeE", !11, i64 0}
!20 = !{!6, !18, i64 88}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!18, !18, i64 0}
!24 = !{!25, !10, i64 0}
!25 = !{!"_ZTS9BuildList", !10, i64 0, !26, i64 8}
!26 = !{!"_ZTSSt6vectorIN9BuildList5EntryESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN9BuildList5EntryESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN9BuildList5EntryESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN9BuildList5EntryESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!30 = !{!31, !10, i64 0}
!31 = !{!"_ZTSN9BuildList5EntryE", !10, i64 0, !18, i64 8, !32, i64 16}
!32 = !{!"_ZTSSt6vectorIjSaIjEE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!36 = !{!31, !18, i64 8}
!37 = !{!10, !10, i64 0}
!38 = !{!39, !39, i64 0}
!39 = !{!"vtable pointer", !12, i64 0}
!40 = !{!41, !18, i64 56}
!41 = !{!"_ZTS9Job_Build", !42, i64 0, !10, i64 8, !10, i64 16, !8, i64 24, !18, i64 56, !43, i64 64}
!42 = !{!"_ZTS3Job"}
!43 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!47 = !{!13, !13, i64 0}
!48 = !{!49, !10, i64 16}
!49 = !{!"_ZTSZN9BuildList5buildE12BuildOptionsjbE3$_2", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!50 = !{!6, !19, i64 104}


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