; LLVM IR from dynexcoin/Dynex :: src/InProcessNode (InProcessNode)

; 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.std::vector.71" = type { %"struct.std::_Vector_base.72" }
%"struct.std::_Vector_base.72" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::error_code" = type { i32, ptr }
%"class.std::unique_lock" = type <{ ptr, i8, [7 x i8] }>
%"struct.DynexCN::tx_verification_context" = type { i8, i8, i8, i8, i8 }
%"class.boost::value_initialized.164" = type { %"class.boost::initialized.165" }
%"class.boost::initialized.165" = type { %"struct.DynexCN::tx_verification_context" }
%"struct.DynexCN::NOTIFY_NEW_TRANSACTIONS_request" = type { %"class.std::vector.66" }
%"class.std::vector.66" = type { %"struct.std::_Vector_base.67" }
%"struct.std::_Vector_base.67" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.DynexCN::InProcessNode" = type { %"class.DynexCN::INode", %"class.DynexCN::IDynexCNProtocolObserver", %"class.DynexCN::ICoreObserver", i32, ptr, ptr, %"class.Tools::ObserverManager", %"struct.DynexCN::BlockHeaderInfo", %"class.boost::asio::io_context", %"class.std::unique_ptr", %"class.std::unique_ptr.10", %"class.DynexCN::BlockchainExplorerDataBuilder", %"class.std::mutex" }
%"class.DynexCN::INode" = type { ptr }
%"class.DynexCN::IDynexCNProtocolObserver" = type { ptr }
%"class.DynexCN::ICoreObserver" = type { ptr }
%"class.Tools::ObserverManager" = type { %"class.std::vector", %"class.std::mutex" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.DynexCN::BlockHeaderInfo" = type { i32, i8, i8, i64, %"struct.Crypto::Hash", %"struct.Crypto::Hash", i32, i8, i32, i64, i64 }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"class.boost::asio::io_context" = type { %"class.boost::asio::execution_context", ptr }
%"class.boost::asio::execution_context" = type { ptr }
%"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.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"class.std::unique_ptr.10" = type { %"struct.std::__uniq_ptr_data.11" }
%"struct.std::__uniq_ptr_data.11" = type { %"class.std::__uniq_ptr_impl.12" }
%"class.std::__uniq_ptr_impl.12" = type { %"class.std::tuple.13" }
%"class.std::tuple.13" = type { %"struct.std::_Tuple_impl.14" }
%"struct.std::_Tuple_impl.14" = type { %"struct.std::_Head_base.17" }
%"struct.std::_Head_base.17" = type { ptr }
%"class.DynexCN::BlockchainExplorerDataBuilder" = type { ptr, ptr }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }

@_ZTISt12system_error = external constant ptr
@_ZTISt9exception = external constant ptr

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

declare i32 @__gxx_personality_v0(...)

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

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

declare void @__cxa_end_catch()

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5 align 2

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

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

declare void @_ZN6Common8asStringB5cxx11ERKSt6vectorIhSaIhEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #6

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7DynexCN13toBinaryArrayINS_11TransactionEEESt6vectorIhSaIhEERKT_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.71") align 8, ptr noundef nonnull align 8 dereferenceable(112)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt12system_error4codeEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local { i32, ptr } @_ZN7DynexCN13InProcessNode18doRelayTransactionERKNS_11TransactionE(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr noundef nonnull align 8 dereferenceable(112) %1) #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::error_code", align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::unique_lock", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.71", align 8
  %11 = alloca %"struct.DynexCN::tx_verification_context", align 1
  %12 = alloca %"class.boost::value_initialized.164", align 1
  %13 = alloca %"struct.DynexCN::NOTIFY_NEW_TRANSACTIONS_request", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #8
  %18 = getelementptr inbounds %"class.DynexCN::InProcessNode", ptr %17, i32 0, i32 12
  call void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9) %6, ptr noundef nonnull align 8 dereferenceable(40) %18)
  %19 = getelementptr inbounds %"class.DynexCN::InProcessNode", ptr %17, i32 0, i32 3
  %20 = load i32, ptr %19, align 8, !tbaa !9
  %21 = icmp ne i32 %20, 1
  br i1 %21, label %22, label %33

