; LLVM IR from Eaglegor/SchedulerEngine :: Engine/SceneEditor/Actions (ScrambleWorkStops)

; 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.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.std::random_device" = type { %union.anon.40 }
%union.anon.40 = type { %"class.std::mersenne_twister_engine" }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }
%"class.std::mersenne_twister_engine.41" = type { [312 x i64], i64 }
%"class.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<unsigned long>::param_type" }
%"struct.std::uniform_int_distribution<unsigned long>::param_type" = type { i64, i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.Scheduler::ScrambleWorkStops" = type <{ %"class.Scheduler::Action", ptr, %"class.std::vector", %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator", %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator", i8, [7 x i8] }>
%"class.Scheduler::Action" = type { %"class.Scheduler::ActionBase" }
%"class.Scheduler::ActionBase" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Scheduler::SwapWorkStops, std::allocator<Scheduler::SwapWorkStops>>::_Vector_impl" }
%"struct.std::_Vector_base<Scheduler::SwapWorkStops, std::allocator<Scheduler::SwapWorkStops>>::_Vector_impl" = type { %"struct.std::_Vector_base<Scheduler::SwapWorkStops, std::allocator<Scheduler::SwapWorkStops>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Scheduler::SwapWorkStops, std::allocator<Scheduler::SwapWorkStops>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [107 x i8], align 1
@__PRETTY_FUNCTION__._ZN9Scheduler17ScrambleWorkStops7performEv = external hidden unnamed_addr constant [53 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Scheduler17ScrambleWorkStops7performEv(ptr noundef nonnull align 8 dereferenceable(73) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = 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
  %4 = 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
  %5 = alloca %"class.std::random_device", align 8
  %6 = alloca %"class.std::mersenne_twister_engine.41", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::uniform_int_distribution", align 8
  %10 = alloca i64, 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
  %12 = 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
  %13 = 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
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"struct.std::uniform_int_distribution<unsigned long>::param_type", align 8
  %17 = 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
  %18 = 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
  %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", 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
  %22 = 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
  %23 = 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
  %24 = 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
  %25 = alloca ptr, align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %29 = load ptr, ptr %2, align 8
  %30 = getelementptr inbounds %"class.Scheduler::ScrambleWorkStops", ptr %29, i32 0, i32 5
  %31 = load i8, ptr %30, align 8, !tbaa !9, !range !22, !noundef !23
  %32 = trunc i8 %31 to i1
  %33 = xor i1 %32, true
  br i1 %33, label %34, label %35

34:                                               ; preds = %1
  br label %37

35:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 21, ptr noundef @__PRETTY_FUNCTION__._ZN9Scheduler17ScrambleWorkStops7performEv) #6
  unreachable

36:                                               ; No predecessors!
  br label %37

37:                                               ; preds = %36, %34
  %38 = getelementptr inbounds %"class.Scheduler::ScrambleWorkStops", ptr %29, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #7
  %39 = getelementptr inbounds %"class.Scheduler::ScrambleWorkStops", ptr %29, i32 0, i32 4
  call void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %39)
  call void @_ZSt4prevIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEET_SK_NSt15iterator_traitsISK_E15difference_typeE(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 %3, ptr noundef %4, i64 noundef 1)
  %40 = call noundef zeroext i1 @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEeqERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %3)
  br i1 %40, label %45, label %41

41:                                               ; preds = %37
  %42 = getelementptr inbounds %"class.Scheduler::ScrambleWorkStops", ptr %29, i32 0, i32 3
  %43 = getelementptr inbounds %"class.Scheduler::ScrambleWorkStops", ptr %29, i32 0, i32 4
  %44 = call noundef zeroext i1 @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEeqERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 8 dereferenceable(16) %43)
  br label %45

