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

%"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.boost::unit_test::basic_cstring" = type { ptr, ptr }
%"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 }

@_ZTIN5boost19execution_exceptionE = external dso_local constant { ptr, ptr }, align 8
@_ZN5boost9unit_test14runtime_config21btrt_catch_sys_errorsB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN5boost9unit_test14runtime_config19btrt_auto_start_dbgB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN5boost9unit_test14runtime_config18btrt_use_alt_stackB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN5boost9unit_test14runtime_config21btrt_detect_fp_exceptB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN5boost9unit_test14runtime_config3getIbEERKT_NS0_13basic_cstringIKcEE(ptr noundef) #0

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

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

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) #2

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #4

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(280) ptr @_ZN5boost9unit_test9framework17current_test_unitEv() #6

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5boost9unit_test19unit_test_monitor_t21execute_and_translateERKNS_8functionIFvvEEEm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %2) #6 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %12 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %13 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  %16 = load ptr, ptr %5, align 8
  invoke void @_ZN5boost9unit_test13basic_cstringIKcEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(32) @_ZN5boost9unit_test14runtime_config21btrt_catch_sys_errorsB5cxx11E)
          to label %17 unwind label %54

17:                                               ; preds = %3
  %18 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN5boost9unit_test14runtime_config3getIbEERKT_NS0_13basic_cstringIKcEE(ptr noundef %8)
          to label %19 unwind label %54

19:                                               ; preds = %17
  %20 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %21 = trunc i8 %20 to i1
  %22 = getelementptr inbounds %"class.boost::execution_monitor", ptr %16, i32 0, i32 0
  %23 = getelementptr inbounds %"class.boost::unit_test::class_property.98", ptr %22, i32 0, i32 0
  %24 = zext i1 %21 to i8
  store i8 %24, ptr %23, align 8, !tbaa !15
  %25 = load i64, ptr %7, align 8, !tbaa !9
  %26 = getelementptr inbounds %"class.boost::execution_monitor", ptr %16, i32 0, i32 2
  %27 = getelementptr inbounds %"class.boost::unit_test::class_property", ptr %26, i32 0, i32 0
  store i64 %25, ptr %27, align 8, !tbaa !17
  invoke void @_ZN5boost9unit_test13basic_cstringIKcEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(32) @_ZN5boost9unit_test14runtime_config19btrt_auto_start_dbgB5cxx11E)
          to label %28 unwind label %54

28:                                               ; preds = %19
  %29 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN5boost9unit_test14runtime_config3getIbEERKT_NS0_13basic_cstringIKcEE(ptr noundef %11)
          to label %30 unwind label %54

30:                                               ; preds = %28
  %31 = load i8, ptr %29, align 1, !tbaa !11, !range !13, !noundef !14
  %32 = trunc i8 %31 to i1
  %33 = getelementptr inbounds %"class.boost::execution_monitor", ptr %16, i32 0, i32 1
  %34 = getelementptr inbounds %"class.boost::unit_test::class_property.98", ptr %33, i32 0, i32 0
  %35 = zext i1 %32 to i8
  store i8 %35, ptr %34, align 1, !tbaa !15
  invoke void @_ZN5boost9unit_test13basic_cstringIKcEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(32) @_ZN5boost9unit_test14runtime_config18btrt_use_alt_stackB5cxx11E)
          to label %36 unwind label %54

36:                                               ; preds = %30
  %37 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN5boost9unit_test14runtime_config3getIbEERKT_NS0_13basic_cstringIKcEE(ptr noundef %12)
          to label %38 unwind label %54

38:                                               ; preds = %36
  %39 = load i8, ptr %37, align 1, !tbaa !11, !range !13, !noundef !14
  %40 = trunc i8 %39 to i1
  %41 = getelementptr inbounds %"class.boost::execution_monitor", ptr %16, i32 0, i32 3
  %42 = getelementptr inbounds %"class.boost::unit_test::class_property.98", ptr %41, i32 0, i32 0
  %43 = zext i1 %40 to i8
  store i8 %43, ptr %42, align 8, !tbaa !15
  invoke void @_ZN5boost9unit_test13basic_cstringIKcEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(32) @_ZN5boost9unit_test14runtime_config21btrt_detect_fp_exceptB5cxx11E)
          to label %44 unwind label %54