22:                                               ; preds = %2
  %23 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 1)
          to label %24 unwind label %29

24:                                               ; preds = %22
  %25 = getelementptr inbounds { i32, ptr }, ptr %3, i32 0, i32 0
  %26 = extractvalue { i32, ptr } %23, 0
  store i32 %26, ptr %25, align 8
  %27 = getelementptr inbounds { i32, ptr }, ptr %3, i32 0, i32 1
  %28 = extractvalue { i32, ptr } %23, 1
  store ptr %28, ptr %27, align 8
  store i32 1, ptr %9, align 4
  br label %34

29:                                               ; preds = %22
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %7, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %8, align 4
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #8
  br label %153

33:                                               ; preds = %2
  store i32 0, ptr %9, align 4
  br label %34

34:                                               ; preds = %33, %24
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #8
  %35 = load i32, ptr %9, align 4
  switch i32 %35, label %161 [
    i32 0, label %36
    i32 1, label %151
  ]

36:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN7DynexCN13toBinaryArrayINS_11TransactionEEESt6vectorIhSaIhEERKT_(ptr dead_on_unwind writable sret(%"class.std::vector.71") align 8 %10, ptr noundef nonnull align 8 dereferenceable(112) %37)
          to label %38 unwind label %56

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 5, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 5, ptr %12) #8
  invoke void @_ZN5boost17value_initializedIN7DynexCN23tx_verification_contextEEC2Ev(ptr noundef nonnull align 1 dereferenceable(5) %12)
          to label %39 unwind label %60

39:                                               ; preds = %38
  %40 = invoke noundef nonnull align 1 dereferenceable(5) ptr @_ZN5boost17value_initializedIN7DynexCN23tx_verification_contextEEcvRS2_Ev(ptr noundef nonnull align 1 dereferenceable(5) %12)
          to label %41 unwind label %60

41:                                               ; preds = %39
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %11, ptr align 1 %40, i64 5, i1 false), !tbaa.struct !42
  call void @llvm.lifetime.end.p0(i64 5, ptr %12) #8
  %42 = getelementptr inbounds %"class.DynexCN::InProcessNode", ptr %17, i32 0, i32 4
  %43 = load ptr, ptr %42, align 8, !tbaa !44
  %44 = load ptr, ptr %43, align 8, !tbaa !45
  %45 = getelementptr inbounds ptr, ptr %44, i64 20
  %46 = load ptr, ptr %45, align 8
  %47 = invoke noundef zeroext i1 %46(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 1 dereferenceable(5) %11, i1 noundef zeroext false)
          to label %48 unwind label %64

48:                                               ; preds = %41
  br i1 %47, label %68, label %49

49:                                               ; preds = %48
  %50 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 6)
          to label %51 unwind label %64

51:                                               ; preds = %49
  %52 = getelementptr inbounds { i32, ptr }, ptr %3, i32 0, i32 0
  %53 = extractvalue { i32, ptr } %50, 0
  store i32 %53, ptr %52, align 8
  %54 = getelementptr inbounds { i32, ptr }, ptr %3, i32 0, i32 1
  %55 = extractvalue { i32, ptr } %50, 1
  store ptr %55, ptr %54, align 8
  store i32 1, ptr %9, align 4
  br label %105

56:                                               ; preds = %36
  %57 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %7, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %8, align 4
  br label %123

60:                                               ; preds = %39, %38
  %61 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %7, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %12) #8
  br label %122

64:                                               ; preds = %83, %72, %49, %41
  %65 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %7, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %8, align 4
  br label %122

68:                                               ; preds = %48
  %69 = getelementptr inbounds %"struct.DynexCN::tx_verification_context", ptr %11, i32 0, i32 1
  %70 = load i8, ptr %69, align 1, !tbaa !47, !range !49, !noundef !50
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %79

72:                                               ; preds = %68
  %73 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 6)
          to label %74 unwind label %64

