; LLVM IR from AdaptiveCpp/AdaptiveCpp :: tests/pcuda/pcuda_test_suite.ll (ZN5boost5debug15attach_debuggerEb)

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

%"struct.boost::debug::(anonymous namespace)::info_t" = type { %"class.boost::unit_test::readwrite_property", %"class.std::map.69" }
%"class.boost::unit_test::readwrite_property" = type { %"class.boost::unit_test::class_property.19" }
%"class.boost::unit_test::class_property.19" = 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::map.69" = type { %"class.std::_Rb_tree.70" }
%"class.std::_Rb_tree.70" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, boost::function<void (const boost::debug::dbg_startup_info &)>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, boost::function<void (const boost::debug::dbg_startup_info &)>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, boost::function<void (const boost::debug::dbg_startup_info &)>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, boost::function<void (const boost::debug::dbg_startup_info &)>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%struct.timeval = type { i64, i64 }
%"struct.boost::debug::(anonymous namespace)::fd_holder" = type { i32 }
%"struct.boost::debug::dbg_startup_info" = type { i64, i8, %"class.boost::unit_test::basic_cstring", %"class.boost::unit_test::basic_cstring", %"class.boost::unit_test::basic_cstring" }
%"class.boost::unit_test::basic_cstring" = type { ptr, ptr }
%"struct.boost::debug::(anonymous namespace)::process_info" = type <{ i32, [4 x i8], %"class.boost::unit_test::basic_cstring", %"class.boost::unit_test::basic_cstring", [501 x i8], [501 x i8], [6 x i8] }>
%"class.boost::function" = type { %"class.boost::function1" }
%"class.boost::function1" = type { %"class.boost::function_base" }
%"class.boost::function_base" = type { ptr, %"union.boost::detail::function::function_buffer" }
%"union.boost::detail::function::function_buffer" = type { %"union.boost::detail::function::function_buffer_members" }
%"union.boost::detail::function::function_buffer_members" = type { %"struct.boost::detail::function::function_buffer_members::bound_memfunc_ptr_t" }
%"struct.boost::detail::function::function_buffer_members::bound_memfunc_ptr_t" = type { { i64, i64 }, ptr }

@_ZN5boost5debug12_GLOBAL__N_16s_infoE = external hidden global %"struct.boost::debug::(anonymous namespace)::info_t", align 8
@__const._ZN5boost5debug15attach_debuggerEb.init_done_lock_fn = external hidden unnamed_addr constant [30 x i8], align 16
@.str.95 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [57 x i8], align 1
@__const._ZN5boost5debug15attach_debuggerEb.to = external hidden unnamed_addr constant %struct.timeval, align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost5debug14under_debuggerEv() #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5boost5debug12_GLOBAL__N_112process_infoC2Ei(ptr noundef nonnull align 8 dereferenceable(1042), i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5boost5debug14debugger_breakEv() #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5boost5debug15attach_debuggerEb(i1 noundef zeroext %0) #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca i8, align 1
  %4 = alloca [30 x i8], align 16
  %5 = alloca i32, align 4
  %6 = alloca %"struct.boost::debug::(anonymous namespace)::fd_holder", align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.boost::debug::dbg_startup_info", align 8
  %12 = alloca %"struct.boost::debug::(anonymous namespace)::process_info", align 8
  %13 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %14 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %15 = alloca %"class.boost::function", align 8
  %16 = alloca %struct.timeval, align 8
  %17 = zext i1 %0 to i8
  store i8 %17, ptr %3, align 1, !tbaa !5
  %18 = call noundef zeroext i1 @_ZN5boost5debug14under_debuggerEv()
  br i1 %18, label %19, label %20

19:                                               ; preds = %1
  store i1 false, ptr %2, align 1
  br label %129

20:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 30, ptr %4) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const._ZN5boost5debug15attach_debuggerEb.init_done_lock_fn, i64 30, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  %21 = call i32 @umask(i32 noundef 63) #9
  store i32 %21, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  %22 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
  %23 = call i32 @mkstemp(ptr noundef %22)
  call void @_ZN5boost5debug12_GLOBAL__N_19fd_holderC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef %23)
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = call i32 @umask(i32 noundef %24) #9
  %26 = invoke noundef i32 @_ZN5boost5debug12_GLOBAL__N_19fd_holdercviEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %27 unwind label %30

