; LLVM IR from microsoft/Multiverso :: src/communicator.ll (ZN10multiverso12Communicator11CommunicateEv)

; 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::unique_ptr.20" = type { %"struct.std::__uniq_ptr_data.21" }
%"struct.std::__uniq_ptr_data.21" = type { %"class.std::__uniq_ptr_impl.22" }
%"class.std::__uniq_ptr_impl.22" = type { %"class.std::tuple.23" }
%"class.std::tuple.23" = type { %"struct.std::_Tuple_impl.24" }
%"struct.std::_Tuple_impl.24" = type { %"struct.std::_Head_base.27" }
%"struct.std::_Head_base.27" = type { ptr }
%"class.multiverso::Actor" = type { ptr, %"class.std::unique_ptr", %"class.std::unordered_map", i8, %"class.std::__cxx11::basic_string", %"class.std::unique_ptr.7" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::unique_ptr.7" = type { %"struct.std::__uniq_ptr_data.8" }
%"struct.std::__uniq_ptr_data.8" = type { %"class.std::__uniq_ptr_impl.9" }
%"class.std::__uniq_ptr_impl.9" = type { %"class.std::tuple.10" }
%"class.std::tuple.10" = type { %"struct.std::_Tuple_impl.11" }
%"struct.std::_Tuple_impl.11" = type { %"struct.std::_Head_base.14" }
%"struct.std::_Head_base.14" = type { ptr }
%"class.multiverso::Communicator" = type { %"class.multiverso::Actor", ptr, %"class.std::unique_ptr.7" }

@.str.9 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10multiverso12Communicator11CommunicateEv(ptr noundef nonnull align 8 dereferenceable(136) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::unique_ptr.20", align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  br label %9

9:                                                ; preds = %48, %46, %1
  %10 = getelementptr inbounds %"class.multiverso::Actor", ptr %8, i32 0, i32 3
  %11 = load i8, ptr %10, align 8, !tbaa !9, !range !32, !noundef !33
  %12 = trunc i8 %11 to i1
  br i1 %12, label %13, label %49

13:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  %14 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #9
  call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 56, i1 false)
  call void @_ZN10multiverso7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #8
  call void @_ZNSt10unique_ptrIN10multiverso7MessageESt14default_deleteIS1_EEC2IS3_vEEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %15 = getelementptr inbounds %"class.multiverso::Communicator", ptr %8, i32 0, i32 1
  %16 = load ptr, ptr %15, align 8, !tbaa !34
  %17 = load ptr, ptr %16, align 8, !tbaa !36
  %18 = getelementptr inbounds ptr, ptr %17, i64 9
  %19 = load ptr, ptr %18, align 8
  %20 = invoke noundef i32 %19(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef %3)
          to label %21 unwind label %25

21:                                               ; preds = %13
  store i32 %20, ptr %4, align 4, !tbaa !38
  %22 = load i32, ptr %4, align 4, !tbaa !38
  %23 = icmp eq i32 %22, -1
  br i1 %23, label %24, label %29

24:                                               ; preds = %21
  store i32 2, ptr %7, align 4
  br label %46, !llvm.loop !40

25:                                               ; preds = %43, %41, %37, %35, %32, %13
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %5, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @_ZNSt10unique_ptrIN10multiverso7MessageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %50

29:                                               ; preds = %21
  %30 = load i32, ptr %4, align 4, !tbaa !38
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %32, label %45

32:                                               ; preds = %29
  %33 = call noundef ptr @_ZNKSt10unique_ptrIN10multiverso7MessageESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  %34 = invoke noundef i32 @_ZNK10multiverso7Message3dstEv(ptr noundef nonnull align 8 dereferenceable(56) %33)
          to label %35 unwind label %25

35:                                               ; preds = %32
  %36 = invoke noundef ptr @_ZN10multiverso3Zoo3GetEv()
          to label %37 unwind label %25

37:                                               ; preds = %35
  %38 = invoke noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152) %36)
          to label %39 unwind label %25

39:                                               ; preds = %37
  %40 = icmp eq i32 %34, %38
  br i1 %40, label %43, label %41

