; LLVM IR from Eaglegor/SchedulerEngine :: Engine/SceneManager/Queries (OperationStopMappingQuery)

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

%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base.130" }
%"struct.std::__detail::_Node_iterator_base.130" = type { ptr }
%"class.std::reference_wrapper" = type { ptr }
%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.2" = type { [8 x i8], %"class.boost::intrusive::list_iterator.1" }
%"class.boost::intrusive::list_iterator.1" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.Scheduler::OperationStopMappingQuery" = type { %"class.Scheduler::StructuralChangesListener", ptr, i8, %"class.std::unordered_map", %"class.std::unordered_map.9" }
%"class.Scheduler::StructuralChangesListener" = type { ptr }
%"class.std::unordered_map" = 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 }
%"class.std::unordered_map.9" = type { %"class.std::_Hashtable.10" }
%"class.std::_Hashtable.10" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

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

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

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

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

declare noundef nonnull align 8 dereferenceable(136) ptr @_ZNK9Scheduler8WorkStop12getOperationEv(ptr noundef nonnull align 8 dereferenceable(168)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEEN5boost9intrusive13list_iteratorINS1_4Stop20IntrusiveValueTraitsELb1EEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE5eraseERSG_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEENS1_16RangeTypeAdapterINS1_5RangeINS6_IN5boost9intrusive4listINS1_4StopEJNS8_12value_traitsINSA_20IntrusiveValueTraitsEEEEEEEEEENS1_8WorkStopEE8IteratorIKSH_NS8_13list_iteratorISC_Lb1EEEEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SN_EEE5eraseERST_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Scheduler25OperationStopMappingQuery18beforeRunDestroyedEN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperINS_3RunEESt6vectorIS5_SaIS5_EEEE(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr %1) unnamed_addr #3 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %8 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::reference_wrapper", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.2", align 8
  %13 = alloca %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.2", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::reference_wrapper", align 8
  %16 = alloca %"class.std::reference_wrapper", align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %19 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.std::reference_wrapper", align 8
  %22 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
  store ptr %1, ptr %22, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8
  %24 = getelementptr inbounds %"class.Scheduler::OperationStopMappingQuery", ptr %23, i32 0, i32 2
  %25 = load i8, ptr %24, align 8, !tbaa !9, !range !21, !noundef !22
  %26 = trunc i8 %25 to i1
  br i1 %26, label %27, label %28

27:                                               ; preds = %2
  br label %97

28:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %30 = call noundef nonnull align 8 dereferenceable(609) ptr @_ZNKSt17reference_wrapperIN9Scheduler3RunEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #4
  store ptr %30, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNK9Scheduler3Run12getStartStopEv(ptr noundef nonnull align 8 dereferenceable(609) %31)
  %33 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9Scheduler9DepotStop13getOperationsEv(ptr noundef nonnull align 8 dereferenceable(216) %32)
  store ptr %33, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call ptr @_ZNKSt13unordered_setISt17reference_wrapperIKN9Scheduler14DepotOperationEESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %34) #4
  %36 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %7, i32 0, i32 0
  %37 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.130", ptr %36, i32 0, i32 0
  store ptr %35, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = call ptr @_ZNKSt13unordered_setISt17reference_wrapperIKN9Scheduler14DepotOperationEESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %38) #4
  %40 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %8, i32 0, i32 0
  %41 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.130", ptr %40, i32 0, i32 0
  store ptr %39, ptr %41, align 8
  br label %42

42:                                               ; preds = %51, %28
  %43 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt17reference_wrapperIKN9Scheduler14DepotOperationEELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %43, label %45, label %44

44:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %53

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail20_Node_const_iteratorISt17reference_wrapperIKN9Scheduler14DepotOperationEELb1ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %47 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNKSt17reference_wrapperIKN9Scheduler14DepotOperationEEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %46) #4
  store ptr %47, ptr %9, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.Scheduler::OperationStopMappingQuery", ptr %23, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNSt17reference_wrapperIKN9Scheduler9OperationEEC2IRS2_vPS2_EEOT_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(128) %49) #4
  %50 = call noundef i64 @_ZNSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEEN5boost9intrusive13list_iteratorINS1_4Stop20IntrusiveValueTraitsELb1EEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE5eraseERSG_(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %51

51:                                               ; preds = %45
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt17reference_wrapperIKN9Scheduler14DepotOperationEELb1ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  br label %42

53:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9Scheduler3Run12getWorkStopsEv(ptr noundef nonnull align 8 dereferenceable(609) %54)
  store ptr %55, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE5beginEv(ptr dead_on_unwind writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.2") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %56)
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE3endEv(ptr dead_on_unwind writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.2") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %57)
  br label %58

58:                                               ; preds = %71, %53
  %59 = call noundef zeroext i1 @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEneERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %13)
  br i1 %59, label %61, label %60

60:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %73

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %62 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  store ptr %62, ptr %14, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.Scheduler::OperationStopMappingQuery", ptr %23, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  %65 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZNK9Scheduler8WorkStop12getOperationEv(ptr noundef nonnull align 8 dereferenceable(168) %64)
  call void @_ZNSt17reference_wrapperIKN9Scheduler9OperationEEC2IRKNS0_13WorkOperationEvPS2_EEOT_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(136) %65) #4
  %66 = call noundef i64 @_ZNSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEEN5boost9intrusive13list_iteratorINS1_4Stop20IntrusiveValueTraitsELb1EEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE5eraseERSG_(ptr noundef nonnull align 8 dereferenceable(56) %63, ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  %67 = getelementptr inbounds %"class.Scheduler::OperationStopMappingQuery", ptr %23, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZNK9Scheduler8WorkStop12getOperationEv(ptr noundef nonnull align 8 dereferenceable(168) %68)
  call void @_ZNSt17reference_wrapperIKN9Scheduler9OperationEEC2IRKNS0_13WorkOperationEvPS2_EEOT_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(136) %69) #4
  %70 = call noundef i64 @_ZNSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEENS1_16RangeTypeAdapterINS1_5RangeINS6_IN5boost9intrusive4listINS1_4StopEJNS8_12value_traitsINSA_20IntrusiveValueTraitsEEEEEEEEEENS1_8WorkStopEE8IteratorIKSH_NS8_13list_iteratorISC_Lb1EEEEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SN_EEE5eraseERST_(ptr noundef nonnull align 8 dereferenceable(56) %67, ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %71

71:                                               ; preds = %61
  %72 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEppEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  br label %58

73:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNK9Scheduler3Run10getEndStopEv(ptr noundef nonnull align 8 dereferenceable(609) %74)
  %76 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9Scheduler9DepotStop13getOperationsEv(ptr noundef nonnull align 8 dereferenceable(216) %75)
  store ptr %76, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %77 = load ptr, ptr %17, align 8, !tbaa !5
  %78 = call ptr @_ZNKSt13unordered_setISt17reference_wrapperIKN9Scheduler14DepotOperationEESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %77) #4
  %79 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %18, i32 0, i32 0
  %80 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.130", ptr %79, i32 0, i32 0
  store ptr %78, ptr %80, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %81 = load ptr, ptr %17, align 8, !tbaa !5
  %82 = call ptr @_ZNKSt13unordered_setISt17reference_wrapperIKN9Scheduler14DepotOperationEESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %81) #4
  %83 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %19, i32 0, i32 0
  %84 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.130", ptr %83, i32 0, i32 0
  store ptr %82, ptr %84, align 8
  br label %85

85:                                               ; preds = %94, %73
  %86 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt17reference_wrapperIKN9Scheduler14DepotOperationEELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #4
  br i1 %86, label %88, label %87

87:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %96

88:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail20_Node_const_iteratorISt17reference_wrapperIKN9Scheduler14DepotOperationEELb1ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  %90 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNKSt17reference_wrapperIKN9Scheduler14DepotOperationEEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %89) #4
  store ptr %90, ptr %20, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.Scheduler::OperationStopMappingQuery", ptr %23, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %92 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZNSt17reference_wrapperIKN9Scheduler9OperationEEC2IRS2_vPS2_EEOT_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(128) %92) #4
  %93 = call noundef i64 @_ZNSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEEN5boost9intrusive13list_iteratorINS1_4Stop20IntrusiveValueTraitsELb1EEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE5eraseERSG_(ptr noundef nonnull align 8 dereferenceable(56) %91, ptr noundef nonnull align 8 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %94

94:                                               ; preds = %88
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt17reference_wrapperIKN9Scheduler14DepotOperationEELb1ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  br label %85

96:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %97

97:                                               ; preds = %96, %27
  ret void
}

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

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

