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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.stack_t = type { ptr, i32, i64 }
%"class.boost::detail::signal_handler" = type { ptr, i64, %"class.boost::detail::signal_action", %"class.boost::detail::signal_action", %"class.boost::detail::signal_action", %"class.boost::detail::signal_action", %"class.boost::detail::signal_action", %"class.boost::detail::signal_action", %"class.boost::detail::signal_action", %"class.boost::detail::signal_action", [1 x %struct.__jmp_buf_tag], %"class.boost::detail::system_signal_exception" }
%"class.boost::detail::signal_action" = type { i32, i8, %struct.sigaction, %struct.sigaction }
%struct.sigaction = type { %union.anon.210, %struct.__sigset_t, i32, ptr }
%union.anon.210 = type { ptr }
%struct.__sigset_t = type { [16 x i64] }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%"class.boost::detail::system_signal_exception" = type { ptr, ptr }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZN5boost6detail14signal_handler16s_active_handlerE = external dso_local global ptr, align 8
@.str.176 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [51 x i8], align 1
@__PRETTY_FUNCTION__._ZN5boost6detail14signal_handlerD2Ev = external hidden unnamed_addr constant [49 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

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

; Function Attrs: nounwind
declare i64 @sysconf(i32 noundef) #7

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN5boost6detail14signal_handlerD2Ev(ptr noundef nonnull align 8 dereferenceable(2728) %0) unnamed_addr #8 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.stack_t, align 8
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  %6 = load ptr, ptr @_ZN5boost6detail14signal_handler16s_active_handlerE, align 8, !tbaa !5
  %7 = icmp eq ptr %6, %5
  br i1 %7, label %8, label %9

8:                                                ; preds = %1
  br label %11

9:                                                ; preds = %1
  call void @__assert_fail(ptr noundef @.str.176, ptr noundef @.str.177, i32 noundef 816, ptr noundef @__PRETTY_FUNCTION__._ZN5boost6detail14signal_handlerD2Ev) #10
  unreachable

10:                                               ; No predecessors!
  br label %11

11:                                               ; preds = %10, %8
  %12 = getelementptr inbounds %"class.boost::detail::signal_handler", ptr %5, i32 0, i32 1
  %13 = load i64, ptr %12, align 8, !tbaa !9
  %14 = icmp ugt i64 %13, 0
  br i1 %14, label %15, label %17

15:                                               ; preds = %11
  %16 = call i32 @alarm(i32 noundef 0) #11
  br label %17

17:                                               ; preds = %15, %11
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #11
  call void @llvm.memset.p0.i64(ptr align 8 %3, i8 0, i64 24, i1 false)
  %18 = call i64 @sysconf(i32 noundef 250) #11
  %19 = getelementptr inbounds %struct.stack_t, ptr %3, i32 0, i32 2
  store i64 %18, ptr %19, align 8, !tbaa !18
  %20 = getelementptr inbounds %struct.stack_t, ptr %3, i32 0, i32 1
  store i32 2, ptr %20, align 8, !tbaa !20
  %21 = call i32 @sigaltstack(ptr noundef %3, ptr noundef null) #11
  %22 = icmp eq i32 %21, -1
  br i1 %22, label %23, label %45

23:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #11
  %24 = call ptr @__errno_location() #12
  %25 = load i32, ptr %24, align 4, !tbaa !21
  store i32 %25, ptr %4, align 4, !tbaa !21
  %26 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.178)
          to label %27 unwind label %56

27:                                               ; preds = %23
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %29 unwind label %56

29:                                               ; preds = %27
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef @.str.179)
          to label %31 unwind label %56

31:                                               ; preds = %29
  %32 = load i32, ptr %4, align 4, !tbaa !21
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %30, i32 noundef %32)
          to label %34 unwind label %56

34:                                               ; preds = %31
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %36 unwind label %56

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef @.str.180)
          to label %38 unwind label %56

