; 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.boost::optional.98" = type { ptr }
%"struct.boost::none_t" = type { i8 }
%"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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5boost8optionalIRKN9Scheduler16RunVehicleBinderEEcvbEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK5boost8optionalIRKN9Scheduler16RunVehicleBinderEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 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: 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 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 uwtable
define dso_local void @_ZN9Scheduler8Schedule19setRunVehicleBinderEN5boost8optionalIRKNS_16RunVehicleBinderEEE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %1) #5 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.boost::optional.98", align 8
  %10 = alloca %"struct.boost::none_t", align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  %12 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %11, i32 0, i32 9
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5boost8optionalIRKN9Scheduler16RunVehicleBinderEEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %14 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %11, i32 0, i32 11
  store ptr %14, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %17 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %16, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %20 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %19, ptr %20, align 8
  br label %21

21:                                               ; preds = %38, %2
  %22 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %22, label %24, label %23

23:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %40

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %26 = call noundef nonnull align 8 dereferenceable(609) ptr @_ZNKSt17reference_wrapperIN9Scheduler3RunEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  store ptr %26, ptr %8, align 8, !tbaa !5
  %27 = call noundef zeroext i1 @_ZNK5boost8optionalIRKN9Scheduler16RunVehicleBinderEEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  br i1 %27, label %28, label %35

28:                                               ; preds = %24
  %29 = call noundef ptr @_ZNK5boost8optionalIRKN9Scheduler16RunVehicleBinderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = load ptr, ptr %29, align 8, !tbaa !9
  %32 = getelementptr inbounds ptr, ptr %31, i64 3
  %33 = load ptr, ptr %32, align 8
  %34 = call noundef zeroext i1 %33(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(609) %30)
  br label %37

35:                                               ; preds = %24
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN5boost8optionalIRKN9Scheduler7VehicleEEC2ENS_6none_tE(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @_ZN9Scheduler3Run10setVehicleEN5boost8optionalIRKNS_7VehicleEEE(ptr noundef nonnull align 8 dereferenceable(609) %36, ptr noundef %9)
  br label %37

37:                                               ; preds = %35, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %38

38:                                               ; preds = %37
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %21

40:                                               ; preds = %23
  %41 = getelementptr inbounds %"class.Scheduler::Schedule", ptr %11, i32 0, i32 6
  call void @_ZN9Scheduler21ArrivalTimeActualizer8setDirtyEb(ptr noundef nonnull align 8 dereferenceable(16) %41, i1 noundef zeroext true)
  ret void
}

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

declare void @_ZN9Scheduler3Run10setVehicleEN5boost8optionalIRKNS_7VehicleEEE(ptr noundef nonnull align 8 dereferenceable(609), ptr noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}


; 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.boost::optional.98" = 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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5boost8optionalIRKN9Scheduler16RunVehicleBinderEEcvbEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK5boost8optionalIRKN9Scheduler16RunVehicleBinderEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 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: 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 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 uwtable
define dso_local void @_ZN9Scheduler8Schedule19setRunVehicleBinderEN5boost8optionalIRKNS_16RunVehicleBinderEEE(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef nonnull %1) local_unnamed_addr #5 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.boost::optional.98", align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 160
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5boost8optionalIRKN9Scheduler16RunVehicleBinderEEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %8 = getelementptr inbounds i8, ptr %0, i64 296
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %9 = tail call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  store ptr %9, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %10 = tail call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  store ptr %10, ptr %4, align 8
  %11 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br i1 %11, label %.lr.ph, label %._crit_edge

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

.lr.ph:                                           ; preds = %2, %23
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %14 = call noundef nonnull align 8 dereferenceable(609) ptr @_ZNKSt17reference_wrapperIN9Scheduler3RunEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %15 = call noundef zeroext i1 @_ZNK5boost8optionalIRKN9Scheduler16RunVehicleBinderEEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  br i1 %15, label %16, label %22

16:                                               ; preds = %.lr.ph
  %17 = call noundef ptr @_ZNK5boost8optionalIRKN9Scheduler16RunVehicleBinderEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 24
  %20 = load ptr, ptr %19, align 8
  %21 = call noundef zeroext i1 %20(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(609) %14)
  br label %23

22:                                               ; preds = %.lr.ph
  call void @_ZN5boost8optionalIRKN9Scheduler7VehicleEEC2ENS_6none_tE(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @_ZN9Scheduler3Run10setVehicleEN5boost8optionalIRKNS_7VehicleEEE(ptr noundef nonnull align 8 dereferenceable(609) %14, ptr noundef nonnull %5)
  br label %23

23:                                               ; preds = %22, %16
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br i1 %25, label %.lr.ph, label %._crit_edge
}

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

declare void @_ZN9Scheduler3Run10setVehicleEN5boost8optionalIRKNS_7VehicleEEE(ptr noundef nonnull align 8 dereferenceable(609), ptr noundef) local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


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