; LLVM IR from turi-code/SFrame :: oss_src/graphlab/scheduler (sweep_scheduler)

; 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.anon.16 = type { ptr }
%"class.graphlab::atomic" = type { %"class.graphlab::graphlab_impl::atomic_impl" }
%"class.graphlab::graphlab_impl::atomic_impl" = type { i64 }
%"class.graphlab::sweep_scheduler" = type { %"class.graphlab::ischeduler", i64, i64, i8, %"class.graphlab::atomic", i64, i64, %"class.std::vector.8", %"class.graphlab::dense_bitset", %"class.std::__cxx11::basic_string" }
%"class.graphlab::ischeduler" = type { ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.graphlab::dense_bitset" = type { ptr, i64, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [97 x i8], align 1
@_ZTVN8graphlab15sweep_schedulerE = external dso_local unnamed_addr constant { [8 x ptr] }, align 8
@__func__._ZN8graphlab15sweep_schedulerC2EmRKNS_16graphlab_optionsE = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [27 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8graphlab15sweep_scheduler11set_optionsERKNS_16graphlab_optionsE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(192)) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #4

declare noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv() #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i1 noundef zeroext) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896), ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896), ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab15sweep_schedulerC2EmRKNS_16graphlab_optionsE(ptr noundef nonnull align 8 dereferenceable(136) %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(192) %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca %class.anon.16, align 8
  %13 = alloca %"class.graphlab::atomic", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8
  call void @_ZN8graphlab10ischedulerC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  store ptr getelementptr inbounds inrange(-16, 48) ({ [8 x ptr] }, ptr @_ZTVN8graphlab15sweep_schedulerE, i32 0, i32 0, i32 2), ptr %16, align 8, !tbaa !11
  %17 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 1
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = invoke noundef i64 @_ZNK8graphlab16graphlab_options9get_ncpusEv(ptr noundef nonnull align 8 dereferenceable(192) %18)
          to label %20 unwind label %46

20:                                               ; preds = %3
  store i64 %19, ptr %17, align 8, !tbaa !13
  %21 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 2
  %22 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %22, ptr %21, align 8, !tbaa !26
  %23 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 3
  store i8 1, ptr %23, align 8, !tbaa !27
  %24 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store i64 0, ptr %9, align 8, !tbaa !9
  invoke void @_ZN8graphlab6atomicImEC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %25 unwind label %50

25:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  %26 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 5
  %27 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #8
  store i64 %27, ptr %26, align 8, !tbaa !28
  %28 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 7
  call void @_ZNSt6vectorImSaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  %29 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 8
  %30 = load i64, ptr %5, align 8, !tbaa !9
  invoke void @_ZN8graphlab12dense_bitsetC2Em(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %30)
          to label %31 unwind label %54

31:                                               ; preds = %25
  %32 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #8
  br label %33

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = invoke noundef i64 @_ZNK8graphlab16graphlab_options9get_ncpusEv(ptr noundef nonnull align 8 dereferenceable(192) %34)
          to label %36 unwind label %58

36:                                               ; preds = %33
  store i64 %35, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 1, ptr %11, align 4, !tbaa !29
  %37 = load i64, ptr %10, align 8, !tbaa !9
  %38 = icmp uge i64 %37, 1
  %39 = xor i1 %38, true
  %40 = zext i1 %39 to i64
  %41 = call i64 @llvm.expect.i64(i64 %40, i64 0)
  %42 = icmp ne i64 %41, 0
  br i1 %42, label %43, label %66

43:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %44 = getelementptr inbounds %class.anon.16, ptr %12, i32 0, i32 0
  store ptr %10, ptr %44, align 8, !tbaa !5
  invoke void @"_ZZN8graphlab15sweep_schedulerC1EmRKNS_16graphlab_optionsEENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %45 unwind label %62

45:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %66

46:                                               ; preds = %3
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %7, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %8, align 4
  br label %164

50:                                               ; preds = %20
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %7, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %164

54:                                               ; preds = %25
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %7, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %8, align 4
  br label %163

58:                                               ; preds = %33
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %7, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %8, align 4
  br label %79

62:                                               ; preds = %43
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %7, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %79

66:                                               ; preds = %45, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  %69 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 9
  %70 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %69, ptr noundef @.str.4)
          to label %71 unwind label %80

