; LLVM IR from thepowersgang/mrustc :: tools/minicargo (os)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%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 }
%"struct.os_support::Process" = type { i32, i32 }
%"class.helpers::path" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"struct.StringListKV::Iter" = type { ptr, i64 }
%"struct.std::pair" = type { ptr, ptr }
%struct.posix_spawn_file_actions_t = type { i32, i32, ptr, [16 x i32] }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.8" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr }
%class.anon.9 = type { ptr }
%class.StringList = type { %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::lock_guard" = type { ptr }
%class.anon.11 = type { i8 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [42 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@__const._ZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bb.stderr_streams = external hidden unnamed_addr constant [2 x i32], align 4
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZTIZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bbE6CError = external hidden constant { ptr, ptr, ptr }, align 8
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@environ = external global ptr, align 8
@_ZZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bbE13s_chdir_mutex = external hidden global { %union.pthread_mutex_t }, align 8
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1

declare i32 @close(i32 noundef) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bb(ptr dead_on_unwind noalias writable sret(%"struct.os_support::Process") align 4 %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(96) %3, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %5, i1 noundef zeroext %6, i1 noundef zeroext %7) #1 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca %"class.helpers::path", align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.helpers::path", align 8
  %21 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"struct.StringListKV::Iter", align 8
  %24 = alloca %"struct.StringListKV::Iter", align 8
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca i32, align 4
  %29 = alloca %struct.posix_spawn_file_actions_t, align 8
  %30 = alloca [2 x i32], align 4
  %31 = alloca %"class.std::vector.3", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %35 = alloca ptr, align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca ptr, align 8
  %39 = alloca %"class.std::function", align 8
  %40 = alloca %class.anon, align 8
  %41 = alloca %"class.std::function", align 8
  %42 = alloca %class.anon.9, align 8
  %43 = alloca ptr, align 8
  %44 = alloca %class.StringList, align 8
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca %"struct.StringListKV::Iter", align 8
  %48 = alloca %"struct.StringListKV::Iter", align 8
  %49 = alloca %"struct.std::pair", align 8
  %50 = alloca %"class.std::__cxx11::basic_string", align 8
  %51 = alloca %"class.std::lock_guard", align 8
  %52 = alloca i32, align 4
  %53 = alloca %"class.helpers::path", align 8
  %54 = alloca %"class.std::function", align 8
  %55 = alloca %class.anon.11, align 1
  %56 = alloca %"class.helpers::path", align 8
  store ptr %0, ptr %9, align 8
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  %57 = zext i1 %6 to i8
  store i8 %57, ptr %15, align 1, !tbaa !9
  %58 = zext i1 %7 to i8
  store i8 %58, ptr %16, align 1, !tbaa !9
  %59 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %64

61:                                               ; preds = %8
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @abort() #10
  unreachable

64:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #11
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZNK7helpers4path6parentEv(ptr dead_on_unwind writable sret(%"class.helpers::path") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %65)
  %66 = invoke noundef zeroext i1 @_ZNK7helpers4path8is_validEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %67 unwind label %71

67:                                               ; preds = %64
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #11
  br i1 %66, label %68, label %79

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #11
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZNK7helpers4path6parentEv(ptr dead_on_unwind writable sret(%"class.helpers::path") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %69)
  invoke void @_ZN10os_support5mkdirERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %70 unwind label %75

70:                                               ; preds = %68
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #11
  br label %79

71:                                               ; preds = %64
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %18, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %19, align 4
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #11
  br label %498

75:                                               ; preds = %68
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %18, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %19, align 4
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #11
  br label %498

79:                                               ; preds = %70, %67
  %80 = call ptr @getenv(ptr noundef @.str.1) #11
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %154

82:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 392, ptr %21) #11
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %21)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #11
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %83, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #11
  %84 = load ptr, ptr %22, align 8, !tbaa !5
  %85 = invoke { ptr, i64 } @_ZNK12StringListKV5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %84)
          to label %86 unwind label %102

86:                                               ; preds = %82
  %87 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %88 = extractvalue { ptr, i64 } %85, 0
  store ptr %88, ptr %87, align 8
  %89 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %90 = extractvalue { ptr, i64 } %85, 1
  store i64 %90, ptr %89, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #11
  %91 = load ptr, ptr %22, align 8, !tbaa !5
  %92 = invoke { ptr, i64 } @_ZNK12StringListKV3endEv(ptr noundef nonnull align 8 dereferenceable(96) %91)
          to label %93 unwind label %106

93:                                               ; preds = %86
  %94 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %95 = extractvalue { ptr, i64 } %92, 0
  store ptr %95, ptr %94, align 8
  %96 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %97 = extractvalue { ptr, i64 } %92, 1
  store i64 %97, ptr %96, align 8
  br label %98

98:                                               ; preds = %131, %93
  %99 = invoke noundef zeroext i1 @_ZNK12StringListKV4IterneERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %100 unwind label %106

100:                                              ; preds = %98
  br i1 %99, label %110, label %101

101:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #11
  br label %138

102:                                              ; preds = %82
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %18, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %19, align 4
  br label %137

106:                                              ; preds = %130, %98, %86
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %18, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %19, align 4
  br label %136

110:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #11
  %111 = invoke { ptr, ptr } @_ZN12StringListKV4IterdeEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %112 unwind label %132

112:                                              ; preds = %110
  %113 = getelementptr inbounds { ptr, ptr }, ptr %25, i32 0, i32 0
  %114 = extractvalue { ptr, ptr } %111, 0
  store ptr %114, ptr %113, align 8
  %115 = getelementptr inbounds { ptr, ptr }, ptr %25, i32 0, i32 1
  %116 = extractvalue { ptr, ptr } %111, 1
  store ptr %116, ptr %115, align 8
  %117 = getelementptr inbounds i8, ptr %21, i64 16
  %118 = getelementptr inbounds %"struct.std::pair", ptr %25, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !13
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef %119)
          to label %121 unwind label %132

121:                                              ; preds = %112
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef @.str.2)
          to label %123 unwind label %132

123:                                              ; preds = %121
  %124 = getelementptr inbounds %"struct.std::pair", ptr %25, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !15
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef %125)
          to label %127 unwind label %132

127:                                              ; preds = %123
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %126, i8 noundef signext 32)
          to label %129 unwind label %132

129:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #11
  br label %130

130:                                              ; preds = %129
  invoke void @_ZN12StringListKV4IterppEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %131 unwind label %106

131:                                              ; preds = %130
  br label %98

132:                                              ; preds = %127, %123, %121, %112, %110
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %18, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #11
  br label %136

136:                                              ; preds = %132, %106
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #11
  br label %137

137:                                              ; preds = %136, %102
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #11
  br label %153

138:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #11
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull align 8 dereferenceable(128) %21)
          to label %139 unwind label %144

139:                                              ; preds = %138
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %141 unwind label %148

141:                                              ; preds = %139
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %143 unwind label %148

143:                                              ; preds = %141
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #11
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %21) #11
  call void @llvm.lifetime.end.p0(i64 392, ptr %21) #11
  br label %154

144:                                              ; preds = %138
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %18, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %19, align 4
  br label %152