41:                                               ; preds = %39
  invoke void (ptr, ...) @_ZN10multiverso3Log5FatalEPKcz(ptr noundef @.str.11, ptr noundef @.str.9, i32 noundef 86)
          to label %42 unwind label %25

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42, %39
  invoke void @_ZN10multiverso12Communicator12LocalForwardERSt10unique_ptrINS_7MessageESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(136) %8, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %44 unwind label %25

44:                                               ; preds = %43
  br label %45

45:                                               ; preds = %44, %29
  store i32 0, ptr %7, align 4
  br label %46

46:                                               ; preds = %45, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @_ZNSt10unique_ptrIN10multiverso7MessageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  %47 = load i32, ptr %7, align 4
  switch i32 %47, label %55 [
    i32 0, label %48
    i32 2, label %9
  ]

48:                                               ; preds = %46
  br label %9, !llvm.loop !40

49:                                               ; preds = %9
  call void (ptr, ...) @_ZN10multiverso3Log5DebugEPKcz(ptr noundef @.str.12)
  ret void

50:                                               ; preds = %25
  %51 = load ptr, ptr %5, align 8
  %52 = load i32, ptr %6, align 4
  %53 = insertvalue { ptr, i32 } poison, ptr %51, 0
  %54 = insertvalue { ptr, i32 } %53, i32 %52, 1
  resume { ptr, i32 } %54

55:                                               ; preds = %46
  unreachable
}

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

declare void @_ZN10multiverso3Log5FatalEPKcz(ptr noundef, ...) #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK10multiverso7Message3dstEv(ptr noundef nonnull align 8 dereferenceable(56)) #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10multiverso7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN10multiverso3Zoo3GetEv() #7 align 2

declare noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152)) #3

declare void @_ZN10multiverso3Log5DebugEPKcz(ptr noundef, ...) #3

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

!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, !23, i64 72}
!10 = !{!"_ZTSN10multiverso5ActorE", !11, i64 8, !17, i64 16, !23, i64 72, !24, i64 80, !26, i64 112}
!11 = !{!"_ZTSSt10unique_ptrIN10multiverso7MtQueueIS_INS0_7MessageESt14default_deleteIS2_EEEES3_IS6_EE", !12, i64 0}
!12 = !{!"_ZTSSt15__uniq_ptr_dataIN10multiverso7MtQueueISt10unique_ptrINS0_7MessageESt14default_deleteIS3_EEEES4_IS7_ELb1ELb1EE", !13, i64 0}
!13 = !{!"_ZTSSt15__uniq_ptr_implIN10multiverso7MtQueueISt10unique_ptrINS0_7MessageESt14default_deleteIS3_EEEES4_IS7_EE", !14, i64 0}
!14 = !{!"_ZTSSt5tupleIJPN10multiverso7MtQueueISt10unique_ptrINS0_7MessageESt14default_deleteIS3_EEEES4_IS7_EEE", !15, i64 0}
!15 = !{!"_ZTSSt11_Tuple_implILm0EJPN10multiverso7MtQueueISt10unique_ptrINS0_7MessageESt14default_deleteIS3_EEEES4_IS7_EEE", !16, i64 0}
!16 = !{!"_ZTSSt10_Head_baseILm0EPN10multiverso7MtQueueISt10unique_ptrINS0_7MessageESt14default_deleteIS3_EEEELb0EE", !6, i64 0}
!17 = !{!"_ZTSSt13unordered_mapIiSt8functionIFvRSt10unique_ptrIN10multiverso7MessageESt14default_deleteIS3_EEEESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_HashtableIiSt4pairIKiSt8functionIFvRSt10unique_ptrIN10multiverso7MessageESt14default_deleteIS5_EEEEESaISC_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENSE_18_Mod_range_hashingENSE_20_Default_ranged_hashENSE_20_Prime_rehash_policyENSE_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !19, i64 8, !20, i64 16, !19, i64 24, !21, i64 32, !6, i64 48}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!21 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !22, i64 0, !19, i64 8}
!22 = !{!"float", !7, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !19, i64 8, !7, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!26 = !{!"_ZTSSt10unique_ptrISt6threadSt14default_deleteIS0_EE", !27, i64 0}
!27 = !{!"_ZTSSt15__uniq_ptr_dataISt6threadSt14default_deleteIS0_ELb1ELb1EE", !28, i64 0}
!28 = !{!"_ZTSSt15__uniq_ptr_implISt6threadSt14default_deleteIS0_EE", !29, i64 0}
!29 = !{!"_ZTSSt5tupleIJPSt6threadSt14default_deleteIS0_EEE", !30, i64 0}
!30 = !{!"_ZTSSt11_Tuple_implILm0EJPSt6threadSt14default_deleteIS0_EEE", !31, i64 0}
!31 = !{!"_ZTSSt10_Head_baseILm0EPSt6threadLb0EE", !6, i64 0}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!35, !6, i64 120}
!35 = !{!"_ZTSN10multiverso12CommunicatorE", !10, i64 0, !6, i64 120, !26, i64 128}
!36 = !{!37, !37, i64 0}
!37 = !{!"vtable pointer", !8, i64 0}
!38 = !{!39, !39, i64 0}
!39 = !{!"int", !7, i64 0}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}


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