45:                                               ; preds = %41, %37
  %46 = phi i1 [ true, %37 ], [ %44, %41 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #7
  br i1 %46, label %47, label %48

47:                                               ; preds = %45
  br label %181

48:                                               ; preds = %45
  %49 = getelementptr inbounds %"class.Scheduler::ScrambleWorkStops", ptr %29, i32 0, i32 2
  %50 = call noundef zeroext i1 @_ZNKSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #7
  br i1 %50, label %51, label %159

51:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 5000, ptr %5) #7
  call void @_ZNSt13random_deviceC2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %5)
  call void @llvm.lifetime.start.p0(i64 2504, ptr %6) #7
  %52 = invoke noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000) %5)
          to label %53 unwind label %71

53:                                               ; preds = %51
  %54 = zext i32 %52 to i64
  invoke void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504) %6, i64 noundef %54)
          to label %55 unwind label %71

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  invoke void @_ZNSt24uniform_int_distributionImEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %56 unwind label %75

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %57 = getelementptr inbounds %"class.Scheduler::ScrambleWorkStops", ptr %29, i32 0, i32 3
  invoke void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %57)
          to label %58 unwind label %79

58:                                               ; preds = %56
  %59 = getelementptr inbounds %"class.Scheduler::ScrambleWorkStops", ptr %29, i32 0, i32 4
  invoke void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %59)
          to label %60 unwind label %79

60:                                               ; preds = %58
  %61 = invoke noundef i64 @_ZSt8distanceIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEENSt15iterator_traitsIT_E15difference_typeESL_SL_(ptr noundef %11, ptr noundef %12)
          to label %62 unwind label %79

62:                                               ; preds = %60
  store i64 %61, ptr %10, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %63 = getelementptr inbounds %"class.Scheduler::ScrambleWorkStops", ptr %29, i32 0, i32 3
  invoke void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %63)
          to label %64 unwind label %83

64:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %65 = load i64, ptr %10, align 8, !tbaa !24
  %66 = sub i64 %65, 1
  store i64 %66, ptr %14, align 8, !tbaa !24
  br label %67

67:                                               ; preds = %148, %64
  %68 = load i64, ptr %14, align 8, !tbaa !24
  %69 = icmp ugt i64 %68, 0
  br i1 %69, label %87, label %70

70:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %154

71:                                               ; preds = %53, %51
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %7, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %8, align 4
  br label %158

75:                                               ; preds = %55
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %7, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %8, align 4
  br label %157

79:                                               ; preds = %60, %58, %56
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %7, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %8, align 4
  br label %156

83:                                               ; preds = %62
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %7, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %8, align 4
  br label %155

87:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  %88 = load i64, ptr %14, align 8, !tbaa !24
  invoke void @_ZNSt24uniform_int_distributionImE10param_typeC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef 0, i64 noundef %88)
          to label %89 unwind label %120

