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

; 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.102" = type { ptr }
%"class.boost::optional.66" = type { ptr }
%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator" = type { [8 x i8], %"class.boost::intrusive::list_iterator" }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.103" = type { [8 x i8], %"class.boost::intrusive::list_iterator.105" }
%"class.boost::intrusive::list_iterator.105" = type { %"struct.boost::intrusive::iiterator_members" }

; 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 uwtable
define dso_local void @_ZN9Scheduler11SceneCloner24cloneScheduleAssignmentsERKNS_8ScheduleERS1_(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef nonnull align 8 dereferenceable(352) %1) #1 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 i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.102", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.boost::optional.66", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator", align 8
  %16 = alloca %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator", align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator", align 8
  %20 = alloca %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.103", align 8
  %21 = alloca %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN9Scheduler8Schedule5clearEv(ptr noundef nonnull align 8 dereferenceable(352) %22)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler8Schedule7getRunsEv(ptr noundef nonnull align 8 dereferenceable(352) %23)
  store ptr %24, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call ptr @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  %27 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %26, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call ptr @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  %30 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %29, ptr %30, align 8
  br label %31

31:                                               ; preds = %107, %2
  %32 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %32, label %34, label %33

33:                                               ; preds = %31
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %109

34:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %36 = call noundef nonnull align 8 dereferenceable(609) ptr @_ZNKSt17reference_wrapperIN9Scheduler3RunEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #5
  store ptr %36, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler8Schedule7getRunsEv(ptr noundef nonnull align 8 dereferenceable(352) %38)
  %40 = call ptr @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #5
  %41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %40, ptr %41, align 8
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run12getStartStopEv(ptr noundef nonnull align 8 dereferenceable(609) %42)
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = getelementptr inbounds ptr, ptr %44, i64 2
  %46 = load ptr, ptr %45, align 8
  %47 = call noundef nonnull align 8 dereferenceable(48) ptr %46(ptr noundef nonnull align 8 dereferenceable(216) %43)
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run10getEndStopEv(ptr noundef nonnull align 8 dereferenceable(609) %48)
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = getelementptr inbounds ptr, ptr %50, i64 2
  %52 = load ptr, ptr %51, align 8
  %53 = call noundef nonnull align 8 dereferenceable(48) ptr %52(ptr noundef nonnull align 8 dereferenceable(216) %49)
  %54 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8
  %56 = call ptr @_ZN9Scheduler8Schedule9createRunEN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperINS_3RunEESt6vectorIS5_SaIS5_EEEERKNS_8LocationESE_(ptr noundef nonnull align 8 dereferenceable(352) %37, ptr %55, ptr noundef nonnull align 8 dereferenceable(48) %47, ptr noundef nonnull align 8 dereferenceable(48) %53)
  %57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.102", ptr %11, i32 0, i32 0
  store ptr %56, ptr %57, align 8
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %59 = call noundef nonnull align 8 dereferenceable(609) ptr @_ZNKSt17reference_wrapperIN9Scheduler3RunEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %58) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  store ptr %59, ptr %10, align 8, !tbaa !5
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK9Scheduler3Run10getVehicleEv(ptr dead_on_unwind writable sret(%"class.boost::optional.66") align 8 %13, ptr noundef nonnull align 8 dereferenceable(609) %61)
  call void @_ZN9Scheduler3Run10setVehicleEN5boost8optionalIRKNS_7VehicleEEE(ptr noundef nonnull align 8 dereferenceable(609) %60, ptr noundef %13)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9Scheduler3Run12getWorkStopsEv(ptr noundef nonnull align 8 dereferenceable(609) %62)
  store ptr %63, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE5beginEv(ptr dead_on_unwind writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator") align 8 %15, ptr noundef nonnull align 8 dereferenceable(8) %64)
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE3endEv(ptr dead_on_unwind writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator") align 8 %16, ptr noundef nonnull align 8 dereferenceable(8) %65)
  br label %66

66:                                               ; preds = %84, %34
  %67 = call noundef zeroext i1 @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorISC_NS3_13list_iteratorIS7_Lb0EEEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
  br i1 %67, label %69, label %68

68:                                               ; preds = %66
  store i32 4, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %86

69:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %70 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorISC_NS3_13list_iteratorIS7_Lb0EEEEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
  store ptr %70, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9Scheduler3Run12getWorkStopsEv(ptr noundef nonnull align 8 dereferenceable(609) %72)
  call void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE3endEv(ptr dead_on_unwind writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %73)
  call void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2INSE_ISC_NSG_IS7_Lb0EEEEEEERKT_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %74 = load ptr, ptr %17, align 8, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZNK9Scheduler8WorkStop12getOperationEv(ptr noundef nonnull align 8 dereferenceable(168) %74)
  %76 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNK9Scheduler9Operation8getOrderEv(ptr noundef nonnull align 8 dereferenceable(128) %75)
  call void @_ZN9Scheduler3Run13allocateOrderENS_16RangeTypeAdapterINS_5RangeINS2_IN5boost9intrusive4listINS_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEERKNS_5OrderE(ptr dead_on_unwind writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator") align 8 %19, ptr noundef nonnull align 8 dereferenceable(609) %71, ptr noundef %20, ptr noundef nonnull align 8 dereferenceable(88) %76)
  %77 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorISC_NS3_13list_iteratorIS7_Lb0EEEEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  store ptr %77, ptr %18, align 8, !tbaa !5
  %78 = load ptr, ptr %18, align 8, !tbaa !5
  %79 = load ptr, ptr %17, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9Scheduler4Stop11getDurationEv(ptr noundef nonnull align 8 dereferenceable(152) %79)
  call void @_ZN9Scheduler4Stop11setDurationERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(152) %78, ptr noundef nonnull align 8 dereferenceable(8) %80)
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  %82 = load ptr, ptr %17, align 8, !tbaa !5
  %83 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9Scheduler4Stop17getAllocationTimeEv(ptr noundef nonnull align 8 dereferenceable(152) %82)
  call void @_ZN9Scheduler4Stop17setAllocationTimeERKNS_10TimeWindowE(ptr noundef nonnull align 8 dereferenceable(152) %81, ptr noundef nonnull align 8 dereferenceable(16) %83)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %84

84:                                               ; preds = %69
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorISC_NS3_13list_iteratorIS7_Lb0EEEEppEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
  br label %66

86:                                               ; preds = %68
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run12getStartStopEv(ptr noundef nonnull align 8 dereferenceable(609) %87)
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run12getStartStopEv(ptr noundef nonnull align 8 dereferenceable(609) %89)
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9Scheduler4Stop11getDurationEv(ptr noundef nonnull align 8 dereferenceable(152) %90)
  call void @_ZN9Scheduler4Stop11setDurationERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(152) %88, ptr noundef nonnull align 8 dereferenceable(8) %91)
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run12getStartStopEv(ptr noundef nonnull align 8 dereferenceable(609) %92)
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run12getStartStopEv(ptr noundef nonnull align 8 dereferenceable(609) %94)
  %96 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9Scheduler4Stop17getAllocationTimeEv(ptr noundef nonnull align 8 dereferenceable(152) %95)
  call void @_ZN9Scheduler4Stop17setAllocationTimeERKNS_10TimeWindowE(ptr noundef nonnull align 8 dereferenceable(152) %93, ptr noundef nonnull align 8 dereferenceable(16) %96)
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run10getEndStopEv(ptr noundef nonnull align 8 dereferenceable(609) %97)
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run10getEndStopEv(ptr noundef nonnull align 8 dereferenceable(609) %99)
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9Scheduler4Stop11getDurationEv(ptr noundef nonnull align 8 dereferenceable(152) %100)
  call void @_ZN9Scheduler4Stop11setDurationERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(152) %98, ptr noundef nonnull align 8 dereferenceable(8) %101)
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run10getEndStopEv(ptr noundef nonnull align 8 dereferenceable(609) %102)
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run10getEndStopEv(ptr noundef nonnull align 8 dereferenceable(609) %104)
  %106 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9Scheduler4Stop17getAllocationTimeEv(ptr noundef nonnull align 8 dereferenceable(152) %105)
  call void @_ZN9Scheduler4Stop17setAllocationTimeERKNS_10TimeWindowE(ptr noundef nonnull align 8 dereferenceable(152) %103, ptr noundef nonnull align 8 dereferenceable(16) %106)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %107