74:                                               ; preds = %72
  %75 = getelementptr inbounds { i32, ptr }, ptr %3, i32 0, i32 0
  %76 = extractvalue { i32, ptr } %73, 0
  store i32 %76, ptr %75, align 8
  %77 = getelementptr inbounds { i32, ptr }, ptr %3, i32 0, i32 1
  %78 = extractvalue { i32, ptr } %73, 1
  store ptr %78, ptr %77, align 8
  store i32 1, ptr %9, align 4
  br label %105

79:                                               ; preds = %68
  %80 = getelementptr inbounds %"struct.DynexCN::tx_verification_context", ptr %11, i32 0, i32 0
  %81 = load i8, ptr %80, align 1, !tbaa !51, !range !49, !noundef !50
  %82 = trunc i8 %81 to i1
  br i1 %82, label %90, label %83

83:                                               ; preds = %79
  %84 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 6)
          to label %85 unwind label %64

85:                                               ; preds = %83
  %86 = getelementptr inbounds { i32, ptr }, ptr %3, i32 0, i32 0
  %87 = extractvalue { i32, ptr } %84, 0
  store i32 %87, ptr %86, align 8
  %88 = getelementptr inbounds { i32, ptr }, ptr %3, i32 0, i32 1
  %89 = extractvalue { i32, ptr } %84, 1
  store ptr %89, ptr %88, align 8
  store i32 1, ptr %9, align 4
  br label %105

90:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  call void @_ZN7DynexCN31NOTIFY_NEW_TRANSACTIONS_requestC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %91 = getelementptr inbounds %"struct.DynexCN::NOTIFY_NEW_TRANSACTIONS_request", ptr %13, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  invoke void @_ZN6Common8asStringB5cxx11ERKSt6vectorIhSaIhEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %92 unwind label %108

92:                                               ; preds = %90
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %91, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %93 unwind label %112

93:                                               ; preds = %92
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  %94 = getelementptr inbounds %"class.DynexCN::InProcessNode", ptr %17, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !44
  %96 = load ptr, ptr %95, align 8, !tbaa !45
  %97 = getelementptr inbounds ptr, ptr %96, i64 19
  %98 = load ptr, ptr %97, align 8
  %99 = invoke noundef ptr %98(ptr noundef nonnull align 8 dereferenceable(8) %95)
          to label %100 unwind label %117

100:                                              ; preds = %93
  %101 = load ptr, ptr %99, align 8, !tbaa !45
  %102 = getelementptr inbounds ptr, ptr %101, i64 1
  %103 = load ptr, ptr %102, align 8
  invoke void %103(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %104 unwind label %117

104:                                              ; preds = %100
  call void @_ZN7DynexCN31NOTIFY_NEW_TRANSACTIONS_requestD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  store i32 0, ptr %9, align 4
  br label %105

105:                                              ; preds = %104, %85, %74, %51
  call void @llvm.lifetime.end.p0(i64 5, ptr %11) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  %106 = load i32, ptr %9, align 4
  switch i32 %106, label %161 [
    i32 0, label %107
    i32 1, label %151
  ]

107:                                              ; preds = %105
  br label %150

108:                                              ; preds = %90
  %109 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %7, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %8, align 4
  br label %116

112:                                              ; preds = %92
  %113 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %7, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  br label %116

116:                                              ; preds = %112, %108
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br label %121

117:                                              ; preds = %100, %93
  %118 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %7, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %8, align 4
  br label %121

121:                                              ; preds = %117, %116
  call void @_ZN7DynexCN31NOTIFY_NEW_TRANSACTIONS_requestD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  br label %122

122:                                              ; preds = %121, %64, %60
  call void @llvm.lifetime.end.p0(i64 5, ptr %11) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  br label %123

123:                                              ; preds = %122, %56
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %8, align 4
  %126 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt12system_error) #8
  %127 = icmp eq i32 %125, %126
  br i1 %127, label %128, label %133

128:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %129 = load ptr, ptr %7, align 8
  %130 = call ptr @__cxa_begin_catch(ptr %129) #8
  store ptr %130, ptr %16, align 8
  %131 = load ptr, ptr %16, align 8, !tbaa !5
  %132 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt12system_error4codeEv(ptr noundef nonnull align 8 dereferenceable(32) %131) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %132, i64 16, i1 false), !tbaa.struct !52
  store i32 1, ptr %9, align 4
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %151