89:                                               ; preds = %87
  %90 = invoke noundef i64 @_ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_RKNS0_10param_typeE(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(2504) %6, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %91 unwind label %120

91:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  store i64 %90, ptr %15, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  invoke void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %92 unwind label %124

92:                                               ; preds = %91
  %93 = load i64, ptr %14, align 8, !tbaa !24
  invoke void @_ZSt4nextIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEET_SK_NSt15iterator_traitsISK_E15difference_typeE(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 %17, ptr noundef %18, i64 noundef %93)
          to label %94 unwind label %124

94:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  invoke void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %95 unwind label %128

95:                                               ; preds = %94
  %96 = load i64, ptr %15, align 8, !tbaa !24
  invoke void @_ZSt4nextIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEET_SK_NSt15iterator_traitsISK_E15difference_typeE(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 %20, i64 noundef %96)
          to label %97 unwind label %128

97:                                               ; preds = %95
  %98 = getelementptr inbounds %"class.Scheduler::ScrambleWorkStops", ptr %29, i32 0, i32 2
  %99 = getelementptr inbounds %"class.Scheduler::ScrambleWorkStops", ptr %29, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  invoke void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %101 unwind label %132

101:                                              ; preds = %97
  %102 = load i64, ptr %14, align 8, !tbaa !24
  invoke void @_ZSt4nextIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEET_SK_NSt15iterator_traitsISK_E15difference_typeE(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 %22, i64 noundef %102)
          to label %103 unwind label %132

103:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  invoke void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %104 unwind label %136

104:                                              ; preds = %103
  %105 = load i64, ptr %15, align 8, !tbaa !24
  invoke void @_ZSt4nextIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEET_SK_NSt15iterator_traitsISK_E15difference_typeE(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 %23, ptr noundef %24, i64 noundef %105)
          to label %106 unwind label %136

106:                                              ; preds = %104
  %107 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_EE12emplace_backIJRNS0_3RunENS0_16RangeTypeAdapterINS0_5RangeINS8_IN5boost9intrusive4listINS0_4StopEJNSA_12value_traitsINSC_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSJ_NSA_13list_iteratorISE_Lb1EEEEESP_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %98, ptr noundef nonnull align 8 dereferenceable(609) %100, ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %108 unwind label %136

108:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  %109 = getelementptr inbounds %"class.Scheduler::ScrambleWorkStops", ptr %29, i32 0, i32 2
  %110 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #7
  %111 = load ptr, ptr %110, align 8, !tbaa !27
  %112 = getelementptr inbounds ptr, ptr %111, i64 4
  %113 = load ptr, ptr %112, align 8
  invoke void %113(ptr noundef nonnull align 8 dereferenceable(48) %110)
          to label %114 unwind label %128

114:                                              ; preds = %108
  %115 = load i64, ptr %14, align 8, !tbaa !24
  %116 = icmp eq i64 %115, 0
  br i1 %116, label %117, label %141

117:                                              ; preds = %114
  %118 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEaSERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %119 unwind label %128

119:                                              ; preds = %117
  br label %141

120:                                              ; preds = %89, %87
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %7, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  br label %153

124:                                              ; preds = %92, %91
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %7, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %8, align 4
  br label %152

128:                                              ; preds = %144, %117, %108, %95, %94
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %7, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %8, align 4
  br label %151

132:                                              ; preds = %101, %97
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %7, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %8, align 4
  br label %140

136:                                              ; preds = %106, %104, %103
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %7, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  br label %140

140:                                              ; preds = %136, %132
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  br label %151

141:                                              ; preds = %119, %114
  %142 = load i64, ptr %15, align 8, !tbaa !24
  %143 = icmp eq i64 %142, 0
  br i1 %143, label %144, label %147

144:                                              ; preds = %141
  %145 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEaSERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %146 unwind label %128

146:                                              ; preds = %144
  br label %147

147:                                              ; preds = %146, %141
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %148

148:                                              ; preds = %147
  %149 = load i64, ptr %14, align 8, !tbaa !24
  %150 = add i64 %149, -1
  store i64 %150, ptr %14, align 8, !tbaa !24
  br label %67, !llvm.loop !29

151:                                              ; preds = %140, %128
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  br label %152

152:                                              ; preds = %151, %124
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  br label %153

153:                                              ; preds = %152, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %155

154:                                              ; preds = %70
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 2504, ptr %6) #7
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %5) #7
  call void @llvm.lifetime.end.p0(i64 5000, ptr %5) #7
  br label %179

155:                                              ; preds = %153, %83
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br label %156

156:                                              ; preds = %155, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %157

157:                                              ; preds = %156, %75
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  br label %158

158:                                              ; preds = %157, %71
  call void @llvm.lifetime.end.p0(i64 2504, ptr %6) #7
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %5) #7
  call void @llvm.lifetime.end.p0(i64 5000, ptr %5) #7
  br label %182

159:                                              ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %160 = getelementptr inbounds %"class.Scheduler::ScrambleWorkStops", ptr %29, i32 0, i32 2
  store ptr %160, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %161 = load ptr, ptr %25, align 8, !tbaa !5
  %162 = call ptr @_ZNSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %161) #7
  %163 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %162, ptr %163, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %164 = load ptr, ptr %25, align 8, !tbaa !5
  %165 = call ptr @_ZNSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %164) #7
  %166 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %165, ptr %166, align 8
  br label %167

