; LLVM IR from microsoft/Multiverso :: src/zoo.ll (ZN10multiverso3Zoo7StartPSEv)

; 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.multiverso::Zoo" = type { %"class.std::unordered_map", %"class.std::unique_ptr", ptr, %"class.std::vector", %"class.std::vector.10", %"class.std::vector.10", i32, i32 }
%"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::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.6" }
%"struct.std::_Head_base.6" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<multiverso::Node, std::allocator<multiverso::Node>>::_Vector_impl" }
%"struct.std::_Vector_base<multiverso::Node, std::allocator<multiverso::Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<multiverso::Node, std::allocator<multiverso::Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<multiverso::Node, std::allocator<multiverso::Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.multiverso::Node" = type { i32, i32, i32, i32 }

@_ZN10multiversoL17MV_CONFIG_ps_roleB5cxx11E = external hidden global ptr, align 8
@.str.22 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [40 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: mustprogress uwtable
define dso_local void @_ZN10multiverso3Zoo7StartPSEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %11 = load ptr, ptr @_ZN10multiversoL17MV_CONFIG_ps_roleB5cxx11E, align 8, !tbaa !5
  %12 = call noundef i32 @_ZN10multiverso12_GLOBAL__N_111ParsePSRoleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %11)
  store i32 %12, ptr %3, align 4, !tbaa !9
  %13 = load i32, ptr %3, align 4, !tbaa !9
  %14 = icmp ne i32 %13, -1
  br i1 %14, label %16, label %15

15:                                               ; preds = %1
  call void (ptr, ...) @_ZN10multiverso3Log5FatalEPKcz(ptr noundef @.str.23, ptr noundef @.str.22, i32 noundef 75)
  br label %16

16:                                               ; preds = %15, %1
  %17 = getelementptr inbounds %"class.multiverso::Zoo", ptr %10, i32 0, i32 3
  %18 = call noundef i32 @_ZNK10multiverso3Zoo4sizeEv(ptr noundef nonnull align 8 dereferenceable(152) %10)
  %19 = sext i32 %18 to i64
  call void @_ZNSt6vectorIN10multiverso4NodeESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %19)
  %20 = call noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152) %10)
  %21 = getelementptr inbounds %"class.multiverso::Zoo", ptr %10, i32 0, i32 3
  %22 = call noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152) %10)
  %23 = sext i32 %22 to i64
  %24 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN10multiverso4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %23) #6
  %25 = getelementptr inbounds %"struct.multiverso::Node", ptr %24, i32 0, i32 0
  store i32 %20, ptr %25, align 4, !tbaa !11
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = getelementptr inbounds %"class.multiverso::Zoo", ptr %10, i32 0, i32 3
  %28 = call noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152) %10)
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN10multiverso4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #6
  %31 = getelementptr inbounds %"struct.multiverso::Node", ptr %30, i32 0, i32 1
  store i32 %26, ptr %31, align 4, !tbaa !13
  %32 = getelementptr inbounds %"class.multiverso::Zoo", ptr %10, i32 0, i32 1
  %33 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #7
  invoke void @_ZN10multiverso7MtQueueISt10unique_ptrINS_7MessageESt14default_deleteIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(169) %33)
          to label %34 unwind label %41

34:                                               ; preds = %16
  call void @_ZNSt10unique_ptrIN10multiverso7MtQueueIS_INS0_7MessageESt14default_deleteIS2_EEEES3_IS6_EE5resetEPS6_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef %33) #6
  %35 = call noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152) %10)
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %49

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %38 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 136) #7
  invoke void @_ZN10multiverso10ControllerC1Ev(ptr noundef nonnull align 8 dereferenceable(136) %38)
          to label %39 unwind label %45

39:                                               ; preds = %37
  store ptr %38, ptr %6, align 8, !tbaa !5
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN10multiverso5Actor5StartEv(ptr noundef nonnull align 8 dereferenceable(120) %40)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %49

41:                                               ; preds = %16
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %4, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %33, i64 noundef 176) #8
  br label %76

45:                                               ; preds = %37
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %4, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %38, i64 noundef 136) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %76

49:                                               ; preds = %39, %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %50 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 136) #7
  invoke void @_ZN10multiverso12CommunicatorC1Ev(ptr noundef nonnull align 8 dereferenceable(136) %50)
          to label %51 unwind label %58

51:                                               ; preds = %49
  store ptr %50, ptr %7, align 8, !tbaa !5
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10multiverso5Actor5StartEv(ptr noundef nonnull align 8 dereferenceable(120) %52)
  call void @_ZN10multiverso3Zoo12RegisterNodeEv(ptr noundef nonnull align 8 dereferenceable(152) %10)
  %53 = load i32, ptr %3, align 4, !tbaa !9
  %54 = call noundef zeroext i1 @_ZN10multiverso4node9is_serverEi(i32 noundef %53)
  br i1 %54, label %55, label %62

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %56 = call noundef ptr @_ZN10multiverso6Server9GetServerEv()
  store ptr %56, ptr %8, align 8, !tbaa !5
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN10multiverso5Actor5StartEv(ptr noundef nonnull align 8 dereferenceable(120) %57)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %62