44:                                               ; preds = %38
  %45 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN5boost9unit_test14runtime_config3getIbEERKT_NS0_13basic_cstringIKcEE(ptr noundef %13)
          to label %46 unwind label %54

46:                                               ; preds = %44
  %47 = load i8, ptr %45, align 1, !tbaa !11, !range !13, !noundef !14
  %48 = trunc i8 %47 to i1
  %49 = zext i1 %48 to i32
  %50 = getelementptr inbounds %"class.boost::execution_monitor", ptr %16, i32 0, i32 4
  %51 = getelementptr inbounds %"class.boost::unit_test::class_property.21", ptr %50, i32 0, i32 0
  store i32 %49, ptr %51, align 4, !tbaa !19
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN5boost17execution_monitor8vexecuteERKNS_8functionIFvvEEE(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 8 dereferenceable(32) %52)
          to label %53 unwind label %54

53:                                               ; preds = %46
  br label %86

54:                                               ; preds = %46, %44, %38, %36, %30, %28, %19, %17, %3
  %55 = landingpad { ptr, i32 }
          catch ptr @_ZTIN5boost19execution_exceptionE
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %9, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %10, align 4
  br label %58

58:                                               ; preds = %54
  %59 = load i32, ptr %10, align 4
  %60 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIN5boost19execution_exceptionE) #7
  %61 = icmp eq i32 %59, %60
  br i1 %61, label %62, label %89

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %63 = load ptr, ptr %9, align 8
  %64 = call ptr @__cxa_begin_catch(ptr %63) #7
  store ptr %64, ptr %14, align 8
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN5boost9unit_test9framework16exception_caughtERKNS_19execution_exceptionE(ptr noundef nonnull align 8 dereferenceable(64) %65)
          to label %66 unwind label %73

66:                                               ; preds = %62
  %67 = invoke noundef nonnull align 8 dereferenceable(280) ptr @_ZN5boost9unit_test9framework17current_test_unitEv()
          to label %68 unwind label %73

68:                                               ; preds = %66
  invoke void @_ZN5boost9unit_test9framework17test_unit_abortedERKNS0_9test_unitE(ptr noundef nonnull align 8 dereferenceable(280) %67)
          to label %69 unwind label %73

69:                                               ; preds = %68
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = invoke noundef i32 @_ZNK5boost19execution_exception4codeEv(ptr noundef nonnull align 8 dereferenceable(64) %70)
          to label %72 unwind label %73

72:                                               ; preds = %69
  switch i32 %71, label %83 [
    i32 0, label %77
    i32 200, label %78
    i32 205, label %79
    i32 210, label %80
    i32 215, label %81
    i32 220, label %82
    i32 225, label %82
  ]

73:                                               ; preds = %69, %68, %66, %62
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %9, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %10, align 4
  invoke void @__cxa_end_catch()
          to label %85 unwind label %94

77:                                               ; preds = %72
  store i32 0, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %84

78:                                               ; preds = %72
  store i32 -2, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %84

79:                                               ; preds = %72
  store i32 -2, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %84

80:                                               ; preds = %72
  store i32 -3, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %84

81:                                               ; preds = %72
  store i32 -4, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %84

82:                                               ; preds = %72, %72
  store i32 -5, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %84

83:                                               ; preds = %72
  store i32 -2, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %84

84:                                               ; preds = %83, %82, %81, %80, %79, %78, %77
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %87

85:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %89

86:                                               ; preds = %53
  store i32 0, ptr %4, align 4
  br label %87

87:                                               ; preds = %86, %84
  %88 = load i32, ptr %4, align 4
  ret i32 %88

89:                                               ; preds = %85, %58
  %90 = load ptr, ptr %9, align 8
  %91 = load i32, ptr %10, align 4
  %92 = insertvalue { ptr, i32 } poison, ptr %90, 0
  %93 = insertvalue { ptr, i32 } %92, i32 %91, 1
  resume { ptr, i32 } %93

