; LLVM IR from turi-code/SFrame :: oss_src/fileio/temp_files.ll (ZN8graphlab22reap_unused_temp_filesEv)

; 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.boost::filesystem::path" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.boost::filesystem::directory_iterator" = type { %"class.boost::intrusive_ptr" }
%"class.boost::intrusive_ptr" = type { ptr }

@.str.7 = external hidden unnamed_addr constant [80 x i8], align 1
@__func__._ZN8graphlab22reap_unused_temp_filesEv = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #1

declare ptr @__cxa_begin_catch(ptr)

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

declare void @__cxa_end_catch()

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN8graphlab20num_temp_directoriesEv() #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab22reap_unused_temp_filesEv() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.boost::filesystem::path", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.boost::filesystem::directory_iterator", align 8
  %7 = alloca %"class.boost::filesystem::directory_iterator", align 8
  %8 = alloca %"class.boost::filesystem::path", align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.boost::filesystem::path", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.boost::filesystem::path", align 8
  %13 = alloca %"class.boost::filesystem::path", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #7
  %14 = call noundef i64 @_ZN8graphlab20num_temp_directoriesEv()
  store i64 %14, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 0, ptr %2, align 8, !tbaa !5
  br label %15

15:                                               ; preds = %151, %0
  %16 = load i64, ptr %2, align 8, !tbaa !5
  %17 = load i64, ptr %1, align 8, !tbaa !5
  %18 = icmp ult i64 %16, %17
  br i1 %18, label %20, label %19

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

20:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #7
  %21 = load i64, ptr %2, align 8, !tbaa !5
  invoke void @_ZN8graphlabL27get_graphlab_temp_directoryEm(ptr dead_on_unwind writable sret(%"class.boost::filesystem::path") align 8 %3, i64 noundef %21)
          to label %22 unwind label %61

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  invoke void @_ZN5boost10filesystem18directory_iteratorC2ERKNS0_4pathENS0_17directory_optionsE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef 0)
          to label %23 unwind label %65

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @_ZN5boost10filesystem18directory_iteratorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br label %24

24:                                               ; preds = %140, %23
  %25 = invoke noundef zeroext i1 @_ZN5boost9iteratorsneINS_10filesystem18directory_iteratorENS2_15directory_entryENS0_25single_pass_traversal_tagERS4_lS3_S4_S5_S6_lEENS0_6detail23enable_if_interoperableIT_T4_NS_3mpl6apply2INS7_12always_bool2ES9_SA_E4typeEE4typeERKNS0_15iterator_facadeIS9_T0_T1_T2_T3_EERKNSI_ISA_T5_T6_T7_T8_EE(ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %26 unwind label %69

26:                                               ; preds = %24
  br i1 %25, label %27, label %143

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #7
  %28 = invoke noundef ptr @_ZNK5boost9iterators6detail20iterator_facade_baseINS_10filesystem18directory_iteratorENS3_15directory_entryENS0_25single_pass_traversal_tagERS5_lLb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %29 unwind label %73

29:                                               ; preds = %27
  %30 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5boost10filesystem15directory_entry4pathEv(ptr noundef nonnull align 8 dereferenceable(48) %28) #7
  invoke void @_ZN5boost10filesystem4pathC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %31 unwind label %73

31:                                               ; preds = %29
  %32 = invoke noundef zeroext i1 @_ZN5boost10filesystem12is_directoryERKNS0_4pathE(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %33 unwind label %77

33:                                               ; preds = %31
  br i1 %32, label %34, label %138

34:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  invoke void @_ZNK5boost10filesystem4path8filenameEv(ptr dead_on_unwind writable sret(%"class.boost::filesystem::path") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %35 unwind label %81

35:                                               ; preds = %34
  %36 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5boost10filesystem4path6stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %37 unwind label %85

37:                                               ; preds = %35
  %38 = invoke noundef i64 @_ZNSt7__cxx114stolERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef null, i32 noundef 10)
          to label %39 unwind label %85

39:                                               ; preds = %37
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  store i64 %38, ptr %9, align 8, !tbaa !5
  %40 = load i64, ptr %9, align 8, !tbaa !5
  %41 = invoke noundef zeroext i1 @_ZN8graphlab18is_process_runningEm(i64 noundef %40)
          to label %42 unwind label %90

42:                                               ; preds = %39
  br i1 %41, label %105, label %43

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

45:                                               ; preds = %43
  %46 = invoke noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %44)
          to label %47 unwind label %90

47:                                               ; preds = %45
  %48 = icmp sge i32 3, %46
  br i1 %48, label %49, label %98

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 3, ptr noundef @.str.7, ptr noundef @__func__._ZN8graphlab22reap_unused_temp_filesEv, i32 noundef 277, i1 noundef zeroext true)
          to label %51 unwind label %90

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

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5boost10filesystem4path6stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %55 unwind label %90