107:                                              ; preds = %86
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br label %31

109:                                              ; preds = %33
  ret void
}

declare void @_ZN9Scheduler8Schedule5clearEv(ptr noundef nonnull align 8 dereferenceable(352)) #2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler8Schedule7getRunsEv(ptr noundef nonnull align 8 dereferenceable(352)) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(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_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #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)) #3 align 2

declare ptr @_ZN9Scheduler8Schedule9createRunEN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperINS_3RunEESt6vectorIS5_SaIS5_EEEERKNS_8LocationESE_(ptr noundef nonnull align 8 dereferenceable(352), ptr, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #2

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

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

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

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

declare void @_ZNK9Scheduler3Run10getVehicleEv(ptr dead_on_unwind writable sret(%"class.boost::optional.66") align 8, ptr noundef nonnull align 8 dereferenceable(609)) #2

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

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

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

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

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

declare void @_ZN9Scheduler3Run13allocateOrderENS_16RangeTypeAdapterINS_5RangeINS2_IN5boost9intrusive4listINS_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEERKNS_5OrderE(ptr dead_on_unwind writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(609), ptr noundef, ptr noundef nonnull align 8 dereferenceable(88)) #2

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

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

declare noundef nonnull align 8 dereferenceable(88) ptr @_ZNK9Scheduler9Operation8getOrderEv(ptr noundef nonnull align 8 dereferenceable(128)) #2

declare void @_ZN9Scheduler4Stop11setDurationERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(8)) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9Scheduler4Stop11getDurationEv(ptr noundef nonnull align 8 dereferenceable(152)) #2

