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

; 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 }
%"class.__gnu_cxx::__normal_iterator.68" = type { ptr }
%"struct.Scheduler::Run::Context" = type { ptr, ptr, ptr }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.boost::intrusive::list_iterator.148" = type { %"struct.boost::intrusive::iiterator_members" }
%"class.std::reference_wrapper.89" = type { ptr }
%"class.Scheduler::Schedule" = type { i64, %"struct.Scheduler::Schedule::Context", ptr, ptr, %"class.std::__cxx11::basic_string", %"class.Scheduler::TimeWindow", %"class.Scheduler::ArrivalTimeActualizer", %"class.Scheduler::ScheduleActualizationModel", %"class.Scheduler::ScheduleValidationModel", %"class.boost::optional", %"class.Scheduler::ScheduleConstraints", %"class.std::vector", %"class.boost::intrusive::list" }
%"struct.Scheduler::Schedule::Context" = type { ptr, ptr, ptr }
%"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.Scheduler::TimeWindow" = type { %"class.Scheduler::TimePoint", %"class.Scheduler::TimePoint" }
%"class.Scheduler::TimePoint" = type { i64 }
%"class.Scheduler::ArrivalTimeActualizer" = type { i8, i8, ptr }
%"class.Scheduler::ScheduleActualizationModel" = type { %"class.std::reference_wrapper", %"class.std::reference_wrapper.1", %"class.std::reference_wrapper.10" }
%"class.std::reference_wrapper" = type { ptr }
%"class.std::reference_wrapper.1" = type { ptr }
%"class.std::reference_wrapper.10" = type { ptr }
%"class.Scheduler::ScheduleValidationModel" = type { %"class.std::reference_wrapper.19", %"class.std::reference_wrapper.28", %"class.std::reference_wrapper.37" }
%"class.std::reference_wrapper.19" = type { ptr }
%"class.std::reference_wrapper.28" = type { ptr }
%"class.std::reference_wrapper.37" = type { ptr }
%"class.boost::optional" = type { ptr }
%"class.Scheduler::ScheduleConstraints" = type { %"class.Scheduler::ConstraintHolder", %"class.Scheduler::ConstraintHolder", %"class.Scheduler::ConstraintHolder.46", %"class.Scheduler::ConstraintHolder.46", %"class.Scheduler::ConstraintHolder.46", %"class.Scheduler::ConstraintHolder.46", %"class.Scheduler::ConstraintHolder.50", %"class.Scheduler::ConstraintHolder.50" }
%"class.Scheduler::ConstraintHolder" = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.Scheduler::ConstraintHolder.46" = type { %"class.std::shared_ptr.47" }
%"class.std::shared_ptr.47" = type { %"class.std::__shared_ptr.48" }
%"class.std::__shared_ptr.48" = type { ptr, %"class.std::__shared_count" }
%"class.Scheduler::ConstraintHolder.50" = type { %"class.std::shared_ptr.51" }
%"class.std::shared_ptr.51" = type { %"class.std::__shared_ptr.52" }
%"class.std::__shared_ptr.52" = type { ptr, %"class.std::__shared_count" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::reference_wrapper<Scheduler::Run>, std::allocator<std::reference_wrapper<Scheduler::Run>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::reference_wrapper<Scheduler::Run>, std::allocator<std::reference_wrapper<Scheduler::Run>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::reference_wrapper<Scheduler::Run>, std::allocator<std::reference_wrapper<Scheduler::Run>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::reference_wrapper<Scheduler::Run>, std::allocator<std::reference_wrapper<Scheduler::Run>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.boost::intrusive::list" = type { %"class.boost::intrusive::list_impl" }
%"class.boost::intrusive::list_impl" = type { %"struct.boost::intrusive::list_impl<Scheduler::Stop::IntrusiveValueTraits, unsigned long, true, void>::data_t" }
%"struct.boost::intrusive::list_impl<Scheduler::Stop::IntrusiveValueTraits, unsigned long, true, void>::data_t" = type { %"struct.boost::intrusive::list_impl<Scheduler::Stop::IntrusiveValueTraits, unsigned long, true, void>::root_plus_size" }
%"struct.boost::intrusive::list_impl<Scheduler::Stop::IntrusiveValueTraits, unsigned long, true, void>::root_plus_size" = type { %"struct.boost::intrusive::detail::size_holder", %"struct.boost::intrusive::detail::default_header_holder" }
%"struct.boost::intrusive::detail::size_holder" = type { i64 }
%"struct.boost::intrusive::detail::default_header_holder" = type { %"class.Scheduler::Stop::IntrusiveListNode" }
%"class.Scheduler::Stop::IntrusiveListNode" = type { ptr, ptr, 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: 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) #1

; Function Attrs: mustprogress uwtable
define dso_local ptr @_ZN9Scheduler8Schedule9createRunEN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperINS_3RunEESt6vectorIS5_SaIS5_EEEERKNS_8LocationESE_(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr %1, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) %3) #2 align 2 {
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.68", align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.Scheduler::Run::Context", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.boost::intrusive::list_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.68", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.68", align 8
  %18 = alloca %"class.boost::intrusive::list_iterator.148", align 8
  %19 = alloca %"class.boost::intrusive::list_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.68", align 8
  %21 = alloca %"class.std::reference_wrapper.89", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.68", align 8
  %23 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.68", ptr %6, i32 0, i32 0
  store ptr %1, ptr %23, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  %25 = getelementptr inbounds %"struct.Scheduler::Run::Context", ptr %10, i32 0, i32 0
  %26 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %24, i32 0, i32 1
  %27 = getelementptr inbounds %"struct.Scheduler::Schedule::Context", ptr %26, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  store ptr %28, ptr %25, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.Scheduler::Run::Context", ptr %10, i32 0, i32 1
  %30 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %24, i32 0, i32 1
  %31 = getelementptr inbounds %"struct.Scheduler::Schedule::Context", ptr %30, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !50
  store ptr %32, ptr %29, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.Scheduler::Run::Context", ptr %10, i32 0, i32 2
  %34 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %24, i32 0, i32 6
  store ptr %34, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %35 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %24, i32 0, i32 1
  %36 = getelementptr inbounds %"struct.Scheduler::Schedule::Context", ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !51
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %24, i32 0, i32 12
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %41 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %24, i32 0, i32 11
  %42 = call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #8
  %43 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %42, ptr %43, align 8
  %44 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPKSt17reference_wrapperIN9Scheduler3RunEEPS4_St6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNSB_IT0_SD_EE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br i1 %44, label %45, label %47