94:                                               ; preds = %73
  %95 = landingpad { ptr, i32 }
          catch ptr null
  %96 = extractvalue { ptr, i32 } %95, 0
  call void @__clang_call_terminate(ptr %96) #8
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost9unit_test9framework16exception_caughtERKNS_19execution_exceptionE(ptr noundef nonnull align 8 dereferenceable(64)) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost9unit_test9framework17test_unit_abortedERKNS0_9test_unitE(ptr noundef nonnull align 8 dereferenceable(280)) #6

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind memory(none) }
attributes #5 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !12, i64 0}
!16 = !{!"_ZTSN5boost9unit_test14class_propertyIbEE", !12, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSN5boost9unit_test14class_propertyImEE", !10, i64 0}
!19 = !{!20, !21, i64 0}
!20 = !{!"_ZTSN5boost9unit_test14class_propertyIjEE", !21, i64 0}
!21 = !{!"int", !7, i64 0}


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

%"class.std::__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.boost::unit_test::basic_cstring" = type { ptr, ptr }

@_ZTIN5boost19execution_exceptionE = external dso_local constant { ptr, ptr }, align 8
@_ZN5boost9unit_test14runtime_config21btrt_catch_sys_errorsB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN5boost9unit_test14runtime_config19btrt_auto_start_dbgB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN5boost9unit_test14runtime_config18btrt_use_alt_stackB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN5boost9unit_test14runtime_config21btrt_detect_fp_exceptB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN5boost9unit_test14runtime_config3getIbEERKT_NS0_13basic_cstringIKcEE(ptr noundef) local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #3

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(280) ptr @_ZN5boost9unit_test9framework17current_test_unitEv() local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -5, 1) i32 @_ZN5boost9unit_test19unit_test_monitor_t21execute_and_translateERKNS_8functionIFvvEEEm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %2) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %5 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %6 = alloca %"class.boost::unit_test::basic_cstring", align 8
  %7 = alloca %"class.boost::unit_test::basic_cstring", align 8
  call void @_ZN5boost9unit_test13basic_cstringIKcEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN5boost9unit_test14runtime_config21btrt_catch_sys_errorsB5cxx11E)
  %8 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN5boost9unit_test14runtime_config3getIbEERKT_NS0_13basic_cstringIKcEE(ptr noundef nonnull %4)
          to label %9 unwind label %25

9:                                                ; preds = %3
  %10 = load i8, ptr %8, align 1, !tbaa !5, !range !9, !noundef !10
  store i8 %10, ptr %0, align 8, !tbaa !11
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %2, ptr %11, align 8, !tbaa !13
  call void @_ZN5boost9unit_test13basic_cstringIKcEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(32) @_ZN5boost9unit_test14runtime_config19btrt_auto_start_dbgB5cxx11E)
  %12 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN5boost9unit_test14runtime_config3getIbEERKT_NS0_13basic_cstringIKcEE(ptr noundef nonnull %5)
          to label %13 unwind label %25

13:                                               ; preds = %9
  %14 = load i8, ptr %12, align 1, !tbaa !5, !range !9, !noundef !10
  %15 = getelementptr inbounds i8, ptr %0, i64 1
  store i8 %14, ptr %15, align 1, !tbaa !11
  call void @_ZN5boost9unit_test13basic_cstringIKcEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(32) @_ZN5boost9unit_test14runtime_config18btrt_use_alt_stackB5cxx11E)
  %16 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN5boost9unit_test14runtime_config3getIbEERKT_NS0_13basic_cstringIKcEE(ptr noundef nonnull %6)
          to label %17 unwind label %25

17:                                               ; preds = %13
  %18 = load i8, ptr %16, align 1, !tbaa !5, !range !9, !noundef !10
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  store i8 %18, ptr %19, align 8, !tbaa !11
  call void @_ZN5boost9unit_test13basic_cstringIKcEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(32) @_ZN5boost9unit_test14runtime_config21btrt_detect_fp_exceptB5cxx11E)
  %20 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN5boost9unit_test14runtime_config3getIbEERKT_NS0_13basic_cstringIKcEE(ptr noundef nonnull %7)
          to label %21 unwind label %25