declare void @_ZN9Scheduler4Stop17setAllocationTimeERKNS_10TimeWindowE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(16)) #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9Scheduler4Stop17getAllocationTimeEv(ptr noundef nonnull align 8 dereferenceable(152)) #2

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

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

attributes #0 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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.__gnu_cxx::__normal_iterator.102" = type { ptr }
%"class.boost::optional.66" = type { ptr }
%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator" = type { [8 x i8], %"class.boost::intrusive::list_iterator" }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.103" = type { [8 x i8], %"class.boost::intrusive::list_iterator.105" }
%"class.boost::intrusive::list_iterator.105" = type { %"struct.boost::intrusive::iiterator_members" }

; 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 void @_ZN9Scheduler11SceneCloner24cloneScheduleAssignmentsERKNS_8ScheduleERS1_(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef nonnull align 8 dereferenceable(352) %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.102", align 8
  %6 = alloca %"class.boost::optional.66", align 8
  %7 = alloca %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator", align 8
  %8 = alloca %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator", align 8
  %9 = alloca %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator", align 8
  %10 = alloca %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator.103", align 8
  %11 = alloca %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator", align 8
  tail call void @_ZN9Scheduler8Schedule5clearEv(ptr noundef nonnull align 8 dereferenceable(352) %1)
  %12 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler8Schedule7getRunsEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %13 = tail call ptr @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  store ptr %13, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %14 = tail call ptr @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  store ptr %14, ptr %4, align 8
  %15 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %15, label %.lr.ph29, label %._crit_edge30

._crit_edge30:                                    ; preds = %._crit_edge, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret void

.lr.ph29:                                         ; preds = %2, %._crit_edge
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %17 = call noundef nonnull align 8 dereferenceable(609) ptr @_ZNKSt17reference_wrapperIN9Scheduler3RunEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %18 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler8Schedule7getRunsEv(ptr noundef nonnull align 8 dereferenceable(352) %1)
  %19 = call ptr @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler3RunEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %20 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run12getStartStopEv(ptr noundef nonnull align 8 dereferenceable(609) %17)
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %23 = load ptr, ptr %22, align 8
  %24 = call noundef nonnull align 8 dereferenceable(48) ptr %23(ptr noundef nonnull align 8 dereferenceable(216) %20)
  %25 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run10getEndStopEv(ptr noundef nonnull align 8 dereferenceable(609) %17)
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %28 = load ptr, ptr %27, align 8
  %29 = call noundef nonnull align 8 dereferenceable(48) ptr %28(ptr noundef nonnull align 8 dereferenceable(216) %25)
  %30 = call ptr @_ZN9Scheduler8Schedule9createRunEN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperINS_3RunEESt6vectorIS5_SaIS5_EEEERKNS_8LocationESE_(ptr noundef nonnull align 8 dereferenceable(352) %1, ptr %19, ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull align 8 dereferenceable(48) %29)
  store ptr %30, ptr %5, align 8
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %32 = call noundef nonnull align 8 dereferenceable(609) ptr @_ZNKSt17reference_wrapperIN9Scheduler3RunEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNK9Scheduler3Run10getVehicleEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::optional.66") align 8 %6, ptr noundef nonnull align 8 dereferenceable(609) %17)
  call void @_ZN9Scheduler3Run10setVehicleEN5boost8optionalIRKNS_7VehicleEEE(ptr noundef nonnull align 8 dereferenceable(609) %32, ptr noundef nonnull %6)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9Scheduler3Run12getWorkStopsEv(ptr noundef nonnull align 8 dereferenceable(609) %17)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %33)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  call void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %34 = call noundef zeroext i1 @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorISC_NS3_13list_iteratorIS7_Lb0EEEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  br i1 %34, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph29
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  %35 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run12getStartStopEv(ptr noundef nonnull align 8 dereferenceable(609) %32)
  %36 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run12getStartStopEv(ptr noundef nonnull align 8 dereferenceable(609) %17)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9Scheduler4Stop11getDurationEv(ptr noundef nonnull align 8 dereferenceable(152) %36)
  call void @_ZN9Scheduler4Stop11setDurationERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(152) %35, ptr noundef nonnull align 8 dereferenceable(8) %37)
  %38 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run12getStartStopEv(ptr noundef nonnull align 8 dereferenceable(609) %32)
  %39 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run12getStartStopEv(ptr noundef nonnull align 8 dereferenceable(609) %17)
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9Scheduler4Stop17getAllocationTimeEv(ptr noundef nonnull align 8 dereferenceable(152) %39)
  call void @_ZN9Scheduler4Stop17setAllocationTimeERKNS_10TimeWindowE(ptr noundef nonnull align 8 dereferenceable(152) %38, ptr noundef nonnull align 8 dereferenceable(16) %40)
  %41 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run10getEndStopEv(ptr noundef nonnull align 8 dereferenceable(609) %32)
  %42 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run10getEndStopEv(ptr noundef nonnull align 8 dereferenceable(609) %17)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9Scheduler4Stop11getDurationEv(ptr noundef nonnull align 8 dereferenceable(152) %42)
  call void @_ZN9Scheduler4Stop11setDurationERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(152) %41, ptr noundef nonnull align 8 dereferenceable(8) %43)
  %44 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run10getEndStopEv(ptr noundef nonnull align 8 dereferenceable(609) %32)
  %45 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZN9Scheduler3Run10getEndStopEv(ptr noundef nonnull align 8 dereferenceable(609) %17)
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9Scheduler4Stop17getAllocationTimeEv(ptr noundef nonnull align 8 dereferenceable(152) %45)
  call void @_ZN9Scheduler4Stop17setAllocationTimeERKNS_10TimeWindowE(ptr noundef nonnull align 8 dereferenceable(152) %44, ptr noundef nonnull align 8 dereferenceable(16) %46)
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %48 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %48, label %.lr.ph29, label %._crit_edge30

