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

; 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::unit_test::for_each::static_any.134" = type { %"struct.std::_Rb_tree_const_iterator.135" }
%"struct.std::_Rb_tree_const_iterator.135" = type { ptr }
%"struct.mpl_::bool_" = type { i8 }
%"struct.boost::is_const.136" = type { i8 }
%"struct.boost::type.137" = type { i8 }
%"class.boost::unit_test::framework::state" = type { ptr, %"class.std::vector.100", i64, %"class.std::map.105", i64, i64, i8, %"class.std::set", %"class.std::vector.115", i32, %"class.std::set.120", %"class.boost::execution_monitor", %"class.std::map.126", %"class.boost::unit_test::runtime_config::stream_holder" }
%"class.std::vector.100" = type { %"struct.std::_Vector_base.101" }
%"struct.std::_Vector_base.101" = type { %"struct.std::_Vector_base<boost::unit_test::test_suite *, std::allocator<boost::unit_test::test_suite *>>::_Vector_impl" }
%"struct.std::_Vector_base<boost::unit_test::test_suite *, std::allocator<boost::unit_test::test_suite *>>::_Vector_impl" = type { %"struct.std::_Vector_base<boost::unit_test::test_suite *, std::allocator<boost::unit_test::test_suite *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<boost::unit_test::test_suite *, std::allocator<boost::unit_test::test_suite *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.105" = type { %"class.std::_Rb_tree.106" }
%"class.std::_Rb_tree.106" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, boost::unit_test::test_unit *>, std::_Select1st<std::pair<const unsigned long, boost::unit_test::test_unit *>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, boost::unit_test::test_unit *>, std::_Select1st<std::pair<const unsigned long, boost::unit_test::test_unit *>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree.110" }
%"class.std::_Rb_tree.110" = type { %"struct.std::_Rb_tree<boost::unit_test::test_observer *, boost::unit_test::test_observer *, std::_Identity<boost::unit_test::test_observer *>, boost::unit_test::framework::state::priority_order>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<boost::unit_test::test_observer *, boost::unit_test::test_observer *, std::_Identity<boost::unit_test::test_observer *>, boost::unit_test::framework::state::priority_order>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.115" = type { %"struct.std::_Vector_base.116" }
%"struct.std::_Vector_base.116" = type { %"struct.std::_Vector_base<boost::unit_test::framework::state::context_frame, std::allocator<boost::unit_test::framework::state::context_frame>>::_Vector_impl" }
%"struct.std::_Vector_base<boost::unit_test::framework::state::context_frame, std::allocator<boost::unit_test::framework::state::context_frame>>::_Vector_impl" = type { %"struct.std::_Vector_base<boost::unit_test::framework::state::context_frame, std::allocator<boost::unit_test::framework::state::context_frame>>::_Vector_impl_data" }
%"struct.std::_Vector_base<boost::unit_test::framework::state::context_frame, std::allocator<boost::unit_test::framework::state::context_frame>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set.120" = type { %"class.std::_Rb_tree.121" }
%"class.std::_Rb_tree.121" = type { %"struct.std::_Rb_tree<boost::unit_test::global_fixture *, boost::unit_test::global_fixture *, std::_Identity<boost::unit_test::global_fixture *>, std::less<boost::unit_test::global_fixture *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<boost::unit_test::global_fixture *, boost::unit_test::global_fixture *, std::_Identity<boost::unit_test::global_fixture *>, std::less<boost::unit_test::global_fixture *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.boost::execution_monitor" = type { %"class.boost::unit_test::readwrite_property.97", %"class.boost::unit_test::readwrite_property.97", %"class.boost::unit_test::readwrite_property.22", %"class.boost::unit_test::readwrite_property.97", %"class.boost::unit_test::readwrite_property.20", %"class.boost::shared_ptr.99", %"class.boost::scoped_array" }
%"class.boost::unit_test::readwrite_property.22" = type { %"class.boost::unit_test::class_property" }
%"class.boost::unit_test::class_property" = type { i64 }
%"class.boost::unit_test::readwrite_property.97" = type { %"class.boost::unit_test::class_property.98" }
%"class.boost::unit_test::class_property.98" = type { i8 }
%"class.boost::unit_test::readwrite_property.20" = type { %"class.boost::unit_test::class_property.21" }
%"class.boost::unit_test::class_property.21" = type { i32 }
%"class.boost::shared_ptr.99" = type { ptr, %"class.boost::detail::shared_count" }
%"class.boost::detail::shared_count" = type { ptr }
%"class.boost::scoped_array" = type { ptr }
%"class.std::map.126" = type { %"class.std::_Rb_tree.127" }
%"class.std::_Rb_tree.127" = type { %"struct.std::_Rb_tree<boost::unit_test::output_format, std::pair<const boost::unit_test::output_format, boost::unit_test::runtime_config::stream_holder>, std::_Select1st<std::pair<const boost::unit_test::output_format, boost::unit_test::runtime_config::stream_holder>>, std::less<boost::unit_test::output_format>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<boost::unit_test::output_format, std::pair<const boost::unit_test::output_format, boost::unit_test::runtime_config::stream_holder>, std::_Select1st<std::pair<const boost::unit_test::output_format, boost::unit_test::runtime_config::stream_holder>>, std::less<boost::unit_test::output_format>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.boost::unit_test::runtime_config::stream_holder" = type { %"class.boost::shared_ptr.132", ptr }
%"class.boost::shared_ptr.132" = type { ptr, %"class.boost::detail::shared_count" }

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv() #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN5boost9unit_test8for_each5beginISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS1_10static_anyINT_8iteratorEEERSC_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 8 dereferenceable(48)) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN5boost9unit_test8for_each3endISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS1_10static_anyINT_8iteratorEEERSC_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 8 dereferenceable(48)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost9unit_test8for_each4doneISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEEbRKNS1_15static_any_baseESD_RT_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(48)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5boost9unit_test8for_each5derefIPNS0_13test_observerESt3setIS4_NS0_9framework5state14priority_orderESaIS4_EEEET_RKNS1_15static_any_baseERT0_NS_4typeISB_EEN4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(48)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost9unit_test8for_each4nextISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEEvRKNS1_15static_any_baseERT_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(48)) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5boost9unit_test9framework12test_abortedEv() #1 {
  %1 = alloca ptr, align 8
  %2 = alloca %"struct.boost::unit_test::for_each::static_any.134", align 8
  %3 = alloca %"struct.mpl_::bool_", align 1
  %4 = alloca %"struct.boost::is_const.136", align 1
  %5 = alloca %"struct.boost::is_const.136", align 1
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.boost::unit_test::for_each::static_any.134", align 8
  %8 = alloca %"struct.mpl_::bool_", align 1
  %9 = alloca %"struct.boost::is_const.136", align 1
  %10 = alloca %"struct.boost::is_const.136", align 1
  %11 = alloca i8, align 1
  %12 = alloca %"struct.mpl_::bool_", align 1
  %13 = alloca %"struct.boost::is_const.136", align 1
  %14 = alloca %"struct.boost::is_const.136", align 1
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.boost::type.137", align 1
  %18 = alloca %"struct.mpl_::bool_", align 1
  %19 = alloca %"struct.boost::is_const.136", align 1
  %20 = alloca %"struct.boost::is_const.136", align 1
  %21 = alloca %"struct.mpl_::bool_", align 1
  %22 = alloca %"struct.boost::is_const.136", align 1
  %23 = alloca %"struct.boost::is_const.136", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  %24 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %25 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %24, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #5
  %26 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %27 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %26, i32 0, i32 7
  call void @_ZN5boost9unit_test8for_each13is_const_collISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS_8is_constIT_EERSC_(ptr noundef nonnull align 8 dereferenceable(48) %27)
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %4)
  %29 = call ptr @_ZN5boost9unit_test8for_each5beginISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS1_10static_anyINT_8iteratorEEERSC_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 8 dereferenceable(48) %25)
  %30 = getelementptr inbounds %"struct.boost::unit_test::for_each::static_any.134", ptr %2, i32 0, i32 0
  %31 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.135", ptr %30, i32 0, i32 0
  store ptr %29, ptr %31, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #5
  store ptr %2, ptr %1, align 8, !tbaa !5
  %32 = load ptr, ptr %1, align 8, !tbaa !5
  %33 = call noundef zeroext i1 @_ZNK5boost9unit_test8for_each15static_any_basecvbEv(ptr noundef nonnull align 1 dereferenceable(1) %32)
  br i1 %33, label %34, label %35

34:                                               ; preds = %0
  br label %103

35:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %36 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %37 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %36, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  %38 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %39 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %38, i32 0, i32 7
  call void @_ZN5boost9unit_test8for_each13is_const_collISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS_8is_constIT_EERSC_(ptr noundef nonnull align 8 dereferenceable(48) %39)
  %40 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %9)
  %41 = call ptr @_ZN5boost9unit_test8for_each3endISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS1_10static_anyINT_8iteratorEEERSC_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 8 dereferenceable(48) %37)
  %42 = getelementptr inbounds %"struct.boost::unit_test::for_each::static_any.134", ptr %7, i32 0, i32 0
  %43 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.135", ptr %42, i32 0, i32 0
  store ptr %41, ptr %43, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  store ptr %7, ptr %6, align 8, !tbaa !5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = call noundef zeroext i1 @_ZNK5boost9unit_test8for_each15static_any_basecvbEv(ptr noundef nonnull align 1 dereferenceable(1) %44)
  br i1 %45, label %46, label %47