133:                                              ; preds = %124
  %134 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %135 = icmp eq i32 %125, %134
  br i1 %135, label %136, label %153

136:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %137 = load ptr, ptr %7, align 8
  %138 = call ptr @__cxa_begin_catch(ptr %137) #8
  store ptr %138, ptr %15, align 8
  %139 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 5)
          to label %140 unwind label %145

140:                                              ; preds = %136
  %141 = getelementptr inbounds { i32, ptr }, ptr %3, i32 0, i32 0
  %142 = extractvalue { i32, ptr } %139, 0
  store i32 %142, ptr %141, align 8
  %143 = getelementptr inbounds { i32, ptr }, ptr %3, i32 0, i32 1
  %144 = extractvalue { i32, ptr } %139, 1
  store ptr %144, ptr %143, align 8
  store i32 1, ptr %9, align 4
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %151

145:                                              ; preds = %136
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %7, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %8, align 4
  invoke void @__cxa_end_catch()
          to label %149 unwind label %158

149:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %153

150:                                              ; preds = %107
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  br label %151

151:                                              ; preds = %150, %140, %128, %105, %34
  %152 = load { i32, ptr }, ptr %3, align 8
  ret { i32, ptr } %152

153:                                              ; preds = %149, %133, %29
  %154 = load ptr, ptr %7, align 8
  %155 = load i32, ptr %8, align 4
  %156 = insertvalue { ptr, i32 } poison, ptr %154, 0
  %157 = insertvalue { ptr, i32 } %156, i32 %155, 1
  resume { ptr, i32 } %157

158:                                              ; preds = %145
  %159 = landingpad { ptr, i32 }
          catch ptr null
  %160 = extractvalue { ptr, i32 } %159, 0
  call void @__clang_call_terminate(ptr %160) #9
  unreachable