167:                                              ; preds = %176, %159
  %168 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN9Scheduler13SwapWorkStopsESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  br i1 %168, label %170, label %169

169:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %178

170:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %171 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN9Scheduler13SwapWorkStopsESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  store ptr %171, ptr %28, align 8, !tbaa !5
  %172 = load ptr, ptr %28, align 8, !tbaa !5
  %173 = load ptr, ptr %172, align 8, !tbaa !27
  %174 = getelementptr inbounds ptr, ptr %173, i64 4
  %175 = load ptr, ptr %174, align 8
  call void %175(ptr noundef nonnull align 8 dereferenceable(48) %172)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %176

176:                                              ; preds = %170
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN9Scheduler13SwapWorkStopsESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  br label %167

178:                                              ; preds = %169
  br label %179

179:                                              ; preds = %178, %154
  %180 = getelementptr inbounds %"class.Scheduler::ScrambleWorkStops", ptr %29, i32 0, i32 5
  store i8 1, ptr %180, align 8, !tbaa !9
  br label %181

181:                                              ; preds = %179, %47
  ret void

182:                                              ; preds = %158
  %183 = load ptr, ptr %7, align 8
  %184 = load i32, ptr %8, align 4
  %185 = insertvalue { ptr, i32 } poison, ptr %183, 0
  %186 = insertvalue { ptr, i32 } %185, i32 %184, 1
  resume { ptr, i32 } %186
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4prevIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEET_SK_NSt15iterator_traitsISK_E15difference_typeE(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, i64 noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt13random_deviceC2Ev(ptr noundef nonnull align 8 dereferenceable(5000)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504), i64 noundef) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_RKNS0_10param_typeE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(2504), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4nextIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEET_SK_NSt15iterator_traitsISK_E15difference_typeE(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, i64 noundef) #1

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_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_cxxneIPN9Scheduler13SwapWorkStopsESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(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(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN9Scheduler13SwapWorkStopsESt6vectorIS2_SaIS2_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_iteratorIPN9Scheduler13SwapWorkStopsESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!10, !21, i64 72}
!10 = !{!"_ZTSN9Scheduler17ScrambleWorkStopsE", !11, i64 0, !6, i64 8, !13, i64 16, !17, i64 40, !17, i64 56, !21, i64 72}
!11 = !{!"_ZTSN9Scheduler6ActionIvEE", !12, i64 0}
!12 = !{!"_ZTSN9Scheduler10ActionBaseE"}
!13 = !{!"_ZTSSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN9Scheduler13SwapWorkStopsESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN9Scheduler13SwapWorkStopsESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN9Scheduler13SwapWorkStopsESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEE", !18, i64 0, !19, i64 8}
!18 = !{!"_ZTSN9Scheduler17DerivedTypeCasterINS_4StopEKNS_8WorkStopEEE"}
!19 = !{!"_ZTSN5boost9intrusive13list_iteratorIN9Scheduler4Stop20IntrusiveValueTraitsELb1EEE", !20, i64 0}
!20 = !{!"_ZTSN5boost9intrusive17iiterator_membersIPN9Scheduler4Stop17IntrusiveListNodeEPKNS3_20IntrusiveValueTraitsELb0EEE", !6, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !25, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!10, !6, i64 8}
!27 = !{!28, !28, i64 0}
!28 = !{!"vtable pointer", !8, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"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.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.std::random_device" = type { %union.anon.40 }
%union.anon.40 = type { %"class.std::mersenne_twister_engine" }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }
%"class.std::mersenne_twister_engine.41" = type { [312 x i64], i64 }
%"class.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<unsigned long>::param_type" }
%"struct.std::uniform_int_distribution<unsigned long>::param_type" = type { i64, i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [107 x i8], align 1
@__PRETTY_FUNCTION__._ZN9Scheduler17ScrambleWorkStops7performEv = external hidden unnamed_addr constant [53 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Scheduler17ScrambleWorkStops7performEv(ptr noundef nonnull align 8 dereferenceable(73) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = 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
  %3 = 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
  %4 = alloca %"class.std::random_device", align 8
  %5 = alloca %"class.std::mersenne_twister_engine.41", align 8
  %6 = alloca %"class.std::uniform_int_distribution", 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 %"struct.std::uniform_int_distribution<unsigned long>::param_type", 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
  %12 = 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
  %13 = 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
  %14 = 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
  %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 %"class.Scheduler::RangeTypeAdapter<Scheduler::Range<Scheduler::Range<boost::intrusive::list<Scheduler::Stop, boost::intrusive::value_traits<Scheduler::Stop::IntrusiveValueTraits>>>>, Scheduler::WorkStop>::Iterator", align 8
  %18 = 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
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = getelementptr inbounds i8, ptr %0, i64 72
  %22 = load i8, ptr %21, align 8, !tbaa !5, !range !21, !noundef !22
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %24, label %25

24:                                               ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 21, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN9Scheduler17ScrambleWorkStops7performEv) #6
  unreachable

25:                                               ; preds = %1
  %26 = getelementptr inbounds i8, ptr %0, i64 40
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  %27 = getelementptr inbounds i8, ptr %0, i64 56
  call void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %27)
  call void @_ZSt4prevIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEET_SK_NSt15iterator_traitsISK_E15difference_typeE(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 %2, ptr noundef nonnull %3, i64 noundef 1)
  %28 = call noundef zeroext i1 @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEeqERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %2)
  br i1 %28, label %.critedge, label %29