%"class.std::unique_ptr.20" = type { %"struct.std::__uniq_ptr_data.21" }
%"struct.std::__uniq_ptr_data.21" = type { %"class.std::__uniq_ptr_impl.22" }
%"class.std::__uniq_ptr_impl.22" = type { %"class.std::tuple.23" }
%"class.std::tuple.23" = type { %"struct.std::_Tuple_impl.24" }
%"struct.std::_Tuple_impl.24" = type { %"struct.std::_Head_base.27" }
%"struct.std::_Head_base.27" = type { ptr }

@.str.9 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10multiverso12Communicator11CommunicateEv(ptr noundef nonnull align 8 dereferenceable(136) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::unique_ptr.20", align 8
  %3 = getelementptr inbounds i8, ptr %0, i64 72
  %4 = load i8, ptr %3, align 8, !tbaa !5, !range !31, !noundef !32
  %5 = trunc nuw i8 %4 to i1
  br i1 %5, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 120
  br label %7

7:                                                ; preds = %.lr.ph, %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %8 = call noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(56) %8, i8 0, i64 56, i1 false)
  call void @_ZN10multiverso7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #8
  call void @_ZNSt10unique_ptrIN10multiverso7MessageESt14default_deleteIS1_EEC2IS3_vEEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %8) #8
  %9 = load ptr, ptr %6, align 8, !tbaa !33
  %10 = load ptr, ptr %9, align 8, !tbaa !35
  %11 = getelementptr inbounds i8, ptr %10, i64 72
  %12 = load ptr, ptr %11, align 8
  %13 = invoke noundef i32 %12(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull %2)
          to label %14 unwind label %16

14:                                               ; preds = %7
  %15 = icmp sgt i32 %13, 0
  br i1 %15, label %18, label %28, !llvm.loop !37

16:                                               ; preds = %27, %26, %22, %18, %7
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrIN10multiverso7MessageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  resume { ptr, i32 } %17

18:                                               ; preds = %14
  %19 = call noundef ptr @_ZNKSt10unique_ptrIN10multiverso7MessageESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %20 = call noundef i32 @_ZNK10multiverso7Message3dstEv(ptr noundef nonnull align 8 dereferenceable(56) %19)
  %21 = invoke noundef ptr @_ZN10multiverso3Zoo3GetEv()
          to label %22 unwind label %16

22:                                               ; preds = %18
  %23 = invoke noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152) %21)
          to label %24 unwind label %16

24:                                               ; preds = %22
  %25 = icmp eq i32 %20, %23
  br i1 %25, label %27, label %26

26:                                               ; preds = %24
  invoke void (ptr, ...) @_ZN10multiverso3Log5FatalEPKcz(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.9, i32 noundef 86)
          to label %27 unwind label %16

27:                                               ; preds = %26, %24
  invoke void @_ZN10multiverso12Communicator12LocalForwardERSt10unique_ptrINS_7MessageESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %28 unwind label %16

28:                                               ; preds = %27, %14
  call void @_ZNSt10unique_ptrIN10multiverso7MessageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  %29 = load i8, ptr %3, align 8, !tbaa !5, !range !31, !noundef !32
  %30 = trunc nuw i8 %29 to i1
  br i1 %30, label %7, label %._crit_edge

._crit_edge:                                      ; preds = %28, %1
  call void (ptr, ...) @_ZN10multiverso3Log5DebugEPKcz(ptr noundef nonnull @.str.12)
  ret void
}

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