46:                                               ; preds = %35
  br label %102

47:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  store i8 1, ptr %11, align 1, !tbaa !9
  br label %48

48:                                               ; preds = %100, %47
  %49 = load i8, ptr %11, align 1, !tbaa !9, !range !11, !noundef !12
  %50 = trunc i8 %49 to i1
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  br i1 %50, label %51, label %61

51:                                               ; preds = %48
  %52 = load ptr, ptr %1, align 8, !tbaa !5
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %55 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %54, i32 0, i32 7
  %56 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %57 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %56, i32 0, i32 7
  call void @_ZN5boost9unit_test8for_each13is_const_collISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS_8is_constIT_EERSC_(ptr noundef nonnull align 8 dereferenceable(48) %57)
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %13)
  %59 = call noundef zeroext i1 @_ZN5boost9unit_test8for_each4doneISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEEbRKNS1_15static_any_baseESD_RT_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1) %52, ptr noundef nonnull align 1 dereferenceable(1) %53, ptr noundef nonnull align 8 dereferenceable(48) %55)
  %60 = xor i1 %59, true
  br label %61

61:                                               ; preds = %51, %48
  %62 = phi i1 [ false, %48 ], [ %60, %51 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br i1 %62, label %64, label %63

63:                                               ; preds = %61
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  br label %101

64:                                               ; preds = %61
  store i8 0, ptr %11, align 1, !tbaa !9
  br i1 false, label %65, label %66

65:                                               ; preds = %64
  br label %86

66:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %67 = load ptr, ptr %1, align 8, !tbaa !5
  %68 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %69 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %68, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  %70 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %71 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %70, i32 0, i32 7
  call void @_ZN5boost9unit_test8for_each13is_const_collISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS_8is_constIT_EERSC_(ptr noundef nonnull align 8 dereferenceable(48) %71)
  %72 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %19)
  %73 = call noundef ptr @_ZN5boost9unit_test8for_each5derefIPNS0_13test_observerESt3setIS4_NS0_9framework5state14priority_orderESaIS4_EEEET_RKNS1_15static_any_baseERT0_NS_4typeISB_EEN4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1) %67, ptr noundef nonnull align 8 dereferenceable(48) %69)
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  store ptr %73, ptr %16, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %84, %66
  %75 = load i8, ptr %11, align 1, !tbaa !9, !range !11, !noundef !12
  %76 = trunc i8 %75 to i1
  %77 = xor i1 %76, true
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %85