declare noundef nonnull align 8 dereferenceable(216) ptr @_ZNK9Scheduler3Run12getStartStopEv(ptr noundef nonnull align 8 dereferenceable(609)) #2

declare noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9Scheduler9DepotStop13getOperationsEv(ptr noundef nonnull align 8 dereferenceable(216)) #2

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9Scheduler3Run12getWorkStopsEv(ptr noundef nonnull align 8 dereferenceable(609)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.2") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.2") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(216) ptr @_ZNK9Scheduler3Run10getEndStopEv(ptr noundef nonnull align 8 dereferenceable(609)) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 16}
!10 = !{!"_ZTSN9Scheduler25OperationStopMappingQueryE", !11, i64 0, !6, i64 8, !12, i64 16, !13, i64 24, !19, i64 80}
!11 = !{!"_ZTSN9Scheduler25StructuralChangesListenerE"}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEEN5boost9intrusive13list_iteratorINS1_4Stop20IntrusiveValueTraitsELb1EEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE", !14, i64 0}
!14 = !{!"_ZTSSt10_HashtableISt17reference_wrapperIKN9Scheduler9OperationEESt4pairIKS4_N5boost9intrusive13list_iteratorINS1_4Stop20IntrusiveValueTraitsELb1EEEESaISD_ENSt8__detail10_Select1stESt8equal_toIS4_ESt4hashIS4_ENSF_18_Mod_range_hashingENSF_20_Default_ranged_hashENSF_20_Prime_rehash_policyENSF_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !6, i64 48}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !15, i64 8}
!18 = !{!"float", !7, i64 0}
!19 = !{!"_ZTSSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEENS1_16RangeTypeAdapterINS1_5RangeINS6_IN5boost9intrusive4listINS1_4StopEJNS8_12value_traitsINSA_20IntrusiveValueTraitsEEEEEEEEEENS1_8WorkStopEE8IteratorIKSH_NS8_13list_iteratorISC_Lb1EEEEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SN_EEE", !20, i64 0}
!20 = !{!"_ZTSSt10_HashtableISt17reference_wrapperIKN9Scheduler9OperationEESt4pairIKS4_NS1_16RangeTypeAdapterINS1_5RangeINS8_IN5boost9intrusive4listINS1_4StopEJNSA_12value_traitsINSC_20IntrusiveValueTraitsEEEEEEEEEENS1_8WorkStopEE8IteratorIKSJ_NSA_13list_iteratorISE_Lb1EEEEEESaISQ_ENSt8__detail10_Select1stESt8equal_toIS4_ESt4hashIS4_ENSS_18_Mod_range_hashingENSS_20_Default_ranged_hashENSS_20_Prime_rehash_policyENSS_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !6, i64 48}
!21 = !{i8 0, i8 2}
!22 = !{}


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

%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base.130" }
%"struct.std::__detail::_Node_iterator_base.130" = type { ptr }
%"class.std::reference_wrapper" = type { ptr }
%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.2" = type { [8 x i8], %"class.boost::intrusive::list_iterator.1" }
%"class.boost::intrusive::list_iterator.1" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }

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

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

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

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

declare noundef nonnull align 8 dereferenceable(136) ptr @_ZNK9Scheduler8WorkStop12getOperationEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEEN5boost9intrusive13list_iteratorINS1_4Stop20IntrusiveValueTraitsELb1EEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE5eraseERSG_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEENS1_16RangeTypeAdapterINS1_5RangeINS6_IN5boost9intrusive4listINS1_4StopEJNS8_12value_traitsINSA_20IntrusiveValueTraitsEEEEEEEEEENS1_8WorkStopEE8IteratorIKSH_NS8_13list_iteratorISC_Lb1EEEEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SN_EEE5eraseERST_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Scheduler25OperationStopMappingQuery18beforeRunDestroyedEN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperINS_3RunEESt6vectorIS5_SaIS5_EEEE(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr %1) unnamed_addr #3 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %5 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %6 = alloca %"class.std::reference_wrapper", align 8
  %7 = alloca %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.2", align 8
  %8 = alloca %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.2", align 8
  %9 = alloca %"class.std::reference_wrapper", align 8
  %10 = alloca %"class.std::reference_wrapper", align 8
  %11 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %12 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %13 = alloca %"class.std::reference_wrapper", align 8
  store ptr %1, ptr %3, align 8
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load i8, ptr %14, align 8, !tbaa !5, !range !20, !noundef !21
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %56, label %17

17:                                               ; preds = %2
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %19 = call noundef nonnull align 8 dereferenceable(609) ptr @_ZNKSt17reference_wrapperIN9Scheduler3RunEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  %20 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNK9Scheduler3Run12getStartStopEv(ptr noundef nonnull align 8 dereferenceable(609) %19)
  %21 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9Scheduler9DepotStop13getOperationsEv(ptr noundef nonnull align 8 dereferenceable(216) %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %22 = call ptr @_ZNKSt13unordered_setISt17reference_wrapperIKN9Scheduler14DepotOperationEESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %21) #4
  store ptr %22, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %23 = call ptr @_ZNKSt13unordered_setISt17reference_wrapperIKN9Scheduler14DepotOperationEESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %21) #4
  store ptr %23, ptr %5, align 8
  %24 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt17reference_wrapperIKN9Scheduler14DepotOperationEELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  br i1 %24, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %17
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  br label %30