38:                                               ; preds = %36
  %39 = load i32, ptr %4, align 4, !tbaa !21
  %40 = call ptr @strerror(i32 noundef %39) #11
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef %40)
          to label %42 unwind label %56

42:                                               ; preds = %38
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %44 unwind label %56

44:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #11
  br label %45

45:                                               ; preds = %44, %17
  %46 = getelementptr inbounds %"class.boost::detail::signal_handler", ptr %5, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !22
  store ptr %47, ptr @_ZN5boost6detail14signal_handler16s_active_handlerE, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #11
  %48 = getelementptr inbounds %"class.boost::detail::signal_handler", ptr %5, i32 0, i32 9
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %48) #11
  %49 = getelementptr inbounds %"class.boost::detail::signal_handler", ptr %5, i32 0, i32 8
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %49) #11
  %50 = getelementptr inbounds %"class.boost::detail::signal_handler", ptr %5, i32 0, i32 7
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %50) #11
  %51 = getelementptr inbounds %"class.boost::detail::signal_handler", ptr %5, i32 0, i32 6
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %51) #11
  %52 = getelementptr inbounds %"class.boost::detail::signal_handler", ptr %5, i32 0, i32 5
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %52) #11
  %53 = getelementptr inbounds %"class.boost::detail::signal_handler", ptr %5, i32 0, i32 4
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %53) #11
  %54 = getelementptr inbounds %"class.boost::detail::signal_handler", ptr %5, i32 0, i32 3
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %54) #11
  %55 = getelementptr inbounds %"class.boost::detail::signal_handler", ptr %5, i32 0, i32 2
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %55) #11
  ret void

56:                                               ; preds = %42, %38, %36, %34, %31, %29, %27, %23
  %57 = landingpad { ptr, i32 }
          catch ptr null
  %58 = extractvalue { ptr, i32 } %57, 0
  call void @__clang_call_terminate(ptr %58) #10
  unreachable
}

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

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

declare void @_ZN5boost6detail13signal_actionD1Ev(ptr)

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTSN5boost6detail14signal_handlerE", !6, i64 0, !11, i64 8, !12, i64 16, !12, i64 328, !12, i64 640, !12, i64 952, !12, i64 1264, !12, i64 1576, !12, i64 1888, !12, i64 2200, !7, i64 2512, !17, i64 2712}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSN5boost6detail13signal_actionE", !13, i64 0, !14, i64 4, !15, i64 8, !15, i64 160}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS9sigaction", !7, i64 0, !16, i64 8, !13, i64 136, !6, i64 144}
!16 = !{!"_ZTS10__sigset_t", !7, i64 0}
!17 = !{!"_ZTSN5boost6detail23system_signal_exceptionE", !6, i64 0, !6, i64 8}
!18 = !{!19, !11, i64 16}
!19 = !{!"_ZTS7stack_t", !6, i64 0, !13, i64 8, !11, i64 16}
!20 = !{!19, !13, i64 8}
!21 = !{!13, !13, i64 0}
!22 = !{!10, !6, 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.stack_t = type { ptr, i32, i64 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZN5boost6detail14signal_handler16s_active_handlerE = external dso_local local_unnamed_addr global ptr, align 8
@.str.176 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [51 x i8], align 1
@__PRETTY_FUNCTION__._ZN5boost6detail14signal_handlerD2Ev = external hidden unnamed_addr constant [49 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN5boost6detail14signal_handlerD2Ev(ptr noundef nonnull align 8 dereferenceable(2728) %0) unnamed_addr #8 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %struct.stack_t, align 8
  %3 = load ptr, ptr @_ZN5boost6detail14signal_handler16s_active_handlerE, align 8, !tbaa !5
  %4 = icmp eq ptr %3, %0
  br i1 %4, label %6, label %5

5:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.176, ptr noundef nonnull @.str.177, i32 noundef 816, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5boost6detail14signal_handlerD2Ev) #10
  unreachable

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !9
  %.not = icmp eq i64 %8, 0
  br i1 %.not, label %11, label %9

9:                                                ; preds = %6
  %10 = tail call i32 @alarm(i32 noundef 0) #11
  br label %11

11:                                               ; preds = %9, %6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %2, i8 0, i64 16, i1 false)
  %12 = tail call i64 @sysconf(i32 noundef 250) #11
  %13 = getelementptr inbounds i8, ptr %2, i64 16
  store i64 %12, ptr %13, align 8, !tbaa !18
  %14 = getelementptr inbounds i8, ptr %2, i64 8
  store i32 2, ptr %14, align 8, !tbaa !20
  %15 = call i32 @sigaltstack(ptr noundef nonnull %2, ptr noundef null) #11
  %16 = icmp eq i32 %15, -1
  br i1 %16, label %17, label %36

17:                                               ; preds = %11
  %18 = tail call ptr @__errno_location() #12
  %19 = load i32, ptr %18, align 4, !tbaa !21
  %20 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.178)
          to label %21 unwind label %46