148:                                              ; preds = %141, %139
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %18, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %19, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #11
  br label %152

152:                                              ; preds = %148, %144
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #11
  br label %153

153:                                              ; preds = %152, %137
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %21) #11
  call void @llvm.lifetime.end.p0(i64 392, ptr %21) #11
  br label %498

154:                                              ; preds = %143, %79
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #11
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7helpers4path3strB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %155)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %156)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #11
  call void @llvm.lifetime.start.p0(i64 80, ptr %29) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 @__const._ZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bb.stderr_streams, i64 8, i1 false)
  %157 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %158 = trunc i8 %157 to i1
  br i1 %158, label %159, label %183

159:                                              ; preds = %154
  %160 = getelementptr inbounds [2 x i32], ptr %30, i64 0, i64 0
  %161 = call i32 @pipe(ptr noundef %160) #11
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %174

163:                                              ; preds = %159
  %164 = call ptr @__cxa_allocate_exception(i64 40) #11
  invoke void @_ZZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bbEN6CErrorC2ES2_(ptr noundef nonnull align 8 dereferenceable(40) %164, ptr noundef @.str.3)
          to label %165 unwind label %166

165:                                              ; preds = %163
  invoke void @__cxa_throw(ptr %164, ptr @_ZTIZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bbE6CError, ptr @_ZZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bbEN6CErrorD2Ev) #12
          to label %503 unwind label %170

166:                                              ; preds = %163
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %18, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %19, align 4
  call void @__cxa_free_exception(ptr %164) #11
  br label %497

170:                                              ; preds = %178, %174, %165
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %18, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %19, align 4
  br label %497

174:                                              ; preds = %159
  %175 = getelementptr inbounds [2 x i32], ptr %30, i64 0, i64 0
  %176 = load i32, ptr %175, align 4, !tbaa !16
  %177 = invoke i32 (i32, i32, ...) @fcntl(i32 noundef %176, i32 noundef 2, i32 noundef 1)
          to label %178 unwind label %170

178:                                              ; preds = %174
  %179 = getelementptr inbounds [2 x i32], ptr %30, i64 0, i64 1
  %180 = load i32, ptr %179, align 4, !tbaa !16
  %181 = invoke i32 (i32, i32, ...) @fcntl(i32 noundef %180, i32 noundef 2, i32 noundef 1)
          to label %182 unwind label %170

182:                                              ; preds = %178
  br label %183

183:                                              ; preds = %182, %154
  %184 = call i32 @posix_spawn_file_actions_init(ptr noundef %29) #11
  %185 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  %186 = call i32 @posix_spawn_file_actions_addopen(ptr noundef %29, i32 noundef 1, ptr noundef %185, i32 noundef 577, i32 noundef 420) #11
  %187 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %188 = trunc i8 %187 to i1
  br i1 %188, label %189, label %193

189:                                              ; preds = %183
  %190 = getelementptr inbounds [2 x i32], ptr %30, i64 0, i64 1
  %191 = load i32, ptr %190, align 4, !tbaa !16
  %192 = call i32 @posix_spawn_file_actions_adddup2(ptr noundef %29, i32 noundef %191, i32 noundef 2) #11
  br label %193

193:                                              ; preds = %189, %183
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #11
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  %195 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10StringList7get_vecEv(ptr noundef nonnull align 8 dereferenceable(48) %194)
          to label %196 unwind label %219

196:                                              ; preds = %193
  invoke void @_ZNSt6vectorIPKcSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %195)
          to label %197 unwind label %219

197:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #11
  %198 = call ptr @_ZNSt6vectorIPKcSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #11
  %199 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  store ptr %198, ptr %199, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKPKcSt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #11
  %200 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %32, i32 0, i32 0
  %201 = load ptr, ptr %200, align 8
  %202 = invoke ptr @_ZNSt6vectorIPKcSaIS1_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EERS6_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr %201, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %203 unwind label %223

203:                                              ; preds = %197
  %204 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  store ptr %202, ptr %204, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #11
  %205 = load i8, ptr %15, align 1, !tbaa !9, !range !11, !noundef !12
  %206 = trunc i8 %205 to i1
  br i1 %206, label %207, label %253

207:                                              ; preds = %203
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %209 unwind label %227

209:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #11
  store ptr %31, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #11
  %210 = load ptr, ptr %35, align 8, !tbaa !5
  %211 = call ptr @_ZNSt6vectorIPKcSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %210) #11
  %212 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %211, ptr %212, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #11
  %213 = load ptr, ptr %35, align 8, !tbaa !5
  %214 = call ptr @_ZNSt6vectorIPKcSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %213) #11
  %215 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %214, ptr %215, align 8
  br label %216

216:                                              ; preds = %239, %209
  %217 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPKcSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #11
  br i1 %217, label %231, label %218

218:                                              ; preds = %216
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #11
  br label %245

219:                                              ; preds = %196, %193
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %18, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %19, align 4
  br label %496

223:                                              ; preds = %197
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %18, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #11
  br label %495

227:                                              ; preds = %250, %247, %245, %207
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %18, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %19, align 4
  br label %495

231:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #11
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPKcSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #11
  store ptr %232, ptr %38, align 8, !tbaa !5
  %233 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
          to label %234 unwind label %241

234:                                              ; preds = %231
  %235 = load ptr, ptr %38, align 8, !tbaa !5
  %236 = load ptr, ptr %235, align 8, !tbaa !5
  %237 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %233, ptr noundef %236)
          to label %238 unwind label %241

238:                                              ; preds = %234
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #11
  br label %239

239:                                              ; preds = %238
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPKcSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #11
  br label %216

241:                                              ; preds = %234, %231
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %18, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #11
  br label %495

245:                                              ; preds = %218
  %246 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
          to label %247 unwind label %227

247:                                              ; preds = %245
  %248 = load ptr, ptr %13, align 8, !tbaa !5
  %249 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7helperslsERSoRKNS_4pathE(ptr noundef nonnull align 8 dereferenceable(8) %246, ptr noundef nonnull align 8 dereferenceable(32) %248)
          to label %250 unwind label %227

250:                                              ; preds = %247
  %251 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %252 unwind label %227

252:                                              ; preds = %250
  br label %260

253:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #11
  %254 = getelementptr inbounds %class.anon, ptr %40, i32 0, i32 0
  store ptr %31, ptr %254, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESH_bbE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #11
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %39)
          to label %255 unwind label %256

255:                                              ; preds = %253
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #11
  br label %260

256:                                              ; preds = %253
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %18, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #11
  br label %495

260:                                              ; preds = %255, %252
  br label %261

261:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #11
  %262 = getelementptr inbounds %class.anon.9, ptr %42, i32 0, i32 0
  %263 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %263, ptr %262, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESH_bbE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull align 8 dereferenceable(8) %42) #11
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %41)
          to label %264 unwind label %275

264:                                              ; preds = %261
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #11
  br label %265

265:                                              ; preds = %264
  br label %266

266:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #11
  store ptr null, ptr %43, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIPKcSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %267 unwind label %279

267:                                              ; preds = %266
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #11
  call void @llvm.lifetime.start.p0(i64 48, ptr %44) #11
  invoke void @_ZN10StringListC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %44)
          to label %268 unwind label %283

268:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #11
  %269 = load ptr, ptr @environ, align 8, !tbaa !5
  store ptr %269, ptr %45, align 8, !tbaa !5
  br label %270

270:                                              ; preds = %291, %268
  %271 = load ptr, ptr %45, align 8, !tbaa !5
  %272 = load ptr, ptr %271, align 8, !tbaa !5
  %273 = icmp ne ptr %272, null
  br i1 %273, label %287, label %274

274:                                              ; preds = %270
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #11
  br label %298

275:                                              ; preds = %261
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %18, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #11
  br label %495

279:                                              ; preds = %266
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %18, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #11
  br label %495

283:                                              ; preds = %267
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %18, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %19, align 4
  br label %494

287:                                              ; preds = %270
  %288 = load ptr, ptr %45, align 8, !tbaa !5
  %289 = load ptr, ptr %288, align 8, !tbaa !5
  invoke void @_ZN10StringList9push_backEPKc(ptr noundef nonnull align 8 dereferenceable(48) %44, ptr noundef %289)
          to label %290 unwind label %294

290:                                              ; preds = %287
  br label %291

291:                                              ; preds = %290
  %292 = load ptr, ptr %45, align 8, !tbaa !5
  %293 = getelementptr inbounds ptr, ptr %292, i32 1
  store ptr %293, ptr %45, align 8, !tbaa !5
  br label %270, !llvm.loop !18

294:                                              ; preds = %287
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %18, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #11
  br label %493

298:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #11
  %299 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %299, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #11
  %300 = load ptr, ptr %46, align 8, !tbaa !5
  %301 = invoke { ptr, i64 } @_ZNK12StringListKV5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %300)
          to label %302 unwind label %318

302:                                              ; preds = %298
  %303 = getelementptr inbounds { ptr, i64 }, ptr %47, i32 0, i32 0
  %304 = extractvalue { ptr, i64 } %301, 0
  store ptr %304, ptr %303, align 8
  %305 = getelementptr inbounds { ptr, i64 }, ptr %47, i32 0, i32 1
  %306 = extractvalue { ptr, i64 } %301, 1
  store i64 %306, ptr %305, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #11
  %307 = load ptr, ptr %46, align 8, !tbaa !5
  %308 = invoke { ptr, i64 } @_ZNK12StringListKV3endEv(ptr noundef nonnull align 8 dereferenceable(96) %307)
          to label %309 unwind label %322

309:                                              ; preds = %302
  %310 = getelementptr inbounds { ptr, i64 }, ptr %48, i32 0, i32 0
  %311 = extractvalue { ptr, i64 } %308, 0
  store ptr %311, ptr %310, align 8
  %312 = getelementptr inbounds { ptr, i64 }, ptr %48, i32 0, i32 1
  %313 = extractvalue { ptr, i64 } %308, 1
  store i64 %313, ptr %312, align 8
  br label %314

314:                                              ; preds = %338, %309
  %315 = invoke noundef zeroext i1 @_ZNK12StringListKV4IterneERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 8 dereferenceable(16) %48)
          to label %316 unwind label %322

316:                                              ; preds = %314
  br i1 %315, label %326, label %317

317:                                              ; preds = %316
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #11
  br label %350

318:                                              ; preds = %298
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %18, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %19, align 4
  br label %349

322:                                              ; preds = %337, %314, %302
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %18, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %19, align 4
  br label %348

326:                                              ; preds = %316
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #11
  %327 = invoke { ptr, ptr } @_ZN12StringListKV4IterdeEv(ptr noundef nonnull align 8 dereferenceable(16) %47)
          to label %328 unwind label %339

328:                                              ; preds = %326
  %329 = getelementptr inbounds { ptr, ptr }, ptr %49, i32 0, i32 0
  %330 = extractvalue { ptr, ptr } %327, 0
  store ptr %330, ptr %329, align 8
  %331 = getelementptr inbounds { ptr, ptr }, ptr %49, i32 0, i32 1
  %332 = extractvalue { ptr, ptr } %327, 1
  store ptr %332, ptr %331, align 8
  %333 = getelementptr inbounds %"struct.std::pair", ptr %49, i32 0, i32 0
  %334 = getelementptr inbounds %"struct.std::pair", ptr %49, i32 0, i32 1
  invoke void @_Z6formatIJPKcA2_cS1_EENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %50, ptr noundef nonnull align 8 dereferenceable(8) %333, ptr noundef nonnull align 1 dereferenceable(2) @.str.2, ptr noundef nonnull align 8 dereferenceable(8) %334)
          to label %335 unwind label %339

335:                                              ; preds = %328
  invoke void @_ZN10StringList9push_backENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48) %44, ptr noundef %50)
          to label %336 unwind label %343

336:                                              ; preds = %335
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #11
  br label %337

337:                                              ; preds = %336
  invoke void @_ZN12StringListKV4IterppEv(ptr noundef nonnull align 8 dereferenceable(16) %47)
          to label %338 unwind label %322

338:                                              ; preds = %337
  br label %314

339:                                              ; preds = %328, %326
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %18, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %19, align 4
  br label %347

343:                                              ; preds = %335
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %18, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %19, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #11
  br label %347

347:                                              ; preds = %343, %339
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #11
  br label %348

348:                                              ; preds = %347, %322
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #11
  br label %349

349:                                              ; preds = %348, %318
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #11
  br label %493

350:                                              ; preds = %317
  invoke void @_ZN10StringList9push_backEPKc(ptr noundef nonnull align 8 dereferenceable(48) %44, ptr noundef null)
          to label %351 unwind label %385

351:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #11
  invoke void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(40) @_ZZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bbE13s_chdir_mutex)
          to label %352 unwind label %389

352:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #11
  %353 = invoke i32 (ptr, i32, ...) @open(ptr noundef @.str.7, i32 noundef 65536)
          to label %354 unwind label %393

354:                                              ; preds = %352
  store i32 %353, ptr %52, align 4, !tbaa !16
  %355 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %53) #11
  invoke void @_ZN7helpers4pathC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53)
          to label %356 unwind label %397

356:                                              ; preds = %354
  %357 = invoke noundef zeroext i1 @_ZNK7helpers4pathneERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %355, ptr noundef nonnull align 8 dereferenceable(32) %53)
          to label %358 unwind label %401

358:                                              ; preds = %356
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %53) #11
  br i1 %357, label %359, label %411

359:                                              ; preds = %358
  %360 = load ptr, ptr %14, align 8, !tbaa !5
  %361 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7helpers4path3strB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %360)
          to label %362 unwind label %393

362:                                              ; preds = %359
  %363 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %361) #11
  %364 = call i32 @chdir(ptr noundef %363) #11
  %365 = icmp ne i32 %364, 0
  br i1 %365, label %366, label %410

366:                                              ; preds = %362
  invoke void @_ZN10os_support18set_console_colourERSoNS_14TerminalColourE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i32 noundef 1)
          to label %367 unwind label %393

367:                                              ; preds = %366
  %368 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.8)
          to label %369 unwind label %393