21:                                               ; preds = %17
  %22 = load i8, ptr %20, align 1, !tbaa !5, !range !9, !noundef !10
  %23 = zext nneg i8 %22 to i32
  %24 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %23, ptr %24, align 4, !tbaa !16
  invoke void @_ZN5boost17execution_monitor8vexecuteERKNS_8functionIFvvEEE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %47 unwind label %25

25:                                               ; preds = %21, %17, %13, %9, %3
  %26 = landingpad { ptr, i32 }
          catch ptr @_ZTIN5boost19execution_exceptionE
  %27 = extractvalue { ptr, i32 } %26, 1
  %28 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIN5boost19execution_exceptionE) #6
  %29 = icmp eq i32 %27, %28
  br i1 %29, label %30, label %48

30:                                               ; preds = %25
  %31 = extractvalue { ptr, i32 } %26, 0
  %32 = call ptr @__cxa_begin_catch(ptr %31) #6
  invoke void @_ZN5boost9unit_test9framework16exception_caughtERKNS_19execution_exceptionE(ptr noundef nonnull align 8 dereferenceable(64) %32)
          to label %33 unwind label %38

33:                                               ; preds = %30
  %34 = invoke noundef nonnull align 8 dereferenceable(280) ptr @_ZN5boost9unit_test9framework17current_test_unitEv()
          to label %35 unwind label %38

35:                                               ; preds = %33
  invoke void @_ZN5boost9unit_test9framework17test_unit_abortedERKNS0_9test_unitE(ptr noundef nonnull align 8 dereferenceable(280) %34)
          to label %36 unwind label %38

36:                                               ; preds = %35
  %37 = call noundef i32 @_ZNK5boost19execution_exception4codeEv(ptr noundef nonnull align 8 dereferenceable(64) %32)
  switch i32 %37, label %45 [
    i32 0, label %46
    i32 200, label %40
    i32 205, label %41
    i32 210, label %42
    i32 215, label %43
    i32 220, label %44
    i32 225, label %44
  ]

38:                                               ; preds = %35, %33, %30
  %39 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %48 unwind label %49

40:                                               ; preds = %36
  br label %46

41:                                               ; preds = %36
  br label %46

42:                                               ; preds = %36
  br label %46

43:                                               ; preds = %36
  br label %46

44:                                               ; preds = %36, %36
  br label %46

45:                                               ; preds = %36
  br label %46

46:                                               ; preds = %36, %45, %44, %43, %42, %41, %40
  %.0 = phi i32 [ -2, %45 ], [ -5, %44 ], [ -4, %43 ], [ -3, %42 ], [ -2, %41 ], [ -2, %40 ], [ %37, %36 ]
  call void @__cxa_end_catch()
  br label %47

47:                                               ; preds = %21, %46
  %.1 = phi i32 [ %.0, %46 ], [ 0, %21 ]
  ret i32 %.1

48:                                               ; preds = %38, %25
  %.merged = phi { ptr, i32 } [ %26, %25 ], [ %39, %38 ]
  resume { ptr, i32 } %.merged

49:                                               ; preds = %38
  %50 = landingpad { ptr, i32 }
          catch ptr null
  %51 = extractvalue { ptr, i32 } %50, 0
  call void @__clang_call_terminate(ptr %51) #7
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost9unit_test9framework16exception_caughtERKNS_19execution_exceptionE(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost9unit_test9framework17test_unit_abortedERKNS0_9test_unitE(ptr noundef nonnull align 8 dereferenceable(280)) local_unnamed_addr #5

attributes #0 = { 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 #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 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 = { nofree nosync nounwind memory(none) }
attributes #4 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN5boost9unit_test14class_propertyIbEE", !6, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN5boost9unit_test14class_propertyImEE", !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTSN5boost9unit_test14class_propertyIjEE", !18, i64 0}
!18 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass