; LLVM IR from thepowersgang/mrustc :: tools/minicargo/build.ll (ZNK8RunState21outfile_needs_rebuildERKN7helpers4pathE)

; 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.Timestamp = type { i64 }
%"class.std::function.103" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.122 = type { ptr }
%class.anon.123 = type { ptr, ptr, ptr }
%"class.std::map.124" = type { %"class.std::_Rb_tree.125" }
%"class.std::_Rb_tree.125" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<helpers::path>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<helpers::path>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<helpers::path>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<helpers::path>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.helpers::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] }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.131" = type { ptr }
%class.anon.132 = type { ptr, ptr, ptr, ptr }
%class.anon.133 = type { ptr }
%struct.RunState = type <{ ptr, ptr, i8, [7 x i8] }>
%"struct.std::pair.129" = type { %"class.std::__cxx11::basic_string", %"class.std::vector.36" }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<helpers::path, std::allocator<helpers::path>>::_Vector_impl" }
%"struct.std::_Vector_base<helpers::path, std::allocator<helpers::path>>::_Vector_impl" = type { %"struct.std::_Vector_base<helpers::path, std::allocator<helpers::path>>::_Vector_impl_data" }
%"struct.std::_Vector_base<helpers::path, std::allocator<helpers::path>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN9Timestamp13infinite_pastEv() #1 align 2

; 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 @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef) #3

declare i64 @_ZN9Timestamp8for_fileERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32)) #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8RunState21outfile_needs_rebuildERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(17) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %class.Timestamp, align 8
  %7 = alloca %class.Timestamp, align 8
  %8 = alloca %"class.std::function.103", align 8
  %9 = alloca %class.anon.122, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %class.Timestamp, align 8
  %14 = alloca %"class.std::function.103", align 8
  %15 = alloca %class.anon.123, align 8
  %16 = alloca %"class.std::map.124", align 8
  %17 = alloca %"class.helpers::path", align 8
  %18 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca i8, align 1
  %21 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %25 = alloca ptr, align 8
  %26 = alloca %class.Timestamp, align 8
  %27 = alloca %"class.std::function.103", align 8
  %28 = alloca %class.anon.132, align 8
  %29 = alloca %"class.std::function.103", align 8
  %30 = alloca %class.anon.133, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %31 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = call i64 @_ZN9Timestamp8for_fileERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32) %32)
  %34 = getelementptr inbounds %class.Timestamp, ptr %6, i32 0, i32 0
  store i64 %33, ptr %34, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %35 = call i64 @_ZN9Timestamp13infinite_pastEv()
  %36 = getelementptr inbounds %class.Timestamp, ptr %7, i32 0, i32 0
  store i64 %35, ptr %36, align 8
  %37 = call noundef zeroext i1 @_ZNK9TimestampeqERKS_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br i1 %37, label %38, label %49

38:                                               ; preds = %2
  br label %39

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %40 = getelementptr inbounds %class.anon.122, ptr %9, i32 0, i32 0
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %41, ptr %40, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %8)
          to label %42 unwind label %45

42:                                               ; preds = %39
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  store i1 true, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %173

45:                                               ; preds = %39
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %10, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %11, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %175

49:                                               ; preds = %2
  %50 = call ptr @getenv(ptr noundef @.str.1) #6
  %51 = icmp ne ptr %50, null
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  br i1 %51, label %58, label %52

52:                                               ; preds = %49
  %53 = getelementptr inbounds %struct.RunState, ptr %31, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  %55 = call i64 @_ZN9Timestamp8for_fileERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32) %54)
  %56 = getelementptr inbounds %class.Timestamp, ptr %13, i32 0, i32 0
  store i64 %55, ptr %56, align 8
  %57 = call noundef zeroext i1 @_ZNK9TimestampltERKS_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %13)
  br label %58