.lr.ph:                                           ; preds = %.lr.ph29, %.lr.ph
  %49 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorISC_NS3_13list_iteratorIS7_Lb0EEEEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9Scheduler3Run12getWorkStopsEv(ptr noundef nonnull align 8 dereferenceable(609) %32)
  call void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %50)
  call void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2INSE_ISC_NSG_IS7_Lb0EEEEEEERKT_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %51 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZNK9Scheduler8WorkStop12getOperationEv(ptr noundef nonnull align 8 dereferenceable(168) %49)
  %52 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNK9Scheduler9Operation8getOrderEv(ptr noundef nonnull align 8 dereferenceable(128) %51)
  call void @_ZN9Scheduler3Run13allocateOrderENS_16RangeTypeAdapterINS_5RangeINS2_IN5boost9intrusive4listINS_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEERKNS_5OrderE(ptr dead_on_unwind nonnull writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(609) %32, ptr noundef nonnull %10, ptr noundef nonnull align 8 dereferenceable(88) %52)
  %53 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorISC_NS3_13list_iteratorIS7_Lb0EEEEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9Scheduler4Stop11getDurationEv(ptr noundef nonnull align 8 dereferenceable(152) %49)
  call void @_ZN9Scheduler4Stop11setDurationERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(152) %53, ptr noundef nonnull align 8 dereferenceable(8) %54)
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9Scheduler4Stop17getAllocationTimeEv(ptr noundef nonnull align 8 dereferenceable(152) %49)
  call void @_ZN9Scheduler4Stop17setAllocationTimeERKNS_10TimeWindowE(ptr noundef nonnull align 8 dereferenceable(152) %53, ptr noundef nonnull align 8 dereferenceable(16) %55)
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorISC_NS3_13list_iteratorIS7_Lb0EEEEppEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %57 = call noundef zeroext i1 @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorISC_NS3_13list_iteratorIS7_Lb0EEEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  br i1 %57, label %.lr.ph, label %._crit_edge
}