29:                                               ; preds = %25
  %30 = call noundef zeroext i1 @_ZNK9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEeqERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %27)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  br i1 %30, label %103, label %31

.critedge:                                        ; preds = %25
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  br label %103

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %0, i64 16
  %33 = call noundef zeroext i1 @_ZNKSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  br i1 %33, label %34, label %92

34:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 5000, ptr nonnull %4) #7
  call void @_ZNSt13random_deviceC2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %4)
  call void @llvm.lifetime.start.p0(i64 2504, ptr nonnull %5) #7
  %35 = invoke noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000) %4)
          to label %36 unwind label %45

36:                                               ; preds = %34
  %37 = zext i32 %35 to i64
  invoke void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504) %5, i64 noundef %37)
          to label %38 unwind label %45

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  invoke void @_ZNSt24uniform_int_distributionImEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %39 unwind label %47

39:                                               ; preds = %38
  invoke void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %40 unwind label %49

40:                                               ; preds = %39
  invoke void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %41 unwind label %49

41:                                               ; preds = %40
  %42 = invoke noundef i64 @_ZSt8distanceIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEENSt15iterator_traitsIT_E15difference_typeESL_SL_(ptr noundef nonnull %7, ptr noundef nonnull %8)
          to label %43 unwind label %49

43:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  invoke void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %.preheader unwind label %51

.preheader:                                       ; preds = %43
  %.02333 = add i64 %42, -1
  %.not34 = icmp eq i64 %.02333, 0
  br i1 %.not34, label %._crit_edge37, label %.lr.ph36

.lr.ph36:                                         ; preds = %.preheader
  %44 = getelementptr inbounds i8, ptr %0, i64 8
  br label %53

._crit_edge37:                                    ; preds = %86, %.preheader
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %5) #7
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %4) #7
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %4) #7
  br label %102

45:                                               ; preds = %36, %34
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %91

47:                                               ; preds = %38
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %90

49:                                               ; preds = %41, %40, %39
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %90

51:                                               ; preds = %43
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %89