45:                                               ; preds = %4
  %46 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %24, i32 0, i32 12
  call void @_ZN5boost9intrusive9list_implIN9Scheduler4Stop20IntrusiveValueTraitsEmLb1EvE3endEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %46)
  br label %51

47:                                               ; preds = %4
  %48 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %49 = call noundef nonnull align 8 dereferenceable(609) ptr @_ZNKSt17reference_wrapperIN9Scheduler3RunEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #8
  %50 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN9Scheduler3Run8getStopsEv(ptr noundef nonnull align 8 dereferenceable(609) %49)
  call void @_ZN9Scheduler5RangeIN5boost9intrusive4listINS_4StopEJNS2_12value_traitsINS4_20IntrusiveValueTraitsEEEEEEE5beginEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %50)
  br label %51

51:                                               ; preds = %47, %45
  %52 = call noundef ptr @_ZN9Scheduler19SceneObjectsFactoryINS_3RunEE12createObjectIJRNS1_7ContextERNS_8ScheduleERKNS_8LocationESA_RN5boost9intrusive4listINS_4StopEJNSC_12value_traitsINSE_20IntrusiveValueTraitsEEEEEENSC_13list_iteratorISG_Lb0EEEEEEPS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(352) %24, ptr noundef nonnull align 8 dereferenceable(48) %38, ptr noundef nonnull align 8 dereferenceable(48) %39, ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  store ptr %52, ptr %11, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %24, i32 0, i32 6
  call void @_ZN9Scheduler21ArrivalTimeActualizer8setDirtyEb(ptr noundef nonnull align 8 dereferenceable(16) %53, i1 noundef zeroext true)
  %54 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %24, i32 0, i32 9
  %55 = call noundef zeroext i1 @_ZNK5boost8optionalIRKN9Scheduler16RunVehicleBinderEEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %54) #8
  br i1 %55, label %56, label %64