369:                                              ; preds = %367
  %370 = load ptr, ptr %14, align 8, !tbaa !5
  %371 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7helperslsERSoRKNS_4pathE(ptr noundef nonnull align 8 dereferenceable(8) %368, ptr noundef nonnull align 8 dereferenceable(32) %370)
          to label %372 unwind label %393

372:                                              ; preds = %369
  %373 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %371, ptr noundef @.str.9)
          to label %374 unwind label %393

374:                                              ; preds = %372
  %375 = call ptr @__errno_location() #13
  %376 = load i32, ptr %375, align 4, !tbaa !16
  %377 = call ptr @strerror(i32 noundef %376) #11
  %378 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %373, ptr noundef %377)
          to label %379 unwind label %393

379:                                              ; preds = %374
  invoke void @_ZN10os_support18set_console_colourERSoNS_14TerminalColourE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i32 noundef 0)
          to label %380 unwind label %393

380:                                              ; preds = %379
  %381 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %382 unwind label %393

382:                                              ; preds = %380
  %383 = call ptr @__cxa_allocate_exception(i64 16) #11
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %383, ptr noundef @.str.10)
          to label %384 unwind label %406

384:                                              ; preds = %382
  invoke void @__cxa_throw(ptr %383, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #12
          to label %503 unwind label %393

385:                                              ; preds = %480, %350
  %386 = landingpad { ptr, i32 }
          cleanup
  %387 = extractvalue { ptr, i32 } %386, 0
  store ptr %387, ptr %18, align 8
  %388 = extractvalue { ptr, i32 } %386, 1
  store i32 %388, ptr %19, align 4
  br label %493

389:                                              ; preds = %351
  %390 = landingpad { ptr, i32 }
          cleanup
  %391 = extractvalue { ptr, i32 } %390, 0
  store ptr %391, ptr %18, align 8
  %392 = extractvalue { ptr, i32 } %390, 1
  store i32 %392, ptr %19, align 4
  br label %486

393:                                              ; preds = %463, %461, %443, %434, %433, %428, %426, %423, %421, %420, %415, %411, %384, %380, %379, %374, %372, %369, %367, %366, %359, %352
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %18, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %19, align 4
  br label %485

397:                                              ; preds = %354
  %398 = landingpad { ptr, i32 }
          cleanup
  %399 = extractvalue { ptr, i32 } %398, 0
  store ptr %399, ptr %18, align 8
  %400 = extractvalue { ptr, i32 } %398, 1
  store i32 %400, ptr %19, align 4
  br label %405

401:                                              ; preds = %356
  %402 = landingpad { ptr, i32 }
          cleanup
  %403 = extractvalue { ptr, i32 } %402, 0
  store ptr %403, ptr %18, align 8
  %404 = extractvalue { ptr, i32 } %402, 1
  store i32 %404, ptr %19, align 4
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #11
  br label %405

405:                                              ; preds = %401, %397
  call void @llvm.lifetime.end.p0(i64 32, ptr %53) #11
  br label %485

406:                                              ; preds = %382
  %407 = landingpad { ptr, i32 }
          cleanup
  %408 = extractvalue { ptr, i32 } %407, 0
  store ptr %408, ptr %18, align 8
  %409 = extractvalue { ptr, i32 } %407, 1
  store i32 %409, ptr %19, align 4
  call void @__cxa_free_exception(ptr %383) #11
  br label %485

410:                                              ; preds = %362
  br label %411

411:                                              ; preds = %410, %358
  %412 = load ptr, ptr %10, align 8, !tbaa !5
  %413 = call noundef ptr @_ZNSt6vectorIPKcSaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #11
  %414 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10StringList7get_vecEv(ptr noundef nonnull align 8 dereferenceable(48) %44)
          to label %415 unwind label %393

415:                                              ; preds = %411
  %416 = call noundef ptr @_ZNKSt6vectorIPKcSaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %414) #11
  %417 = invoke i32 @posix_spawn(ptr noundef %28, ptr noundef %412, ptr noundef %29, ptr noundef null, ptr noundef %413, ptr noundef %416)
          to label %418 unwind label %393

418:                                              ; preds = %415
  %419 = icmp ne i32 %417, 0
  br i1 %419, label %420, label %452

420:                                              ; preds = %418
  invoke void @_ZN10os_support18set_console_colourERSoNS_14TerminalColourE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i32 noundef 1)
          to label %421 unwind label %393

421:                                              ; preds = %420
  %422 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.11)
          to label %423 unwind label %393

423:                                              ; preds = %421
  %424 = load ptr, ptr %10, align 8, !tbaa !5
  %425 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %422, ptr noundef %424)
          to label %426 unwind label %393

426:                                              ; preds = %423
  %427 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %425, ptr noundef @.str.9)
          to label %428 unwind label %393

428:                                              ; preds = %426
  %429 = call ptr @__errno_location() #13
  %430 = load i32, ptr %429, align 4, !tbaa !16
  %431 = call ptr @strerror(i32 noundef %430) #11
  %432 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %427, ptr noundef %431)
          to label %433 unwind label %393

433:                                              ; preds = %428
  invoke void @_ZN10os_support18set_console_colourERSoNS_14TerminalColourE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i32 noundef 0)
          to label %434 unwind label %393

434:                                              ; preds = %433
  %435 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %436 unwind label %393

436:                                              ; preds = %434
  br label %437

437:                                              ; preds = %436
  call void @llvm.lifetime.start.p0(i64 1, ptr %55) #11
  call void @"_ZNSt8functionIFvRSoEEC2IZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESH_bbE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef nonnull align 1 dereferenceable(1) %55) #11
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef %54)
          to label %438 unwind label %444

438:                                              ; preds = %437
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #11
  br label %439

439:                                              ; preds = %438
  br label %440

440:                                              ; preds = %439
  %441 = call i32 @posix_spawn_file_actions_destroy(ptr noundef %29) #11
  %442 = call ptr @__cxa_allocate_exception(i64 16) #11
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %442, ptr noundef @.str.10)
          to label %443 unwind label %448

443:                                              ; preds = %440
  invoke void @__cxa_throw(ptr %442, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #12
          to label %503 unwind label %393

444:                                              ; preds = %437
  %445 = landingpad { ptr, i32 }
          cleanup
  %446 = extractvalue { ptr, i32 } %445, 0
  store ptr %446, ptr %18, align 8
  %447 = extractvalue { ptr, i32 } %445, 1
  store i32 %447, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #11
  br label %485

448:                                              ; preds = %440
  %449 = landingpad { ptr, i32 }
          cleanup
  %450 = extractvalue { ptr, i32 } %449, 0
  store ptr %450, ptr %18, align 8
  %451 = extractvalue { ptr, i32 } %449, 1
  store i32 %451, ptr %19, align 4
  call void @__cxa_free_exception(ptr %442) #11
  br label %485

452:                                              ; preds = %418
  %453 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %56) #11
  invoke void @_ZN7helpers4pathC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56)
          to label %454 unwind label %466

454:                                              ; preds = %452
  %455 = invoke noundef zeroext i1 @_ZNK7helpers4pathneERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %453, ptr noundef nonnull align 8 dereferenceable(32) %56)
          to label %456 unwind label %470

456:                                              ; preds = %454
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %56) #11
  br i1 %455, label %457, label %476

