; LLVM IR from kacperks/Fractal_Engine :: Engine/Thirdparty/cmake/Engine/Thirdparty/cmake/openal-soft/core (helpers)

; 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"

%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, al::allocator<std::__cxx11::basic_string<char>, 8>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, al::allocator<std::__cxx11::basic_string<char>, 8>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, al::allocator<std::__cxx11::basic_string<char>, 8>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, al::allocator<std::__cxx11::basic_string<char>, 8>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::lock_guard" = type { ptr }
%"class.al::optional.5" = type { %"struct.al::optional_storage.6" }
%"struct.al::optional_storage.6" = type { %"struct.al::optstore_helper.7" }
%"struct.al::optstore_helper.7" = type { %"struct.al::optstore_base.8" }
%"struct.al::optstore_base.8" = type { i8, %union.anon.9 }
%union.anon.9 = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<char, al::allocator<char, 1>>::_Vector_impl" }
%"struct.std::_Vector_base<char, al::allocator<char, 1>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, al::allocator<char, 1>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, al::allocator<char, 1>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.al::allocator" = type { i8 }

@_ZZ15SearchDataFilesB5cxx11PKcS0_E11search_lock = external hidden global { %union.pthread_mutex_t }, align 8
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [30 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: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #3

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15SearchDataFilesB5cxx11PKcS0_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.1") align 8 %0, ptr noundef %1, ptr noundef %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::lock_guard", align 8
  %8 = alloca i1, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.al::optional.5", align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"struct.al::allocator", align 1
  %15 = alloca %"class.al::optional.5", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.al::optional.5", align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.al::optional.5", align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(40) @_ZZ15SearchDataFilesB5cxx11PKcS0_E11search_lock)
  store i1 false, ptr %8, align 1
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS5_Lm8EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 0
  %26 = load i8, ptr %25, align 1, !tbaa !9
  %27 = sext i8 %26 to i32
  %28 = icmp eq i32 %27, 47
  br i1 %28, label %29, label %37

29:                                               ; preds = %3
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef %30, ptr noundef %31, ptr noundef %0)
          to label %32 unwind label %33

32:                                               ; preds = %29
  store i1 true, ptr %8, align 1
  store i32 1, ptr %11, align 4
  br label %225

33:                                               ; preds = %29
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %9, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %10, align 4
  br label %229

37:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #6
  invoke void @_ZN2al6getenvB5cxx11EPKc(ptr dead_on_unwind writable sret(%"class.al::optional.5") align 8 %12, ptr noundef @.str.2)
          to label %38 unwind label %46

38:                                               ; preds = %37
  %39 = call noundef zeroext i1 @_ZNK2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  br i1 %39, label %40, label %54

40:                                               ; preds = %38
  %41 = invoke noundef ptr @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEptEv(ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %42 unwind label %50

42:                                               ; preds = %40
  %43 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %41) #6
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef %43, ptr noundef %44, ptr noundef %0)
          to label %45 unwind label %50

45:                                               ; preds = %42
  br label %90

46:                                               ; preds = %37
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %9, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %10, align 4
  br label %106

50:                                               ; preds = %42, %40
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %9, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %10, align 4
  br label %105

54:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  invoke void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 256, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %55 unwind label %67

55:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %56

56:                                               ; preds = %74, %55
  %57 = call noundef ptr @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %58 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %59 = call ptr @getcwd(ptr noundef %57, i64 noundef %58) #6
  %60 = icmp ne ptr %59, null
  %61 = xor i1 %60, true
  br i1 %61, label %62, label %79

62:                                               ; preds = %56
  %63 = call ptr @__errno_location() #7
  %64 = load i32, ptr %63, align 4, !tbaa !10
  %65 = icmp ne i32 %64, 34
  br i1 %65, label %66, label %71

66:                                               ; preds = %62
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %79

67:                                               ; preds = %54
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %9, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %89

71:                                               ; preds = %62
  %72 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %73 = shl i64 %72, 1
  invoke void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %73)
          to label %74 unwind label %75

74:                                               ; preds = %71
  br label %56, !llvm.loop !12