56:                                               ; preds = %51
  %57 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %24, i32 0, i32 9
  %58 = call noundef ptr @_ZNK5boost8optionalIRKN9Scheduler16RunVehicleBinderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %57)
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = load ptr, ptr %58, align 8, !tbaa !52
  %61 = getelementptr inbounds ptr, ptr %60, i64 3
  %62 = load ptr, ptr %61, align 8
  %63 = call noundef zeroext i1 %62(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 8 dereferenceable(609) %59)
  br label %64

64:                                               ; preds = %56, %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %65 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %24, i32 0, i32 11
  %66 = call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #8
  %67 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %66, ptr %67, align 8
  %68 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt17reference_wrapperIN9Scheduler3RunEEPS4_St6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNSB_IT0_SD_EE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br i1 %68, label %69, label %79

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %6, i64 8, i1 false), !tbaa.struct !54
  %70 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.68", ptr %17, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8
  %72 = call ptr @_ZSt4prevIN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS5_SaIS5_EEEEET_SC_NSt15iterator_traitsISC_E15difference_typeE(ptr %71, i64 noundef 1)
  %73 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.68", ptr %16, i32 0, i32 0
  store ptr %72, ptr %73, align 8
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %75 = call noundef nonnull align 8 dereferenceable(609) ptr @_ZNKSt17reference_wrapperIN9Scheduler3RunEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %74) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  store ptr %75, ptr %15, align 8, !tbaa !5
  %76 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN9Scheduler3Run8getStopsEv(ptr noundef nonnull align 8 dereferenceable(609) %77)
  call void @_ZN9Scheduler5RangeIN5boost9intrusive4listINS_4StopEJNS2_12value_traitsINS4_20IntrusiveValueTraitsEEEEEEE5beginEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %78)
  call void @_ZN5boost9intrusive13list_iteratorIN9Scheduler4Stop20IntrusiveValueTraitsELb1EEC2ERKNS1_IS4_Lb0EEE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @_ZN9Scheduler3Run19setStopsEndIteratorEN5boost9intrusive13list_iteratorINS_4Stop20IntrusiveValueTraitsELb1EEE(ptr noundef nonnull align 8 dereferenceable(609) %76, ptr noundef %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %79

79:                                               ; preds = %69, %64
  %80 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %24, i32 0, i32 11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %6, i64 8, i1 false), !tbaa.struct !54
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNSt17reference_wrapperIN9Scheduler3RunEEC2IRS1_vPS1_EEOT_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(609) %81) #8
  %82 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.68", ptr %20, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8
  %84 = call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS3_S5_EEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %80, ptr %83, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %84, ptr %85, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  %86 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %24, i32 0, i32 1
  %87 = getelementptr inbounds %"struct.Scheduler::Schedule::Context", ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !50
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEC2IPS4_vEERKNS0_IT_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.68", ptr %22, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8
  %91 = load ptr, ptr %88, align 8, !tbaa !52
  %92 = getelementptr inbounds ptr, ptr %91, i64 4
  %93 = load ptr, ptr %92, align 8
  call void %93(ptr noundef nonnull align 8 dereferenceable(64) %88, ptr %90)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  %94 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8
  ret ptr %95
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost9intrusive9list_implIN9Scheduler4Stop20IntrusiveValueTraitsEmLb1EvE3endEv(ptr dead_on_unwind noalias writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN9Scheduler3Run8getStopsEv(ptr noundef nonnull align 8 dereferenceable(609)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9Scheduler5RangeIN5boost9intrusive4listINS_4StopEJNS2_12value_traitsINS4_20IntrusiveValueTraitsEEEEEEE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

declare void @_ZN9Scheduler21ArrivalTimeActualizer8setDirtyEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #5

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4prevIN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS5_SaIS5_EEEEET_SC_NSt15iterator_traitsISC_E15difference_typeE(ptr, i64 noundef) #7

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

declare void @_ZN9Scheduler3Run19setStopsEndIteratorEN5boost9intrusive13list_iteratorINS_4Stop20IntrusiveValueTraitsELb1EEE(ptr noundef nonnull align 8 dereferenceable(609), ptr noundef) #5

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTSN9Scheduler8ScheduleE", !11, i64 0, !12, i64 8, !6, i64 32, !6, i64 40, !13, i64 48, !15, i64 80, !17, i64 96, !19, i64 112, !23, i64 136, !27, i64 160, !28, i64 168, !39, i64 296, !43, i64 320}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSN9Scheduler8Schedule7ContextE", !6, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !11, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"_ZTSN9Scheduler10TimeWindowE", !16, i64 0, !16, i64 8}
!16 = !{!"_ZTSN9Scheduler9TimePointE", !11, i64 0}
!17 = !{!"_ZTSN9Scheduler21ArrivalTimeActualizerE", !18, i64 0, !18, i64 1, !6, i64 8}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN9Scheduler26ScheduleActualizationModelE", !20, i64 0, !21, i64 8, !22, i64 16}
!20 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler27RouteActualizationAlgorithmEE", !6, i64 0}
!21 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler33ArrivalTimeActualizationAlgorithmEE", !6, i64 0}
!22 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler30DurationActualizationAlgorithmEE", !6, i64 0}
!23 = !{!"_ZTSN9Scheduler23ScheduleValidationModelE", !24, i64 0, !25, i64 8, !26, i64 16}
!24 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler19ValidationAlgorithmINS0_4StopEEEE", !6, i64 0}
!25 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler19ValidationAlgorithmINS0_3RunEEEE", !6, i64 0}
!26 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler19ValidationAlgorithmINS0_8ScheduleEEEE", !6, i64 0}
!27 = !{!"_ZTSN5boost8optionalIRKN9Scheduler16RunVehicleBinderEEE", !6, i64 0}
!28 = !{!"_ZTSN9Scheduler19ScheduleConstraintsE", !29, i64 0, !29, i64 16, !33, i64 32, !33, i64 48, !33, i64 64, !33, i64 80, !36, i64 96, !36, i64 112}
!29 = !{!"_ZTSN9Scheduler16ConstraintHolderINS_8DistanceEEE", !30, i64 0}
!30 = !{!"_ZTSSt10shared_ptrIN9Scheduler8DistanceEE", !31, i64 0}
!31 = !{!"_ZTSSt12__shared_ptrIN9Scheduler8DistanceELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !32, i64 8}
!32 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!33 = !{!"_ZTSN9Scheduler16ConstraintHolderINS_8DurationEEE", !34, i64 0}
!34 = !{!"_ZTSSt10shared_ptrIN9Scheduler8DurationEE", !35, i64 0}
!35 = !{!"_ZTSSt12__shared_ptrIN9Scheduler8DurationELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !32, i64 8}
!36 = !{!"_ZTSN9Scheduler16ConstraintHolderINS_19ScheduleConstraints18LocationConstraintEEE", !37, i64 0}
!37 = !{!"_ZTSSt10shared_ptrIN9Scheduler19ScheduleConstraints18LocationConstraintEE", !38, i64 0}
!38 = !{!"_ZTSSt12__shared_ptrIN9Scheduler19ScheduleConstraints18LocationConstraintELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !32, i64 8}
!39 = !{!"_ZTSSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTSN5boost9intrusive4listIN9Scheduler4StopEJNS0_12value_traitsINS3_20IntrusiveValueTraitsEEEEEE", !44, i64 0}
!44 = !{!"_ZTSN5boost9intrusive9list_implIN9Scheduler4Stop20IntrusiveValueTraitsEmLb1EvEE", !45, i64 0}
!45 = !{!"_ZTSN5boost9intrusive9list_implIN9Scheduler4Stop20IntrusiveValueTraitsEmLb1EvE6data_tE", !46, i64 0}
!46 = !{!"_ZTSN5boost9intrusive9list_implIN9Scheduler4Stop20IntrusiveValueTraitsEmLb1EvE14root_plus_sizeE", !47, i64 0, !48, i64 8}
!47 = !{!"_ZTSN5boost9intrusive6detail11size_holderILb1EmvEE", !11, i64 0}
!48 = !{!"_ZTSN5boost9intrusive6detail21default_header_holderIN9Scheduler4Stop19IntrusiveNodeTraitsEEE", !49, i64 0}
!49 = !{!"_ZTSN9Scheduler4Stop17IntrusiveListNodeE", !6, i64 0, !6, i64 8, !6, i64 16}
!50 = !{!10, !6, i64 24}
!51 = !{!10, !6, i64 8}
!52 = !{!53, !53, i64 0}
!53 = !{!"vtable pointer", !8, i64 0}
!54 = !{i64 0, i64 8, !5}


; 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 }
%"class.__gnu_cxx::__normal_iterator.68" = type { ptr }
%"struct.Scheduler::Run::Context" = type { ptr, ptr, ptr }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.boost::intrusive::list_iterator.148" = type { %"struct.boost::intrusive::iiterator_members" }
%"class.std::reference_wrapper.89" = 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 uwtable
define dso_local ptr @_ZN9Scheduler8Schedule9createRunEN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperINS_3RunEESt6vectorIS5_SaIS5_EEEERKNS_8LocationESE_(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr %1, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) %3) local_unnamed_addr #1 align 2 {
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.68", align 8
  %7 = alloca %"struct.Scheduler::Run::Context", align 16
  %8 = alloca %"class.boost::intrusive::list_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.68", align 8
  %12 = alloca %"class.boost::intrusive::list_iterator.148", align 8
  %13 = alloca %"class.boost::intrusive::list_iterator", align 8
  %14 = alloca %"class.std::reference_wrapper.89", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.68", align 8
  store ptr %1, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load <2 x ptr>, ptr %17, align 8, !tbaa !5
  store <2 x ptr> %18, ptr %7, align 16, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %7, i64 16
  %20 = getelementptr inbounds i8, ptr %0, i64 96
  store ptr %20, ptr %19, align 16, !tbaa !5
  %21 = load ptr, ptr %16, align 8, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %0, i64 320
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %23 = getelementptr inbounds i8, ptr %0, i64 296
  %24 = tail call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  store ptr %24, ptr %9, align 8
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPKSt17reference_wrapperIN9Scheduler3RunEEPS4_St6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNSB_IT0_SD_EE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br i1 %25, label %26, label %27

26:                                               ; preds = %4
  call void @_ZN5boost9intrusive9list_implIN9Scheduler4Stop20IntrusiveValueTraitsEmLb1EvE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::intrusive::list_iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %22)
  br label %31

27:                                               ; preds = %4
  %28 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %29 = call noundef nonnull align 8 dereferenceable(609) ptr @_ZNKSt17reference_wrapperIN9Scheduler3RunEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  %30 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN9Scheduler3Run8getStopsEv(ptr noundef nonnull align 8 dereferenceable(609) %29)
  call void @_ZN9Scheduler5RangeIN5boost9intrusive4listINS_4StopEJNS2_12value_traitsINS4_20IntrusiveValueTraitsEEEEEEE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::intrusive::list_iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %30)
  br label %31