declare void @_ZN10multiverso3Log5FatalEPKcz(ptr noundef, ...) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK10multiverso7Message3dstEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10multiverso7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN10multiverso3Zoo3GetEv() local_unnamed_addr #7 align 2

declare noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #3

declare void @_ZN10multiverso3Log5DebugEPKcz(ptr noundef, ...) local_unnamed_addr #3

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

!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, !22, i64 72}
!6 = !{!"_ZTSN10multiverso5ActorE", !7, i64 8, !16, i64 16, !22, i64 72, !23, i64 80, !25, i64 112}
!7 = !{!"_ZTSSt10unique_ptrIN10multiverso7MtQueueIS_INS0_7MessageESt14default_deleteIS2_EEEES3_IS6_EE", !8, i64 0}
!8 = !{!"_ZTSSt15__uniq_ptr_dataIN10multiverso7MtQueueISt10unique_ptrINS0_7MessageESt14default_deleteIS3_EEEES4_IS7_ELb1ELb1EE", !9, i64 0}
!9 = !{!"_ZTSSt15__uniq_ptr_implIN10multiverso7MtQueueISt10unique_ptrINS0_7MessageESt14default_deleteIS3_EEEES4_IS7_EE", !10, i64 0}
!10 = !{!"_ZTSSt5tupleIJPN10multiverso7MtQueueISt10unique_ptrINS0_7MessageESt14default_deleteIS3_EEEES4_IS7_EEE", !11, i64 0}
!11 = !{!"_ZTSSt11_Tuple_implILm0EJPN10multiverso7MtQueueISt10unique_ptrINS0_7MessageESt14default_deleteIS3_EEEES4_IS7_EEE", !12, i64 0}
!12 = !{!"_ZTSSt10_Head_baseILm0EPN10multiverso7MtQueueISt10unique_ptrINS0_7MessageESt14default_deleteIS3_EEEELb0EE", !13, i64 0}
!13 = !{!"any pointer", !14, i64 0}
!14 = !{!"omnipotent char", !15, i64 0}
!15 = !{!"Simple C++ TBAA"}
!16 = !{!"_ZTSSt13unordered_mapIiSt8functionIFvRSt10unique_ptrIN10multiverso7MessageESt14default_deleteIS3_EEEESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEE", !17, i64 0}
!17 = !{!"_ZTSSt10_HashtableIiSt4pairIKiSt8functionIFvRSt10unique_ptrIN10multiverso7MessageESt14default_deleteIS5_EEEEESaISC_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENSE_18_Mod_range_hashingENSE_20_Default_ranged_hashENSE_20_Prime_rehash_policyENSE_17_Hashtable_traitsILb0ELb0ELb1EEEE", !13, i64 0, !18, i64 8, !19, i64 16, !18, i64 24, !20, i64 32, !13, i64 48}
!18 = !{!"long", !14, i64 0}
!19 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !13, i64 0}
!20 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !21, i64 0, !18, i64 8}
!21 = !{!"float", !14, i64 0}
!22 = !{!"bool", !14, i64 0}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !18, i64 8, !14, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!25 = !{!"_ZTSSt10unique_ptrISt6threadSt14default_deleteIS0_EE", !26, i64 0}
!26 = !{!"_ZTSSt15__uniq_ptr_dataISt6threadSt14default_deleteIS0_ELb1ELb1EE", !27, i64 0}
!27 = !{!"_ZTSSt15__uniq_ptr_implISt6threadSt14default_deleteIS0_EE", !28, i64 0}
!28 = !{!"_ZTSSt5tupleIJPSt6threadSt14default_deleteIS0_EEE", !29, i64 0}
!29 = !{!"_ZTSSt11_Tuple_implILm0EJPSt6threadSt14default_deleteIS0_EEE", !30, i64 0}
!30 = !{!"_ZTSSt10_Head_baseILm0EPSt6threadLb0EE", !13, i64 0}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!34, !13, i64 120}
!34 = !{!"_ZTSN10multiverso12CommunicatorE", !6, i64 0, !13, i64 120, !25, i64 128}
!35 = !{!36, !36, i64 0}
!36 = !{!"vtable pointer", !15, i64 0}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}


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