75:                                               ; preds = %84, %81, %71
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %9, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %10, align 4
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %89

79:                                               ; preds = %66, %56
  %80 = call noundef zeroext i1 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br i1 %80, label %81, label %84

81:                                               ; preds = %79
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef @.str.3, ptr noundef %82, ptr noundef %0)
          to label %83 unwind label %75

83:                                               ; preds = %81
  br label %88

84:                                               ; preds = %79
  %85 = call noundef ptr @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef %85, ptr noundef %86, ptr noundef %0)
          to label %87 unwind label %75

87:                                               ; preds = %84
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %88

88:                                               ; preds = %87, %83
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  br label %90

89:                                               ; preds = %75, %67
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  br label %105

90:                                               ; preds = %88, %45
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #6
  invoke void @_ZN2al6getenvB5cxx11EPKc(ptr dead_on_unwind writable sret(%"class.al::optional.5") align 8 %15, ptr noundef @.str.4)
          to label %91 unwind label %107

91:                                               ; preds = %90
  %92 = call noundef zeroext i1 @_ZNK2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(40) %15) #6
  br i1 %92, label %93, label %124

93:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %94 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNR2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(40) %15)
          to label %95 unwind label %111

95:                                               ; preds = %93
  store ptr %94, ptr %16, align 8, !tbaa !5
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  %97 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %96) #6
  %98 = load i8, ptr %97, align 1, !tbaa !9
  %99 = sext i8 %98 to i32
  %100 = icmp ne i32 %99, 47
  br i1 %100, label %101, label %115

101:                                              ; preds = %95
  %102 = load ptr, ptr %16, align 8, !tbaa !5
  %103 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %102, i8 noundef signext 47)
          to label %104 unwind label %111

104:                                              ; preds = %101
  br label %115

105:                                              ; preds = %89, %50
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  br label %106

106:                                              ; preds = %105, %46
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  br label %229

107:                                              ; preds = %90
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %9, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %10, align 4
  br label %186

111:                                              ; preds = %119, %115, %101, %93
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %9, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %185

115:                                              ; preds = %104, %95
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = load ptr, ptr %16, align 8, !tbaa !5
  %118 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %117, ptr noundef %116)
          to label %119 unwind label %111

119:                                              ; preds = %115
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  %121 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %120) #6
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef %121, ptr noundef %122, ptr noundef %0)
          to label %123 unwind label %111

123:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %159

124:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #6
  invoke void @_ZN2al6getenvB5cxx11EPKc(ptr dead_on_unwind writable sret(%"class.al::optional.5") align 8 %17, ptr noundef @.str.5)
          to label %125 unwind label %137

125:                                              ; preds = %124
  %126 = call noundef zeroext i1 @_ZNK2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(40) %17) #6
  br i1 %126, label %127, label %157

127:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %128 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNR2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(40) %17)
          to label %129 unwind label %141

129:                                              ; preds = %127
  store ptr %128, ptr %18, align 8, !tbaa !5
  %130 = load ptr, ptr %18, align 8, !tbaa !5
  %131 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %130) #6
  %132 = load i8, ptr %131, align 1, !tbaa !9
  %133 = sext i8 %132 to i32
  %134 = icmp eq i32 %133, 47
  br i1 %134, label %135, label %145

135:                                              ; preds = %129
  %136 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(32) %136) #6
  br label %145

137:                                              ; preds = %124
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %9, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %10, align 4
  br label %158

141:                                              ; preds = %152, %148, %145, %127
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %9, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #6
  br label %158

145:                                              ; preds = %135, %129
  %146 = load ptr, ptr %18, align 8, !tbaa !5
  %147 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %146, ptr noundef @.str.6)
          to label %148 unwind label %141

148:                                              ; preds = %145
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = load ptr, ptr %18, align 8, !tbaa !5
  %151 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %150, ptr noundef %149)
          to label %152 unwind label %141

152:                                              ; preds = %148
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  %154 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %153) #6
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef %154, ptr noundef %155, ptr noundef %0)
          to label %156 unwind label %141

156:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %157

157:                                              ; preds = %156, %125
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  br label %159