457:                                              ; preds = %456
  %458 = load i32, ptr %52, align 4, !tbaa !16
  %459 = call i32 @fchdir(i32 noundef %458) #11
  %460 = icmp ne i32 %459, 0
  br i1 %460, label %461, label %475

461:                                              ; preds = %457
  %462 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.12)
          to label %463 unwind label %393

463:                                              ; preds = %461
  %464 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %462, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %465 unwind label %393

465:                                              ; preds = %463
  call void @exit(i32 noundef 1) #10
  unreachable

466:                                              ; preds = %452
  %467 = landingpad { ptr, i32 }
          cleanup
  %468 = extractvalue { ptr, i32 } %467, 0
  store ptr %468, ptr %18, align 8
  %469 = extractvalue { ptr, i32 } %467, 1
  store i32 %469, ptr %19, align 4
  br label %474

470:                                              ; preds = %454
  %471 = landingpad { ptr, i32 }
          cleanup
  %472 = extractvalue { ptr, i32 } %471, 0
  store ptr %472, ptr %18, align 8
  %473 = extractvalue { ptr, i32 } %471, 1
  store i32 %473, ptr %19, align 4
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #11
  br label %474

474:                                              ; preds = %470, %466
  call void @llvm.lifetime.end.p0(i64 32, ptr %56) #11
  br label %485

475:                                              ; preds = %457
  br label %476

476:                                              ; preds = %475, %456
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #11
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %51) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #11
  %477 = call i32 @posix_spawn_file_actions_destroy(ptr noundef %29) #11
  %478 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %479 = trunc i8 %478 to i1
  br i1 %479, label %480, label %487

480:                                              ; preds = %476
  %481 = getelementptr inbounds [2 x i32], ptr %30, i64 0, i64 1
  %482 = load i32, ptr %481, align 4, !tbaa !16
  %483 = invoke i32 @close(i32 noundef %482)
          to label %484 unwind label %385

484:                                              ; preds = %480
  br label %487

485:                                              ; preds = %474, %448, %444, %406, %405, %393
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #11
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %51) #11
  br label %486

486:                                              ; preds = %485, %389
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #11
  br label %493

487:                                              ; preds = %484, %476
  %488 = getelementptr inbounds %"struct.os_support::Process", ptr %0, i32 0, i32 0
  %489 = load i32, ptr %28, align 4, !tbaa !16
  store i32 %489, ptr %488, align 4, !tbaa !20
  %490 = getelementptr inbounds %"struct.os_support::Process", ptr %0, i32 0, i32 1
  %491 = getelementptr inbounds [2 x i32], ptr %30, i64 0, i64 0
  %492 = load i32, ptr %491, align 4, !tbaa !16
  store i32 %492, ptr %490, align 4, !tbaa !22
  call void @_ZN10StringListD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %44) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr %44) #11
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr %29) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #11
  ret void

493:                                              ; preds = %486, %385, %349, %294
  call void @_ZN10StringListD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %44) #11
  br label %494

494:                                              ; preds = %493, %283
  call void @llvm.lifetime.end.p0(i64 48, ptr %44) #11
  br label %495

495:                                              ; preds = %494, %279, %275, %256, %241, %227, %223
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #11
  br label %496

496:                                              ; preds = %495, %219
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #11
  br label %497

497:                                              ; preds = %496, %170, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr %29) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #11
  br label %498

498:                                              ; preds = %497, %153, %75, %71
  %499 = load ptr, ptr %18, align 8
  %500 = load i32, ptr %19, align 4
  %501 = insertvalue { ptr, i32 } poison, ptr %499, 0
  %502 = insertvalue { ptr, i32 } %501, i32 %500, 1
  resume { ptr, i32 } %502

503:                                              ; preds = %443, %384, %165
  unreachable
}

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

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

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

; Function Attrs: noreturn nounwind
declare void @abort() #3

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK12StringListKV5beginEv(ptr noundef nonnull align 8 dereferenceable(96)) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNK12StringListKV3endEv(ptr noundef nonnull align 8 dereferenceable(96)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN12StringListKV4IterdeEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

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

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

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bbEN6CErrorD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5 align 2

declare void @__cxa_throw(ptr, ptr, ptr)

declare i32 @fcntl(i32 noundef, i32 noundef, ...) #0

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

; Function Attrs: nounwind
declare i32 @posix_spawn_file_actions_addopen(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #6

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

; Function Attrs: nounwind
declare i32 @posix_spawn_file_actions_adddup2(ptr noundef, i32 noundef, i32 noundef) #6

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

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

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

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

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

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

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

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

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

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

declare void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef) #0

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

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

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

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

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

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

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

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

; 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 #1 align 2

declare i32 @open(ptr noundef, i32 noundef, ...) #0

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10os_support18set_console_colourERSoNS_14TerminalColourE(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1

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

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

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

declare i32 @posix_spawn(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

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

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

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

; Function Attrs: nounwind
declare i32 @fchdir(i32 noundef) #6

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

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

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

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { 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 #3 = { noreturn 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { 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 #10 = { noreturn nounwind }
attributes #11 = { nounwind }
attributes #12 = { noreturn }
attributes #13 = { 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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSSt4pairIPKcS1_E", !6, i64 0, !6, i64 8}
!15 = !{!14, !6, i64 8}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !17, i64 0}
!21 = !{!"_ZTSN10os_support7ProcessE", !17, i64 0, !17, i64 4}
!22 = !{!21, !17, i64 4}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%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 }
%"struct.os_support::Process" = type { i32, i32 }
%"class.helpers::path" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"struct.StringListKV::Iter" = type { ptr, i64 }
%struct.posix_spawn_file_actions_t = type { i32, i32, ptr, [16 x i32] }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.8" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr }
%class.anon.9 = type { ptr }
%class.StringList = type { %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { ptr, ptr }
%"class.std::lock_guard" = type { ptr }
%class.anon.11 = type { i8 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [42 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@__const._ZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bb.stderr_streams = external hidden unnamed_addr constant [2 x i32], align 4
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@environ = external local_unnamed_addr global ptr, align 8
@_ZZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bbE13s_chdir_mutex = external hidden global { %union.pthread_mutex_t }, align 8
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bb(ptr dead_on_unwind noalias nocapture writable writeonly sret(%"struct.os_support::Process") align 4 %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(96) %3, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %5, i1 noundef zeroext %6, i1 noundef zeroext %7) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca %"class.helpers::path", align 8
  %11 = alloca %"class.helpers::path", align 8
  %12 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %13 = alloca %"struct.StringListKV::Iter", align 8
  %14 = alloca %"struct.StringListKV::Iter", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca i32, align 4
  %18 = alloca %struct.posix_spawn_file_actions_t, align 8
  %19 = alloca %"class.std::vector.3", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.std::function", align 8
  %25 = alloca %class.anon, align 8
  %26 = alloca %"class.std::function", align 8
  %27 = alloca %class.anon.9, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %class.StringList, align 8
  %30 = alloca %"struct.StringListKV::Iter", align 8
  %31 = alloca %"struct.StringListKV::Iter", align 8
  %32 = alloca %"struct.std::pair", align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::lock_guard", align 8
  %35 = alloca %"class.helpers::path", align 8
  %36 = alloca %"class.std::function", align 8
  %37 = alloca %class.anon.11, align 1
  %38 = alloca %"class.helpers::path", align 8
  store ptr %1, ptr %9, align 8, !tbaa !5
  br i1 %7, label %39, label %42

39:                                               ; preds = %8
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
  %41 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  tail call void @abort() #11
  unreachable

42:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #12
  call void @_ZNK7helpers4path6parentEv(ptr dead_on_unwind nonnull writable sret(%"class.helpers::path") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %4)
  %43 = invoke noundef zeroext i1 @_ZNK7helpers4path8is_validEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %44 unwind label %47

44:                                               ; preds = %42
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #12
  br i1 %43, label %45, label %51

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #12
  call void @_ZNK7helpers4path6parentEv(ptr dead_on_unwind nonnull writable sret(%"class.helpers::path") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %4)
  invoke void @_ZN10os_support5mkdirERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %46 unwind label %49

46:                                               ; preds = %45
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #12
  br label %51

47:                                               ; preds = %42
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #12
  br label %264

49:                                               ; preds = %45
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #12
  br label %264

51:                                               ; preds = %46, %44
  %52 = call ptr @getenv(ptr noundef nonnull @.str.1) #12
  %.not = icmp eq ptr %52, null
  br i1 %.not, label %95, label %53

53:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %12) #12
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %12)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #12
  %54 = call { ptr, i64 } @_ZNK12StringListKV5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %3)
  %55 = extractvalue { ptr, i64 } %54, 0
  store ptr %55, ptr %13, align 8
  %56 = getelementptr inbounds i8, ptr %13, i64 8
  %57 = extractvalue { ptr, i64 } %54, 1
  store i64 %57, ptr %56, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #12
  %58 = invoke { ptr, i64 } @_ZNK12StringListKV3endEv(ptr noundef nonnull align 8 dereferenceable(96) %3)
          to label %59 unwind label %65

59:                                               ; preds = %53
  %60 = extractvalue { ptr, i64 } %58, 0
  store ptr %60, ptr %14, align 8
  %61 = getelementptr inbounds i8, ptr %14, i64 8
  %62 = extractvalue { ptr, i64 } %58, 1
  store i64 %62, ptr %61, align 8
  %63 = call noundef zeroext i1 @_ZNK12StringListKV4IterneERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %14)
  br i1 %63, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %59
  %64 = getelementptr inbounds i8, ptr %12, i64 16
  br label %67

._crit_edge:                                      ; preds = %79, %59
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #12
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(128) %12)
          to label %84 unwind label %89

65:                                               ; preds = %53
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %83

67:                                               ; preds = %.lr.ph, %79
  %68 = invoke { ptr, ptr } @_ZN12StringListKV4IterdeEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %69 unwind label %81

69:                                               ; preds = %67
  %70 = extractvalue { ptr, ptr } %68, 0
  %71 = extractvalue { ptr, ptr } %68, 1
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef %70)
          to label %73 unwind label %81

73:                                               ; preds = %69
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @.str.2)
          to label %75 unwind label %81

75:                                               ; preds = %73
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef %71)
          to label %77 unwind label %81

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %76, i8 noundef signext 32)
          to label %79 unwind label %81

79:                                               ; preds = %77
  call void @_ZN12StringListKV4IterppEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
  %80 = call noundef zeroext i1 @_ZNK12StringListKV4IterneERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %14)
  br i1 %80, label %67, label %._crit_edge

81:                                               ; preds = %77, %75, %73, %69, %67
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %83

83:                                               ; preds = %81, %65
  %.pn61 = phi { ptr, i32 } [ %82, %81 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #12
  br label %94

84:                                               ; preds = %._crit_edge
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %86 unwind label %91

86:                                               ; preds = %84
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %88 unwind label %91

88:                                               ; preds = %86
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #12
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %12) #12
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %12) #12
  br label %95

89:                                               ; preds = %._crit_edge
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %93

91:                                               ; preds = %86, %84
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #12
  br label %93

93:                                               ; preds = %91, %89
  %.pn = phi { ptr, i32 } [ %92, %91 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #12
  br label %94

94:                                               ; preds = %93, %83
  %.pn61.pn = phi { ptr, i32 } [ %.pn61, %83 ], [ %.pn, %93 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %12) #12
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %12) #12
  br label %264

95:                                               ; preds = %88, %51
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #12
  %96 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7helpers4path3strB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %4)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %96)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #12
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %18) #12
  %97 = call i32 @posix_spawn_file_actions_init(ptr noundef nonnull %18) #12
  %98 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %16) #12
  %99 = call i32 @posix_spawn_file_actions_addopen(ptr noundef nonnull %18, i32 noundef 1, ptr noundef %98, i32 noundef 577, i32 noundef 420) #12
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #12
  %100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10StringList7get_vecEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
  invoke void @_ZNSt6vectorIPKcSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %100)
          to label %101 unwind label %113

101:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #12
  %102 = call ptr @_ZNSt6vectorIPKcSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #12
  store ptr %102, ptr %21, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKPKcSt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #12
  %103 = load ptr, ptr %20, align 8
  %104 = invoke ptr @_ZNSt6vectorIPKcSaIS1_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EERS6_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr %103, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %105 unwind label %115

105:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #12
  br i1 %6, label %106, label %133

106:                                              ; preds = %105
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %108 unwind label %117

108:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #12
  %109 = call ptr @_ZNSt6vectorIPKcSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #12
  store ptr %109, ptr %22, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #12
  %110 = call ptr @_ZNSt6vectorIPKcSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #12
  store ptr %110, ptr %23, align 8
  %111 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPKcSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #12
  br i1 %111, label %.lr.ph66, label %._crit_edge67

._crit_edge67:                                    ; preds = %124, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #12
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
          to label %129 unwind label %117

113:                                              ; preds = %95
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %263

115:                                              ; preds = %101
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #12
  br label %262

117:                                              ; preds = %131, %129, %._crit_edge67, %106
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %262

.lr.ph66:                                         ; preds = %108, %124
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPKcSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #12
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.5)
          to label %121 unwind label %127

121:                                              ; preds = %.lr.ph66
  %122 = load ptr, ptr %119, align 8, !tbaa !5
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef %122)
          to label %124 unwind label %127

124:                                              ; preds = %121
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPKcSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #12
  %126 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPKcSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #12
  br i1 %126, label %.lr.ph66, label %._crit_edge67

127:                                              ; preds = %121, %.lr.ph66
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #12
  br label %262

129:                                              ; preds = %._crit_edge67
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7helperslsERSoRKNS_4pathE(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %131 unwind label %117

131:                                              ; preds = %129
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %137 unwind label %117

133:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #12
  store ptr %19, ptr %25, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESH_bbE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #12
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %24)
          to label %134 unwind label %135

134:                                              ; preds = %133
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #12
  br label %137

135:                                              ; preds = %133
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #12
  br label %262

137:                                              ; preds = %134, %131
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #12
  store ptr %3, ptr %27, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESH_bbE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #12
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %26)
          to label %138 unwind label %147

138:                                              ; preds = %137
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #12
  store ptr null, ptr %28, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIPKcSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %139 unwind label %149

139:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #12
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %29) #12
  call void @_ZN10StringListC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %29)
  %140 = load ptr, ptr @environ, align 8, !tbaa !5
  %141 = load ptr, ptr %140, align 8, !tbaa !5
  %.not4668 = icmp eq ptr %141, null
  br i1 %.not4668, label %._crit_edge72, label %.lr.ph71

._crit_edge72:                                    ; preds = %152, %139
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %30) #12
  %142 = call { ptr, i64 } @_ZNK12StringListKV5beginEv(ptr noundef nonnull align 8 dereferenceable(96) %3)
  %143 = extractvalue { ptr, i64 } %142, 0
  store ptr %143, ptr %30, align 8
  %144 = getelementptr inbounds i8, ptr %30, i64 8
  %145 = extractvalue { ptr, i64 } %142, 1
  store i64 %145, ptr %144, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #12
  %146 = invoke { ptr, i64 } @_ZNK12StringListKV3endEv(ptr noundef nonnull align 8 dereferenceable(96) %3)
          to label %157 unwind label %163

147:                                              ; preds = %137
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #12
  br label %262

149:                                              ; preds = %138
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #12
  br label %262

.lr.ph71:                                         ; preds = %139, %152
  %151 = phi ptr [ %154, %152 ], [ %141, %139 ]
  %.04269 = phi ptr [ %153, %152 ], [ %140, %139 ]
  invoke void @_ZN10StringList9push_backEPKc(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull %151)
          to label %152 unwind label %155

152:                                              ; preds = %.lr.ph71
  %153 = getelementptr inbounds i8, ptr %.04269, i64 8
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %.not46 = icmp eq ptr %154, null
  br i1 %.not46, label %._crit_edge72, label %.lr.ph71, !llvm.loop !9

155:                                              ; preds = %.lr.ph71
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %261

157:                                              ; preds = %._crit_edge72
  %158 = extractvalue { ptr, i64 } %146, 0
  store ptr %158, ptr %31, align 8
  %159 = getelementptr inbounds i8, ptr %31, i64 8
  %160 = extractvalue { ptr, i64 } %146, 1
  store i64 %160, ptr %159, align 8
  %161 = call noundef zeroext i1 @_ZNK12StringListKV4IterneERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %31)
  br i1 %161, label %.lr.ph74, label %._crit_edge75

.lr.ph74:                                         ; preds = %157
  %162 = getelementptr inbounds i8, ptr %32, i64 8
  br label %165

._crit_edge75:                                    ; preds = %171, %157
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #12
  invoke void @_ZN10StringList9push_backEPKc(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef null)
          to label %179 unwind label %205

163:                                              ; preds = %._crit_edge72
  %164 = landingpad { ptr, i32 }
          cleanup
  br label %178

165:                                              ; preds = %.lr.ph74, %171
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #12
  %166 = invoke { ptr, ptr } @_ZN12StringListKV4IterdeEv(ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %167 unwind label %173

167:                                              ; preds = %165
  %168 = extractvalue { ptr, ptr } %166, 0
  store ptr %168, ptr %32, align 8
  %169 = extractvalue { ptr, ptr } %166, 1
  store ptr %169, ptr %162, align 8
  invoke void @_Z6formatIJPKcA2_cS1_EENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %33, ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 1 dereferenceable(2) @.str.2, ptr noundef nonnull align 8 dereferenceable(8) %162)
          to label %170 unwind label %173

170:                                              ; preds = %167
  invoke void @_ZN10StringList9push_backENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull %33)
          to label %171 unwind label %175

171:                                              ; preds = %170
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #12
  call void @_ZN12StringListKV4IterppEv(ptr noundef nonnull align 8 dereferenceable(16) %30)
  %172 = call noundef zeroext i1 @_ZNK12StringListKV4IterneERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %31)
  br i1 %172, label %165, label %._crit_edge75

173:                                              ; preds = %167, %165
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %177

175:                                              ; preds = %170
  %176 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #12
  br label %177

177:                                              ; preds = %175, %173
  %.pn53 = phi { ptr, i32 } [ %176, %175 ], [ %174, %173 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #12
  br label %178

178:                                              ; preds = %177, %163
  %.pn53.pn = phi { ptr, i32 } [ %.pn53, %177 ], [ %164, %163 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #12
  br label %261

179:                                              ; preds = %._crit_edge75
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #12
  invoke void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(40) @_ZZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bbE13s_chdir_mutex)
          to label %180 unwind label %207

180:                                              ; preds = %179
  %181 = invoke i32 (ptr, i32, ...) @open(ptr noundef nonnull @.str.7, i32 noundef 65536)
          to label %182 unwind label %209

182:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %35) #12
  call void @_ZN7helpers4pathC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35)
  %183 = call noundef zeroext i1 @_ZNK7helpers4pathneERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %35)
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #12
  br i1 %183, label %184, label %213

184:                                              ; preds = %182
  %185 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7helpers4path3strB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %186 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %185) #12
  %187 = call i32 @chdir(ptr noundef %186) #12
  %.not47 = icmp eq i32 %187, 0
  br i1 %.not47, label %213, label %188

188:                                              ; preds = %184
  invoke void @_ZN10os_support18set_console_colourERSoNS_14TerminalColourE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i32 noundef 1)
          to label %189 unwind label %209

189:                                              ; preds = %188
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.8)
          to label %191 unwind label %209

191:                                              ; preds = %189
  %192 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7helperslsERSoRKNS_4pathE(ptr noundef nonnull align 8 dereferenceable(8) %190, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %193 unwind label %209

193:                                              ; preds = %191
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %192, ptr noundef nonnull @.str.9)
          to label %195 unwind label %209

195:                                              ; preds = %193
  %196 = tail call ptr @__errno_location() #13
  %197 = load i32, ptr %196, align 4, !tbaa !11
  %198 = call ptr @strerror(i32 noundef %197) #12
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %194, ptr noundef %198)
          to label %200 unwind label %209

200:                                              ; preds = %195
  invoke void @_ZN10os_support18set_console_colourERSoNS_14TerminalColourE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i32 noundef 0)
          to label %201 unwind label %209

201:                                              ; preds = %200
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %203 unwind label %209

203:                                              ; preds = %201
  %204 = call ptr @__cxa_allocate_exception(i64 16) #12
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %204, ptr noundef nonnull @.str.10)
          to label %.invoke unwind label %211

205:                                              ; preds = %._crit_edge75
  %206 = landingpad { ptr, i32 }
          cleanup
  br label %261

207:                                              ; preds = %179
  %208 = landingpad { ptr, i32 }
          cleanup
  br label %260

209:                                              ; preds = %.invoke, %251, %249, %234, %233, %228, %226, %223, %221, %220, %213, %201, %200, %195, %193, %191, %189, %188, %180
  %210 = landingpad { ptr, i32 }
          cleanup
  br label %259

211:                                              ; preds = %203
  %212 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %204) #12
  br label %259

213:                                              ; preds = %184, %182
  %214 = load ptr, ptr %9, align 8, !tbaa !5
  %215 = call noundef ptr @_ZNSt6vectorIPKcSaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #12
  %216 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10StringList7get_vecEv(ptr noundef nonnull align 8 dereferenceable(48) %29)
  %217 = call noundef ptr @_ZNKSt6vectorIPKcSaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %216) #12
  %218 = invoke i32 @posix_spawn(ptr noundef nonnull %17, ptr noundef %214, ptr noundef nonnull %18, ptr noundef null, ptr noundef %215, ptr noundef %217)
          to label %219 unwind label %209

219:                                              ; preds = %213
  %.not48 = icmp eq i32 %218, 0
  br i1 %.not48, label %245, label %220

220:                                              ; preds = %219
  invoke void @_ZN10os_support18set_console_colourERSoNS_14TerminalColourE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i32 noundef 1)
          to label %221 unwind label %209

221:                                              ; preds = %220
  %222 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.11)
          to label %223 unwind label %209

223:                                              ; preds = %221
  %224 = load ptr, ptr %9, align 8, !tbaa !5
  %225 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %222, ptr noundef %224)
          to label %226 unwind label %209

226:                                              ; preds = %223
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %225, ptr noundef nonnull @.str.9)
          to label %228 unwind label %209

228:                                              ; preds = %226
  %229 = tail call ptr @__errno_location() #13
  %230 = load i32, ptr %229, align 4, !tbaa !11
  %231 = call ptr @strerror(i32 noundef %230) #12
  %232 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %227, ptr noundef %231)
          to label %233 unwind label %209

233:                                              ; preds = %228
  invoke void @_ZN10os_support18set_console_colourERSoNS_14TerminalColourE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i32 noundef 0)
          to label %234 unwind label %209

234:                                              ; preds = %233
  %235 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %236 unwind label %209

236:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %37) #12
  call void @"_ZNSt8functionIFvRSoEEC2IZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESH_bbE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 1 dereferenceable(1) %37) #12
  invoke void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef nonnull %36)
          to label %237 unwind label %241

237:                                              ; preds = %236
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %37) #12
  %238 = call i32 @posix_spawn_file_actions_destroy(ptr noundef nonnull %18) #12
  %239 = call ptr @__cxa_allocate_exception(i64 16) #12
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %239, ptr noundef nonnull @.str.10)
          to label %.invoke unwind label %243

.invoke:                                          ; preds = %203, %237
  %240 = phi ptr [ %239, %237 ], [ %204, %203 ]
  invoke void @__cxa_throw(ptr nonnull %240, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #14
          to label %.cont unwind label %209

.cont:                                            ; preds = %.invoke
  unreachable

241:                                              ; preds = %236
  %242 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %37) #12
  br label %259

243:                                              ; preds = %237
  %244 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %239) #12
  br label %259

245:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %38) #12
  call void @_ZN7helpers4pathC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38)
  %246 = call noundef zeroext i1 @_ZNK7helpers4pathneERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %38)
  call void @_ZN7helpers4pathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %38) #12
  br i1 %246, label %247, label %254

247:                                              ; preds = %245
  %248 = call i32 @fchdir(i32 noundef %181) #12
  %.not49 = icmp eq i32 %248, 0
  br i1 %.not49, label %254, label %249

249:                                              ; preds = %247
  %250 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.12)
          to label %251 unwind label %209

251:                                              ; preds = %249
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %250, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %253 unwind label %209

253:                                              ; preds = %251
  call void @exit(i32 noundef 1) #11
  unreachable

254:                                              ; preds = %247, %245
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #12
  %255 = call i32 @posix_spawn_file_actions_destroy(ptr noundef nonnull %18) #12
  %256 = load i32, ptr %17, align 4, !tbaa !11
  store i32 %256, ptr %0, align 4, !tbaa !13
  %257 = getelementptr inbounds i8, ptr %0, i64 4
  %258 = load i32, ptr @__const._ZN10os_support7Process5spawnEPKcRK10StringListRK12StringListKVRKN7helpers4pathESC_bb.stderr_streams, align 4, !tbaa !11
  store i32 %258, ptr %257, align 4, !tbaa !15
  call void @_ZN10StringListD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %29) #12
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %29) #12
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #12
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %18) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #12
  ret void

259:                                              ; preds = %243, %241, %211, %209
  %.pn50 = phi { ptr, i32 } [ %210, %209 ], [ %212, %211 ], [ %244, %243 ], [ %242, %241 ]
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #12
  br label %260

260:                                              ; preds = %259, %207
  %.pn50.pn = phi { ptr, i32 } [ %.pn50, %259 ], [ %208, %207 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #12
  br label %261

261:                                              ; preds = %260, %205, %178, %155
  %.pn56 = phi { ptr, i32 } [ %156, %155 ], [ %.pn53.pn, %178 ], [ %.pn50.pn, %260 ], [ %206, %205 ]
  call void @_ZN10StringListD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %29) #12
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %29) #12
  br label %262

262:                                              ; preds = %261, %149, %147, %135, %127, %117, %115
  %.pn58 = phi { ptr, i32 } [ %128, %127 ], [ %.pn56, %261 ], [ %150, %149 ], [ %148, %147 ], [ %118, %117 ], [ %136, %135 ], [ %116, %115 ]
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #12
  br label %263

263:                                              ; preds = %262, %113
  %.pn58.pn = phi { ptr, i32 } [ %.pn58, %262 ], [ %114, %113 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #12
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %18) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #12
  br label %264

264:                                              ; preds = %263, %94, %49, %47
  %.pn61.pn.pn = phi { ptr, i32 } [ %.pn61.pn, %94 ], [ %.pn58.pn, %263 ], [ %50, %49 ], [ %48, %47 ]
  resume { ptr, i32 } %.pn61.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #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 uwtable
declare dso_local void @_ZNK7helpers4path6parentEv(ptr dead_on_unwind noalias writable sret(%"class.helpers::path") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7helpers4path8is_validEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10os_support5mkdirERKN7helpers4pathE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK12StringListKV5beginEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNK12StringListKV3endEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN12StringListKV4IterdeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #1

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

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: nounwind
declare i32 @posix_spawn_file_actions_init(ptr noundef) local_unnamed_addr #7

; Function Attrs: nounwind
declare i32 @posix_spawn_file_actions_addopen(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #7

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

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

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

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

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

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

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

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

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

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

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

declare void @_Z11Debug_PrintSt8functionIFvRSoEE(ptr noundef) local_unnamed_addr #8

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

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

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

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

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

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

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

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

; 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 #0 align 2

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #9

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

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

; Function Attrs: nounwind
declare i32 @chdir(ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10os_support18set_console_colourERSoNS_14TerminalColourE(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #0

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

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

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #8

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7

declare i32 @posix_spawn(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #8

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

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

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

; Function Attrs: nounwind
declare i32 @posix_spawn_file_actions_destroy(ptr noundef) local_unnamed_addr #7

; Function Attrs: nounwind
declare i32 @fchdir(i32 noundef) local_unnamed_addr #7

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 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 = { 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 #2 = { noreturn 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nounwind memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "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 = { "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 #9 = { nofree "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 #10 = { 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 #11 = { noreturn nounwind }
attributes #12 = { nounwind }
attributes #13 = { nounwind willreturn memory(none) }
attributes #14 = { noreturn }

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


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