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

%"class.al::optional" = type { %"struct.al::optional_storage" }
%"struct.al::optional_storage" = type { %"struct.al::optstore_helper" }
%"struct.al::optstore_helper" = type { %"struct.al::optstore_base" }
%"struct.al::optstore_base" = type { i8, %union.anon }
%union.anon = type { %struct.PathNamePair }
%struct.PathNamePair = type { %"class.std::__cxx11::basic_string", %"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 }
%"class.std::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::allocator" = type { i8 }

@_ZZ13GetProcBinaryvE7procbin = external hidden global %"class.al::optional", align 8
@_ZGVZ13GetProcBinaryvE7procbin = external hidden global i64, align 8
@__dso_handle = external hidden global i8
@_ZZ13GetProcBinaryvE13SelfLinkNames = external hidden constant [4 x [32 x i8]], align 16
@gLogLevel = external global i32, align 4
@gLogFile = external global ptr, align 8
@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(64) ptr @_Z13GetProcBinaryv() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca ptr, align 8
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::reverse_iterator", align 8
  %13 = alloca %"class.std::reverse_iterator", align 8
  %14 = alloca %"class.std::reverse_iterator", align 8
  %15 = alloca i8, align 1
  %16 = alloca %"class.std::reverse_iterator", align 8
  %17 = alloca %"class.al::optional", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.std::allocator", align 1
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.std::allocator", align 1
  %27 = alloca %"class.al::optional", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca %"class.std::allocator", align 1
  %33 = load atomic i8, ptr @_ZGVZ13GetProcBinaryvE7procbin acquire, align 8
  %34 = icmp eq i8 %33, 0
  br i1 %34, label %35, label %40, !prof !5

35:                                               ; preds = %0
  %36 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ13GetProcBinaryvE7procbin) #1
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %40

38:                                               ; preds = %35
  call void @_ZN2al8optionalI12PathNamePairEC2Ev(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin) #1
  %39 = call i32 @__cxa_atexit(ptr @_ZN2al8optionalI12PathNamePairED2Ev, ptr @_ZZ13GetProcBinaryvE7procbin, ptr @__dso_handle) #1
  call void @__cxa_guard_release(ptr @_ZGVZ13GetProcBinaryvE7procbin) #1
  br label %40

40:                                               ; preds = %38, %35, %0
  %41 = call noundef zeroext i1 @_ZNK2al8optionalI12PathNamePairEcvbEv(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin) #1
  br i1 %41, label %42, label %44

42:                                               ; preds = %40
  %43 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNR2al8optionalI12PathNamePairEdeEv(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin)
  store ptr %43, ptr %1, align 8
  br label %239

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #1
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %45 = call noundef zeroext i1 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  br i1 %45, label %46, label %127

46:                                               ; preds = %44
  invoke void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 256)
          to label %47 unwind label %53

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #1
  store ptr null, ptr %5, align 8, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #1
  store i64 0, ptr %6, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #1
  store ptr @_ZZ13GetProcBinaryvE13SelfLinkNames, ptr %7, align 8, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #1
  store ptr @_ZZ13GetProcBinaryvE13SelfLinkNames, ptr %8, align 8, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #1
  store ptr getelementptr inbounds ([32 x i8], ptr @_ZZ13GetProcBinaryvE13SelfLinkNames, i64 4), ptr %9, align 8, !tbaa !6
  br label %48

48:                                               ; preds = %76, %47
  %49 = load ptr, ptr %8, align 8, !tbaa !6
  %50 = load ptr, ptr %9, align 8, !tbaa !6
  %51 = icmp ne ptr %49, %50
  br i1 %51, label %57, label %52

52:                                               ; preds = %48
  store i32 2, ptr %10, align 4
  br label %79

53:                                               ; preds = %46
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %3, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %4, align 4
  br label %238

57:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #1
  %58 = load ptr, ptr %8, align 8, !tbaa !6
  %59 = getelementptr inbounds [32 x i8], ptr %58, i64 0, i64 0
  store ptr %59, ptr %11, align 8, !tbaa !6
  %60 = load ptr, ptr %11, align 8, !tbaa !6
  store ptr %60, ptr %5, align 8, !tbaa !6
  %61 = load ptr, ptr %5, align 8, !tbaa !6
  %62 = call noundef ptr @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %63 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %64 = call i64 @readlink(ptr noundef %61, ptr noundef %62, i64 noundef %63) #1
  store i64 %64, ptr %6, align 8, !tbaa !10
  %65 = load i64, ptr %6, align 8, !tbaa !10
  %66 = icmp sge i64 %65, 0
  br i1 %66, label %71, label %67