declare void @_ZN9Scheduler8Schedule5clearEv(ptr noundef nonnull align 8 dereferenceable(352)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler8Schedule7getRunsEv(ptr noundef nonnull align 8 dereferenceable(352)) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt17reference_wrapperIN9Scheduler3RunEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(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_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 ptr @_ZN9Scheduler8Schedule9createRunEN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperINS_3RunEESt6vectorIS5_SaIS5_EEEERKNS_8LocationESE_(ptr noundef nonnull align 8 dereferenceable(352), ptr, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2

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

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

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

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

declare void @_ZNK9Scheduler3Run10getVehicleEv(ptr dead_on_unwind writable sret(%"class.boost::optional.66") align 8, ptr noundef nonnull align 8 dereferenceable(609)) local_unnamed_addr #2

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

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

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

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

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

declare void @_ZN9Scheduler3Run13allocateOrderENS_16RangeTypeAdapterINS_5RangeINS2_IN5boost9intrusive4listINS_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEERKNS_5OrderE(ptr dead_on_unwind writable sret(%"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(609), ptr noundef, ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2

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

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

declare noundef nonnull align 8 dereferenceable(88) ptr @_ZNK9Scheduler9Operation8getOrderEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #2

declare void @_ZN9Scheduler4Stop11setDurationERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9Scheduler4Stop11getDurationEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2

declare void @_ZN9Scheduler4Stop17setAllocationTimeERKNS_10TimeWindowE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9Scheduler4Stop17getAllocationTimeEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2

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