55:                                               ; preds = %53
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %54)
          to label %56 unwind label %90

56:                                               ; preds = %55
  %57 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %52, ptr noundef %11)
          to label %58 unwind label %94

58:                                               ; preds = %56
  %59 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %57, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %60 unwind label %94

60:                                               ; preds = %58
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %98

61:                                               ; preds = %20
  %62 = landingpad { ptr, i32 }
          catch ptr null
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %4, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %5, align 4
  br label %146

65:                                               ; preds = %22
  %66 = landingpad { ptr, i32 }
          catch ptr null
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %4, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %5, align 4
  br label %145

69:                                               ; preds = %24
  %70 = landingpad { ptr, i32 }
          catch ptr null
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %4, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %5, align 4
  br label %144

73:                                               ; preds = %29, %27
  %74 = landingpad { ptr, i32 }
          catch ptr null
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %4, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %5, align 4
  br label %142

77:                                               ; preds = %138, %133, %31
  %78 = landingpad { ptr, i32 }
          catch ptr null
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %4, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %5, align 4
  br label %141

81:                                               ; preds = %34
  %82 = landingpad { ptr, i32 }
          catch ptr null
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %4, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %5, align 4
  br label %89

85:                                               ; preds = %37, %35
  %86 = landingpad { ptr, i32 }
          catch ptr null
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %4, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %5, align 4
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %89

89:                                               ; preds = %85, %81
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  br label %106

90:                                               ; preds = %98, %55, %53, %51, %49, %45, %43, %39
  %91 = landingpad { ptr, i32 }
          catch ptr null
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %4, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %5, align 4
  br label %106

94:                                               ; preds = %58, %56
  %95 = landingpad { ptr, i32 }
          catch ptr null
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %4, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %106

98:                                               ; preds = %60, %47
  invoke void @_ZN5boost10filesystem4pathC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %99 unwind label %90

99:                                               ; preds = %98
  invoke void @_ZN8graphlabL21delete_proc_directoryEN5boost10filesystem4pathE(ptr noundef %12)
          to label %100 unwind label %101

100:                                              ; preds = %99
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %105

101:                                              ; preds = %99
  %102 = landingpad { ptr, i32 }
          catch ptr null
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %4, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %5, align 4
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %106

105:                                              ; preds = %100, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %135

106:                                              ; preds = %101, %94, %90, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %107

107:                                              ; preds = %106
  %108 = load ptr, ptr %4, align 8
  %109 = call ptr @__cxa_begin_catch(ptr %108) #7
  %110 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
          to label %111 unwind label %125

111:                                              ; preds = %107
  %112 = invoke noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %110)
          to label %113 unwind label %125

113:                                              ; preds = %111
  %114 = icmp sge i32 5, %112
  br i1 %114, label %115, label %133

115:                                              ; preds = %113
  %116 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 5, ptr noundef @.str.7, ptr noundef @__func__._ZN8graphlab22reap_unused_temp_filesEv, i32 noundef 285, i1 noundef zeroext true)
          to label %117 unwind label %125