79:                                               ; preds = %74
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = getelementptr inbounds ptr, ptr %81, i64 2
  %83 = load ptr, ptr %82, align 8
  call void %83(ptr noundef nonnull align 8 dereferenceable(8) %80)
  br label %84

84:                                               ; preds = %79
  store i8 1, ptr %11, align 1, !tbaa !9
  br label %74, !llvm.loop !15

85:                                               ; preds = %78
  br label %86

86:                                               ; preds = %85, %65
  br label %87

87:                                               ; preds = %86
  %88 = load i8, ptr %11, align 1, !tbaa !9, !range !11, !noundef !12
  %89 = trunc i8 %88 to i1
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  br i1 %89, label %90, label %97

90:                                               ; preds = %87
  %91 = load ptr, ptr %1, align 8, !tbaa !5
  %92 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %93 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %92, i32 0, i32 7
  %94 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %95 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %94, i32 0, i32 7
  call void @_ZN5boost9unit_test8for_each13is_const_collISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS_8is_constIT_EERSC_(ptr noundef nonnull align 8 dereferenceable(48) %95)
  %96 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %22)
  call void @_ZN5boost9unit_test8for_each4nextISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEEvRKNS1_15static_any_baseERT_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1) %91, ptr noundef nonnull align 8 dereferenceable(48) %93)
  br label %100