._crit_edge:                                      ; preds = %30, %17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9Scheduler3Run12getWorkStopsEv(ptr noundef nonnull align 8 dereferenceable(609) %19)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  call void @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.2") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %26)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  call void @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.2") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %27 = call noundef zeroext i1 @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEneERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  br i1 %27, label %.lr.ph15, label %._crit_edge16

.lr.ph15:                                         ; preds = %._crit_edge
  %28 = getelementptr inbounds i8, ptr %0, i64 24
  %29 = getelementptr inbounds i8, ptr %0, i64 80
  br label %42

30:                                               ; preds = %.lr.ph, %30
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail20_Node_const_iteratorISt17reference_wrapperIKN9Scheduler14DepotOperationEELb1ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %32 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNKSt17reference_wrapperIKN9Scheduler14DepotOperationEEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @_ZNSt17reference_wrapperIKN9Scheduler9OperationEEC2IRS2_vPS2_EEOT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(128) %32) #4
  %33 = call noundef i64 @_ZNSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEEN5boost9intrusive13list_iteratorINS1_4Stop20IntrusiveValueTraitsELb1EEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE5eraseERSG_(ptr noundef nonnull align 8 dereferenceable(56) %25, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt17reference_wrapperIKN9Scheduler14DepotOperationEELb1ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %35 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt17reference_wrapperIKN9Scheduler14DepotOperationEELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  br i1 %35, label %30, label %._crit_edge

._crit_edge16:                                    ; preds = %42, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  %36 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNK9Scheduler3Run10getEndStopEv(ptr noundef nonnull align 8 dereferenceable(609) %19)
  %37 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9Scheduler9DepotStop13getOperationsEv(ptr noundef nonnull align 8 dereferenceable(216) %36)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %38 = call ptr @_ZNKSt13unordered_setISt17reference_wrapperIKN9Scheduler14DepotOperationEESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %37) #4
  store ptr %38, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %39 = call ptr @_ZNKSt13unordered_setISt17reference_wrapperIKN9Scheduler14DepotOperationEESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %37) #4
  store ptr %39, ptr %12, align 8
  %40 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt17reference_wrapperIKN9Scheduler14DepotOperationEELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  br i1 %40, label %.lr.ph18, label %._crit_edge19

.lr.ph18:                                         ; preds = %._crit_edge16
  %41 = getelementptr inbounds i8, ptr %0, i64 24
  br label %50