27:                                               ; preds = %20
  %28 = icmp eq i32 %26, -1
  br i1 %28, label %29, label %34

29:                                               ; preds = %27
  store i1 false, ptr %2, align 1
  store i32 1, ptr %9, align 4
  br label %127

30:                                               ; preds = %20
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %7, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %8, align 4
  br label %128

34:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %35 = call i32 @fork() #9
  store i32 %35, ptr %10, align 4, !tbaa !9
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = icmp eq i32 %36, -1
  br i1 %37, label %38, label %39

38:                                               ; preds = %34
  store i1 false, ptr %2, align 1
  store i32 1, ptr %9, align 4
  br label %125

39:                                               ; preds = %34
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %108

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #9
  invoke void @_ZN5boost5debug16dbg_startup_infoC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %11)
          to label %43 unwind label %50

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 1048, ptr %12) #9
  %44 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN5boost5debug12_GLOBAL__N_112process_infoC2Ei(ptr noundef nonnull align 8 dereferenceable(1042) %12, i32 noundef %44)
          to label %45 unwind label %54

45:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #9
  invoke void @_ZNK5boost5debug12_GLOBAL__N_112process_info11binary_pathEv(ptr dead_on_unwind writable sret(%"class.boost::unit_test::basic_cstring") align 8 %13, ptr noundef nonnull align 8 dereferenceable(1042) %12)
          to label %46 unwind label %58

46:                                               ; preds = %45
  %47 = invoke noundef zeroext i1 @_ZNK5boost9unit_test13basic_cstringIKcE8is_emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %48 unwind label %58

48:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  br i1 %47, label %49, label %62

49:                                               ; preds = %48
  call void @exit(i32 noundef -1) #10
  unreachable

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

54:                                               ; preds = %77, %73, %43
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %7, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %8, align 4
  br label %106

58:                                               ; preds = %46, %45
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %7, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  br label %106

62:                                               ; preds = %48
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds %"struct.boost::debug::dbg_startup_info", ptr %11, i32 0, i32 0
  store i64 %64, ptr %65, align 8, !tbaa !11
  %66 = load i8, ptr %3, align 1, !tbaa !5, !range !16, !noundef !17
  %67 = trunc i8 %66 to i1
  %68 = getelementptr inbounds %"struct.boost::debug::dbg_startup_info", ptr %11, i32 0, i32 1
  %69 = zext i1 %67 to i8
  store i8 %69, ptr %68, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  invoke void @_ZNK5boost5debug12_GLOBAL__N_112process_info11binary_pathEv(ptr dead_on_unwind writable sret(%"class.boost::unit_test::basic_cstring") align 8 %14, ptr noundef nonnull align 8 dereferenceable(1042) %12)
          to label %70 unwind label %91

70:                                               ; preds = %62
  %71 = getelementptr inbounds %"struct.boost::debug::dbg_startup_info", ptr %11, i32 0, i32 2
  %72 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost9unit_test13basic_cstringIKcEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %71, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %73 unwind label %91

73:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  %74 = call ptr @getenv(ptr noundef @.str.95) #9
  %75 = getelementptr inbounds %"struct.boost::debug::dbg_startup_info", ptr %11, i32 0, i32 3
  %76 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost9unit_test13basic_cstringIKcEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef %74)
          to label %77 unwind label %54

77:                                               ; preds = %73
  %78 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
  %79 = getelementptr inbounds %"struct.boost::debug::dbg_startup_info", ptr %11, i32 0, i32 4
  %80 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost9unit_test13basic_cstringIKcEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(16) %79, ptr noundef %78)
          to label %81 unwind label %54

81:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #9
  %82 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5boost9unit_test14class_propertyINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEcvRKS7_Ev(ptr noundef nonnull align 8 dereferenceable(32) @_ZN5boost5debug12_GLOBAL__N_16s_infoE)
          to label %83 unwind label %95