67:                                               ; preds = %57
  %68 = call ptr @__errno_location() #8
  %69 = load i32, ptr %68, align 4, !tbaa !12
  %70 = icmp ne i32 %69, 2
  br i1 %70, label %71, label %72

71:                                               ; preds = %67, %57
  store i32 2, ptr %10, align 4
  br label %73

72:                                               ; preds = %67
  store i32 0, ptr %10, align 4
  br label %73

73:                                               ; preds = %72, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #1
  %74 = load i32, ptr %10, align 4
  switch i32 %74, label %79 [
    i32 0, label %75
  ]

75:                                               ; preds = %73
  br label %76

76:                                               ; preds = %75
  %77 = load ptr, ptr %8, align 8, !tbaa !6
  %78 = getelementptr inbounds [32 x i8], ptr %77, i32 1
  store ptr %78, ptr %8, align 8, !tbaa !6
  br label %48

79:                                               ; preds = %73, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #1
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %93, %80
  %82 = load i64, ptr %6, align 8, !tbaa !10
  %83 = icmp sgt i64 %82, 0
  br i1 %83, label %84, label %88

84:                                               ; preds = %81
  %85 = load i64, ptr %6, align 8, !tbaa !10
  %86 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %87 = icmp eq i64 %85, %86
  br label %88

88:                                               ; preds = %84, %81
  %89 = phi i1 [ false, %81 ], [ %87, %84 ]
  br i1 %89, label %90, label %102

90:                                               ; preds = %88
  %91 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %92 = shl i64 %91, 1
  invoke void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %92)
          to label %93 unwind label %98

93:                                               ; preds = %90
  %94 = load ptr, ptr %5, align 8, !tbaa !6
  %95 = call noundef ptr @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %96 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %97 = call i64 @readlink(ptr noundef %94, ptr noundef %95, i64 noundef %96) #1
  store i64 %97, ptr %6, align 8, !tbaa !10
  br label %81, !llvm.loop !14

98:                                               ; preds = %124, %90
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %3, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #1
  br label %238

102:                                              ; preds = %88
  %103 = load i64, ptr %6, align 8, !tbaa !10
  %104 = icmp sle i64 %103, 0
  br i1 %104, label %105, label %124

105:                                              ; preds = %102
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr @gLogLevel, align 4, !tbaa !16
  %108 = icmp sge i32 %107, 2
  %109 = xor i1 %108, true
  %110 = xor i1 %109, true
  %111 = zext i1 %110 to i64
  %112 = call i64 @llvm.expect.i64(i64 %111, i64 0)
  %113 = icmp ne i64 %112, 0
  br i1 %113, label %114, label %121

114:                                              ; preds = %106
  %115 = load ptr, ptr @gLogFile, align 8, !tbaa !6
  %116 = load ptr, ptr %5, align 8, !tbaa !6
  %117 = call ptr @__errno_location() #8
  %118 = load i32, ptr %117, align 4, !tbaa !12
  %119 = call ptr @strerror(i32 noundef %118) #1
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str, ptr noundef %116, ptr noundef %119) #1
  br label %121

121:                                              ; preds = %114, %106
  br label %122

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  store i64 0, ptr %6, align 8, !tbaa !10
  br label %124

124:                                              ; preds = %123, %102
  %125 = load i64, ptr %6, align 8, !tbaa !10
  invoke void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %125)
          to label %126 unwind label %98

126:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #1
  br label %127

127:                                              ; preds = %126, %44
  br label %128

128:                                              ; preds = %137, %127
  %129 = call noundef zeroext i1 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  br i1 %129, label %135, label %130

130:                                              ; preds = %128
  %131 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %132 = load i8, ptr %131, align 1, !tbaa !18
  %133 = sext i8 %132 to i32
  %134 = icmp eq i32 %133, 0
  br label %135

135:                                              ; preds = %130, %128
  %136 = phi i1 [ false, %128 ], [ %134, %130 ]
  br i1 %136, label %137, label %138

137:                                              ; preds = %135
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  br label %128, !llvm.loop !19

138:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #1
  call void @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE7crbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  call void @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5crendEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #1
  store i8 47, ptr %15, align 1, !tbaa !18
  invoke void @_ZSt4findISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEEcET_SC_SC_RKT0_(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %12, ptr noundef %13, ptr noundef %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %139 unwind label %165

139:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #1
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #1
  call void @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5crendEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %140 = invoke noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEEbRKSt16reverse_iteratorIT_ESE_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %141 unwind label %169

141:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #1
  br i1 %140, label %142, label %187

142:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 72, ptr %17) #1
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #1
  %143 = call ptr @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %144 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %143, ptr %144, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #1
  %145 = call ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEE4baseEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #1
  %146 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %145, ptr %146, align 8
  %147 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %21, i64 noundef 1) #1
  %148 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %147, ptr %148, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #1
  %149 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8
  %151 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEvEET_SG_RKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr %150, ptr %152, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %153 unwind label %173

153:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #1
  %154 = call ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEE4baseEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #1
  %155 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %154, ptr %155, align 8
  %156 = call ptr @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %157 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %156, ptr %157, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #1
  %158 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8
  %160 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEvEET_SG_RKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr %159, ptr %161, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %162 unwind label %177

162:                                              ; preds = %153
  invoke void @_ZN2al13make_optionalI12PathNamePairJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_EEENS_8optionalIT_EEDpOT0_(ptr dead_on_unwind writable sret(%"class.al::optional") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %163 unwind label %181

163:                                              ; preds = %162
  %164 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2al8optionalI12PathNamePairEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin, ptr noundef nonnull align 8 dereferenceable(72) %17) #1
  call void @_ZN2al8optionalI12PathNamePairED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %17) #1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #1
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #1
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #1
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #1
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #1
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #1
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #1
  call void @llvm.lifetime.end.p0(i64 72, ptr %17) #1
  br label %208

165:                                              ; preds = %138
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %3, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #1
  br label %237

169:                                              ; preds = %139
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %3, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #1
  br label %237

173:                                              ; preds = %142
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %3, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %4, align 4
  br label %186

177:                                              ; preds = %153
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %3, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %4, align 4
  br label %185

181:                                              ; preds = %162
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %3, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %4, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #1
  br label %185

185:                                              ; preds = %181, %177
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #1
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #1
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #1
  br label %186

186:                                              ; preds = %185, %173
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #1
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #1
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #1
  call void @llvm.lifetime.end.p0(i64 72, ptr %17) #1
  br label %237

187:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 72, ptr %27) #1
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #1
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #1
  %188 = call ptr @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %189 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %188, ptr %189, align 8
  %190 = call ptr @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %191 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %190, ptr %191, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #1
  %192 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  %193 = load ptr, ptr %192, align 8
  %194 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  %195 = load ptr, ptr %194, align 8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEvEET_SG_RKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr %193, ptr %195, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %196 unwind label %199

196:                                              ; preds = %187
  invoke void @_ZN2al13make_optionalI12PathNamePairJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_EEENS_8optionalIT_EEDpOT0_(ptr dead_on_unwind writable sret(%"class.al::optional") align 8 %27, ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %197 unwind label %203

197:                                              ; preds = %196
  %198 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2al8optionalI12PathNamePairEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin, ptr noundef nonnull align 8 dereferenceable(72) %27) #1
  call void @_ZN2al8optionalI12PathNamePairED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %27) #1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #1
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #1
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #1
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #1
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #1
  call void @llvm.lifetime.end.p0(i64 72, ptr %27) #1
  br label %208

199:                                              ; preds = %187
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %3, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %4, align 4
  br label %207

203:                                              ; preds = %196
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %3, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %4, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #1
  br label %207

207:                                              ; preds = %203, %199
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #1
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #1
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #1
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #1
  call void @llvm.lifetime.end.p0(i64 72, ptr %27) #1
  br label %237

208:                                              ; preds = %197, %163
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr @gLogLevel, align 4, !tbaa !16
  %211 = icmp sge i32 %210, 3
  %212 = xor i1 %211, true
  %213 = xor i1 %212, true
  %214 = zext i1 %213 to i64
  %215 = call i64 @llvm.expect.i64(i64 %214, i64 0)
  %216 = icmp ne i64 %215, 0
  br i1 %216, label %217, label %232

