; 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.209" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.238" = type { ptr }

@.str.3 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [100 x i8], align 1
@__PRETTY_FUNCTION__._ZN9Scheduler11SceneCloner21cloneSceneAssignmentsERKNS_5SceneERS1_ = external hidden unnamed_addr constant [82 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [59 x i8], align 1

; 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
declare dso_local void @_ZN9Scheduler11SceneCloner24cloneScheduleAssignmentsERKNS_8ScheduleERS1_(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef nonnull align 8 dereferenceable(352)) #1 align 2

declare noundef nonnull align 8 dereferenceable(377) ptr @_ZNK9Scheduler5Scene10getContextEv(ptr noundef nonnull align 8 dereferenceable(344)) #2

declare noundef zeroext i1 @_ZNK9Scheduler12SceneContexteqERKS0_(ptr noundef nonnull align 8 dereferenceable(377), ptr noundef nonnull align 8 dereferenceable(377)) #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344)) #2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344)) #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Scheduler11SceneCloner21cloneSceneAssignmentsERKNS_5SceneERS1_(ptr noundef nonnull align 8 dereferenceable(344) %0, ptr noundef nonnull align 8 dereferenceable(344) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.209", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.238", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.209", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.238", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = call noundef nonnull align 8 dereferenceable(377) ptr @_ZNK9Scheduler5Scene10getContextEv(ptr noundef nonnull align 8 dereferenceable(344) %9)
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = call noundef nonnull align 8 dereferenceable(377) ptr @_ZNK9Scheduler5Scene10getContextEv(ptr noundef nonnull align 8 dereferenceable(344) %11)
  %13 = call noundef zeroext i1 @_ZNK9Scheduler12SceneContexteqERKS0_(ptr noundef nonnull align 8 dereferenceable(377) %10, ptr noundef nonnull align 8 dereferenceable(377) %12)
  br i1 %13, label %14, label %15

14:                                               ; preds = %2
  br label %17

15:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 68, ptr noundef @__PRETTY_FUNCTION__._ZN9Scheduler11SceneCloner21cloneSceneAssignmentsERKNS_5SceneERS1_) #6
  unreachable

16:                                               ; No predecessors!
  br label %17

17:                                               ; preds = %16, %14
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344) %18)
  %20 = call noundef i64 @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler8ScheduleEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344) %21)
  %23 = call noundef i64 @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler8ScheduleEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %24 = icmp eq i64 %20, %23
  br i1 %24, label %25, label %26

25:                                               ; preds = %17
  br label %28

26:                                               ; preds = %17
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.4, i32 noundef 69, ptr noundef @__PRETTY_FUNCTION__._ZN9Scheduler11SceneCloner21cloneSceneAssignmentsERKNS_5SceneERS1_) #6
  unreachable

27:                                               ; No predecessors!
  br label %28

28:                                               ; preds = %27, %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344) %29)
  %31 = call ptr @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler8ScheduleEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  %32 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.209", ptr %5, i32 0, i32 0
  store ptr %31, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344) %33)
  %35 = call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler8ScheduleEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  %36 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.238", ptr %6, i32 0, i32 0
  store ptr %35, ptr %36, align 8
  br label %37

37:                                               ; preds = %56, %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344) %38)
  %40 = call ptr @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler8ScheduleEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
  %41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.209", ptr %7, i32 0, i32 0
  store ptr %40, ptr %41, align 8
  %42 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt17reference_wrapperIN9Scheduler8ScheduleEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  br i1 %42, label %43, label %49

43:                                               ; preds = %37
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344) %44)
  %46 = call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler8ScheduleEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #7
  %47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.238", ptr %8, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  %48 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt17reference_wrapperIN9Scheduler8ScheduleEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br label %49

49:                                               ; preds = %43, %37
  %50 = phi i1 [ false, %37 ], [ %48, %43 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br i1 %50, label %51, label %59

51:                                               ; preds = %49
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler8ScheduleEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %53 = call noundef nonnull align 8 dereferenceable(352) ptr @_ZNKSt17reference_wrapperIN9Scheduler8ScheduleEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %52) #7
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt17reference_wrapperIN9Scheduler8ScheduleEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %55 = call noundef nonnull align 8 dereferenceable(352) ptr @_ZNKSt17reference_wrapperIN9Scheduler8ScheduleEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %54) #7
  call void @_ZN9Scheduler11SceneCloner24cloneScheduleAssignmentsERKNS_8ScheduleERS1_(ptr noundef nonnull align 8 dereferenceable(352) %53, ptr noundef nonnull align 8 dereferenceable(352) %55)
  br label %56

56:                                               ; preds = %51
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler8ScheduleEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt17reference_wrapperIN9Scheduler8ScheduleEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br label %37, !llvm.loop !9

59:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret void
}

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

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

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

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

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

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

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

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


; 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.209" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.238" = type { ptr }

@.str.3 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [100 x i8], align 1
@__PRETTY_FUNCTION__._ZN9Scheduler11SceneCloner21cloneSceneAssignmentsERKNS_5SceneERS1_ = external hidden unnamed_addr constant [82 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [59 x i8], align 1

; 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
declare dso_local void @_ZN9Scheduler11SceneCloner24cloneScheduleAssignmentsERKNS_8ScheduleERS1_(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef nonnull align 8 dereferenceable(352)) local_unnamed_addr #1 align 2

declare noundef nonnull align 8 dereferenceable(377) ptr @_ZNK9Scheduler5Scene10getContextEv(ptr noundef nonnull align 8 dereferenceable(344)) local_unnamed_addr #2

declare noundef zeroext i1 @_ZNK9Scheduler12SceneContexteqERKS0_(ptr noundef nonnull align 8 dereferenceable(377), ptr noundef nonnull align 8 dereferenceable(377)) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344)) local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Scheduler11SceneCloner21cloneSceneAssignmentsERKNS_5SceneERS1_(ptr noundef nonnull align 8 dereferenceable(344) %0, ptr noundef nonnull align 8 dereferenceable(344) %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.209", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.238", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.209", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.238", align 8
  %7 = tail call noundef nonnull align 8 dereferenceable(377) ptr @_ZNK9Scheduler5Scene10getContextEv(ptr noundef nonnull align 8 dereferenceable(344) %0)
  %8 = tail call noundef nonnull align 8 dereferenceable(377) ptr @_ZNK9Scheduler5Scene10getContextEv(ptr noundef nonnull align 8 dereferenceable(344) %1)
  %9 = tail call noundef zeroext i1 @_ZNK9Scheduler12SceneContexteqERKS0_(ptr noundef nonnull align 8 dereferenceable(377) %7, ptr noundef nonnull align 8 dereferenceable(377) %8)
  br i1 %9, label %11, label %10

10:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 68, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN9Scheduler11SceneCloner21cloneSceneAssignmentsERKNS_5SceneERS1_) #6
  unreachable

11:                                               ; preds = %2
  %12 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344) %0)
  %13 = tail call noundef i64 @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler8ScheduleEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %14 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344) %1)
  %15 = tail call noundef i64 @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler8ScheduleEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %16 = icmp eq i64 %13, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.4, i32 noundef 69, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN9Scheduler11SceneCloner21cloneSceneAssignmentsERKNS_5SceneERS1_) #6
  unreachable

18:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %19 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344) %0)
  %20 = tail call ptr @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler8ScheduleEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  store ptr %20, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %21 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344) %1)
  %22 = tail call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler8ScheduleEESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  store ptr %22, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %23 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344) %0)
  %24 = tail call ptr @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler8ScheduleEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  store ptr %24, ptr %5, align 8
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt17reference_wrapperIN9Scheduler8ScheduleEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  br i1 %25, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %18, %29
  %26 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344) %1)
  %27 = call ptr @_ZNSt6vectorISt17reference_wrapperIN9Scheduler8ScheduleEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  store ptr %27, ptr %6, align 8
  %28 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt17reference_wrapperIN9Scheduler8ScheduleEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br i1 %28, label %29, label %.loopexit

29:                                               ; preds = %.lr.ph
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler8ScheduleEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %31 = call noundef nonnull align 8 dereferenceable(352) ptr @_ZNKSt17reference_wrapperIN9Scheduler8ScheduleEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt17reference_wrapperIN9Scheduler8ScheduleEESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %33 = call noundef nonnull align 8 dereferenceable(352) ptr @_ZNKSt17reference_wrapperIN9Scheduler8ScheduleEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  call void @_ZN9Scheduler11SceneCloner24cloneScheduleAssignmentsERKNS_8ScheduleERS1_(ptr noundef nonnull align 8 dereferenceable(352) %31, ptr noundef nonnull align 8 dereferenceable(352) %33)
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt17reference_wrapperIN9Scheduler8ScheduleEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt17reference_wrapperIN9Scheduler8ScheduleEESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %36 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9Scheduler5Scene12getSchedulesEv(ptr noundef nonnull align 8 dereferenceable(344) %0)
  %37 = call ptr @_ZNKSt6vectorISt17reference_wrapperIN9Scheduler8ScheduleEESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  store ptr %37, ptr %5, align 8
  %38 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt17reference_wrapperIN9Scheduler8ScheduleEESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  br i1 %38, label %.lr.ph, label %.critedge, !llvm.loop !5

.critedge:                                        ; preds = %29, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %.critedge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret void
}

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


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