71:                                               ; preds = %68
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN8graphlab15sweep_scheduler11set_optionsERKNS_16graphlab_optionsE(ptr noundef nonnull align 8 dereferenceable(136) %16, ptr noundef nonnull align 8 dereferenceable(192) %72)
          to label %73 unwind label %80

73:                                               ; preds = %71
  %74 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 9
  %75 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %74, ptr noundef @.str.5)
          to label %76 unwind label %80

76:                                               ; preds = %73
  br i1 %75, label %77, label %84

77:                                               ; preds = %76
  %78 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 6
  store i64 1, ptr %78, align 8, !tbaa !31
  br label %91

79:                                               ; preds = %62, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %162

80:                                               ; preds = %158, %138, %127, %123, %121, %119, %115, %113, %105, %103, %101, %97, %95, %84, %73, %71, %68
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %7, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %8, align 4
  br label %162

84:                                               ; preds = %76
  %85 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 9
  %86 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %85, ptr noundef @.str.4)
          to label %87 unwind label %80

87:                                               ; preds = %84
  br i1 %86, label %88, label %90

88:                                               ; preds = %87
  %89 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 6
  store i64 1500450271, ptr %89, align 8, !tbaa !31
  br label %90

90:                                               ; preds = %88, %87
  br label %91

91:                                               ; preds = %90, %77
  %92 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 3
  %93 = load i8, ptr %92, align 8, !tbaa !27, !range !32, !noundef !33
  %94 = trunc i8 %93 to i1
  br i1 %94, label %95, label %138

95:                                               ; preds = %91
  %96 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
          to label %97 unwind label %80

97:                                               ; preds = %95
  %98 = invoke noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %96)
          to label %99 unwind label %80

99:                                               ; preds = %97
  %100 = icmp sge i32 2, %98
  br i1 %100, label %101, label %108

101:                                              ; preds = %99
  %102 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 2, ptr noundef @.str.8, ptr noundef @__func__._ZN8graphlab15sweep_schedulerC2EmRKNS_16graphlab_optionsE, i32 noundef 77, i1 noundef zeroext true)
          to label %103 unwind label %80

103:                                              ; preds = %101
  %104 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %102, ptr noundef @.str.10)
          to label %105 unwind label %80

105:                                              ; preds = %103
  %106 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %104, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %107 unwind label %80

107:                                              ; preds = %105
  br label %108

108:                                              ; preds = %107, %99
  %109 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 5
  %110 = load i64, ptr %109, align 8, !tbaa !28
  %111 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #8
  %112 = icmp ne i64 %110, %111
  br i1 %112, label %113, label %131

113:                                              ; preds = %108
  %114 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
          to label %115 unwind label %80

115:                                              ; preds = %113
  %116 = invoke noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %114)
          to label %117 unwind label %80

117:                                              ; preds = %115
  %118 = icmp sge i32 2, %116
  br i1 %118, label %119, label %130

119:                                              ; preds = %117
  %120 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 2, ptr noundef @.str.8, ptr noundef @__func__._ZN8graphlab15sweep_schedulerC2EmRKNS_16graphlab_optionsE, i32 noundef 81, i1 noundef zeroext true)
          to label %121 unwind label %80

121:                                              ; preds = %119
  %122 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %120, ptr noundef @.str.11)
          to label %123 unwind label %80

123:                                              ; preds = %121
  %124 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 5
  %125 = load i64, ptr %124, align 8, !tbaa !28
  %126 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %122, i64 noundef %125)
          to label %127 unwind label %80

127:                                              ; preds = %123
  %128 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %126, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %129 unwind label %80

129:                                              ; preds = %127
  br label %130

130:                                              ; preds = %129, %117
  br label %131

131:                                              ; preds = %130, %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store i64 0, ptr %14, align 8, !tbaa !9
  invoke void @_ZN8graphlab6atomicImEC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %132 unwind label %134

132:                                              ; preds = %131
  %133 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %133, ptr align 8 %13, i64 8, i1 true)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %158