217:                                              ; preds = %209
  %218 = load ptr, ptr @gLogFile, align 8, !tbaa !6
  %219 = invoke noundef ptr @_ZN2al8optionalI12PathNamePairEptEv(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin)
          to label %220 unwind label %228

220:                                              ; preds = %217
  %221 = getelementptr inbounds %struct.PathNamePair, ptr %219, i32 0, i32 0
  %222 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %221) #1
  %223 = invoke noundef ptr @_ZN2al8optionalI12PathNamePairEptEv(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin)
          to label %224 unwind label %228

224:                                              ; preds = %220
  %225 = getelementptr inbounds %struct.PathNamePair, ptr %223, i32 0, i32 1
  %226 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %225) #1
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %218, ptr noundef @.str.1, ptr noundef %222, ptr noundef %226) #1
  br label %232

228:                                              ; preds = %234, %220, %217
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %3, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %4, align 4
  br label %237

232:                                              ; preds = %224, %209
  br label %233

233:                                              ; preds = %232
  br label %234

234:                                              ; preds = %233
  %235 = invoke noundef nonnull align 8 dereferenceable(64) ptr @_ZNR2al8optionalI12PathNamePairEdeEv(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin)
          to label %236 unwind label %228

236:                                              ; preds = %234
  store ptr %235, ptr %1, align 8
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #1
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #1
  br label %239

237:                                              ; preds = %228, %207, %186, %169, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #1
  br label %238

238:                                              ; preds = %237, %98, %53
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #1
  br label %241

239:                                              ; preds = %236, %42
  %240 = load ptr, ptr %1, align 8
  ret ptr %240

241:                                              ; preds = %238
  %242 = load ptr, ptr %3, align 8
  %243 = load i32, ptr %4, align 4
  %244 = insertvalue { ptr, i32 } poison, ptr %242, 0
  %245 = insertvalue { ptr, i32 } %244, i32 %243, 1
  resume { ptr, i32 } %245
}

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #1

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

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

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #1

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #1

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare i64 @readlink(ptr noundef, ptr noundef, i64 noundef) #4

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

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

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

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

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) #4

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4findISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEEcET_SC_SC_RKT0_(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE7crbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5crendEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2al13make_optionalI12PathNamePairJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_EEENS_8optionalIT_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.al::optional") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #7

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN2al8optionalI12PathNamePairEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) #2 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

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind }
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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{!"branch_weights", i32 1, i32 1048575}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTS8LogLevel", !8, i64 0}
!18 = !{!8, !8, i64 0}
!19 = distinct !{!19, !15}


; 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.al::optional" = type { %"struct.al::optional_storage" }
%"struct.al::optional_storage" = type { %"struct.al::optstore_helper" }
%"struct.al::optstore_helper" = type { %"struct.al::optstore_base" }
%"struct.al::optstore_base" = type { i8, %union.anon }
%union.anon = type { %struct.PathNamePair }
%struct.PathNamePair = type { %"class.std::__cxx11::basic_string", %"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 }
%"class.std::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::allocator" = type { i8 }

@_ZZ13GetProcBinaryvE7procbin = external hidden global %"class.al::optional", align 8
@_ZGVZ13GetProcBinaryvE7procbin = external hidden global i64, align 8
@__dso_handle = external hidden global i8
@_ZZ13GetProcBinaryvE13SelfLinkNames = external hidden constant [4 x [32 x i8]], align 16
@gLogLevel = external local_unnamed_addr global i32, align 4
@gLogFile = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(64) ptr @_Z13GetProcBinaryv() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca %"class.std::reverse_iterator", align 8
  %3 = alloca %"class.std::reverse_iterator", align 8
  %4 = alloca %"class.std::reverse_iterator", align 8
  %5 = alloca i8, align 1
  %6 = alloca %"class.std::reverse_iterator", align 8
  %7 = alloca %"class.al::optional", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.al::optional", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = load atomic i8, ptr @_ZGVZ13GetProcBinaryvE7procbin acquire, align 8
  %18 = icmp eq i8 %17, 0
  br i1 %18, label %19, label %23, !prof !5

19:                                               ; preds = %0
  %20 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ13GetProcBinaryvE7procbin) #8
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %23, label %21