158:                                              ; preds = %141, %137
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  br label %185

159:                                              ; preds = %157, %123
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #6
  invoke void @_ZN2al6getenvB5cxx11EPKc(ptr dead_on_unwind writable sret(%"class.al::optional.5") align 8 %20, ptr noundef @.str.7)
          to label %160 unwind label %187

160:                                              ; preds = %159
  invoke void @_ZNO2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8value_orIRA30_KcEES6_OT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 1 dereferenceable(30) @.str.8)
          to label %161 unwind label %191

161:                                              ; preds = %160
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store i64 0, ptr %21, align 8, !tbaa !14
  br label %162

162:                                              ; preds = %221, %219, %161
  %163 = load i64, ptr %21, align 8, !tbaa !14
  %164 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  %165 = icmp ult i64 %163, %164
  br i1 %165, label %166, label %223

166:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %167 = load i64, ptr %21, align 8, !tbaa !14
  %168 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) %19, i8 noundef signext 58, i64 noundef %167) #6
  store i64 %168, ptr %22, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #6
  %169 = load i64, ptr %22, align 8, !tbaa !14
  %170 = icmp ne i64 %169, -1
  br i1 %170, label %171, label %178

171:                                              ; preds = %166
  %172 = load i64, ptr %21, align 8, !tbaa !14
  %173 = load i64, ptr %22, align 8, !tbaa !14
  %174 = add i64 %173, 1
  store i64 %174, ptr %22, align 8, !tbaa !14
  %175 = load i64, ptr %21, align 8, !tbaa !14
  %176 = sub i64 %173, %175
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 8 dereferenceable(32) %19, i64 noundef %172, i64 noundef %176)
          to label %177 unwind label %196

177:                                              ; preds = %171
  br label %181

178:                                              ; preds = %166
  %179 = load i64, ptr %21, align 8, !tbaa !14
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 8 dereferenceable(32) %19, i64 noundef %179, i64 noundef -1)
          to label %180 unwind label %196

180:                                              ; preds = %178
  br label %181

181:                                              ; preds = %180, %177
  %182 = load i64, ptr %22, align 8, !tbaa !14
  store i64 %182, ptr %21, align 8, !tbaa !14
  %183 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br i1 %183, label %184, label %200

184:                                              ; preds = %181
  store i32 4, ptr %11, align 4
  br label %219, !llvm.loop !16

185:                                              ; preds = %158, %111
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #6
  br label %186

186:                                              ; preds = %185, %107
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #6
  br label %229

187:                                              ; preds = %159
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %9, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %10, align 4
  br label %195

191:                                              ; preds = %160
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %9, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %10, align 4
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  br label %195

195:                                              ; preds = %191, %187
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  br label %224

196:                                              ; preds = %178, %171
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %9, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %10, align 4
  br label %222

200:                                              ; preds = %181
  %201 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  %202 = load i8, ptr %201, align 1, !tbaa !9
  %203 = sext i8 %202 to i32
  %204 = icmp ne i32 %203, 47
  br i1 %204, label %205, label %212

205:                                              ; preds = %200
  %206 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %23, i8 noundef signext 47)
          to label %207 unwind label %208

207:                                              ; preds = %205
  br label %212

208:                                              ; preds = %215, %212, %205
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %9, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %222

212:                                              ; preds = %207, %200
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef %213)
          to label %215 unwind label %208

215:                                              ; preds = %212
  %216 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef %216, ptr noundef %217, ptr noundef %0)
          to label %218 unwind label %208

218:                                              ; preds = %215
  store i32 0, ptr %11, align 4
  br label %219

219:                                              ; preds = %218, %184
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  %220 = load i32, ptr %11, align 4
  switch i32 %220, label %235 [
    i32 0, label %221
    i32 4, label %162
  ]

221:                                              ; preds = %219
  br label %162, !llvm.loop !16

222:                                              ; preds = %208, %196
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %224

223:                                              ; preds = %162
  store i1 true, ptr %8, align 1
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  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
  br label %225

224:                                              ; preds = %222, %195
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  br label %229

225:                                              ; preds = %223, %32
  %226 = load i1, ptr %8, align 1
  br i1 %226, label %228, label %227