134:                                              ; preds = %131
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %7, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %162

138:                                              ; preds = %91
  %139 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 7
  %140 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 1
  %141 = load i64, ptr %140, align 8, !tbaa !13
  invoke void @_ZNSt6vectorImSaImEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef %141)
          to label %142 unwind label %80

142:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %143

143:                                              ; preds = %154, %142
  %144 = load i64, ptr %15, align 8, !tbaa !9
  %145 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 7
  %146 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %145) #8
  %147 = icmp ult i64 %144, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %157

149:                                              ; preds = %143
  %150 = load i64, ptr %15, align 8, !tbaa !9
  %151 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 7
  %152 = load i64, ptr %15, align 8, !tbaa !9
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef %152) #8
  store i64 %150, ptr %153, align 8, !tbaa !9
  br label %154

154:                                              ; preds = %149
  %155 = load i64, ptr %15, align 8, !tbaa !9
  %156 = add i64 %155, 1
  store i64 %156, ptr %15, align 8, !tbaa !9
  br label %143, !llvm.loop !34

157:                                              ; preds = %148
  br label %158

158:                                              ; preds = %157, %132
  %159 = getelementptr inbounds %"class.graphlab::sweep_scheduler", ptr %16, i32 0, i32 8
  %160 = load i64, ptr %5, align 8, !tbaa !9
  invoke void @_ZN8graphlab12dense_bitset6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %160)
          to label %161 unwind label %80

161:                                              ; preds = %158
  ret void

162:                                              ; preds = %134, %80, %79
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #8
  call void @_ZN8graphlab12dense_bitsetD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  br label %163

163:                                              ; preds = %162, %54
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  br label %164

164:                                              ; preds = %163, %50, %46
  call void @_ZN8graphlab10ischedulerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br label %165