21:                                               ; preds = %19
  tail call void @_ZN2al8optionalI12PathNamePairEC2Ev(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin) #8
  %22 = tail call i32 @__cxa_atexit(ptr nonnull @_ZN2al8optionalI12PathNamePairED2Ev, ptr nonnull @_ZZ13GetProcBinaryvE7procbin, ptr nonnull @__dso_handle) #8
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ13GetProcBinaryvE7procbin) #8
  br label %23

23:                                               ; preds = %21, %19, %0
  %24 = tail call noundef zeroext i1 @_ZNK2al8optionalI12PathNamePairEcvbEv(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin) #8
  br i1 %24, label %25, label %27

25:                                               ; preds = %23
  %26 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNR2al8optionalI12PathNamePairEdeEv(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin)
  br label %129

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #8
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %28 = call noundef zeroext i1 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  br i1 %28, label %29, label %71

29:                                               ; preds = %27
  invoke void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 256)
          to label %.preheader.preheader unwind label %48

.preheader.preheader:                             ; preds = %29
  %30 = call noundef ptr @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %31 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %32 = call i64 @readlink(ptr noundef nonnull @_ZZ13GetProcBinaryvE13SelfLinkNames, ptr noundef %30, i64 noundef %31) #8
  %33 = icmp sgt i64 %32, -1
  br i1 %33, label %52, label %.critedge47

.preheader.1:                                     ; preds = %.critedge47
  %34 = call noundef ptr @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %35 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %36 = call i64 @readlink(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZZ13GetProcBinaryvE13SelfLinkNames, i64 32), ptr noundef %34, i64 noundef %35) #8
  %37 = icmp sgt i64 %36, -1
  br i1 %37, label %52, label %.critedge47.1

.critedge47.1:                                    ; preds = %.preheader.1
  %38 = load i32, ptr %50, align 4, !tbaa !6
  %.not38.1 = icmp eq i32 %38, 2
  br i1 %.not38.1, label %.preheader.2, label %._crit_edge

.preheader.2:                                     ; preds = %.critedge47.1
  %39 = call noundef ptr @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %40 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %41 = call i64 @readlink(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZZ13GetProcBinaryvE13SelfLinkNames, i64 64), ptr noundef %39, i64 noundef %40) #8
  %42 = icmp sgt i64 %41, -1
  br i1 %42, label %52, label %.critedge47.2

.critedge47.2:                                    ; preds = %.preheader.2
  %43 = load i32, ptr %50, align 4, !tbaa !6
  %.not38.2 = icmp eq i32 %43, 2
  br i1 %.not38.2, label %.preheader.3, label %._crit_edge

.preheader.3:                                     ; preds = %.critedge47.2
  %44 = call noundef ptr @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %45 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %46 = call i64 @readlink(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZZ13GetProcBinaryvE13SelfLinkNames, i64 96), ptr noundef %44, i64 noundef %45) #8
  %47 = icmp sgt i64 %46, -1
  br i1 %47, label %52, label %._crit_edge

48:                                               ; preds = %29
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %128

.critedge47:                                      ; preds = %.preheader.preheader
  %50 = tail call ptr @__errno_location() #9
  %51 = load i32, ptr %50, align 4, !tbaa !6
  %.not38 = icmp eq i32 %51, 2
  br i1 %.not38, label %.preheader.1, label %._crit_edge

52:                                               ; preds = %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %.035.ptr51.lcssa = phi ptr [ @_ZZ13GetProcBinaryvE13SelfLinkNames, %.preheader.preheader ], [ getelementptr inbounds (i8, ptr @_ZZ13GetProcBinaryvE13SelfLinkNames, i64 32), %.preheader.1 ], [ getelementptr inbounds (i8, ptr @_ZZ13GetProcBinaryvE13SelfLinkNames, i64 64), %.preheader.2 ], [ getelementptr inbounds (i8, ptr @_ZZ13GetProcBinaryvE13SelfLinkNames, i64 96), %.preheader.3 ]
  %.lcssa = phi i64 [ %32, %.preheader.preheader ], [ %36, %.preheader.1 ], [ %41, %.preheader.2 ], [ %46, %.preheader.3 ]
  %.not63 = icmp eq i64 %.lcssa, 0
  br i1 %.not63, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %52, %58
  %.23352 = phi i64 [ %61, %58 ], [ %.lcssa, %52 ]
  %53 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %54 = icmp eq i64 %.23352, %53
  br i1 %54, label %55, label %.critedge