58:                                               ; preds = %52, %49
  %59 = phi i1 [ false, %49 ], [ %57, %52 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br i1 %59, label %60, label %73

60:                                               ; preds = %58
  br label %61

61:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %62 = getelementptr inbounds %class.anon.123, ptr %15, i32 0, i32 0
  store ptr %31, ptr %62, align 8, !tbaa !12
  %63 = getelementptr inbounds %class.anon.123, ptr %15, i32 0, i32 1
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %64, ptr %63, align 8, !tbaa !5
  %65 = getelementptr inbounds %class.anon.123, ptr %15, i32 0, i32 2
  store ptr %6, ptr %65, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %14)
          to label %66 unwind label %69

66:                                               ; preds = %61
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  store i1 true, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %173

69:                                               ; preds = %61
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %10, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %11, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %175

73:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 48, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7helpers4pathplEPKc(ptr dead_on_unwind writable sret(%"class.helpers::path") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %74, ptr noundef @.str.2)
  invoke void @_ZN12_GLOBAL__N_112load_depfileB5cxx11ERKN7helpers4pathE(ptr dead_on_unwind writable sret(%"class.std::map.124") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %75 unwind label %96

75:                                               ; preds = %73
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK7helpers4pathcvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %76)
          to label %77 unwind label %100

77:                                               ; preds = %75
  %78 = invoke ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7helpers4pathESaIS8_EESt4lessIS5_ESaISt4pairIKS5_SA_EEE4findERSE_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %79 unwind label %104

79:                                               ; preds = %77
  %80 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %18, i32 0, i32 0
  store ptr %78, ptr %80, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #6
  store i8 0, ptr %20, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %81 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7helpers4pathESaIS8_EESt4lessIS5_ESaISt4pairIKS5_SA_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %16) #6
  %82 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %21, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  %83 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7helpers4pathESaISA_EEEESG_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br i1 %83, label %84, label %154

84:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %85 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7helpers4pathESaISA_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  %86 = getelementptr inbounds %"struct.std::pair.129", ptr %85, i32 0, i32 1
  store ptr %86, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %87 = load ptr, ptr %22, align 8, !tbaa !5
  %88 = call ptr @_ZNSt6vectorIN7helpers4pathESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #6
  %89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %23, i32 0, i32 0
  store ptr %88, ptr %89, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %90 = load ptr, ptr %22, align 8, !tbaa !5
  %91 = call ptr @_ZNSt6vectorIN7helpers4pathESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #6
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %24, i32 0, i32 0
  store ptr %91, ptr %92, align 8
  br label %93

93:                                               ; preds = %149, %84
  %94 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7helpers4pathESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  br i1 %94, label %109, label %95

95:                                               ; preds = %93
  store i32 6, ptr %12, align 4
  br label %152

96:                                               ; preds = %73
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %10, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %11, align 4
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  br label %172

100:                                              ; preds = %75
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %10, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %11, align 4
  br label %108

104:                                              ; preds = %77
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %10, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %108

108:                                              ; preds = %104, %100
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  br label %171

109:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %110 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7helpers4pathESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  store ptr %110, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %111 = load ptr, ptr %25, align 8, !tbaa !5
  %112 = invoke i64 @_ZN9Timestamp8for_fileERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32) %111)
          to label %113 unwind label %129

113:                                              ; preds = %109
  %114 = getelementptr inbounds %class.Timestamp, ptr %26, i32 0, i32 0
  store i64 %112, ptr %114, align 8
  %115 = invoke noundef zeroext i1 @_ZNK9TimestampltERKS_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %116 unwind label %129

116:                                              ; preds = %113
  br i1 %115, label %117, label %142

117:                                              ; preds = %116
  store i8 1, ptr %20, align 1, !tbaa !14
  br label %118

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #6
  %119 = getelementptr inbounds %class.anon.132, ptr %28, i32 0, i32 0
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %120, ptr %119, align 8, !tbaa !5
  %121 = getelementptr inbounds %class.anon.132, ptr %28, i32 0, i32 1
  %122 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %122, ptr %121, align 8, !tbaa !5
  %123 = getelementptr inbounds %class.anon.132, ptr %28, i32 0, i32 2
  store ptr %6, ptr %123, align 8, !tbaa !5
  %124 = getelementptr inbounds %class.anon.132, ptr %28, i32 0, i32 3
  store ptr %26, ptr %124, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %125 unwind label %133