165:                                              ; preds = %164
  %166 = load ptr, ptr %7, align 8
  %167 = load i32, ptr %8, align 4
  %168 = insertvalue { ptr, i32 } poison, ptr %166, 0
  %169 = insertvalue { ptr, i32 } %168, i32 %167, 1
  resume { ptr, i32 } %169
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN8graphlab15sweep_schedulerC1EmRKNS_16graphlab_optionsEENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896), i64 noundef) #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8graphlab12dense_bitset6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #5 = { "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 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTSN8graphlab15sweep_schedulerE", !15, i64 0, !10, i64 8, !10, i64 16, !16, i64 24, !17, i64 32, !10, i64 40, !10, i64 48, !19, i64 56, !23, i64 80, !24, i64 104}
!15 = !{!"_ZTSN8graphlab10ischedulerE"}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSN8graphlab6atomicImEE", !18, i64 0}
!18 = !{!"_ZTSN8graphlab13graphlab_impl11atomic_implImLb1EEE", !10, i64 0}
!19 = !{!"_ZTSSt6vectorImSaImEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseImSaImEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSN8graphlab12dense_bitsetE", !6, i64 0, !10, i64 8, !10, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !10, i64 8, !7, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!26 = !{!14, !10, i64 16}
!27 = !{!14, !16, i64 24}
!28 = !{!14, !10, i64 40}
!29 = !{!30, !30, i64 0}
!30 = !{!"int", !7, i64 0}
!31 = !{!14, !10, i64 48}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = distinct !{!34, !35}
!35 = !{!"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.anon.16 = type { ptr }
%"class.graphlab::atomic" = type { %"class.graphlab::graphlab_impl::atomic_impl" }
%"class.graphlab::graphlab_impl::atomic_impl" = type { i64 }

@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [97 x i8], align 1
@_ZTVN8graphlab15sweep_schedulerE = external dso_local unnamed_addr constant { [8 x ptr] }, align 8
@__func__._ZN8graphlab15sweep_schedulerC2EmRKNS_16graphlab_optionsE = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [27 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8graphlab15sweep_scheduler11set_optionsERKNS_16graphlab_optionsE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv() local_unnamed_addr #4

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab15sweep_schedulerC2EmRKNS_16graphlab_optionsE(ptr noundef nonnull align 8 dereferenceable(136) %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(192) %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca %class.anon.16, align 8
  %7 = alloca %"class.graphlab::atomic", align 8
  %8 = alloca i64, align 8
  tail call void @_ZN8graphlab10ischedulerC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTVN8graphlab15sweep_schedulerE, i64 16), ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = tail call noundef i64 @_ZNK8graphlab16graphlab_options9get_ncpusEv(ptr noundef nonnull align 8 dereferenceable(192) %2)
  store i64 %10, ptr %9, align 8, !tbaa !8
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %1, ptr %11, align 8, !tbaa !24
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  store i8 1, ptr %12, align 8, !tbaa !25
  %13 = getelementptr inbounds i8, ptr %0, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store i64 0, ptr %4, align 8, !tbaa !26
  invoke void @_ZN8graphlab6atomicImEC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %14 unwind label %24

14:                                               ; preds = %3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  %16 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #7
  store i64 %16, ptr %15, align 8, !tbaa !27
  %17 = getelementptr inbounds i8, ptr %0, i64 56
  call void @_ZNSt6vectorImSaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  %18 = getelementptr inbounds i8, ptr %0, i64 80
  invoke void @_ZN8graphlab12dense_bitsetC2Em(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %1)
          to label %19 unwind label %26

19:                                               ; preds = %14
  %20 = getelementptr inbounds i8, ptr %0, i64 104
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %21 = call noundef i64 @_ZNK8graphlab16graphlab_options9get_ncpusEv(ptr noundef nonnull align 8 dereferenceable(192) %2)
  store i64 %21, ptr %5, align 8, !tbaa !26
  %.not = icmp eq i64 %21, 0
  br i1 %.not, label %22, label %30, !prof !28

22:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  store ptr %5, ptr %6, align 8, !tbaa !29
  invoke void @"_ZZN8graphlab15sweep_schedulerC1EmRKNS_16graphlab_optionsEENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %23 unwind label %28

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

24:                                               ; preds = %3
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %85

26:                                               ; preds = %14
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %84

28:                                               ; preds = %22
  %29 = landingpad { ptr, i32 }
          cleanup
  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 %83

30:                                               ; preds = %23, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %31 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull @.str.4)
          to label %32 unwind label %35

32:                                               ; preds = %30
  invoke void @_ZN8graphlab15sweep_scheduler11set_optionsERKNS_16graphlab_optionsE(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(192) %2)
          to label %33 unwind label %35

33:                                               ; preds = %32
  %34 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull @.str.5)
  br i1 %34, label %.sink.split, label %37

35:                                               ; preds = %.loopexit, %75, %69, %66, %64, %62, %57, %52, %50, %48, %43, %32, %30
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %83

37:                                               ; preds = %33
  %38 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull @.str.4)
  br i1 %38, label %.sink.split, label %40

.sink.split:                                      ; preds = %37, %33
  %.sink = phi i64 [ 1, %33 ], [ 1500450271, %37 ]
  %39 = getelementptr inbounds i8, ptr %0, i64 48
  store i64 %.sink, ptr %39, align 8, !tbaa !30
  br label %40

40:                                               ; preds = %.sink.split, %37
  %41 = load i8, ptr %12, align 8, !tbaa !25, !range !31, !noundef !32
  %42 = trunc nuw i8 %41 to i1
  br i1 %42, label %43, label %75

43:                                               ; preds = %40
  %44 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
          to label %45 unwind label %35

45:                                               ; preds = %43
  %46 = call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %44)
  %47 = icmp slt i32 %46, 3
  br i1 %47, label %48, label %54

48:                                               ; preds = %45
  %49 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 2, ptr noundef nonnull @.str.8, ptr noundef nonnull @__func__._ZN8graphlab15sweep_schedulerC2EmRKNS_16graphlab_optionsE, i32 noundef 77, i1 noundef zeroext true)
          to label %50 unwind label %35

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %49, ptr noundef nonnull @.str.10)
          to label %52 unwind label %35

52:                                               ; preds = %50
  %53 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %51, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %54 unwind label %35

54:                                               ; preds = %52, %45
  %55 = load i64, ptr %15, align 8, !tbaa !27
  %56 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #7
  %.not16 = icmp eq i64 %55, %56
  br i1 %.not16, label %71, label %57