117:                                              ; preds = %115
  %118 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %116, ptr noundef @.str.9)
          to label %119 unwind label %125

119:                                              ; preds = %117
  invoke void @_ZN5boost10filesystem4pathC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %120 unwind label %125

120:                                              ; preds = %119
  %121 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsIN5boost10filesystem4pathEEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %118, ptr noundef %13)
          to label %122 unwind label %129

122:                                              ; preds = %120
  %123 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %121, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %124 unwind label %129

124:                                              ; preds = %122
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  br label %133

125:                                              ; preds = %119, %117, %115, %111, %107
  %126 = landingpad { ptr, i32 }
          catch ptr null
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %4, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %5, align 4
  br label %136

129:                                              ; preds = %122, %120
  %130 = landingpad { ptr, i32 }
          catch ptr null
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %4, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %5, align 4
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  br label %136

133:                                              ; preds = %124, %113
  invoke void @__cxa_end_catch()
          to label %134 unwind label %77

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134, %105
  br label %138

136:                                              ; preds = %129, %125
  invoke void @__cxa_end_catch()
          to label %137 unwind label %155

137:                                              ; preds = %136
  br label %141

138:                                              ; preds = %135, %33
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5boost9iterators6detail20iterator_facade_baseINS_10filesystem18directory_iteratorENS3_15directory_entryENS0_25single_pass_traversal_tagERS5_lLb0ELb0EEppEv(ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %140 unwind label %77

140:                                              ; preds = %138
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  br label %24, !llvm.loop !9

141:                                              ; preds = %137, %77
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %142

142:                                              ; preds = %141, %73
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  br label %144

143:                                              ; preds = %26
  call void @_ZN5boost10filesystem18directory_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @_ZN5boost10filesystem18directory_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
  br label %150

144:                                              ; preds = %142, %69
  call void @_ZN5boost10filesystem18directory_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @_ZN5boost10filesystem18directory_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br label %145

145:                                              ; preds = %144, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  br label %146

146:                                              ; preds = %145, %61
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
  br label %147

147:                                              ; preds = %146
  %148 = load ptr, ptr %4, align 8
  %149 = call ptr @__cxa_begin_catch(ptr %148) #7
  call void @__cxa_end_catch()
  br label %150

150:                                              ; preds = %147, %143
  br label %151

151:                                              ; preds = %150
  %152 = load i64, ptr %2, align 8, !tbaa !5
  %153 = add i64 %152, 1
  store i64 %153, ptr %2, align 8, !tbaa !5
  br label %15, !llvm.loop !11

154:                                              ; preds = %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  ret void

155:                                              ; preds = %136
  %156 = landingpad { ptr, i32 }
          catch ptr null
  %157 = extractvalue { ptr, i32 } %156, 0
  call void @__clang_call_terminate(ptr %157) #8
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8graphlabL27get_graphlab_temp_directoryEm(ptr dead_on_unwind noalias writable sret(%"class.boost::filesystem::path") align 8, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost10filesystem18directory_iteratorC2ERKNS0_4pathENS0_17directory_optionsE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost9iteratorsneINS_10filesystem18directory_iteratorENS2_15directory_entryENS0_25single_pass_traversal_tagERS4_lS3_S4_S5_S6_lEENS0_6detail23enable_if_interoperableIT_T4_NS_3mpl6apply2INS7_12always_bool2ES9_SA_E4typeEE4typeERKNS0_15iterator_facadeIS9_T0_T1_T2_T3_EERKNSI_ISA_T5_T6_T7_T8_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK5boost9iterators6detail20iterator_facade_baseINS_10filesystem18directory_iteratorENS3_15directory_entryENS0_25single_pass_traversal_tagERS5_lLb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost10filesystem12is_directoryERKNS0_4pathE(ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNSt7__cxx114stolERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) #4

declare void @_ZNK5boost10filesystem4path8filenameEv(ptr dead_on_unwind writable sret(%"class.boost::filesystem::path") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #5

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

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

declare noundef zeroext i1 @_ZN8graphlab18is_process_runningEm(i64 noundef) #5

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 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) #4 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)) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8graphlabL21delete_proc_directoryEN5boost10filesystem4pathE(ptr noundef) #3

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline noreturn nounwind uwtable "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 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 = { "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 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 #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; 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.boost::filesystem::path" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.boost::filesystem::directory_iterator" = type { %"class.boost::intrusive_ptr" }
%"class.boost::intrusive_ptr" = type { ptr }

@.str.7 = external hidden unnamed_addr constant [80 x i8], align 1
@__func__._ZN8graphlab22reap_unused_temp_filesEv = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #1

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN8graphlab20num_temp_directoriesEv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab22reap_unused_temp_filesEv() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.boost::filesystem::path", align 8
  %2 = alloca %"class.boost::filesystem::directory_iterator", align 8
  %3 = alloca %"class.boost::filesystem::directory_iterator", align 8
  %4 = alloca %"class.boost::filesystem::path", align 8
  %5 = alloca %"class.boost::filesystem::path", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.boost::filesystem::path", align 8
  %8 = alloca %"class.boost::filesystem::path", align 8
  %9 = tail call noundef i64 @_ZN8graphlab20num_temp_directoriesEv()
  %.not = icmp eq i64 %9, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %101, %0
  ret void

.lr.ph:                                           ; preds = %0, %101
  %.010 = phi i64 [ %102, %101 ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #7
  invoke void @_ZN8graphlabL27get_graphlab_temp_directoryEm(ptr dead_on_unwind nonnull writable sret(%"class.boost::filesystem::path") align 8 %1, i64 noundef %.010)
          to label %10 unwind label %45

10:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  invoke void @_ZN5boost10filesystem18directory_iteratorC2ERKNS0_4pathENS0_17directory_optionsE(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 0)
          to label %11 unwind label %47

11:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN5boost10filesystem18directory_iteratorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  br label %12

12:                                               ; preds = %93, %11
  %13 = invoke noundef zeroext i1 @_ZN5boost9iteratorsneINS_10filesystem18directory_iteratorENS2_15directory_entryENS0_25single_pass_traversal_tagERS4_lS3_S4_S5_S6_lEENS0_6detail23enable_if_interoperableIT_T4_NS_3mpl6apply2INS7_12always_bool2ES9_SA_E4typeEE4typeERKNS0_15iterator_facadeIS9_T0_T1_T2_T3_EERKNSI_ISA_T5_T6_T7_T8_EE(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %14 unwind label %49

14:                                               ; preds = %12
  br i1 %13, label %15, label %96

15:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #7
  %16 = invoke noundef ptr @_ZNK5boost9iterators6detail20iterator_facade_baseINS_10filesystem18directory_iteratorENS3_15directory_entryENS0_25single_pass_traversal_tagERS5_lLb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %17 unwind label %51

17:                                               ; preds = %15
  %18 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5boost10filesystem15directory_entry4pathEv(ptr noundef nonnull align 8 dereferenceable(48) %16) #7
  invoke void @_ZN5boost10filesystem4pathC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %19 unwind label %51

19:                                               ; preds = %17
  %20 = invoke noundef zeroext i1 @_ZN5boost10filesystem12is_directoryERKNS0_4pathE(ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %21 unwind label %53

21:                                               ; preds = %19
  br i1 %20, label %22, label %91

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  invoke void @_ZNK5boost10filesystem4path8filenameEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::filesystem::path") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %23 unwind label %55

23:                                               ; preds = %22
  %24 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5boost10filesystem4path6stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %25 = invoke noundef i64 @_ZNSt7__cxx114stolERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef null, i32 noundef 10)
          to label %26 unwind label %57

26:                                               ; preds = %23
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  %27 = invoke noundef zeroext i1 @_ZN8graphlab18is_process_runningEm(i64 noundef %25)
          to label %28 unwind label %60

28:                                               ; preds = %26
  br i1 %27, label %91, label %29

29:                                               ; preds = %28
  %30 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
          to label %31 unwind label %60

31:                                               ; preds = %29
  %32 = call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %30)
  %33 = icmp slt i32 %32, 4
  br i1 %33, label %34, label %64

34:                                               ; preds = %31
  %35 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 3, ptr noundef nonnull @.str.7, ptr noundef nonnull @__func__._ZN8graphlab22reap_unused_temp_filesEv, i32 noundef 277, i1 noundef zeroext true)
          to label %36 unwind label %60

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %35, ptr noundef nonnull @.str.8)
          to label %38 unwind label %60

38:                                               ; preds = %36
  %39 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5boost10filesystem4path6stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %4)
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %40 unwind label %60

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %37, ptr noundef nonnull %6)
          to label %42 unwind label %62

42:                                               ; preds = %40
  %43 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %41, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %44 unwind label %62

44:                                               ; preds = %42
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br label %64

45:                                               ; preds = %.lr.ph
  %46 = landingpad { ptr, i32 }
          catch ptr null
  br label %99

47:                                               ; preds = %10
  %48 = landingpad { ptr, i32 }
          catch ptr null
  br label %98

49:                                               ; preds = %12
  %50 = landingpad { ptr, i32 }
          catch ptr null
  br label %97

51:                                               ; preds = %17, %15
  %52 = landingpad { ptr, i32 }
          catch ptr null
  br label %95

53:                                               ; preds = %91, %89, %19
  %54 = landingpad { ptr, i32 }
          catch ptr null
  br label %94

55:                                               ; preds = %22
  %56 = landingpad { ptr, i32 }
          catch ptr null
  br label %59

57:                                               ; preds = %23
  %58 = landingpad { ptr, i32 }
          catch ptr null
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  br label %59

59:                                               ; preds = %57, %55
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %69

60:                                               ; preds = %64, %38, %36, %34, %29, %26
  %61 = landingpad { ptr, i32 }
          catch ptr null
  br label %69

62:                                               ; preds = %42, %40
  %63 = landingpad { ptr, i32 }
          catch ptr null
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br label %69

64:                                               ; preds = %44, %31
  invoke void @_ZN5boost10filesystem4pathC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %65 unwind label %60

65:                                               ; preds = %64
  invoke void @_ZN8graphlabL21delete_proc_directoryEN5boost10filesystem4pathE(ptr noundef nonnull %7)
          to label %66 unwind label %67

66:                                               ; preds = %65
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %91

67:                                               ; preds = %65
  %68 = landingpad { ptr, i32 }
          catch ptr null
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %69

69:                                               ; preds = %67, %62, %60, %59
  %.pn7 = phi { ptr, i32 } [ %68, %67 ], [ %61, %60 ], [ %63, %62 ], [ %.pn, %59 ]
  %.1 = extractvalue { ptr, i32 } %.pn7, 0
  %70 = call ptr @__cxa_begin_catch(ptr %.1) #7
  %71 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
          to label %72 unwind label %85

72:                                               ; preds = %69
  %73 = call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %71)
  %74 = icmp slt i32 %73, 6
  br i1 %74, label %75, label %89

75:                                               ; preds = %72
  %76 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 5, ptr noundef nonnull @.str.7, ptr noundef nonnull @__func__._ZN8graphlab22reap_unused_temp_filesEv, i32 noundef 285, i1 noundef zeroext true)
          to label %77 unwind label %85

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %76, ptr noundef nonnull @.str.9)
          to label %79 unwind label %85

79:                                               ; preds = %77
  invoke void @_ZN5boost10filesystem4pathC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %80 unwind label %85

80:                                               ; preds = %79
  %81 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsIN5boost10filesystem4pathEEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %78, ptr noundef nonnull %8)
          to label %82 unwind label %87

82:                                               ; preds = %80
  %83 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %81, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %84 unwind label %87

84:                                               ; preds = %82
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %89

85:                                               ; preds = %79, %77, %75, %69
  %86 = landingpad { ptr, i32 }
          catch ptr null
  br label %90

87:                                               ; preds = %82, %80
  %88 = landingpad { ptr, i32 }
          catch ptr null
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %90

89:                                               ; preds = %84, %72
  invoke void @__cxa_end_catch()
          to label %91 unwind label %53

90:                                               ; preds = %87, %85
  %.pn8 = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ]
  invoke void @__cxa_end_catch()
          to label %94 unwind label %103

91:                                               ; preds = %28, %66, %89, %21
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5boost9iterators6detail20iterator_facade_baseINS_10filesystem18directory_iteratorENS3_15directory_entryENS0_25single_pass_traversal_tagERS5_lLb0ELb0EEppEv(ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %93 unwind label %53

93:                                               ; preds = %91
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  br label %12, !llvm.loop !5

94:                                               ; preds = %90, %53
  %.pn9 = phi { ptr, i32 } [ %54, %53 ], [ %.pn8, %90 ]
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  br label %95

95:                                               ; preds = %94, %51
  %.pn9.pn = phi { ptr, i32 } [ %.pn9, %94 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  br label %97

96:                                               ; preds = %14
  call void @_ZN5boost10filesystem18directory_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN5boost10filesystem18directory_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  br label %101

97:                                               ; preds = %95, %49
  %.pn9.pn.pn = phi { ptr, i32 } [ %.pn9.pn, %95 ], [ %50, %49 ]
  call void @_ZN5boost10filesystem18directory_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN5boost10filesystem18directory_iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  br label %98

98:                                               ; preds = %97, %47
  %.pn9.pn.pn.pn = phi { ptr, i32 } [ %.pn9.pn.pn, %97 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @_ZN5boost10filesystem4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  br label %99

99:                                               ; preds = %98, %45
  %.pn9.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn9.pn.pn.pn, %98 ], [ %46, %45 ]
  %.7 = extractvalue { ptr, i32 } %.pn9.pn.pn.pn.pn, 0
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  %100 = call ptr @__cxa_begin_catch(ptr %.7) #7
  call void @__cxa_end_catch()
  br label %101

101:                                              ; preds = %96, %99
  %102 = add nuw i64 %.010, 1
  %exitcond.not = icmp eq i64 %102, %9
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !7

103:                                              ; preds = %90
  %104 = landingpad { ptr, i32 }
          catch ptr null
  %105 = extractvalue { ptr, i32 } %104, 0
  call void @__clang_call_terminate(ptr %105) #8
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8graphlabL27get_graphlab_temp_directoryEm(ptr dead_on_unwind noalias writable sret(%"class.boost::filesystem::path") align 8, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost10filesystem18directory_iteratorC2ERKNS0_4pathENS0_17directory_optionsE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost9iteratorsneINS_10filesystem18directory_iteratorENS2_15directory_entryENS0_25single_pass_traversal_tagERS4_lS3_S4_S5_S6_lEENS0_6detail23enable_if_interoperableIT_T4_NS_3mpl6apply2INS7_12always_bool2ES9_SA_E4typeEE4typeERKNS0_15iterator_facadeIS9_T0_T1_T2_T3_EERKNSI_ISA_T5_T6_T7_T8_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK5boost9iterators6detail20iterator_facade_baseINS_10filesystem18directory_iteratorENS3_15directory_entryENS0_25single_pass_traversal_tagERS5_lLb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost10filesystem12is_directoryERKNS0_4pathE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNSt7__cxx114stolERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZNK5boost10filesystem4path8filenameEv(ptr dead_on_unwind writable sret(%"class.boost::filesystem::path") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

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

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

declare noundef zeroext i1 @_ZN8graphlab18is_process_runningEm(i64 noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896)) local_unnamed_addr #2 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 #4 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 #4 align 2

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 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 #4 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)) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8graphlabL21delete_proc_directoryEN5boost10filesystem4pathE(ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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


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