83:                                               ; preds = %81
  %84 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5boost8functionIFvRKNS6_5debug16dbg_startup_infoEEEESt4lessIS5_ESaISt4pairIKS5_SD_EEEixERSH_(ptr noundef nonnull align 8 dereferenceable(48) getelementptr inbounds (%"struct.boost::debug::(anonymous namespace)::info_t", ptr @_ZN5boost5debug12_GLOBAL__N_16s_infoE, i32 0, i32 1), ptr noundef nonnull align 8 dereferenceable(32) %82)
          to label %85 unwind label %95

85:                                               ; preds = %83
  invoke void @_ZN5boost8functionIFvRKNS_5debug16dbg_startup_infoEEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %84)
          to label %86 unwind label %95

86:                                               ; preds = %85
  %87 = invoke noundef zeroext i1 @_ZNK5boost9function1IvRKNS_5debug16dbg_startup_infoEEntEv(ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %88 unwind label %99

88:                                               ; preds = %86
  br i1 %87, label %103, label %89

89:                                               ; preds = %88
  invoke void @_ZNK5boost9function1IvRKNS_5debug16dbg_startup_infoEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(64) %11)
          to label %90 unwind label %99

90:                                               ; preds = %89
  br label %103

91:                                               ; preds = %70, %62
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %7, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  br label %106

95:                                               ; preds = %85, %83, %81
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %7, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %8, align 4
  br label %105

99:                                               ; preds = %103, %89, %86
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %7, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %8, align 4
  call void @_ZN5boost9function1IvRKNS_5debug16dbg_startup_infoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #9
  br label %105

103:                                              ; preds = %90, %88
  invoke void @perror(ptr noundef @.str.96)
          to label %104 unwind label %99

104:                                              ; preds = %103
  call void @exit(i32 noundef -1) #10
  unreachable

105:                                              ; preds = %99, %95
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #9
  br label %106

106:                                              ; preds = %105, %91, %58, %54
  call void @llvm.lifetime.end.p0(i64 1048, ptr %12) #9
  br label %107

107:                                              ; preds = %106, %50
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #9
  br label %126

108:                                              ; preds = %39
  br label %109

109:                                              ; preds = %115, %108
  %110 = getelementptr inbounds [30 x i8], ptr %4, i64 0, i64 0
  %111 = call i32 @access(ptr noundef %110, i32 noundef 0) #9
  %112 = icmp eq i32 %111, 0
  br i1 %112, label %113, label %120

113:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 @__const._ZN5boost5debug15attach_debuggerEb.to, i64 16, i1 false)
  %114 = invoke i32 @select(i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef %16)
          to label %115 unwind label %116

115:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #9
  br label %109, !llvm.loop !19

116:                                              ; preds = %113
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %7, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #9
  br label %126

120:                                              ; preds = %109
  %121 = load i8, ptr %3, align 1, !tbaa !5, !range !16, !noundef !17
  %122 = trunc i8 %121 to i1
  br i1 %122, label %123, label %124

123:                                              ; preds = %120
  call void @_ZN5boost5debug14debugger_breakEv()
  br label %124

124:                                              ; preds = %123, %120
  store i1 true, ptr %2, align 1
  store i32 1, ptr %9, align 4
  br label %125

125:                                              ; preds = %124, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %127

126:                                              ; preds = %116, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %128

127:                                              ; preds = %125, %29
  call void @_ZN5boost5debug12_GLOBAL__N_19fd_holderD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 30, ptr %4) #9
  br label %129

128:                                              ; preds = %126, %30
  call void @_ZN5boost5debug12_GLOBAL__N_19fd_holderD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 30, ptr %4) #9
  br label %131

129:                                              ; preds = %127, %19
  %130 = load i1, ptr %2, align 1
  ret i1 %130

131:                                              ; preds = %128
  %132 = load ptr, ptr %7, align 8
  %133 = load i32, ptr %8, align 4
  %134 = insertvalue { ptr, i32 } poison, ptr %132, 0
  %135 = insertvalue { ptr, i32 } %134, i32 %133, 1
  resume { ptr, i32 } %135
}

; 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) #4