125:                                              ; preds = %118
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %27)
          to label %126 unwind label %137

126:                                              ; preds = %125
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  br label %127

127:                                              ; preds = %126
  br label %128

128:                                              ; preds = %127
  store i32 6, ptr %12, align 4
  br label %143

129:                                              ; preds = %113, %109
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %10, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %11, align 4
  br label %151

133:                                              ; preds = %118
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %10, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %11, align 4
  br label %141

137:                                              ; preds = %125
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %10, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %11, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  br label %141

141:                                              ; preds = %137, %133
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  br label %151

142:                                              ; preds = %116
  store i32 0, ptr %12, align 4
  br label %143

143:                                              ; preds = %142, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  %144 = load i32, ptr %12, align 4
  switch i32 %144, label %146 [
    i32 0, label %145
  ]

145:                                              ; preds = %143
  store i32 0, ptr %12, align 4
  br label %146

146:                                              ; preds = %145, %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  %147 = load i32, ptr %12, align 4
  switch i32 %147, label %152 [
    i32 0, label %148
  ]

148:                                              ; preds = %146
  br label %149

149:                                              ; preds = %148
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7helpers4pathESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  br label %93

151:                                              ; preds = %141, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %170

152:                                              ; preds = %146, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %153

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153, %79
  %155 = load i8, ptr %20, align 1, !tbaa !14, !range !15, !noundef !16
  %156 = trunc i8 %155 to i1
  br i1 %156, label %168, label %157

157:                                              ; preds = %154
  br label %158

158:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %159 = getelementptr inbounds %class.anon.133, ptr %30, i32 0, i32 0
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %160, ptr %159, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %29)
          to label %161 unwind label %164

161:                                              ; preds = %158
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %162

162:                                              ; preds = %161
  br label %163

163:                                              ; preds = %162
  store i1 false, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %169

164:                                              ; preds = %158
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %10, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %11, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %170

168:                                              ; preds = %154
  store i1 true, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %169

169:                                              ; preds = %168, %163
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7helpers4pathESaIS8_EESt4lessIS5_ESaISt4pairIKS5_SA_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #6
  br label %173

170:                                              ; preds = %164, %151
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  br label %171

171:                                              ; preds = %170, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7helpers4pathESaIS8_EESt4lessIS5_ESaISt4pairIKS5_SA_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #6
  br label %172

172:                                              ; preds = %171, %96
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #6
  br label %175

173:                                              ; preds = %169, %68, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %174 = load i1, ptr %3, align 1
  ret i1 %174

175:                                              ; preds = %172, %69, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %176

176:                                              ; preds = %175
  %177 = load ptr, ptr %10, align 8
  %178 = load i32, ptr %11, align 4
  %179 = insertvalue { ptr, i32 } poison, ptr %177, 0
  %180 = insertvalue { ptr, i32 } %179, i32 %178, 1
  resume { ptr, i32 } %180
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: nounwind
declare ptr @getenv(ptr noundef) #5

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_112load_depfileB5cxx11ERKN7helpers4pathE(ptr dead_on_unwind noalias writable sret(%"class.std::map.124") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7helpers4pathplEPKc(ptr dead_on_unwind noalias writable sret(%"class.helpers::path") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7helpers4pathcvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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 = { 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, !6, i64 8}
!10 = !{!"_ZTS8RunState", !6, i64 0, !6, i64 8, !11, i64 16}
!11 = !{!"bool", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"_ZTSZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_1", !6, i64 0, !6, i64 8, !6, i64 16}
!14 = !{!11, !11, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}


; 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.Timestamp = type { i64 }
%"class.std::function.103" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.122 = type { ptr }
%class.anon.123 = type { ptr, ptr, ptr }
%"class.std::map.124" = type { %"class.std::_Rb_tree.125" }
%"class.std::_Rb_tree.125" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<helpers::path>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<helpers::path>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<helpers::path>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<helpers::path>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.helpers::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] }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.131" = type { ptr }
%class.anon.132 = type { ptr, ptr, ptr, ptr }
%class.anon.133 = type { ptr }