58:                                               ; preds = %49
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %4, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %50, i64 noundef 136) #8
  br label %75

62:                                               ; preds = %55, %51
  %63 = load i32, ptr %3, align 4, !tbaa !9
  %64 = call noundef zeroext i1 @_ZN10multiverso4node9is_workerEi(i32 noundef %63)
  br i1 %64, label %65, label %73

65:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %66 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 144) #7
  invoke void @_ZN10multiverso6WorkerC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %66)
          to label %67 unwind label %69

67:                                               ; preds = %65
  store ptr %66, ptr %9, align 8, !tbaa !5
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN10multiverso5Actor5StartEv(ptr noundef nonnull align 8 dereferenceable(120) %68)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %73

69:                                               ; preds = %65
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %4, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %66, i64 noundef 144) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %75

73:                                               ; preds = %67, %62
  call void @_ZN10multiverso3Zoo7BarrierEv(ptr noundef nonnull align 8 dereferenceable(152) %10)
  %74 = call noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152) %10)
  call void (ptr, ...) @_ZN10multiverso3Log4InfoEPKcz(ptr noundef @.str.24, i32 noundef %74)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret void

75:                                               ; preds = %69, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %76

76:                                               ; preds = %75, %45, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %77

77:                                               ; preds = %76
  %78 = load ptr, ptr %4, align 8
  %79 = load i32, ptr %5, align 4
  %80 = insertvalue { ptr, i32 } poison, ptr %78, 0
  %81 = insertvalue { ptr, i32 } %80, i32 %79, 1
  resume { ptr, i32 } %81
}

declare void @_ZN10multiverso3Log4InfoEPKcz(ptr noundef, ...) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK10multiverso3Zoo4sizeEv(ptr noundef nonnull align 8 dereferenceable(152)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN10multiverso12_GLOBAL__N_111ParsePSRoleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN10multiverso4NodeESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN10multiverso4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10multiverso7MtQueueISt10unique_ptrINS_7MessageESt14default_deleteIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(169)) unnamed_addr #1 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

declare void @_ZN10multiverso10ControllerC1Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #2

declare void @_ZN10multiverso5Actor5StartEv(ptr noundef nonnull align 8 dereferenceable(120)) #2

declare void @_ZN10multiverso12CommunicatorC1Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10multiverso3Zoo12RegisterNodeEv(ptr noundef nonnull align 8 dereferenceable(152)) #1 align 2

declare noundef zeroext i1 @_ZN10multiverso4node9is_serverEi(i32 noundef) #2

declare noundef ptr @_ZN10multiverso6Server9GetServerEv() #2

declare noundef zeroext i1 @_ZN10multiverso4node9is_workerEi(i32 noundef) #2

declare void @_ZN10multiverso6WorkerC1Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10multiverso3Zoo7BarrierEv(ptr noundef nonnull align 8 dereferenceable(152)) #1 align 2

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 = { "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 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 = { 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 #5 = { nobuiltin 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN10multiverso4NodeE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!13 = !{!12, !10, i64 4}


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

@_ZN10multiversoL17MV_CONFIG_ps_roleB5cxx11E = external hidden local_unnamed_addr global ptr, align 8
@.str.22 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [40 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10multiverso3Zoo7StartPSEv(ptr noundef nonnull align 8 dereferenceable(152) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = load ptr, ptr @_ZN10multiversoL17MV_CONFIG_ps_roleB5cxx11E, align 8, !tbaa !5
  %3 = tail call noundef i32 @_ZN10multiverso12_GLOBAL__N_111ParsePSRoleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %.not = icmp eq i32 %3, -1
  br i1 %.not, label %4, label %5

4:                                                ; preds = %1
  tail call void (ptr, ...) @_ZN10multiverso3Log5FatalEPKcz(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.22, i32 noundef 75)
  br label %5

5:                                                ; preds = %4, %1
  %6 = getelementptr inbounds i8, ptr %0, i64 72
  %7 = tail call noundef i32 @_ZNK10multiverso3Zoo4sizeEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
  %8 = sext i32 %7 to i64
  tail call void @_ZNSt6vectorIN10multiverso4NodeESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %8)
  %9 = tail call noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
  %10 = tail call noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
  %11 = sext i32 %10 to i64
  %12 = tail call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN10multiverso4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %11) #5
  store i32 %9, ptr %12, align 4, !tbaa !9
  %13 = tail call noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
  %14 = sext i32 %13 to i64
  %15 = tail call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN10multiverso4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %14) #5
  %16 = getelementptr inbounds i8, ptr %15, i64 4
  store i32 %3, ptr %16, align 4, !tbaa !12
  %17 = tail call noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #6
  invoke void @_ZN10multiverso7MtQueueISt10unique_ptrINS_7MessageESt14default_deleteIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(169) %17)
          to label %18 unwind label %25