227:                                              ; preds = %225
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS5_Lm8EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %228

228:                                              ; preds = %227, %225
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void

229:                                              ; preds = %224, %186, %106, %33
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS5_Lm8EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %230

230:                                              ; preds = %229
  %231 = load ptr, ptr %9, align 8
  %232 = load i32, ptr %10, align 4
  %233 = insertvalue { ptr, i32 } poison, ptr %231, 0
  %234 = insertvalue { ptr, i32 } %233, i32 %232, 1
  resume { ptr, i32 } %234

235:                                              ; preds = %219
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef, ptr noundef, ptr noundef) #2

declare void @_ZN2al6getenvB5cxx11EPKc(ptr dead_on_unwind writable sret(%"class.al::optional.5") align 8, ptr noundef) #4

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

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

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

; Function Attrs: nounwind
declare ptr @getcwd(ptr noundef, i64 noundef) #5

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext, i64 noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

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

!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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = distinct !{!16, !13}


; 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"

%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, al::allocator<std::__cxx11::basic_string<char>, 8>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, al::allocator<std::__cxx11::basic_string<char>, 8>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, al::allocator<std::__cxx11::basic_string<char>, 8>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, al::allocator<std::__cxx11::basic_string<char>, 8>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::lock_guard" = type { ptr }
%"class.al::optional.5" = type { %"struct.al::optional_storage.6" }
%"struct.al::optional_storage.6" = type { %"struct.al::optstore_helper.7" }
%"struct.al::optstore_helper.7" = type { %"struct.al::optstore_base.8" }
%"struct.al::optstore_base.8" = type { i8, %union.anon.9 }
%union.anon.9 = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<char, al::allocator<char, 1>>::_Vector_impl" }
%"struct.std::_Vector_base<char, al::allocator<char, 1>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, al::allocator<char, 1>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, al::allocator<char, 1>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.al::allocator" = type { i8 }

@_ZZ15SearchDataFilesB5cxx11PKcS0_E11search_lock = external hidden global { %union.pthread_mutex_t }, align 8
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [30 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #3

; 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15SearchDataFilesB5cxx11PKcS0_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.1") align 8 %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::lock_guard", align 8
  %5 = alloca %"class.al::optional.5", align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"struct.al::allocator", align 1
  %8 = alloca %"class.al::optional.5", align 8
  %9 = alloca %"class.al::optional.5", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.al::optional.5", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(40) @_ZZ15SearchDataFilesB5cxx11PKcS0_E11search_lock)
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS5_Lm8EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %13 = load i8, ptr %2, align 1, !tbaa !5
  %14 = icmp eq i8 %13, 47
  br i1 %14, label %15, label %18

15:                                               ; preds = %3
  invoke void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef nonnull %2, ptr noundef %1, ptr noundef nonnull %0)
          to label %127 unwind label %16

16:                                               ; preds = %15
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %128

18:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  invoke void @_ZN2al6getenvB5cxx11EPKc(ptr dead_on_unwind nonnull writable sret(%"class.al::optional.5") align 8 %5, ptr noundef nonnull @.str.2)
          to label %19 unwind label %24

19:                                               ; preds = %18
  %20 = call noundef zeroext i1 @_ZNK2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  br i1 %20, label %21, label %28

21:                                               ; preds = %19
  %22 = call noundef ptr @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEptEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
  %23 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  invoke void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef %23, ptr noundef %1, ptr noundef nonnull %0)
          to label %51 unwind label %26

24:                                               ; preds = %18
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %61

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

28:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  invoke void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 256, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %29 unwind label %38

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

30:                                               ; preds = %40, %29
  %31 = call noundef ptr @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %32 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %33 = call ptr @getcwd(ptr noundef %31, i64 noundef %32) #6
  %.not = icmp eq ptr %33, null
  br i1 %.not, label %34, label %.loopexit

34:                                               ; preds = %30
  %35 = tail call ptr @__errno_location() #7
  %36 = load i32, ptr %35, align 4, !tbaa !8
  %.not46 = icmp eq i32 %36, 34
  br i1 %.not46, label %40, label %37