; Function Attrs: nounwind
declare i32 @umask(i32 noundef) #5

declare i32 @mkstemp(ptr noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN5boost5debug12_GLOBAL__N_19fd_holderC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN5boost5debug12_GLOBAL__N_19fd_holdercviEv(ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: nounwind
declare i32 @fork() #5

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNK5boost5debug12_GLOBAL__N_112process_info11binary_pathEv(ptr dead_on_unwind noalias writable sret(%"class.boost::unit_test::basic_cstring") align 8, ptr noundef nonnull align 8 dereferenceable(1042)) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost9unit_test13basic_cstringIKcEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

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

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

declare void @perror(ptr noundef) #6

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

; Function Attrs: nounwind
declare i32 @access(ptr noundef, i32 noundef) #5

declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN5boost5debug12_GLOBAL__N_19fd_holderD2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN5boost5debug16dbg_startup_infoE", !13, i64 0, !6, i64 8, !14, i64 16, !14, i64 32, !14, i64 48}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN5boost9unit_test13basic_cstringIKcEE", !15, i64 0, !15, i64 8}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!12, !6, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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

%"struct.boost::debug::(anonymous namespace)::info_t" = type { %"class.boost::unit_test::readwrite_property", %"class.std::map.69" }
%"class.boost::unit_test::readwrite_property" = type { %"class.boost::unit_test::class_property.19" }
%"class.boost::unit_test::class_property.19" = 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::map.69" = type { %"class.std::_Rb_tree.70" }
%"class.std::_Rb_tree.70" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, boost::function<void (const boost::debug::dbg_startup_info &)>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, boost::function<void (const boost::debug::dbg_startup_info &)>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, boost::function<void (const boost::debug::dbg_startup_info &)>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, boost::function<void (const boost::debug::dbg_startup_info &)>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%struct.timeval = type { i64, i64 }
%"struct.boost::debug::(anonymous namespace)::fd_holder" = type { i32 }
%"struct.boost::debug::dbg_startup_info" = type { i64, i8, %"class.boost::unit_test::basic_cstring", %"class.boost::unit_test::basic_cstring", %"class.boost::unit_test::basic_cstring" }
%"class.boost::unit_test::basic_cstring" = type { ptr, ptr }
%"struct.boost::debug::(anonymous namespace)::process_info" = type <{ i32, [4 x i8], %"class.boost::unit_test::basic_cstring", %"class.boost::unit_test::basic_cstring", [501 x i8], [501 x i8], [6 x i8] }>
%"class.boost::function" = type { %"class.boost::function1" }
%"class.boost::function1" = type { %"class.boost::function_base" }
%"class.boost::function_base" = type { ptr, %"union.boost::detail::function::function_buffer" }
%"union.boost::detail::function::function_buffer" = type { %"union.boost::detail::function::function_buffer_members" }
%"union.boost::detail::function::function_buffer_members" = type { %"struct.boost::detail::function::function_buffer_members::bound_memfunc_ptr_t" }
%"struct.boost::detail::function::function_buffer_members::bound_memfunc_ptr_t" = type { { i64, i64 }, ptr }

@_ZN5boost5debug12_GLOBAL__N_16s_infoE = external hidden global %"struct.boost::debug::(anonymous namespace)::info_t", align 8
@__const._ZN5boost5debug15attach_debuggerEb.init_done_lock_fn = external hidden unnamed_addr constant [30 x i8], align 16
@.str.95 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [57 x i8], align 1
@__const._ZN5boost5debug15attach_debuggerEb.to = external hidden unnamed_addr constant %struct.timeval, align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost5debug14under_debuggerEv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5boost5debug12_GLOBAL__N_112process_infoC2Ei(ptr noundef nonnull align 8 dereferenceable(1042), i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5boost5debug14debugger_breakEv() local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5boost5debug15attach_debuggerEb(i1 noundef zeroext %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [30 x i8], align 16
  %3 = alloca %"struct.boost::debug::(anonymous namespace)::fd_holder", align 4
  %4 = alloca %"struct.boost::debug::dbg_startup_info", align 8
  %5 = alloca %"struct.boost::debug::(anonymous namespace)::process_info", align 8
  %6 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %7 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %8 = alloca %"class.boost::function", align 8
  %9 = alloca %struct.timeval, align 8
  %10 = zext i1 %0 to i8
  %11 = tail call noundef zeroext i1 @_ZN5boost5debug14under_debuggerEv()
  br i1 %11, label %72, label %12

12:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 30, ptr nonnull %2) #11
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(30) %2, ptr noundef nonnull align 16 dereferenceable(30) @__const._ZN5boost5debug15attach_debuggerEb.init_done_lock_fn, i64 30, i1 false)
  %13 = tail call i32 @umask(i32 noundef 63) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #11
  %14 = call i32 @mkstemp(ptr noundef nonnull %2)
  call void @_ZN5boost5debug12_GLOBAL__N_19fd_holderC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %14)
  %15 = call i32 @umask(i32 noundef %13) #11
  %16 = call noundef i32 @_ZN5boost5debug12_GLOBAL__N_19fd_holdercviEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  %17 = icmp eq i32 %16, -1
  br i1 %17, label %71, label %18