161:                                              ; preds = %105, %34
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(5) ptr @_ZN5boost17value_initializedIN7DynexCN23tx_verification_contextEEcvRS2_Ev(ptr noundef nonnull align 1 dereferenceable(5)) #5 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { "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 memory(none) }
attributes #8 = { nounwind }
attributes #9 = { 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, !14, i64 24}
!10 = !{!"_ZTSN7DynexCN13InProcessNodeE", !11, i64 0, !12, i64 8, !13, i64 16, !14, i64 24, !6, i64 32, !6, i64 40, !15, i64 48, !22, i64 112, !27, i64 224, !29, i64 240, !35, i64 248, !41, i64 256, !20, i64 272}
!11 = !{!"_ZTSN7DynexCN5INodeE"}
!12 = !{!"_ZTSN7DynexCN24IDynexCNProtocolObserverE"}
!13 = !{!"_ZTSN7DynexCN13ICoreObserverE"}
!14 = !{!"_ZTSN7DynexCN13InProcessNode5StateE", !7, i64 0}
!15 = !{!"_ZTSN5Tools15ObserverManagerIN7DynexCN13INodeObserverEEE", !16, i64 0, !20, i64 24}
!16 = !{!"_ZTSSt6vectorIPN7DynexCN13INodeObserverESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt5mutex", !21, i64 0}
!21 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!22 = !{!"_ZTSN7DynexCN15BlockHeaderInfoE", !23, i64 0, !7, i64 4, !7, i64 5, !24, i64 8, !25, i64 16, !25, i64 48, !23, i64 80, !26, i64 84, !23, i64 88, !24, i64 96, !24, i64 104}
!23 = !{!"int", !7, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"_ZTSN5boost4asio10io_contextE", !28, i64 0, !6, i64 8}
!28 = !{!"_ZTSN5boost4asio17execution_contextE", !6, i64 0}
!29 = !{!"_ZTSSt10unique_ptrISt6threadSt14default_deleteIS0_EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_dataISt6threadSt14default_deleteIS0_ELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_implISt6threadSt14default_deleteIS0_EE", !32, i64 0}
!32 = !{!"_ZTSSt5tupleIJPSt6threadSt14default_deleteIS0_EEE", !33, i64 0}
!33 = !{!"_ZTSSt11_Tuple_implILm0EJPSt6threadSt14default_deleteIS0_EEE", !34, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0EPSt6threadLb0EE", !6, i64 0}
!35 = !{!"_ZTSSt10unique_ptrIN5boost4asio10io_context4workESt14default_deleteIS3_EE", !36, i64 0}
!36 = !{!"_ZTSSt15__uniq_ptr_dataIN5boost4asio10io_context4workESt14default_deleteIS3_ELb1ELb1EE", !37, i64 0}
!37 = !{!"_ZTSSt15__uniq_ptr_implIN5boost4asio10io_context4workESt14default_deleteIS3_EE", !38, i64 0}
!38 = !{!"_ZTSSt5tupleIJPN5boost4asio10io_context4workESt14default_deleteIS3_EEE", !39, i64 0}
!39 = !{!"_ZTSSt11_Tuple_implILm0EJPN5boost4asio10io_context4workESt14default_deleteIS3_EEE", !40, i64 0}
!40 = !{!"_ZTSSt10_Head_baseILm0EPN5boost4asio10io_context4workELb0EE", !6, i64 0}
!41 = !{!"_ZTSN7DynexCN29BlockchainExplorerDataBuilderE", !6, i64 0, !6, i64 8}
!42 = !{i64 0, i64 1, !43, i64 1, i64 1, !43, i64 2, i64 1, !43, i64 3, i64 1, !43, i64 4, i64 1, !43}
!43 = !{!26, !26, i64 0}
!44 = !{!10, !6, i64 32}
!45 = !{!46, !46, i64 0}
!46 = !{!"vtable pointer", !8, i64 0}
!47 = !{!48, !26, i64 1}
!48 = !{!"_ZTSN7DynexCN23tx_verification_contextE", !26, i64 0, !26, i64 1, !26, i64 2, !26, i64 3, !26, i64 4}
!49 = !{i8 0, i8 2}
!50 = !{}
!51 = !{!48, !26, i64 0}
!52 = !{i64 0, i64 4, !53, i64 8, i64 8, !5}
!53 = !{!23, !23, 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.std::vector.71" = type { %"struct.std::_Vector_base.72" }
%"struct.std::_Vector_base.72" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::error_code" = type { i32, ptr }
%"class.std::unique_lock" = type <{ ptr, i8, [7 x i8] }>
%"struct.DynexCN::tx_verification_context" = type { i8, i8, i8, i8, i8 }
%"class.boost::value_initialized.164" = type { %"class.boost::initialized.165" }
%"class.boost::initialized.165" = type { %"struct.DynexCN::tx_verification_context" }
%"struct.DynexCN::NOTIFY_NEW_TRANSACTIONS_request" = type { %"class.std::vector.66" }
%"class.std::vector.66" = type { %"struct.std::_Vector_base.67" }
%"struct.std::_Vector_base.67" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTISt12system_error = external constant ptr
@_ZTISt9exception = external constant ptr

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef) local_unnamed_addr #3

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

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

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

declare void @_ZN6Common8asStringB5cxx11ERKSt6vectorIhSaIhEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7DynexCN13toBinaryArrayINS_11TransactionEEESt6vectorIhSaIhEERKT_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.71") align 8, ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local { i32, ptr } @_ZN7DynexCN13InProcessNode18doRelayTransactionERKNS_11TransactionE(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr noundef nonnull align 8 dereferenceable(112) %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::error_code", align 8
  %4 = alloca %"class.std::unique_lock", align 8
  %5 = alloca %"class.std::vector.71", align 8
  %6 = alloca %"struct.DynexCN::tx_verification_context", align 1
  %7 = alloca %"class.boost::value_initialized.164", align 1
  %8 = alloca %"struct.DynexCN::NOTIFY_NEW_TRANSACTIONS_request", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %10 = getelementptr inbounds i8, ptr %0, i64 272
  call void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9) %4, ptr noundef nonnull align 8 dereferenceable(40) %10)
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %.not.not = icmp eq i32 %12, 1
  br i1 %.not.not, label %18, label %13

13:                                               ; preds = %2
  %14 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 1)
  %15 = extractvalue { i32, ptr } %14, 0
  store i32 %15, ptr %3, align 8
  %16 = getelementptr inbounds i8, ptr %3, i64 8
  %17 = extractvalue { i32, ptr } %14, 1
  store ptr %17, ptr %16, align 8
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  br label %91

18:                                               ; preds = %2
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  invoke void @_ZN7DynexCN13toBinaryArrayINS_11TransactionEEESt6vectorIhSaIhEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.71") align 8 %5, ptr noundef nonnull align 8 dereferenceable(112) %1)
          to label %19 unwind label %33

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %7) #7
  invoke void @_ZN5boost17value_initializedIN7DynexCN23tx_verification_contextEEC2Ev(ptr noundef nonnull align 1 dereferenceable(5) %7)
          to label %20 unwind label %35

20:                                               ; preds = %19
  %21 = invoke noundef nonnull align 1 dereferenceable(5) ptr @_ZN5boost17value_initializedIN7DynexCN23tx_verification_contextEEcvRS2_Ev(ptr noundef nonnull align 1 dereferenceable(5) %7)
          to label %22 unwind label %35

22:                                               ; preds = %20
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %6, ptr noundef nonnull align 1 dereferenceable(5) %21, i64 5, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %7) #7
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  %24 = load ptr, ptr %23, align 8, !tbaa !43
  %25 = load ptr, ptr %24, align 8, !tbaa !44
  %26 = getelementptr inbounds i8, ptr %25, i64 160
  %27 = load ptr, ptr %26, align 8
  %28 = invoke noundef zeroext i1 %27(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 1 dereferenceable(5) %6, i1 noundef zeroext false)
          to label %29 unwind label %37

29:                                               ; preds = %22
  br i1 %28, label %39, label %30

30:                                               ; preds = %29
  %31 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 6)
  %32 = extractvalue { i32, ptr } %31, 0
  store i32 %32, ptr %3, align 8
  br label %.thread23

33:                                               ; preds = %18
  %34 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  br label %75

35:                                               ; preds = %20, %19
  %36 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %7) #7
  br label %74

37:                                               ; preds = %22
  %38 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  br label %74

39:                                               ; preds = %29
  %40 = getelementptr inbounds i8, ptr %6, i64 1
  %41 = load i8, ptr %40, align 1, !tbaa !46, !range !48, !noundef !49
  %42 = trunc nuw i8 %41 to i1
  br i1 %42, label %43, label %46

43:                                               ; preds = %39
  %44 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 6)
  %45 = extractvalue { i32, ptr } %44, 0
  store i32 %45, ptr %3, align 8
  br label %.thread23

46:                                               ; preds = %39
  %47 = load i8, ptr %6, align 1, !tbaa !50, !range !48, !noundef !49
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %52, label %49

49:                                               ; preds = %46
  %50 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 6)
  %51 = extractvalue { i32, ptr } %50, 0
  store i32 %51, ptr %3, align 8
  br label %.thread23

52:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @_ZN7DynexCN31NOTIFY_NEW_TRANSACTIONS_requestC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  invoke void @_ZN6Common8asStringB5cxx11ERKSt6vectorIhSaIhEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %53 unwind label %66

53:                                               ; preds = %52
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %54 unwind label %68

54:                                               ; preds = %53
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  %55 = load ptr, ptr %23, align 8, !tbaa !43
  %56 = load ptr, ptr %55, align 8, !tbaa !44
  %57 = getelementptr inbounds i8, ptr %56, i64 152
  %58 = load ptr, ptr %57, align 8
  %59 = invoke noundef ptr %58(ptr noundef nonnull align 8 dereferenceable(8) %55)
          to label %60 unwind label %71

60:                                               ; preds = %54
  %61 = load ptr, ptr %59, align 8, !tbaa !44
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  %63 = load ptr, ptr %62, align 8
  invoke void %63(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %90 unwind label %71

.thread23:                                        ; preds = %43, %49, %30
  %.sink27 = phi { i32, ptr } [ %44, %43 ], [ %50, %49 ], [ %31, %30 ]
  %64 = getelementptr inbounds i8, ptr %3, i64 8
  %65 = extractvalue { i32, ptr } %.sink27, 1
  store ptr %65, ptr %64, align 8
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %6) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %91