@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN9Timestamp13infinite_pastEv() local_unnamed_addr #1 align 2

; 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 @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef) local_unnamed_addr #3

declare i64 @_ZN9Timestamp8for_fileERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8RunState21outfile_needs_rebuildERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(17) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.Timestamp, align 8
  %4 = alloca %class.Timestamp, align 8
  %5 = alloca %"class.std::function.103", align 8
  %6 = alloca %class.anon.122, align 8
  %7 = alloca %class.Timestamp, align 8
  %8 = alloca %"class.std::function.103", align 8
  %9 = alloca %class.anon.123, align 8
  %10 = alloca %"class.std::map.124", align 8
  %11 = alloca %"class.helpers::path", align 8
  %12 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %17 = alloca %class.Timestamp, align 8
  %18 = alloca %"class.std::function.103", align 8
  %19 = alloca %class.anon.132, align 8
  %20 = alloca %"class.std::function.103", align 8
  %21 = alloca %class.anon.133, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %22 = tail call i64 @_ZN9Timestamp8for_fileERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32) %1)
  store i64 %22, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %23 = tail call i64 @_ZN9Timestamp13infinite_pastEv()
  store i64 %23, ptr %4, align 8
  %24 = call noundef zeroext i1 @_ZNK9TimestampeqERKS_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br i1 %24, label %25, label %29

25:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  store ptr %1, ptr %6, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %5)
          to label %26 unwind label %27

26:                                               ; preds = %25
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %88

27:                                               ; preds = %25
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %89

29:                                               ; preds = %2
  %30 = call ptr @getenv(ptr noundef nonnull @.str.1) #6
  %.not = icmp eq ptr %30, null
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  br i1 %.not, label %31, label %.critedge

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %0, i64 8
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = call i64 @_ZN9Timestamp8for_fileERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32) %33)
  store i64 %34, ptr %7, align 8
  %35 = call noundef zeroext i1 @_ZNK9TimestampltERKS_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br i1 %35, label %36, label %42

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  store ptr %0, ptr %9, align 8, !tbaa !12
  %37 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %1, ptr %37, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %9, i64 16
  store ptr %3, ptr %38, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(24) %9)
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %8)
          to label %39 unwind label %40

39:                                               ; preds = %36
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %88

40:                                               ; preds = %36
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %89

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

42:                                               ; preds = %.critedge, %31
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  call void @_ZNK7helpers4pathplEPKc(ptr dead_on_unwind nonnull writable sret(%"class.helpers::path") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.2)
  invoke void @_ZN12_GLOBAL__N_112load_depfileB5cxx11ERKN7helpers4pathE(ptr dead_on_unwind nonnull writable sret(%"class.std::map.124") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %43 unwind label %55

43:                                               ; preds = %42
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  invoke void @_ZNK7helpers4pathcvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %44 unwind label %57

44:                                               ; preds = %43
  %45 = invoke ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7helpers4pathESaIS8_EESt4lessIS5_ESaISt4pairIKS5_SA_EEE4findERSE_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %46 unwind label %59

46:                                               ; preds = %44
  store ptr %45, ptr %12, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %47 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7helpers4pathESaIS8_EESt4lessIS5_ESaISt4pairIKS5_SA_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  store ptr %47, ptr %14, align 8
  %48 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7helpers4pathESaISA_EEEESG_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br i1 %48, label %49, label %.thread43

49:                                               ; preds = %46
  %50 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7helpers4pathESaISA_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %51 = getelementptr inbounds i8, ptr %50, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %52 = call ptr @_ZNSt6vectorIN7helpers4pathESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  store ptr %52, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %53 = call ptr @_ZNSt6vectorIN7helpers4pathESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  store ptr %53, ptr %16, align 8
  %54 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7helpers4pathESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %54, label %.lr.ph, label %._crit_edge

55:                                               ; preds = %42
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %87

57:                                               ; preds = %43
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %61

59:                                               ; preds = %44
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %61

61:                                               ; preds = %59, %57
  %.pn = phi { ptr, i32 } [ %60, %59 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %86

.lr.ph:                                           ; preds = %49, %78
  %62 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7helpers4pathESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %63 = invoke i64 @_ZN9Timestamp8for_fileERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32) %62)
          to label %64 unwind label %71

