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

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

36:                                               ; preds = %1
  br label %106

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

48:                                               ; preds = %37
  br label %105

49:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  store i8 1, ptr %13, align 1, !tbaa !11
  br label %50

50:                                               ; preds = %103, %49
  %51 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %52 = trunc i8 %51 to i1
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  br i1 %52, label %53, label %63

53:                                               ; preds = %50
  %54 = load ptr, ptr %3, align 8, !tbaa !9
  %55 = load ptr, ptr %8, align 8, !tbaa !9
  %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
  %58 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %59 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %58, 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) %59)
  %60 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %15)
  %61 = 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) %54, ptr noundef nonnull align 1 dereferenceable(1) %55, ptr noundef nonnull align 8 dereferenceable(48) %57)
  %62 = xor i1 %61, true
  br label %63

63:                                               ; preds = %53, %50
  %64 = phi i1 [ false, %50 ], [ %62, %53 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  br i1 %64, label %66, label %65

65:                                               ; preds = %63
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br label %104

66:                                               ; preds = %63
  store i8 0, ptr %13, align 1, !tbaa !11
  br i1 false, label %67, label %68

67:                                               ; preds = %66
  br label %89

68:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %69 = load ptr, ptr %3, align 8, !tbaa !9
  %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 @llvm.lifetime.start.p0(i64 1, ptr %21) #5
  %72 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %73 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %72, 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) %73)
  %74 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %21)
  %75 = 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) %69, ptr noundef nonnull align 8 dereferenceable(48) %71)
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #5
  store ptr %75, ptr %18, align 8, !tbaa !9
  br label %76

76:                                               ; preds = %87, %68
  %77 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %78 = trunc i8 %77 to i1
  %79 = xor i1 %78, true
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %88

81:                                               ; preds = %76
  %82 = load ptr, ptr %18, align 8, !tbaa !9
  %83 = load i32, ptr %2, align 4, !tbaa !5
  %84 = load ptr, ptr %82, align 8, !tbaa !15
  %85 = getelementptr inbounds ptr, ptr %84, i64 9
  %86 = load ptr, ptr %85, align 8
  call void %86(ptr noundef nonnull align 8 dereferenceable(8) %82, i32 noundef %83)
  br label %87

87:                                               ; preds = %81
  store i8 1, ptr %13, align 1, !tbaa !11
  br label %76, !llvm.loop !17

88:                                               ; preds = %80
  br label %89

89:                                               ; preds = %88, %67
  br label %90

90:                                               ; preds = %89
  %91 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %92 = trunc i8 %91 to i1
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #5
  br i1 %92, label %93, label %100

93:                                               ; preds = %90
  %94 = load ptr, ptr %3, align 8, !tbaa !9
  %95 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %96 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %95, i32 0, i32 7
  %97 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %98 = getelementptr inbounds %"class.boost::unit_test::framework::state", ptr %97, 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) %98)
  %99 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %24)
  call void @_ZN5boost9unit_test8for_each4nextISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEEvRKNS1_15static_any_baseERT_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1) %94, ptr noundef nonnull align 8 dereferenceable(48) %96)
  br label %103

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

103:                                              ; preds = %100, %93
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  br label %50, !llvm.loop !19

104:                                              ; preds = %65
  br label %105

105:                                              ; preds = %104, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %106

106:                                              ; preds = %105, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #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 = !{!"_ZTSN5boost9unit_test16assertion_resultE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; 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_test9framework16assertion_resultENS0_16assertion_resultE(i32 noundef %0) local_unnamed_addr #1 {
  %2 = alloca %"struct.boost::unit_test::for_each::static_any.134", align 8
  %3 = alloca %"struct.boost::is_const.136", align 1
  %4 = alloca %"struct.boost::unit_test::for_each::static_any.134", align 8
  %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
  %8 = alloca %"struct.boost::is_const.136", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %9 = tail call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %10 = getelementptr inbounds i8, ptr %9, i64 112
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #5
  %11 = tail call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %12 = getelementptr inbounds i8, ptr %11, 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) %12)
  %13 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %3)
  %14 = call ptr @_ZN5boost9unit_test8for_each5beginISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS1_10static_anyINT_8iteratorEEERSC_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 8 dereferenceable(48) %10)
  store ptr %14, ptr %2, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  %15 = call noundef zeroext i1 @_ZNK5boost9unit_test8for_each15static_any_basecvbEv(ptr noundef nonnull align 1 dereferenceable(1) %2)
  br i1 %15, label %50, label %16

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

.preheader.split:                                 ; preds = %16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  %24 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %25 = getelementptr inbounds i8, ptr %24, i64 112
  %26 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %27 = getelementptr inbounds i8, ptr %26, i64 112
  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) %6)
  %29 = 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) %2, ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef nonnull align 8 dereferenceable(48) %25)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  br i1 %29, label %.loopexit, label %.split.us

.split.us:                                        ; preds = %.preheader.split, %.split.us
  %30 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %31 = getelementptr inbounds i8, ptr %30, i64 112
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  %32 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %33 = getelementptr inbounds i8, ptr %32, i64 112
  call void @_ZN5boost9unit_test8for_each13is_const_collISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS_8is_constIT_EERSC_(ptr noundef nonnull align 8 dereferenceable(48) %33)
  %34 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %7)
  %35 = 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) %2, ptr noundef nonnull align 8 dereferenceable(48) %31)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %36, i64 72
  %38 = load ptr, ptr %37, align 8
  call void %38(ptr noundef nonnull align 8 dereferenceable(8) %35, i32 noundef %0)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  %39 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %40 = getelementptr inbounds i8, ptr %39, i64 112
  %41 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %42 = getelementptr inbounds i8, ptr %41, i64 112
  call void @_ZN5boost9unit_test8for_each13is_const_collISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS_8is_constIT_EERSC_(ptr noundef nonnull align 8 dereferenceable(48) %42)
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @_ZN5boost9unit_test8for_each4nextISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEEvRKNS1_15static_any_baseERT_N4mpl_5bool_ILb0EEE(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 8 dereferenceable(48) %40)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  %44 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %45 = getelementptr inbounds i8, ptr %44, i64 112
  %46 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN5boost9unit_test9framework4impl12_GLOBAL__N_111s_frk_stateEv()
  %47 = getelementptr inbounds i8, ptr %46, i64 112
  call void @_ZN5boost9unit_test8for_each13is_const_collISt3setIPNS0_13test_observerENS0_9framework5state14priority_orderESaIS5_EEEENS_8is_constIT_EERSC_(ptr noundef nonnull align 8 dereferenceable(48) %47)
  %48 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK5boost17integral_constantIbLb0EEcvRKN4mpl_5bool_ILb0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %6)
  %49 = 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) %2, ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef nonnull align 8 dereferenceable(48) %45)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  br i1 %49, label %.loopexit, label %.split.us, !llvm.loop !8

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

50:                                               ; preds = %1, %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #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