18:                                               ; preds = %12
  %19 = call i32 @fork() #11
  switch i32 %19, label %22 [
    i32 -1, label %71
    i32 0, label %.preheader
  ]

.preheader:                                       ; preds = %18
  %20 = call i32 @access(ptr noundef nonnull %2, i32 noundef 0) #11
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

22:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #11
  invoke void @_ZN5boost5debug16dbg_startup_infoC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %4)
          to label %23 unwind label %28

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 1048, ptr nonnull %5) #11
  invoke void @_ZN5boost5debug12_GLOBAL__N_112process_infoC2Ei(ptr noundef nonnull align 8 dereferenceable(1042) %5, i32 noundef %19)
          to label %24 unwind label %30

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #11
  invoke void @_ZNK5boost5debug12_GLOBAL__N_112process_info11binary_pathEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::unit_test::basic_cstring") align 8 %6, ptr noundef nonnull align 8 dereferenceable(1042) %5)
          to label %25 unwind label %32

25:                                               ; preds = %24
  %26 = call noundef zeroext i1 @_ZNK5boost9unit_test13basic_cstringIKcE8is_emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #11
  br i1 %26, label %27, label %34

27:                                               ; preds = %25
  call void @exit(i32 noundef -1) #12
  unreachable

28:                                               ; preds = %22
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %62

30:                                               ; preds = %43, %37, %23
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %61

32:                                               ; preds = %24
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #11
  br label %61

34:                                               ; preds = %25
  %35 = sext i32 %19 to i64
  store i64 %35, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %4, i64 8
  store i8 %10, ptr %36, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #11
  invoke void @_ZNK5boost5debug12_GLOBAL__N_112process_info11binary_pathEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::unit_test::basic_cstring") align 8 %7, ptr noundef nonnull align 8 dereferenceable(1042) %5)
          to label %37 unwind label %53

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %4, i64 16
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost9unit_test13basic_cstringIKcEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #11
  %40 = call ptr @getenv(ptr noundef nonnull @.str.95) #11
  %41 = getelementptr inbounds i8, ptr %4, i64 32
  %42 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost9unit_test13basic_cstringIKcEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef %40)
          to label %43 unwind label %30

43:                                               ; preds = %37
  %44 = getelementptr inbounds i8, ptr %4, i64 48
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost9unit_test13basic_cstringIKcEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull %2)
          to label %46 unwind label %30

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #11
  %47 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5boost9unit_test14class_propertyINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEcvRKS7_Ev(ptr noundef nonnull align 8 dereferenceable(32) @_ZN5boost5debug12_GLOBAL__N_16s_infoE)
  %48 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5boost8functionIFvRKNS6_5debug16dbg_startup_infoEEEESt4lessIS5_ESaISt4pairIKS5_SD_EEEixERSH_(ptr noundef nonnull align 8 dereferenceable(48) getelementptr inbounds (i8, ptr @_ZN5boost5debug12_GLOBAL__N_16s_infoE, i64 32), ptr noundef nonnull align 8 dereferenceable(32) %47)
          to label %49 unwind label %55