21:                                               ; preds = %17
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %23 unwind label %46

23:                                               ; preds = %21
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull @.str.179)
          to label %25 unwind label %46

25:                                               ; preds = %23
  %26 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef %19)
          to label %27 unwind label %46

27:                                               ; preds = %25
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %29 unwind label %46

29:                                               ; preds = %27
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull @.str.180)
          to label %31 unwind label %46

31:                                               ; preds = %29
  %32 = call ptr @strerror(i32 noundef %19) #11
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef %32)
          to label %34 unwind label %46

34:                                               ; preds = %31
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %36 unwind label %46

36:                                               ; preds = %34, %11
  %37 = load ptr, ptr %0, align 8, !tbaa !22
  store ptr %37, ptr @_ZN5boost6detail14signal_handler16s_active_handlerE, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #11
  %38 = getelementptr inbounds i8, ptr %0, i64 2200
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %38) #11
  %39 = getelementptr inbounds i8, ptr %0, i64 1888
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %39) #11
  %40 = getelementptr inbounds i8, ptr %0, i64 1576
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %40) #11
  %41 = getelementptr inbounds i8, ptr %0, i64 1264
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %41) #11
  %42 = getelementptr inbounds i8, ptr %0, i64 952
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %42) #11
  %43 = getelementptr inbounds i8, ptr %0, i64 640
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %43) #11
  %44 = getelementptr inbounds i8, ptr %0, i64 328
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %44) #11
  %45 = getelementptr inbounds i8, ptr %0, i64 16
  call void @_ZN5boost6detail13signal_actionD1Ev(ptr noundef nonnull align 8 dereferenceable(312) %45) #11
  ret void

46:                                               ; preds = %34, %31, %29, %27, %25, %23, %21, %17
  %47 = landingpad { ptr, i32 }
          catch ptr null
  %48 = extractvalue { ptr, i32 } %47, 0
  call void @__clang_call_terminate(ptr %48) #10
  unreachable
}

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

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

declare void @_ZN5boost6detail13signal_actionD1Ev(ptr) local_unnamed_addr

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTSN5boost6detail14signal_handlerE", !6, i64 0, !11, i64 8, !12, i64 16, !12, i64 328, !12, i64 640, !12, i64 952, !12, i64 1264, !12, i64 1576, !12, i64 1888, !12, i64 2200, !7, i64 2512, !17, i64 2712}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSN5boost6detail13signal_actionE", !13, i64 0, !14, i64 4, !15, i64 8, !15, i64 160}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS9sigaction", !7, i64 0, !16, i64 8, !13, i64 136, !6, i64 144}
!16 = !{!"_ZTS10__sigset_t", !7, i64 0}
!17 = !{!"_ZTSN5boost6detail23system_signal_exceptionE", !6, i64 0, !6, i64 8}
!18 = !{!19, !11, i64 16}
!19 = !{!"_ZTS7stack_t", !6, i64 0, !13, i64 8, !11, i64 16}
!20 = !{!19, !13, i64 8}
!21 = !{!13, !13, i64 0}
!22 = !{!10, !6, i64 0}


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