42:                                               ; preds = %.lr.ph15, %42
  %43 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %44 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZNK9Scheduler8WorkStop12getOperationEv(ptr noundef nonnull align 8 dereferenceable(168) %43)
  call void @_ZNSt17reference_wrapperIKN9Scheduler9OperationEEC2IRKNS0_13WorkOperationEvPS2_EEOT_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(136) %44) #4
  %45 = call noundef i64 @_ZNSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEEN5boost9intrusive13list_iteratorINS1_4Stop20IntrusiveValueTraitsELb1EEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE5eraseERSG_(ptr noundef nonnull align 8 dereferenceable(56) %28, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %46 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZNK9Scheduler8WorkStop12getOperationEv(ptr noundef nonnull align 8 dereferenceable(168) %43)
  call void @_ZNSt17reference_wrapperIKN9Scheduler9OperationEEC2IRKNS0_13WorkOperationEvPS2_EEOT_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(136) %46) #4
  %47 = call noundef i64 @_ZNSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEENS1_16RangeTypeAdapterINS1_5RangeINS6_IN5boost9intrusive4listINS1_4StopEJNS8_12value_traitsINSA_20IntrusiveValueTraitsEEEEEEEEEENS1_8WorkStopEE8IteratorIKSH_NS8_13list_iteratorISC_Lb1EEEEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SN_EEE5eraseERST_(ptr noundef nonnull align 8 dereferenceable(56) %29, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEppEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %49 = call noundef zeroext i1 @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEneERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  br i1 %49, label %42, label %._crit_edge16

._crit_edge19:                                    ; preds = %50, %._crit_edge16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br label %56

50:                                               ; preds = %.lr.ph18, %50
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail20_Node_const_iteratorISt17reference_wrapperIKN9Scheduler14DepotOperationEELb1ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %52 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNKSt17reference_wrapperIKN9Scheduler14DepotOperationEEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %51) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @_ZNSt17reference_wrapperIKN9Scheduler9OperationEEC2IRS2_vPS2_EEOT_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(128) %52) #4
  %53 = call noundef i64 @_ZNSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEEN5boost9intrusive13list_iteratorINS1_4Stop20IntrusiveValueTraitsELb1EEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE5eraseERSG_(ptr noundef nonnull align 8 dereferenceable(56) %41, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt17reference_wrapperIKN9Scheduler14DepotOperationEELb1ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %55 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt17reference_wrapperIKN9Scheduler14DepotOperationEELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  br i1 %55, label %50, label %._crit_edge19

56:                                               ; preds = %2, %._crit_edge19
  ret void
}

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

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

declare noundef nonnull align 8 dereferenceable(216) ptr @_ZNK9Scheduler3Run12getStartStopEv(ptr noundef nonnull align 8 dereferenceable(609)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9Scheduler9DepotStop13getOperationsEv(ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #2

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9Scheduler3Run12getWorkStopsEv(ptr noundef nonnull align 8 dereferenceable(609)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.2") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.2") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(216) ptr @_ZNK9Scheduler3Run10getEndStopEv(ptr noundef nonnull align 8 dereferenceable(609)) local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 16}
!6 = !{!"_ZTSN9Scheduler25OperationStopMappingQueryE", !7, i64 0, !8, i64 8, !11, i64 16, !12, i64 24, !18, i64 80}
!7 = !{!"_ZTSN9Scheduler25StructuralChangesListenerE"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEEN5boost9intrusive13list_iteratorINS1_4Stop20IntrusiveValueTraitsELb1EEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE", !13, i64 0}
!13 = !{!"_ZTSSt10_HashtableISt17reference_wrapperIKN9Scheduler9OperationEESt4pairIKS4_N5boost9intrusive13list_iteratorINS1_4Stop20IntrusiveValueTraitsELb1EEEESaISD_ENSt8__detail10_Select1stESt8equal_toIS4_ESt4hashIS4_ENSF_18_Mod_range_hashingENSF_20_Default_ranged_hashENSF_20_Prime_rehash_policyENSF_17_Hashtable_traitsILb1ELb0ELb1EEEE", !8, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !8, i64 48}
!14 = !{!"long", !9, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !8, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !9, i64 0}
!18 = !{!"_ZTSSt13unordered_mapISt17reference_wrapperIKN9Scheduler9OperationEENS1_16RangeTypeAdapterINS1_5RangeINS6_IN5boost9intrusive4listINS1_4StopEJNS8_12value_traitsINSA_20IntrusiveValueTraitsEEEEEEEEEENS1_8WorkStopEE8IteratorIKSH_NS8_13list_iteratorISC_Lb1EEEEESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SN_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_HashtableISt17reference_wrapperIKN9Scheduler9OperationEESt4pairIKS4_NS1_16RangeTypeAdapterINS1_5RangeINS8_IN5boost9intrusive4listINS1_4StopEJNSA_12value_traitsINSC_20IntrusiveValueTraitsEEEEEEEEEENS1_8WorkStopEE8IteratorIKSJ_NSA_13list_iteratorISE_Lb1EEEEEESaISQ_ENSt8__detail10_Select1stESt8equal_toIS4_ESt4hashIS4_ENSS_18_Mod_range_hashingENSS_20_Default_ranged_hashENSS_20_Prime_rehash_policyENSS_17_Hashtable_traitsILb1ELb0ELb1EEEE", !8, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !8, i64 48}
!20 = !{i8 0, i8 2}
!21 = !{}


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