31:                                               ; preds = %27, %26
  %32 = call noundef ptr @_ZN9Scheduler19SceneObjectsFactoryINS_3RunEE12createObjectIJRNS1_7ContextERNS_8ScheduleERKNS_8LocationESA_RN5boost9intrusive4listINS_4StopEJNSC_12value_traitsINSE_20IntrusiveValueTraitsEEEEEENSC_13list_iteratorISG_Lb0EEEEEEPS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZN9Scheduler21ArrivalTimeActualizer8setDirtyEb(ptr noundef nonnull align 8 dereferenceable(16) %20, i1 noundef zeroext true)
  %33 = getelementptr inbounds i8, ptr %0, i64 160
  %34 = call noundef zeroext i1 @_ZNK5boost8optionalIRKN9Scheduler16RunVehicleBinderEEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  br i1 %34, label %35, label %41

35:                                               ; preds = %31
  %36 = call noundef ptr @_ZNK5boost8optionalIRKN9Scheduler16RunVehicleBinderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %33)
  %37 = load ptr, ptr %36, align 8, !tbaa !50
  %38 = getelementptr inbounds i8, ptr %37, i64 24
  %39 = load ptr, ptr %38, align 8
  %40 = call noundef zeroext i1 %39(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(609) %32)
  br label %41