53:                                               ; preds = %.lr.ph36, %86
  %.02335 = phi i64 [ %.02333, %.lr.ph36 ], [ %.023, %86 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  call void @_ZNSt24uniform_int_distributionImE10param_typeC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef 0, i64 noundef %.02335)
  %54 = invoke noundef i64 @_ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_RKNS0_10param_typeE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(2504) %5, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %55 unwind label %71

55:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  invoke void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %56 unwind label %73

56:                                               ; preds = %55
  invoke void @_ZSt4nextIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEET_SK_NSt15iterator_traitsISK_E15difference_typeE(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 %12, i64 noundef %.02335)
          to label %57 unwind label %73

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  invoke void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %58 unwind label %75

58:                                               ; preds = %57
  invoke void @_ZSt4nextIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEET_SK_NSt15iterator_traitsISK_E15difference_typeE(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 %13, ptr noundef nonnull %14, i64 noundef %54)
          to label %59 unwind label %75

59:                                               ; preds = %58
  %60 = load ptr, ptr %44, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  invoke void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %61 unwind label %77

61:                                               ; preds = %59
  invoke void @_ZSt4nextIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEET_SK_NSt15iterator_traitsISK_E15difference_typeE(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 %15, ptr noundef nonnull %16, i64 noundef %.02335)
          to label %62 unwind label %77

62:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  invoke void @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEC2ERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %63 unwind label %79

63:                                               ; preds = %62
  invoke void @_ZSt4nextIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEET_SK_NSt15iterator_traitsISK_E15difference_typeE(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 %17, ptr noundef nonnull %18, i64 noundef %54)
          to label %64 unwind label %79

64:                                               ; preds = %63
  %65 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_EE12emplace_backIJRNS0_3RunENS0_16RangeTypeAdapterINS0_5RangeINS8_IN5boost9intrusive4listINS0_4StopEJNSA_12value_traitsINSC_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSJ_NSA_13list_iteratorISE_Lb1EEEEESP_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(609) %60, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %66 unwind label %79

66:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  %67 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  %68 = load ptr, ptr %67, align 8, !tbaa !24
  %69 = getelementptr inbounds i8, ptr %68, i64 32
  %70 = load ptr, ptr %69, align 8
  invoke void %70(ptr noundef nonnull align 8 dereferenceable(48) %67)
          to label %82 unwind label %75

71:                                               ; preds = %53
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %89

73:                                               ; preds = %56, %55
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %88

75:                                               ; preds = %84, %66, %58, %57
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %87

77:                                               ; preds = %61, %59
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %81

79:                                               ; preds = %64, %63, %62
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  br label %81

81:                                               ; preds = %79, %77
  %.pn = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  br label %87

82:                                               ; preds = %66
  %83 = icmp eq i64 %54, 0
  br i1 %83, label %84, label %86

84:                                               ; preds = %82
  %85 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEaSERKSI_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %86 unwind label %75

86:                                               ; preds = %84, %82
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  %.023 = add i64 %.02335, -1
  %.not = icmp eq i64 %.023, 0
  br i1 %.not, label %._crit_edge37, label %53, !llvm.loop !26