37:                                               ; preds = %34
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br label %.loopexit

38:                                               ; preds = %28
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  br label %50

40:                                               ; preds = %34
  %41 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %42 = shl i64 %41, 1
  invoke void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %42)
          to label %30 unwind label %.loopexit66, !llvm.loop !10

.loopexit66:                                      ; preds = %40
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %43

.loopexit.split-lp:                               ; preds = %45, %46
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %43

43:                                               ; preds = %.loopexit.split-lp, %.loopexit66
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit66 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br label %50

.loopexit:                                        ; preds = %30, %37
  %44 = call noundef zeroext i1 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br i1 %44, label %45, label %46

45:                                               ; preds = %.loopexit
  invoke void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef nonnull @.str.3, ptr noundef %1, ptr noundef nonnull %0)
          to label %49 unwind label %.loopexit.split-lp

46:                                               ; preds = %.loopexit
  %47 = call noundef ptr @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  invoke void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef %47, ptr noundef %1, ptr noundef nonnull %0)
          to label %48 unwind label %.loopexit.split-lp

48:                                               ; preds = %46
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br label %49

49:                                               ; preds = %45, %48
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %51

50:                                               ; preds = %43, %38
  %.pn = phi { ptr, i32 } [ %lpad.phi, %43 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %60

51:                                               ; preds = %21, %49
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #6
  invoke void @_ZN2al6getenvB5cxx11EPKc(ptr dead_on_unwind nonnull writable sret(%"class.al::optional.5") align 8 %8, ptr noundef nonnull @.str.4)
          to label %52 unwind label %62

52:                                               ; preds = %51
  %53 = call noundef zeroext i1 @_ZNK2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  br i1 %53, label %54, label %70

54:                                               ; preds = %52
  %55 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNR2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(40) %8)
  %56 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %55) #6
  %57 = load i8, ptr %56, align 1, !tbaa !5
  %.not53 = icmp eq i8 %57, 47
  br i1 %.not53, label %66, label %58

58:                                               ; preds = %54
  %59 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %55, i8 noundef signext 47)
          to label %66 unwind label %64

60:                                               ; preds = %50, %26
  %.pn48 = phi { ptr, i32 } [ %27, %26 ], [ %.pn, %50 ]
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  br label %61

61:                                               ; preds = %60, %24
  %.pn48.pn = phi { ptr, i32 } [ %.pn48, %60 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  br label %128

62:                                               ; preds = %51
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %103

64:                                               ; preds = %68, %66, %58
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %102

66:                                               ; preds = %58, %54
  %67 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef nonnull %2)
          to label %68 unwind label %64

68:                                               ; preds = %66
  %69 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %55) #6
  invoke void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef %69, ptr noundef %1, ptr noundef nonnull %0)
          to label %91 unwind label %64

70:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #6
  invoke void @_ZN2al6getenvB5cxx11EPKc(ptr dead_on_unwind nonnull writable sret(%"class.al::optional.5") align 8 %9, ptr noundef nonnull @.str.5)
          to label %71 unwind label %79

71:                                               ; preds = %70
  %72 = call noundef zeroext i1 @_ZNK2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  br i1 %72, label %73, label %89

73:                                               ; preds = %71
  %74 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNR2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(40) %9)
  %75 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %74) #6
  %76 = load i8, ptr %75, align 1, !tbaa !5
  %77 = icmp eq i8 %76, 47
  br i1 %77, label %78, label %83

78:                                               ; preds = %73
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(32) %74) #6
  br label %83

79:                                               ; preds = %70
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %90

81:                                               ; preds = %87, %85, %83
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  br label %90

83:                                               ; preds = %78, %73
  %84 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %74, ptr noundef nonnull @.str.6)
          to label %85 unwind label %81

85:                                               ; preds = %83
  %86 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %74, ptr noundef nonnull %2)
          to label %87 unwind label %81

87:                                               ; preds = %85
  %88 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %74) #6
  invoke void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef %88, ptr noundef %1, ptr noundef nonnull %0)
          to label %89 unwind label %81