18:                                               ; preds = %5
  %19 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZNSt10unique_ptrIN10multiverso7MtQueueIS_INS0_7MessageESt14default_deleteIS2_EEEES3_IS6_EE5resetEPS6_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull %17) #5
  %20 = tail call noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %29

22:                                               ; preds = %18
  %23 = tail call noalias noundef nonnull dereferenceable(136) ptr @_Znwm(i64 noundef 136) #6
  invoke void @_ZN10multiverso10ControllerC1Ev(ptr noundef nonnull align 8 dereferenceable(136) %23)
          to label %24 unwind label %27

24:                                               ; preds = %22
  tail call void @_ZN10multiverso5Actor5StartEv(ptr noundef nonnull align 8 dereferenceable(120) %23)
  br label %29

25:                                               ; preds = %5
  %26 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %17, i64 noundef 176) #7
  br label %46

27:                                               ; preds = %22
  %28 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %23, i64 noundef 136) #7
  br label %46

29:                                               ; preds = %24, %18
  %30 = tail call noalias noundef nonnull dereferenceable(136) ptr @_Znwm(i64 noundef 136) #6
  invoke void @_ZN10multiverso12CommunicatorC1Ev(ptr noundef nonnull align 8 dereferenceable(136) %30)
          to label %31 unwind label %35

31:                                               ; preds = %29
  tail call void @_ZN10multiverso5Actor5StartEv(ptr noundef nonnull align 8 dereferenceable(120) %30)
  tail call void @_ZN10multiverso3Zoo12RegisterNodeEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
  %32 = tail call noundef zeroext i1 @_ZN10multiverso4node9is_serverEi(i32 noundef %3)
  br i1 %32, label %33, label %37

33:                                               ; preds = %31
  %34 = tail call noundef ptr @_ZN10multiverso6Server9GetServerEv()
  tail call void @_ZN10multiverso5Actor5StartEv(ptr noundef nonnull align 8 dereferenceable(120) %34)
  br label %37

35:                                               ; preds = %29
  %36 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %30, i64 noundef 136) #7
  br label %46

37:                                               ; preds = %33, %31
  %38 = tail call noundef zeroext i1 @_ZN10multiverso4node9is_workerEi(i32 noundef %3)
  br i1 %38, label %39, label %44

39:                                               ; preds = %37
  %40 = tail call noalias noundef nonnull dereferenceable(144) ptr @_Znwm(i64 noundef 144) #6
  invoke void @_ZN10multiverso6WorkerC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %40)
          to label %41 unwind label %42

41:                                               ; preds = %39
  tail call void @_ZN10multiverso5Actor5StartEv(ptr noundef nonnull align 8 dereferenceable(120) %40)
  br label %44

42:                                               ; preds = %39
  %43 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %40, i64 noundef 144) #7
  br label %46

44:                                               ; preds = %41, %37
  tail call void @_ZN10multiverso3Zoo7BarrierEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
  %45 = tail call noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
  tail call void (ptr, ...) @_ZN10multiverso3Log4InfoEPKcz(ptr noundef nonnull @.str.24, i32 noundef %45)
  ret void

46:                                               ; preds = %35, %42, %27, %25
  %.pn.pn = phi { ptr, i32 } [ %28, %27 ], [ %26, %25 ], [ %43, %42 ], [ %36, %35 ]
  resume { ptr, i32 } %.pn.pn
}

declare void @_ZN10multiverso3Log4InfoEPKcz(ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK10multiverso3Zoo4rankEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK10multiverso3Zoo4sizeEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN10multiverso12_GLOBAL__N_111ParsePSRoleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN10multiverso4NodeESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN10multiverso4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10multiverso7MtQueueISt10unique_ptrINS_7MessageESt14default_deleteIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(169)) unnamed_addr #0 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

declare void @_ZN10multiverso10ControllerC1Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #1

declare void @_ZN10multiverso5Actor5StartEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #1

declare void @_ZN10multiverso12CommunicatorC1Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10multiverso3Zoo12RegisterNodeEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #0 align 2

declare noundef zeroext i1 @_ZN10multiverso4node9is_serverEi(i32 noundef) local_unnamed_addr #1

declare noundef ptr @_ZN10multiverso6Server9GetServerEv() local_unnamed_addr #1

declare noundef zeroext i1 @_ZN10multiverso4node9is_workerEi(i32 noundef) local_unnamed_addr #1

declare void @_ZN10multiverso6WorkerC1Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10multiverso3Zoo7BarrierEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #0 align 2

attributes #0 = { 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 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 = { 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 #4 = { nobuiltin 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 = { nounwind }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin 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, !11, i64 0}
!10 = !{!"_ZTSN10multiverso4NodeE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}


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