87:                                               ; preds = %81, %75
  %.pn25 = phi { ptr, i32 } [ %76, %75 ], [ %.pn, %81 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br label %88

88:                                               ; preds = %87, %73
  %.pn25.pn = phi { ptr, i32 } [ %.pn25, %87 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br label %89

89:                                               ; preds = %71, %88, %51
  %.pn25.pn.pn.pn = phi { ptr, i32 } [ %52, %51 ], [ %.pn25.pn, %88 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %90

90:                                               ; preds = %49, %89, %47
  %.pn25.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %48, %47 ], [ %.pn25.pn.pn.pn, %89 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %91

91:                                               ; preds = %90, %45
  %.pn25.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn25.pn.pn.pn.pn.pn, %90 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %5) #7
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %4) #7
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn25.pn.pn.pn.pn.pn.pn

92:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %93 = call ptr @_ZNSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  store ptr %93, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %94 = call ptr @_ZNSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  store ptr %94, ptr %20, align 8
  %95 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN9Scheduler13SwapWorkStopsESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br i1 %95, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %102

.lr.ph:                                           ; preds = %92, %.lr.ph
  %96 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN9Scheduler13SwapWorkStopsESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %97 = load ptr, ptr %96, align 8, !tbaa !24
  %98 = getelementptr inbounds i8, ptr %97, i64 32
  %99 = load ptr, ptr %98, align 8
  call void %99(ptr noundef nonnull align 8 dereferenceable(48) %96)
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN9Scheduler13SwapWorkStopsESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %101 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN9Scheduler13SwapWorkStopsESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br i1 %101, label %.lr.ph, label %._crit_edge

102:                                              ; preds = %._crit_edge, %._crit_edge37
  store i8 1, ptr %21, align 8, !tbaa !5
  br label %103

103:                                              ; preds = %29, %.critedge, %102
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4prevIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEET_SK_NSt15iterator_traitsISK_E15difference_typeE(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, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt13random_deviceC2Ev(ptr noundef nonnull align 8 dereferenceable(5000)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504), i64 noundef) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_RKNS0_10param_typeE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(2504), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4nextIN9Scheduler16RangeTypeAdapterINS0_5RangeINS2_IN5boost9intrusive4listINS0_4StopEJNS4_12value_traitsINS6_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSD_NS4_13list_iteratorIS8_Lb1EEEEEET_SK_NSt15iterator_traitsISK_E15difference_typeE(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, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_EE12emplace_backIJRNS0_3RunENS0_16RangeTypeAdapterINS0_5RangeINS8_IN5boost9intrusive4listINS0_4StopEJNSA_12value_traitsINSC_20IntrusiveValueTraitsEEEEEEEEEENS0_8WorkStopEE8IteratorIKSJ_NSA_13list_iteratorISE_Lb1EEEEESP_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(609), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_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_cxxneIPN9Scheduler13SwapWorkStopsESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(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(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN9Scheduler13SwapWorkStopsESt6vectorIS2_SaIS2_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_iteratorIPN9Scheduler13SwapWorkStopsESt6vectorIS2_SaIS2_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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !20, i64 72}
!6 = !{!"_ZTSN9Scheduler17ScrambleWorkStopsE", !7, i64 0, !9, i64 8, !12, i64 16, !16, i64 40, !16, i64 56, !20, i64 72}
!7 = !{!"_ZTSN9Scheduler6ActionIvEE", !8, i64 0}
!8 = !{!"_ZTSN9Scheduler10ActionBaseE"}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSSt6vectorIN9Scheduler13SwapWorkStopsESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN9Scheduler13SwapWorkStopsESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN9Scheduler13SwapWorkStopsESaIS1_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN9Scheduler13SwapWorkStopsESaIS1_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!16 = !{!"_ZTSN9Scheduler16RangeTypeAdapterINS_5RangeINS1_IN5boost9intrusive4listINS_4StopEJNS3_12value_traitsINS5_20IntrusiveValueTraitsEEEEEEEEEENS_8WorkStopEE8IteratorIKSC_NS3_13list_iteratorIS7_Lb1EEEEE", !17, i64 0, !18, i64 8}
!17 = !{!"_ZTSN9Scheduler17DerivedTypeCasterINS_4StopEKNS_8WorkStopEEE"}
!18 = !{!"_ZTSN5boost9intrusive13list_iteratorIN9Scheduler4Stop20IntrusiveValueTraitsELb1EEE", !19, i64 0}
!19 = !{!"_ZTSN5boost9intrusive17iiterator_membersIPN9Scheduler4Stop17IntrusiveListNodeEPKNS3_20IntrusiveValueTraitsELb0EEE", !9, i64 0}
!20 = !{!"bool", !10, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!6, !9, i64 8}
!24 = !{!25, !25, i64 0}
!25 = !{!"vtable pointer", !11, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


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