49:                                               ; preds = %46
  invoke void @_ZN5boost8functionIFvRKNS_5debug16dbg_startup_infoEEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %48)
          to label %50 unwind label %55

50:                                               ; preds = %49
  %51 = call noundef zeroext i1 @_ZNK5boost9function1IvRKNS_5debug16dbg_startup_infoEEntEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  br i1 %51, label %59, label %52

52:                                               ; preds = %50
  invoke void @_ZNK5boost9function1IvRKNS_5debug16dbg_startup_infoEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(64) %4)
          to label %59 unwind label %57

53:                                               ; preds = %34
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #11
  br label %61

55:                                               ; preds = %49, %46
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %60

57:                                               ; preds = %52
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5boost9function1IvRKNS_5debug16dbg_startup_infoEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  br label %60

59:                                               ; preds = %52, %50
  call void @perror(ptr noundef nonnull @.str.96) #13
  call void @exit(i32 noundef -1) #12
  unreachable

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

61:                                               ; preds = %60, %53, %32, %30
  %.pn.pn = phi { ptr, i32 } [ %.pn, %60 ], [ %31, %30 ], [ %54, %53 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 1048, ptr nonnull %5) #11
  br label %62

62:                                               ; preds = %61, %28
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %61 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #11
  br label %70

.lr.ph:                                           ; preds = %.preheader, %64
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #11
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) @__const._ZN5boost5debug15attach_debuggerEb.to, i64 16, i1 false)
  %63 = invoke i32 @select(i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef nonnull %9)
          to label %64 unwind label %67

64:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #11
  %65 = call i32 @access(ptr noundef nonnull %2, i32 noundef 0) #11
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %.lr.ph, label %._crit_edge, !llvm.loop !14

67:                                               ; preds = %.lr.ph
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #11
  br label %70

._crit_edge:                                      ; preds = %64, %.preheader
  br i1 %0, label %69, label %71

69:                                               ; preds = %._crit_edge
  call void @_ZN5boost5debug14debugger_breakEv()
  br label %71

70:                                               ; preds = %67, %62
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %62 ], [ %68, %67 ]
  call void @_ZN5boost5debug12_GLOBAL__N_19fd_holderD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %3) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #11
  call void @llvm.lifetime.end.p0(i64 30, ptr nonnull %2) #11
  resume { ptr, i32 } %.pn.pn.pn.pn

71:                                               ; preds = %18, %69, %._crit_edge, %12
  %.1 = phi i1 [ false, %12 ], [ true, %._crit_edge ], [ true, %69 ], [ false, %18 ]
  call void @_ZN5boost5debug12_GLOBAL__N_19fd_holderD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %3) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #11
  call void @llvm.lifetime.end.p0(i64 30, ptr nonnull %2) #11
  br label %72

72:                                               ; preds = %1, %71
  %.2 = phi i1 [ %.1, %71 ], [ false, %1 ]
  ret i1 %.2
}

; Function Attrs: mustprogress 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) #4

; Function Attrs: nounwind
declare i32 @umask(i32 noundef) local_unnamed_addr #5

declare i32 @mkstemp(ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN5boost5debug12_GLOBAL__N_19fd_holderC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN5boost5debug12_GLOBAL__N_19fd_holdercviEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: nofree nounwind
declare i32 @fork() local_unnamed_addr #7

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNK5boost5debug12_GLOBAL__N_112process_info11binary_pathEv(ptr dead_on_unwind noalias writable sret(%"class.boost::unit_test::basic_cstring") align 8, ptr noundef nonnull align 8 dereferenceable(1042)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost9unit_test13basic_cstringIKcEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #7

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

; Function Attrs: nofree nounwind
declare noundef i32 @access(ptr nocapture noundef readonly, i32 noundef) local_unnamed_addr #7

declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN5boost5debug12_GLOBAL__N_19fd_holderD2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

!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, !7, i64 0}
!6 = !{!"_ZTSN5boost5debug16dbg_startup_infoE", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 32, !11, i64 48}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN5boost9unit_test13basic_cstringIKcEE", !12, i64 0, !12, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !10, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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