41:                                               ; preds = %35, %31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %42 = call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  store ptr %42, ptr %10, align 8
  %43 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt17reference_wrapperIN9Scheduler3RunEEPS4_St6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNSB_IT0_SD_EE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br i1 %43, label %44, label %49

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %.sroa.01.0.copyload = load ptr, ptr %6, align 8, !tbaa !5
  %45 = call ptr @_ZSt4prevIN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS5_SaIS5_EEEEET_SC_NSt15iterator_traitsISC_E15difference_typeE(ptr %.sroa.01.0.copyload, i64 noundef 1)
  store ptr %45, ptr %11, align 8
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %47 = call noundef nonnull align 8 dereferenceable(609) ptr @_ZNKSt17reference_wrapperIN9Scheduler3RunEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %48 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN9Scheduler3Run8getStopsEv(ptr noundef nonnull align 8 dereferenceable(609) %32)
  call void @_ZN9Scheduler5RangeIN5boost9intrusive4listINS_4StopEJNS2_12value_traitsINS4_20IntrusiveValueTraitsEEEEEEE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::intrusive::list_iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %48)
  call void @_ZN5boost9intrusive13list_iteratorIN9Scheduler4Stop20IntrusiveValueTraitsELb1EEC2ERKNS1_IS4_Lb0EEE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @_ZN9Scheduler3Run19setStopsEndIteratorEN5boost9intrusive13list_iteratorINS_4Stop20IntrusiveValueTraitsELb1EEE(ptr noundef nonnull align 8 dereferenceable(609) %47, ptr noundef nonnull %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %49

49:                                               ; preds = %44, %41
  %50 = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.0.0.copyload = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @_ZNSt17reference_wrapperIN9Scheduler3RunEEC2IRS1_vPS1_EEOT_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(609) %32) #7
  %51 = call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS3_S5_EEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr %.sroa.0.0.copyload, ptr noundef nonnull align 8 dereferenceable(8) %14)
  store ptr %51, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %52 = load ptr, ptr %50, align 8, !tbaa !52
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEC2IPS4_vEERKNS0_IT_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %53 = load ptr, ptr %15, align 8
  %54 = load ptr, ptr %52, align 8, !tbaa !50
  %55 = getelementptr inbounds i8, ptr %54, i64 32
  %56 = load ptr, ptr %55, align 8
  call void %56(ptr noundef nonnull align 8 dereferenceable(64) %52, ptr %53)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  %57 = load ptr, ptr %5, align 8
  ret ptr %57
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN9Scheduler19SceneObjectsFactoryINS_3RunEE12createObjectIJRNS1_7ContextERNS_8ScheduleERKNS_8LocationESA_RN5boost9intrusive4listINS_4StopEJNSC_12value_traitsINSE_20IntrusiveValueTraitsEEEEEENSC_13list_iteratorISG_Lb0EEEEEEPS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(352), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost9intrusive9list_implIN9Scheduler4Stop20IntrusiveValueTraitsEmLb1EvE3endEv(ptr dead_on_unwind noalias writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN9Scheduler3Run8getStopsEv(ptr noundef nonnull align 8 dereferenceable(609)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9Scheduler5RangeIN5boost9intrusive4listINS_4StopEJNS2_12value_traitsINS4_20IntrusiveValueTraitsEEEEEEE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

declare void @_ZN9Scheduler21ArrivalTimeActualizer8setDirtyEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #4

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4prevIN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS5_SaIS5_EEEEET_SC_NSt15iterator_traitsISC_E15difference_typeE(ptr, i64 noundef) local_unnamed_addr #6

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

declare void @_ZN9Scheduler3Run19setStopsEndIteratorEN5boost9intrusive13list_iteratorINS_4Stop20IntrusiveValueTraitsELb1EEE(ptr noundef nonnull align 8 dereferenceable(609), ptr noundef) local_unnamed_addr #4

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { "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 = { alwaysinline 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 #6 = { 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 #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, !6, i64 8}
!10 = !{!"_ZTSN9Scheduler8ScheduleE", !11, i64 0, !12, i64 8, !6, i64 32, !6, i64 40, !13, i64 48, !15, i64 80, !17, i64 96, !19, i64 112, !23, i64 136, !27, i64 160, !28, i64 168, !39, i64 296, !43, i64 320}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSN9Scheduler8Schedule7ContextE", !6, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !11, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"_ZTSN9Scheduler10TimeWindowE", !16, i64 0, !16, i64 8}
!16 = !{!"_ZTSN9Scheduler9TimePointE", !11, i64 0}
!17 = !{!"_ZTSN9Scheduler21ArrivalTimeActualizerE", !18, i64 0, !18, i64 1, !6, i64 8}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN9Scheduler26ScheduleActualizationModelE", !20, i64 0, !21, i64 8, !22, i64 16}
!20 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler27RouteActualizationAlgorithmEE", !6, i64 0}
!21 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler33ArrivalTimeActualizationAlgorithmEE", !6, i64 0}
!22 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler30DurationActualizationAlgorithmEE", !6, i64 0}
!23 = !{!"_ZTSN9Scheduler23ScheduleValidationModelE", !24, i64 0, !25, i64 8, !26, i64 16}
!24 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler19ValidationAlgorithmINS0_4StopEEEE", !6, i64 0}
!25 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler19ValidationAlgorithmINS0_3RunEEEE", !6, i64 0}
!26 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler19ValidationAlgorithmINS0_8ScheduleEEEE", !6, i64 0}
!27 = !{!"_ZTSN5boost8optionalIRKN9Scheduler16RunVehicleBinderEEE", !6, i64 0}
!28 = !{!"_ZTSN9Scheduler19ScheduleConstraintsE", !29, i64 0, !29, i64 16, !33, i64 32, !33, i64 48, !33, i64 64, !33, i64 80, !36, i64 96, !36, i64 112}
!29 = !{!"_ZTSN9Scheduler16ConstraintHolderINS_8DistanceEEE", !30, i64 0}
!30 = !{!"_ZTSSt10shared_ptrIN9Scheduler8DistanceEE", !31, i64 0}
!31 = !{!"_ZTSSt12__shared_ptrIN9Scheduler8DistanceELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !32, i64 8}
!32 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!33 = !{!"_ZTSN9Scheduler16ConstraintHolderINS_8DurationEEE", !34, i64 0}
!34 = !{!"_ZTSSt10shared_ptrIN9Scheduler8DurationEE", !35, i64 0}
!35 = !{!"_ZTSSt12__shared_ptrIN9Scheduler8DurationELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !32, i64 8}
!36 = !{!"_ZTSN9Scheduler16ConstraintHolderINS_19ScheduleConstraints18LocationConstraintEEE", !37, i64 0}
!37 = !{!"_ZTSSt10shared_ptrIN9Scheduler19ScheduleConstraints18LocationConstraintEE", !38, i64 0}
!38 = !{!"_ZTSSt12__shared_ptrIN9Scheduler19ScheduleConstraints18LocationConstraintELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !32, i64 8}
!39 = !{!"_ZTSSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTSN5boost9intrusive4listIN9Scheduler4StopEJNS0_12value_traitsINS3_20IntrusiveValueTraitsEEEEEE", !44, i64 0}
!44 = !{!"_ZTSN5boost9intrusive9list_implIN9Scheduler4Stop20IntrusiveValueTraitsEmLb1EvEE", !45, i64 0}
!45 = !{!"_ZTSN5boost9intrusive9list_implIN9Scheduler4Stop20IntrusiveValueTraitsEmLb1EvE6data_tE", !46, i64 0}
!46 = !{!"_ZTSN5boost9intrusive9list_implIN9Scheduler4Stop20IntrusiveValueTraitsEmLb1EvE14root_plus_sizeE", !47, i64 0, !48, i64 8}
!47 = !{!"_ZTSN5boost9intrusive6detail11size_holderILb1EmvEE", !11, i64 0}
!48 = !{!"_ZTSN5boost9intrusive6detail21default_header_holderIN9Scheduler4Stop19IntrusiveNodeTraitsEEE", !49, i64 0}
!49 = !{!"_ZTSN9Scheduler4Stop17IntrusiveListNodeE", !6, i64 0, !6, i64 8, !6, i64 16}
!50 = !{!51, !51, i64 0}
!51 = !{!"vtable pointer", !8, i64 0}
!52 = !{!10, !6, i64 24}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,TailCallElimPass