55:                                               ; preds = %.lr.ph
  %56 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %57 = shl i64 %56, 1
  invoke void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %57)
          to label %58 unwind label %.loopexit

58:                                               ; preds = %55
  %59 = call noundef ptr @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %60 = call noundef i64 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %61 = call i64 @readlink(ptr noundef nonnull %.035.ptr51.lcssa, ptr noundef %59, i64 noundef %60) #8
  %62 = icmp sgt i64 %61, 0
  br i1 %62, label %.lr.ph, label %._crit_edge, !llvm.loop !10

.loopexit:                                        ; preds = %55
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %128

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

._crit_edge:                                      ; preds = %58, %.preheader.3, %.critedge47.2, %.critedge47.1, %.critedge47, %52
  %.035.ptr51.lcssa60 = phi ptr [ %.035.ptr51.lcssa, %52 ], [ getelementptr inbounds (i8, ptr @_ZZ13GetProcBinaryvE13SelfLinkNames, i64 64), %.critedge47.2 ], [ getelementptr inbounds (i8, ptr @_ZZ13GetProcBinaryvE13SelfLinkNames, i64 32), %.critedge47.1 ], [ @_ZZ13GetProcBinaryvE13SelfLinkNames, %.critedge47 ], [ getelementptr inbounds (i8, ptr @_ZZ13GetProcBinaryvE13SelfLinkNames, i64 96), %.preheader.3 ], [ %.035.ptr51.lcssa, %58 ]
  %63 = load i32, ptr @gLogLevel, align 4, !tbaa !12
  %64 = icmp sgt i32 %63, 1
  br i1 %64, label %65, label %.critedge, !prof !14

65:                                               ; preds = %._crit_edge
  %66 = load ptr, ptr @gLogFile, align 8, !tbaa !15
  %67 = tail call ptr @__errno_location() #9
  %68 = load i32, ptr %67, align 4, !tbaa !6
  %69 = call ptr @strerror(i32 noundef %68) #8
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef nonnull @.str, ptr noundef nonnull %.035.ptr51.lcssa60, ptr noundef %69) #8
  br label %.critedge

.critedge:                                        ; preds = %.lr.ph, %._crit_edge, %65
  %.334 = phi i64 [ 0, %65 ], [ 0, %._crit_edge ], [ %.23352, %.lr.ph ]
  invoke void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.334)
          to label %71 unwind label %.loopexit.split-lp

71:                                               ; preds = %.critedge, %27
  %72 = call noundef zeroext i1 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  br i1 %72, label %.critedge2, label %.lr.ph54

.lr.ph54:                                         ; preds = %71, %76
  %73 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %74 = load i8, ptr %73, align 1, !tbaa !17
  %75 = icmp eq i8 %74, 0
  br i1 %75, label %76, label %.critedge2

76:                                               ; preds = %.lr.ph54
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %77 = call noundef zeroext i1 @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  br i1 %77, label %.critedge2, label %.lr.ph54, !llvm.loop !18

.critedge2:                                       ; preds = %.lr.ph54, %76, %71
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE7crbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %3, ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5crendEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  store i8 47, ptr %5, align 1, !tbaa !17
  invoke void @_ZSt4findISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEEcET_SC_SC_RKT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %78 unwind label %91

78:                                               ; preds = %.critedge2
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5crendEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %79 = invoke noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEEbRKSt16reverse_iteratorIT_ESE_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %80 unwind label %93

80:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br i1 %79, label %81, label %103

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  %82 = call ptr @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %83 = call ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEE4baseEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  store ptr %83, ptr %9, align 8
  %84 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 1) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEvEET_SG_RKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr %82, ptr %84, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %85 unwind label %95

85:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #8
  %86 = call ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEE4baseEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %87 = call ptr @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEvEET_SG_RKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr %86, ptr %87, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %88 unwind label %97