57:                                               ; preds = %54
  %58 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
          to label %59 unwind label %35

59:                                               ; preds = %57
  %60 = call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %58)
  %61 = icmp slt i32 %60, 3
  br i1 %61, label %62, label %71

62:                                               ; preds = %59
  %63 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 2, ptr noundef nonnull @.str.8, ptr noundef nonnull @__func__._ZN8graphlab15sweep_schedulerC2EmRKNS_16graphlab_optionsE, i32 noundef 81, i1 noundef zeroext true)
          to label %64 unwind label %35

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %63, ptr noundef nonnull @.str.11)
          to label %66 unwind label %35

66:                                               ; preds = %64
  %67 = load i64, ptr %15, align 8, !tbaa !27
  %68 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %65, i64 noundef %67)
          to label %69 unwind label %35

69:                                               ; preds = %66
  %70 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %68, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %71 unwind label %35

71:                                               ; preds = %59, %69, %54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  store i64 0, ptr %8, align 8, !tbaa !26
  invoke void @_ZN8graphlab6atomicImEC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %72 unwind label %73

72:                                               ; preds = %71
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %13, ptr nonnull align 8 %7, i64 8, i1 true)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %.loopexit

73:                                               ; preds = %71
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %83

75:                                               ; preds = %40
  %76 = load i64, ptr %9, align 8, !tbaa !8
  invoke void @_ZNSt6vectorImSaImEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %76)
          to label %.preheader unwind label %35

.preheader:                                       ; preds = %75
  %77 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  %.not21 = icmp eq i64 %77, 0
  br i1 %.not21, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.020 = phi i64 [ %79, %.lr.ph ], [ 0, %.preheader ]
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.020) #7
  store i64 %.020, ptr %78, align 8, !tbaa !26
  %79 = add nuw i64 %.020, 1
  %80 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  %81 = icmp ult i64 %79, %80
  br i1 %81, label %.lr.ph, label %.loopexit, !llvm.loop !33

.loopexit:                                        ; preds = %.lr.ph, %.preheader, %72
  invoke void @_ZN8graphlab12dense_bitset6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %1)
          to label %82 unwind label %35

82:                                               ; preds = %.loopexit
  ret void

83:                                               ; preds = %73, %35, %28
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %74, %73 ], [ %29, %28 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @_ZN8graphlab12dense_bitsetD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  br label %84

84:                                               ; preds = %83, %26
  %.pn.pn = phi { ptr, i32 } [ %.pn, %83 ], [ %27, %26 ]
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  br label %85

85:                                               ; preds = %84, %24
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %84 ], [ %25, %24 ]
  call void @_ZN8graphlab10ischedulerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt14numeric_limitsImE3maxEv() local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN8graphlab15sweep_schedulerC1EmRKNS_16graphlab_optionsEENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8graphlab12dense_bitset6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 align 2

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 8}
!9 = !{!"_ZTSN8graphlab15sweep_schedulerE", !10, i64 0, !11, i64 8, !11, i64 16, !13, i64 24, !14, i64 32, !11, i64 40, !11, i64 48, !16, i64 56, !21, i64 80, !22, i64 104}
!10 = !{!"_ZTSN8graphlab10ischedulerE"}
!11 = !{!"long", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"bool", !12, i64 0}
!14 = !{!"_ZTSN8graphlab6atomicImEE", !15, i64 0}
!15 = !{!"_ZTSN8graphlab13graphlab_impl11atomic_implImLb1EEE", !11, i64 0}
!16 = !{!"_ZTSSt6vectorImSaImEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseImSaImEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!20 = !{!"any pointer", !12, i64 0}
!21 = !{!"_ZTSN8graphlab12dense_bitsetE", !20, i64 0, !11, i64 8, !11, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !11, i64 8, !12, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !20, i64 0}
!24 = !{!9, !11, i64 16}
!25 = !{!9, !13, i64 24}
!26 = !{!11, !11, i64 0}
!27 = !{!9, !11, i64 40}
!28 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!29 = !{!20, !20, i64 0}
!30 = !{!9, !11, i64 48}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


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