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

; 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.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: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Scheduler8Schedule5clearEv(ptr noundef nonnull align 8 dereferenceable(352) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %8 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %7, i32 0, i32 11
  store ptr %8, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  %11 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %10, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  %14 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %13, ptr %14, align 8
  br label %15

15:                                               ; preds = %25, %1
  %16 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %16, label %18, label %17

17:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %27

18:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %20 = call noundef nonnull align 8 dereferenceable(609) ptr @_ZNKSt17reference_wrapperIN9Scheduler3RunEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  store ptr %20, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %7, i32 0, i32 1
  %22 = getelementptr inbounds %"struct.Scheduler::Schedule::Context", ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN9Scheduler19SceneObjectsFactoryINS_3RunEE13destroyObjectEPS1_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef %24)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %25

25:                                               ; preds = %18
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br label %15

27:                                               ; preds = %17
  %28 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %7, i32 0, i32 11
  call void @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  %29 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %7, i32 0, i32 6
  call void @_ZN9Scheduler21ArrivalTimeActualizer8setDirtyEb(ptr noundef nonnull align 8 dereferenceable(16) %29, i1 noundef zeroext true)
  ret void
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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}


; 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 }

; 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 ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

declare void @_ZN9Scheduler21ArrivalTimeActualizer8setDirtyEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) 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 #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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Scheduler8Schedule5clearEv(ptr noundef nonnull align 8 dereferenceable(352) %0) local_unnamed_addr #3 align 2 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 296
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %5 = tail call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %5, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %6 = tail call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %6, ptr %3, align 8
  %7 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  br label %10

._crit_edge:                                      ; preds = %10, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %9 = getelementptr inbounds i8, ptr %0, i64 96
  call void @_ZN9Scheduler21ArrivalTimeActualizer8setDirtyEb(ptr noundef nonnull align 8 dereferenceable(16) %9, i1 noundef zeroext true)
  ret void

10:                                               ; preds = %.lr.ph, %10
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %12 = call noundef nonnull align 8 dereferenceable(609) ptr @_ZNKSt17reference_wrapperIN9Scheduler3RunEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %13 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN9Scheduler19SceneObjectsFactoryINS_3RunEE13destroyObjectEPS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull %12)
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %15 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br i1 %15, label %10, label %._crit_edge
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 8}
!6 = !{!"_ZTSN9Scheduler8ScheduleE", !7, i64 0, !10, i64 8, !11, i64 32, !11, i64 40, !12, i64 48, !14, i64 80, !16, i64 96, !18, i64 112, !22, i64 136, !26, i64 160, !27, i64 168, !38, i64 296, !42, i64 320}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN9Scheduler8Schedule7ContextE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !7, i64 8, !8, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!14 = !{!"_ZTSN9Scheduler10TimeWindowE", !15, i64 0, !15, i64 8}
!15 = !{!"_ZTSN9Scheduler9TimePointE", !7, i64 0}
!16 = !{!"_ZTSN9Scheduler21ArrivalTimeActualizerE", !17, i64 0, !17, i64 1, !11, i64 8}
!17 = !{!"bool", !8, i64 0}
!18 = !{!"_ZTSN9Scheduler26ScheduleActualizationModelE", !19, i64 0, !20, i64 8, !21, i64 16}
!19 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler27RouteActualizationAlgorithmEE", !11, i64 0}
!20 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler33ArrivalTimeActualizationAlgorithmEE", !11, i64 0}
!21 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler30DurationActualizationAlgorithmEE", !11, i64 0}
!22 = !{!"_ZTSN9Scheduler23ScheduleValidationModelE", !23, i64 0, !24, i64 8, !25, i64 16}
!23 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler19ValidationAlgorithmINS0_4StopEEEE", !11, i64 0}
!24 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler19ValidationAlgorithmINS0_3RunEEEE", !11, i64 0}
!25 = !{!"_ZTSSt17reference_wrapperIKN9Scheduler19ValidationAlgorithmINS0_8ScheduleEEEE", !11, i64 0}
!26 = !{!"_ZTSN5boost8optionalIRKN9Scheduler16RunVehicleBinderEEE", !11, i64 0}
!27 = !{!"_ZTSN9Scheduler19ScheduleConstraintsE", !28, i64 0, !28, i64 16, !32, i64 32, !32, i64 48, !32, i64 64, !32, i64 80, !35, i64 96, !35, i64 112}
!28 = !{!"_ZTSN9Scheduler16ConstraintHolderINS_8DistanceEEE", !29, i64 0}
!29 = !{!"_ZTSSt10shared_ptrIN9Scheduler8DistanceEE", !30, i64 0}
!30 = !{!"_ZTSSt12__shared_ptrIN9Scheduler8DistanceELN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !31, i64 8}
!31 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0}
!32 = !{!"_ZTSN9Scheduler16ConstraintHolderINS_8DurationEEE", !33, i64 0}
!33 = !{!"_ZTSSt10shared_ptrIN9Scheduler8DurationEE", !34, i64 0}
!34 = !{!"_ZTSSt12__shared_ptrIN9Scheduler8DurationELN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !31, i64 8}
!35 = !{!"_ZTSN9Scheduler16ConstraintHolderINS_19ScheduleConstraints18LocationConstraintEEE", !36, i64 0}
!36 = !{!"_ZTSSt10shared_ptrIN9Scheduler19ScheduleConstraints18LocationConstraintEE", !37, i64 0}
!37 = !{!"_ZTSSt12__shared_ptrIN9Scheduler19ScheduleConstraints18LocationConstraintELN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !31, i64 8}
!38 = !{!"_ZTSSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!42 = !{!"_ZTSN5boost9intrusive4listIN9Scheduler4StopEJNS0_12value_traitsINS3_20IntrusiveValueTraitsEEEEEE", !43, i64 0}
!43 = !{!"_ZTSN5boost9intrusive9list_implIN9Scheduler4Stop20IntrusiveValueTraitsEmLb1EvEE", !44, i64 0}
!44 = !{!"_ZTSN5boost9intrusive9list_implIN9Scheduler4Stop20IntrusiveValueTraitsEmLb1EvE6data_tE", !45, i64 0}
!45 = !{!"_ZTSN5boost9intrusive9list_implIN9Scheduler4Stop20IntrusiveValueTraitsEmLb1EvE14root_plus_sizeE", !46, i64 0, !47, i64 8}
!46 = !{!"_ZTSN5boost9intrusive6detail11size_holderILb1EmvEE", !7, i64 0}
!47 = !{!"_ZTSN5boost9intrusive6detail21default_header_holderIN9Scheduler4Stop19IntrusiveNodeTraitsEEE", !48, i64 0}
!48 = !{!"_ZTSN9Scheduler4Stop17IntrusiveListNodeE", !11, i64 0, !11, i64 8, !11, i64 16}


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