66:                                               ; preds = %52
  %67 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  br label %70

68:                                               ; preds = %53
  %69 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %70

70:                                               ; preds = %68, %66
  %.pn = phi { ptr, i32 } [ %69, %68 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %73

71:                                               ; preds = %60, %54
  %72 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  br label %73

73:                                               ; preds = %71, %70
  %.pn16 = phi { ptr, i32 } [ %72, %71 ], [ %.pn, %70 ]
  call void @_ZN7DynexCN31NOTIFY_NEW_TRANSACTIONS_requestD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  br label %74

74:                                               ; preds = %73, %37, %35
  %.pn16.pn = phi { ptr, i32 } [ %.pn16, %73 ], [ %38, %37 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %6) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  br label %75

75:                                               ; preds = %74, %33
  %.pn16.pn.pn = phi { ptr, i32 } [ %.pn16.pn, %74 ], [ %34, %33 ]
  %.3 = extractvalue { ptr, i32 } %.pn16.pn.pn, 0
  %.312 = extractvalue { ptr, i32 } %.pn16.pn.pn, 1
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  %76 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt12system_error) #7
  %77 = icmp eq i32 %.312, %76
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  %79 = call ptr @__cxa_begin_catch(ptr %.3) #7
  %80 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt12system_error4codeEv(ptr noundef nonnull align 8 dereferenceable(32) %79) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %80, i64 16, i1 false), !tbaa.struct !51
  call void @__cxa_end_catch()
  br label %91

81:                                               ; preds = %75
  %82 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %83 = icmp eq i32 %.312, %82
  br i1 %83, label %84, label %92

84:                                               ; preds = %81
  %85 = call ptr @__cxa_begin_catch(ptr %.3) #7
  %86 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 5)
  %87 = extractvalue { i32, ptr } %86, 0
  store i32 %87, ptr %3, align 8
  %88 = getelementptr inbounds i8, ptr %3, i64 8
  %89 = extractvalue { i32, ptr } %86, 1
  store ptr %89, ptr %88, align 8
  call void @__cxa_end_catch()
  br label %91

90:                                               ; preds = %60
  call void @_ZN7DynexCN31NOTIFY_NEW_TRANSACTIONS_requestD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %6) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  br label %91

91:                                               ; preds = %.thread23, %13, %90, %84, %78
  %.fca.0.load = load i32, ptr %3, align 8
  %.fca.0.insert = insertvalue { i32, ptr } poison, i32 %.fca.0.load, 0
  %.fca.1.gep = getelementptr inbounds i8, ptr %3, i64 8
  %.fca.1.load = load ptr, ptr %.fca.1.gep, align 8
  %.fca.1.insert = insertvalue { i32, ptr } %.fca.0.insert, ptr %.fca.1.load, 1
  ret { i32, ptr } %.fca.1.insert

92:                                               ; preds = %81
  resume { ptr, i32 } %.pn16.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost17value_initializedIN7DynexCN23tx_verification_contextEEC2Ev(ptr noundef nonnull align 1 dereferenceable(5)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(5) ptr @_ZN5boost17value_initializedIN7DynexCN23tx_verification_contextEEcvRS2_Ev(ptr noundef nonnull align 1 dereferenceable(5)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN31NOTIFY_NEW_TRANSACTIONS_requestC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN31NOTIFY_NEW_TRANSACTIONS_requestD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { 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 #5 = { "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 = { nofree nosync nounwind memory(none) }
attributes #7 = { 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, !10, i64 24}
!6 = !{!"_ZTSN7DynexCN13InProcessNodeE", !7, i64 0, !8, i64 8, !9, i64 16, !10, i64 24, !13, i64 32, !13, i64 40, !14, i64 48, !21, i64 112, !26, i64 224, !28, i64 240, !34, i64 248, !40, i64 256, !19, i64 272}
!7 = !{!"_ZTSN7DynexCN5INodeE"}
!8 = !{!"_ZTSN7DynexCN24IDynexCNProtocolObserverE"}
!9 = !{!"_ZTSN7DynexCN13ICoreObserverE"}
!10 = !{!"_ZTSN7DynexCN13InProcessNode5StateE", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"any pointer", !11, i64 0}
!14 = !{!"_ZTSN5Tools15ObserverManagerIN7DynexCN13INodeObserverEEE", !15, i64 0, !19, i64 24}
!15 = !{!"_ZTSSt6vectorIPN7DynexCN13INodeObserverESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!19 = !{!"_ZTSSt5mutex", !20, i64 0}
!20 = !{!"_ZTSSt12__mutex_base", !11, i64 0}
!21 = !{!"_ZTSN7DynexCN15BlockHeaderInfoE", !22, i64 0, !11, i64 4, !11, i64 5, !23, i64 8, !24, i64 16, !24, i64 48, !22, i64 80, !25, i64 84, !22, i64 88, !23, i64 96, !23, i64 104}
!22 = !{!"int", !11, i64 0}
!23 = !{!"long", !11, i64 0}
!24 = !{!"_ZTSN6Crypto4HashE", !11, i64 0}
!25 = !{!"bool", !11, i64 0}
!26 = !{!"_ZTSN5boost4asio10io_contextE", !27, i64 0, !13, i64 8}
!27 = !{!"_ZTSN5boost4asio17execution_contextE", !13, i64 0}
!28 = !{!"_ZTSSt10unique_ptrISt6threadSt14default_deleteIS0_EE", !29, i64 0}
!29 = !{!"_ZTSSt15__uniq_ptr_dataISt6threadSt14default_deleteIS0_ELb1ELb1EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_implISt6threadSt14default_deleteIS0_EE", !31, i64 0}
!31 = !{!"_ZTSSt5tupleIJPSt6threadSt14default_deleteIS0_EEE", !32, i64 0}
!32 = !{!"_ZTSSt11_Tuple_implILm0EJPSt6threadSt14default_deleteIS0_EEE", !33, i64 0}
!33 = !{!"_ZTSSt10_Head_baseILm0EPSt6threadLb0EE", !13, i64 0}
!34 = !{!"_ZTSSt10unique_ptrIN5boost4asio10io_context4workESt14default_deleteIS3_EE", !35, i64 0}
!35 = !{!"_ZTSSt15__uniq_ptr_dataIN5boost4asio10io_context4workESt14default_deleteIS3_ELb1ELb1EE", !36, i64 0}
!36 = !{!"_ZTSSt15__uniq_ptr_implIN5boost4asio10io_context4workESt14default_deleteIS3_EE", !37, i64 0}
!37 = !{!"_ZTSSt5tupleIJPN5boost4asio10io_context4workESt14default_deleteIS3_EEE", !38, i64 0}
!38 = !{!"_ZTSSt11_Tuple_implILm0EJPN5boost4asio10io_context4workESt14default_deleteIS3_EEE", !39, i64 0}
!39 = !{!"_ZTSSt10_Head_baseILm0EPN5boost4asio10io_context4workELb0EE", !13, i64 0}
!40 = !{!"_ZTSN7DynexCN29BlockchainExplorerDataBuilderE", !13, i64 0, !13, i64 8}
!41 = !{i64 0, i64 1, !42, i64 1, i64 1, !42, i64 2, i64 1, !42, i64 3, i64 1, !42, i64 4, i64 1, !42}
!42 = !{!25, !25, i64 0}
!43 = !{!6, !13, i64 32}
!44 = !{!45, !45, i64 0}
!45 = !{!"vtable pointer", !12, i64 0}
!46 = !{!47, !25, i64 1}
!47 = !{!"_ZTSN7DynexCN23tx_verification_contextE", !25, i64 0, !25, i64 1, !25, i64 2, !25, i64 3, !25, i64 4}
!48 = !{i8 0, i8 2}
!49 = !{}
!50 = !{!47, !25, i64 0}
!51 = !{i64 0, i64 4, !52, i64 8, i64 8, !53}
!52 = !{!22, !22, i64 0}
!53 = !{!13, !13, i64 0}


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