64:                                               ; preds = %.lr.ph
  store i64 %63, ptr %17, align 8
  %65 = call noundef zeroext i1 @_ZNK9TimestampltERKS_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %17)
  br i1 %65, label %66, label %78

66:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #6
  store ptr %1, ptr %19, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %19, i64 8
  store ptr %62, ptr %67, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %19, i64 16
  store ptr %3, ptr %68, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %19, i64 24
  store ptr %17, ptr %69, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %70 unwind label %73

70:                                               ; preds = %66
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %18)
          to label %.thread47 unwind label %75

.thread47:                                        ; preds = %70
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %85

71:                                               ; preds = %.lr.ph
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %81

73:                                               ; preds = %66
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %77

75:                                               ; preds = %70
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %77

77:                                               ; preds = %75, %73
  %.pn33 = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  br label %81

78:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7helpers4pathESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %80 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7helpers4pathESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %80, label %.lr.ph, label %._crit_edge

81:                                               ; preds = %77, %71
  %.pn33.pn = phi { ptr, i32 } [ %.pn33, %77 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %86

._crit_edge:                                      ; preds = %78, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %.thread43

.thread43:                                        ; preds = %._crit_edge, %46
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  store ptr %1, ptr %21, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %20)
          to label %82 unwind label %83

82:                                               ; preds = %.thread43
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br label %85

83:                                               ; preds = %.thread43
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br label %86

85:                                               ; preds = %.thread47, %82
  %.32346 = phi i1 [ false, %82 ], [ true, %.thread47 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7helpers4pathESaIS8_EESt4lessIS5_ESaISt4pairIKS5_SA_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #6
  br label %88

86:                                               ; preds = %81, %83, %61
  %.pn36.pn = phi { ptr, i32 } [ %.pn, %61 ], [ %84, %83 ], [ %.pn33.pn, %81 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7helpers4pathESaIS8_EESt4lessIS5_ESaISt4pairIKS5_SA_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  br label %87

87:                                               ; preds = %86, %55
  %.pn36.pn.pn = phi { ptr, i32 } [ %.pn36.pn, %86 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #6
  br label %89

88:                                               ; preds = %85, %39, %26
  %.1 = phi i1 [ true, %26 ], [ %.32346, %85 ], [ true, %39 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret i1 %.1

89:                                               ; preds = %87, %40, %27
  %.pn40 = phi { ptr, i32 } [ %28, %27 ], [ %.pn36.pn.pn, %87 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn40
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_112load_depfileB5cxx11ERKN7helpers4pathE(ptr dead_on_unwind noalias writable sret(%"class.std::map.124") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7helpers4pathplEPKc(ptr dead_on_unwind noalias writable sret(%"class.helpers::path") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7helpers4pathcvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nounwind memory(read) "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 = { 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, !6, i64 8}
!10 = !{!"_ZTS8RunState", !6, i64 0, !6, i64 8, !11, i64 16}
!11 = !{!"bool", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"_ZTSZNK8RunState21outfile_needs_rebuildERKN7helpers4pathEE3$_1", !6, i64 0, !6, i64 8, !6, i64 16}


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