88:                                               ; preds = %85
  invoke void @_ZN2al13make_optionalI12PathNamePairJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_EEENS_8optionalIT_EEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.al::optional") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %89 unwind label %99

89:                                               ; preds = %88
  %90 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2al8optionalI12PathNamePairEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin, ptr noundef nonnull align 8 dereferenceable(72) %7) #8
  call void @_ZN2al8optionalI12PathNamePairED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #8
  br label %114

91:                                               ; preds = %.critedge2
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  br label %127

93:                                               ; preds = %78
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %127

95:                                               ; preds = %81
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %102

97:                                               ; preds = %85
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %101

99:                                               ; preds = %88
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #8
  br label %101

101:                                              ; preds = %99, %97
  %.pn40 = phi { ptr, i32 } [ %100, %99 ], [ %98, %97 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %102

102:                                              ; preds = %101, %95
  %.pn40.pn = phi { ptr, i32 } [ %.pn40, %101 ], [ %96, %95 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #8
  br label %127

103:                                              ; preds = %80
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #8
  %104 = call ptr @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %105 = call ptr @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEvEET_SG_RKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr %104, ptr %105, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %106 unwind label %109

106:                                              ; preds = %103
  invoke void @_ZN2al13make_optionalI12PathNamePairJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_EEENS_8optionalIT_EEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.al::optional") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %107 unwind label %111

107:                                              ; preds = %106
  %108 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN2al8optionalI12PathNamePairEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin, ptr noundef nonnull align 8 dereferenceable(72) %13) #8
  call void @_ZN2al8optionalI12PathNamePairED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %13) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %13) #8
  br label %114

109:                                              ; preds = %103
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %113

111:                                              ; preds = %106
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  br label %113

113:                                              ; preds = %111, %109
  %.pn = phi { ptr, i32 } [ %112, %111 ], [ %110, %109 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %13) #8
  br label %127

114:                                              ; preds = %89, %107
  %115 = load i32, ptr @gLogLevel, align 4, !tbaa !12
  %116 = icmp sgt i32 %115, 2
  br i1 %116, label %117, label %125, !prof !14

117:                                              ; preds = %114
  %118 = load ptr, ptr @gLogFile, align 8, !tbaa !15
  %119 = call noundef ptr @_ZN2al8optionalI12PathNamePairEptEv(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin)
  %120 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %119) #8
  %121 = call noundef ptr @_ZN2al8optionalI12PathNamePairEptEv(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin)
  %122 = getelementptr inbounds i8, ptr %121, i64 32
  %123 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %122) #8
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %118, ptr noundef nonnull @.str.1, ptr noundef %120, ptr noundef %123) #8
  br label %125

125:                                              ; preds = %117, %114
  %126 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNR2al8optionalI12PathNamePairEdeEv(ptr noundef nonnull align 8 dereferenceable(72) @_ZZ13GetProcBinaryvE7procbin)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  br label %129

127:                                              ; preds = %113, %102, %93, %91
  %.pn40.pn.pn = phi { ptr, i32 } [ %.pn40.pn, %102 ], [ %.pn, %113 ], [ %94, %93 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  br label %128

128:                                              ; preds = %.loopexit, %.loopexit.split-lp, %127, %48
  %.pn44 = phi { ptr, i32 } [ %.pn40.pn.pn, %127 ], [ %49, %48 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIcN2al9allocatorIcLm1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn44

129:                                              ; preds = %125, %25
  %.0 = phi ptr [ %26, %25 ], [ %126, %125 ]
  ret ptr %.0
}

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #1

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

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

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #1

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nounwind
declare noundef i64 @readlink(ptr nocapture noundef readonly, ptr nocapture noundef, i64 noundef) local_unnamed_addr #4

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #6

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4findISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKcSt6vectorIcN2al9allocatorIcLm1EEEEEEEcET_SC_SC_RKT0_(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE7crbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6vectorIcN2al9allocatorIcLm1EEEE5crendEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2al13make_optionalI12PathNamePairJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_EEENS_8optionalIT_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.al::optional") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #7

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree nounwind }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nofree 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 #5 = { 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 #6 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { 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 = !{!"branch_weights", i32 1, i32 1048575}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"_ZTS8LogLevel", !8, i64 0}
!14 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !11}


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