97:                                               ; preds = %87
  %98 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %99 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %98, i32 0, i32 7
  br label %100

100:                                              ; preds = %97, %90
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  br label %48, !llvm.loop !17

101:                                              ; preds = %63
  br label %102

102:                                              ; preds = %101, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %103

103:                                              ; preds = %102, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void
}

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

!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, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.boost::unit_test::for_each::static_any.134" = type { %"struct.std::_Rb_tree_const_iterator.135" }
%"struct.std::_Rb_tree_const_iterator.135" = type { ptr }
%"struct.boost::is_const.136" = type { i8 }

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv() local_unnamed_addr #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN5boost9unit_test8for_each5beginISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS1_10static_anyINT_8iteratorEEERSC_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN5boost9unit_test8for_each3endISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS1_10static_anyINT_8iteratorEEERSC_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost9unit_test8for_each4doneISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEEbRKNS1_15static_any_baseESD_RT_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5boost9unit_test8for_each5derefIPNS0_13test_observerESt3setIS4_NS0_9framework5state14priority_orderESaIS4_EEEET_RKNS1_15static_any_baseERT0_NS_4typeISB_EEN4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost9unit_test8for_each4nextISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEEvRKNS1_15static_any_baseERT_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5boost9unit_test9framework12test_abortedEv() local_unnamed_addr #1 {
  %1 = alloca %"struct.boost::unit_test::for_each::static_any.134", align 8
  %2 = alloca %"struct.boost::is_const.136", align 1
  %3 = alloca %"struct.boost::unit_test::for_each::static_any.134", align 8
  %4 = alloca %"struct.boost::is_const.136", align 1
  %5 = alloca %"struct.boost::is_const.136", align 1
  %6 = alloca %"struct.boost::is_const.136", align 1
  %7 = alloca %"struct.boost::is_const.136", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  %8 = tail call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %9 = getelementptr inbounds i8, ptr %8, i64 112
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #5
  %10 = tail call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %11 = getelementptr inbounds i8, ptr %10, i64 112
  tail call void @_ZN5boost9unit_test8for_each13is_const_collISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS_8is_constIT_EERSC_(ptr noundef nonnull align 8 dereferenceable(48) %11)
  %12 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %2)
  %13 = call ptr @_ZN5boost9unit_test8for_each5beginISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS1_10static_anyINT_8iteratorEEERSC_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 8 dereferenceable(48) %9)
  store ptr %13, ptr %1, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #5
  %14 = call noundef zeroext i1 @_ZNK5boost9unit_test8for_each15static_any_basecvbEv(ptr noundef nonnull align 1 dereferenceable(1) %1)
  br i1 %14, label %49, label %15

15:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %16 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %17 = getelementptr inbounds i8, ptr %16, i64 112
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  %18 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %19 = getelementptr inbounds i8, ptr %18, i64 112
  call void @_ZN5boost9unit_test8for_each13is_const_collISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS_8is_constIT_EERSC_(ptr noundef nonnull align 8 dereferenceable(48) %19)
  %20 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %4)
  %21 = call ptr @_ZN5boost9unit_test8for_each3endISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS1_10static_anyINT_8iteratorEEERSC_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 8 dereferenceable(48) %17)
  store ptr %21, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  %22 = call noundef zeroext i1 @_ZNK5boost9unit_test8for_each15static_any_basecvbEv(ptr noundef nonnull align 1 dereferenceable(1) %3)
  br i1 %22, label %.loopexit, label %.preheader.split

.preheader.split:                                 ; preds = %15
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  %23 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %24 = getelementptr inbounds i8, ptr %23, i64 112
  %25 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %26 = getelementptr inbounds i8, ptr %25, i64 112
  call void @_ZN5boost9unit_test8for_each13is_const_collISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS_8is_constIT_EERSC_(ptr noundef nonnull align 8 dereferenceable(48) %26)
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %5)
  %28 = call noundef zeroext i1 @_ZN5boost9unit_test8for_each4doneISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEEbRKNS1_15static_any_baseESD_RT_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef nonnull align 8 dereferenceable(48) %24)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br i1 %28, label %.loopexit, label %.split.us

.split.us:                                        ; preds = %.preheader.split, %.split.us
  %29 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %30 = getelementptr inbounds i8, ptr %29, i64 112
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  %31 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %32 = getelementptr inbounds i8, ptr %31, i64 112
  call void @_ZN5boost9unit_test8for_each13is_const_collISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS_8is_constIT_EERSC_(ptr noundef nonnull align 8 dereferenceable(48) %32)
  %33 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %6)
  %34 = call noundef ptr @_ZN5boost9unit_test8for_each5derefIPNS0_13test_observerESt3setIS4_NS0_9framework5state14priority_orderESaIS4_EEEET_RKNS1_15static_any_baseERT0_NS_4typeISB_EEN4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 8 dereferenceable(48) %30)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  %37 = load ptr, ptr %36, align 8
  call void %37(ptr noundef nonnull align 8 dereferenceable(8) %34)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  %38 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %39 = getelementptr inbounds i8, ptr %38, i64 112
  %40 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %41 = getelementptr inbounds i8, ptr %40, i64 112
  call void @_ZN5boost9unit_test8for_each13is_const_collISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS_8is_constIT_EERSC_(ptr noundef nonnull align 8 dereferenceable(48) %41)
  %42 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @_ZN5boost9unit_test8for_each4nextISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEEvRKNS1_15static_any_baseERT_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 8 dereferenceable(48) %39)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  %43 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %44 = getelementptr inbounds i8, ptr %43, i64 112
  %45 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %46 = getelementptr inbounds i8, ptr %45, i64 112
  call void @_ZN5boost9unit_test8for_each13is_const_collISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS_8is_constIT_EERSC_(ptr noundef nonnull align 8 dereferenceable(48) %46)
  %47 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %5)
  %48 = call noundef zeroext i1 @_ZN5boost9unit_test8for_each4doneISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEEbRKNS1_15static_any_baseESD_RT_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef nonnull align 8 dereferenceable(48) %44)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br i1 %48, label %.loopexit, label %.split.us, !llvm.loop !8

.loopexit:                                        ; preds = %.split.us, %.preheader.split, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %49

49:                                               ; preds = %0, %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret void
}

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


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