89:                                               ; preds = %87, %71
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  br label %91

90:                                               ; preds = %81, %79
  %.pn51 = phi { ptr, i32 } [ %82, %81 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  br label %102

91:                                               ; preds = %68, %89
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #6
  invoke void @_ZN2al6getenvB5cxx11EPKc(ptr dead_on_unwind nonnull writable sret(%"class.al::optional.5") align 8 %11, ptr noundef nonnull @.str.7)
          to label %92 unwind label %104

92:                                               ; preds = %91
  invoke void @_ZNO2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8value_orIRA30_KcEES6_OT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 1 dereferenceable(30) @.str.8)
          to label %93 unwind label %106

93:                                               ; preds = %92
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #6
  %94 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  %.not68 = icmp eq i64 %94, 0
  br i1 %.not68, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %93, %122
  %.03167 = phi i64 [ %.0, %122 ], [ 0, %93 ]
  %95 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) %10, i8 noundef signext 58, i64 noundef %.03167) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  %.not59 = icmp eq i64 %95, -1
  br i1 %.not59, label %99, label %96

96:                                               ; preds = %.lr.ph
  %97 = add nuw i64 %95, 1
  %98 = sub i64 %95, %.03167
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %10, i64 noundef %.03167, i64 noundef %98)
          to label %100 unwind label %109

99:                                               ; preds = %.lr.ph
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %10, i64 noundef %.03167, i64 noundef -1)
          to label %100 unwind label %109

100:                                              ; preds = %99, %96
  %.0 = phi i64 [ %97, %96 ], [ -1, %99 ]
  %101 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br i1 %101, label %122, label %111, !llvm.loop !12

102:                                              ; preds = %90, %64
  %.pn54 = phi { ptr, i32 } [ %65, %64 ], [ %.pn51, %90 ]
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  br label %103

103:                                              ; preds = %102, %62
  %.pn54.pn = phi { ptr, i32 } [ %.pn54, %102 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  br label %128

104:                                              ; preds = %91
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %108

106:                                              ; preds = %92
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2al8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  br label %108

108:                                              ; preds = %106, %104
  %.pn57 = phi { ptr, i32 } [ %107, %106 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #6
  br label %126

109:                                              ; preds = %99, %96
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %125

111:                                              ; preds = %100
  %112 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  %113 = load i8, ptr %112, align 1, !tbaa !5
  %.not60 = icmp eq i8 %113, 47
  br i1 %.not60, label %118, label %114

114:                                              ; preds = %111
  %115 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %12, i8 noundef signext 47)
          to label %118 unwind label %116

116:                                              ; preds = %120, %118, %114
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %125

118:                                              ; preds = %114, %111
  %119 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull %2)
          to label %120 unwind label %116

120:                                              ; preds = %118
  %121 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  invoke void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef %121, ptr noundef %1, ptr noundef nonnull %0)
          to label %122 unwind label %116

122:                                              ; preds = %120, %100
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  %123 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  %124 = icmp ult i64 %.0, %123
  br i1 %124, label %.lr.ph, label %._crit_edge

125:                                              ; preds = %116, %109
  %.pn61 = phi { ptr, i32 } [ %117, %116 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %126

._crit_edge:                                      ; preds = %122, %93
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %127

126:                                              ; preds = %125, %108
  %.pn61.pn = phi { ptr, i32 } [ %.pn61, %125 ], [ %.pn57, %108 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %128

127:                                              ; preds = %._crit_edge, %15
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  ret void

128:                                              ; preds = %126, %103, %61, %16
  %.pn64 = phi { ptr, i32 } [ %17, %16 ], [ %.pn61.pn, %126 ], [ %.pn54.pn, %103 ], [ %.pn48.pn, %61 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS5_Lm8EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn64
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_115DirectorySearchEPKcS1_PSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2al9allocatorIS8_Lm8EEEE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN2al6getenvB5cxx11EPKc(ptr dead_on_unwind writable sret(%"class.al::optional.5") align 8, ptr noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: nounwind
declare ptr @getcwd(ptr noundef, i64 noundef) local_unnamed_addr #5

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext, i64 noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

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

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}


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