; LLVM IR from dynexcoin/Dynex :: src/NodeRpcProxy/NodeRpcProxy.ll (ZN7DynexCN12NodeRpcProxy10doGetBlockEjRNS_12BlockDetailsE)

; 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::error_code" = type { i32, ptr }
%"struct.DynexCN::COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT::request" = type { i32 }
%"class.boost::value_initialized.340" = type { %"class.boost::initialized.341" }
%"class.boost::initialized.341" = type { %"struct.DynexCN::COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT::request" }
%"struct.DynexCN::COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT::response" = type { %"struct.DynexCN::BlockDetails", %"class.std::__cxx11::basic_string" }
%"struct.DynexCN::BlockDetails" = type { i8, i8, i64, %"struct.Crypto::Hash", %"struct.Crypto::Hash", i32, i8, i32, i32, %"struct.Crypto::Hash", i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, i64, %"class.std::vector.272" }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"class.std::vector.272" = type { %"struct.std::_Vector_base.273" }
%"struct.std::_Vector_base.273" = type { %"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.boost::value_initialized.342" = type { %"class.boost::initialized.343" }
%"class.boost::initialized.343" = type { %"struct.DynexCN::COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT::response" }
%"class.std::allocator" = type { i8 }

@.str.23 = external hidden unnamed_addr constant [29 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

; 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: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local { i32, ptr } @_ZN7DynexCN12NodeRpcProxy10doGetBlockEjRNS_12BlockDetailsE(ptr noundef nonnull align 8 dereferenceable(560) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(248) %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::error_code", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.DynexCN::COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT::request", align 4
  %9 = alloca %"class.boost::value_initialized.340", align 4
  %10 = alloca %"struct.DynexCN::COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT::response", align 8
  %11 = alloca %"class.boost::value_initialized.342", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @_ZN5boost17value_initializedIN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT7requestEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %9)
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5boost17value_initializedIN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT7requestEEcvRS3_Ev(ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %18, i64 4, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 280, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 280, ptr %11) #6
  call void @_ZN5boost17value_initializedIN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseEEC2Ev(ptr noundef nonnull align 8 dereferenceable(280) %11)
  %19 = invoke noundef nonnull align 8 dereferenceable(280) ptr @_ZN5boost17value_initializedIN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseEEcvRS3_Ev(ptr noundef nonnull align 8 dereferenceable(280) %11)
          to label %20 unwind label %33

20:                                               ; preds = %3
  invoke void @_ZN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(280) %10, ptr noundef nonnull align 8 dereferenceable(280) %19)
          to label %21 unwind label %33

21:                                               ; preds = %20
  call void @_ZN5boost17value_initializedIN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseEED2Ev(ptr noundef nonnull align 8 dereferenceable(280) %11) #6
  call void @llvm.lifetime.end.p0(i64 280, ptr %11) #6
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = getelementptr inbounds %"struct.DynexCN::COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT::request", ptr %8, i32 0, i32 0
  store i32 %22, ptr %23, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.23, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %24 unwind label %37

24:                                               ; preds = %21
  %25 = invoke { i32, ptr } @_ZN7DynexCN12NodeRpcProxy11jsonCommandINS_39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT7requestENS2_8responseEEESt10error_codeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RT0_(ptr noundef nonnull align 8 dereferenceable(560) %17, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(280) %10)
          to label %26 unwind label %41

26:                                               ; preds = %24
  %27 = getelementptr inbounds { i32, ptr }, ptr %4, i32 0, i32 0
  %28 = extractvalue { i32, ptr } %25, 0
  store i32 %28, ptr %27, align 8
  %29 = getelementptr inbounds { i32, ptr }, ptr %4, i32 0, i32 1
  %30 = extractvalue { i32, ptr } %25, 1
  store ptr %30, ptr %29, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  %31 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  br i1 %31, label %32, label %46

32:                                               ; preds = %26
  store i32 1, ptr %16, align 4
  br label %50

33:                                               ; preds = %20, %3
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %12, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %13, align 4
  call void @_ZN5boost17value_initializedIN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseEED2Ev(ptr noundef nonnull align 8 dereferenceable(280) %11) #6
  call void @llvm.lifetime.end.p0(i64 280, ptr %11) #6
  br label %52

37:                                               ; preds = %21
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %12, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %13, align 4
  br label %45

41:                                               ; preds = %24
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %12, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %45

45:                                               ; preds = %41, %37
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  call void @_ZN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %10) #6
  br label %52

46:                                               ; preds = %26
  %47 = getelementptr inbounds %"struct.DynexCN::COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT::response", ptr %10, i32 0, i32 0
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = call noundef nonnull align 8 dereferenceable(248) ptr @_ZN7DynexCN12BlockDetailsaSEOS0_(ptr noundef nonnull align 8 dereferenceable(248) %48, ptr noundef nonnull align 8 dereferenceable(248) %47) #6
  store i32 1, ptr %16, align 4
  br label %50

50:                                               ; preds = %46, %32
  call void @_ZN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %10) #6
  call void @llvm.lifetime.end.p0(i64 280, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %51 = load { i32, ptr }, ptr %4, align 8
  ret { i32, ptr } %51

52:                                               ; preds = %45, %33
  call void @llvm.lifetime.end.p0(i64 280, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %53

53:                                               ; preds = %52
  %54 = load ptr, ptr %12, align 8
  %55 = load i32, ptr %13, align 4
  %56 = insertvalue { ptr, i32 } poison, ptr %54, 0
  %57 = insertvalue { ptr, i32 } %56, i32 %55, 1
  resume { ptr, i32 } %57
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5boost17value_initializedIN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT7requestEEcvRS3_Ev(ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(280) ptr @_ZN5boost17value_initializedIN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseEEcvRS3_Ev(ptr noundef nonnull align 8 dereferenceable(280)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i32, ptr } @_ZN7DynexCN12NodeRpcProxy11jsonCommandINS_39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT7requestENS2_8responseEEESt10error_codeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RT0_(ptr noundef nonnull align 8 dereferenceable(560), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(280)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(248) ptr @_ZN7DynexCN12BlockDetailsaSEOS0_(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(248)) #5 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #4 = { 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 #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 = { 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 = !{i64 0, i64 4, !9}
!12 = !{!13, !10, i64 0}
!13 = !{!"_ZTSN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT7requestE", !10, 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::error_code" = type { i32, ptr }
%"struct.DynexCN::COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT::request" = type { i32 }
%"class.boost::value_initialized.340" = type { %"class.boost::initialized.341" }
%"class.boost::initialized.341" = type { %"struct.DynexCN::COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT::request" }
%"struct.DynexCN::COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT::response" = type { %"struct.DynexCN::BlockDetails", %"class.std::__cxx11::basic_string" }
%"struct.DynexCN::BlockDetails" = type { i8, i8, i64, %"struct.Crypto::Hash", %"struct.Crypto::Hash", i32, i8, i32, i32, %"struct.Crypto::Hash", i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, i64, %"class.std::vector.272" }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"class.std::vector.272" = type { %"struct.std::_Vector_base.273" }
%"struct.std::_Vector_base.273" = type { %"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.boost::value_initialized.342" = type { %"class.boost::initialized.343" }
%"class.boost::initialized.343" = type { %"struct.DynexCN::COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT::response" }
%"class.std::allocator" = type { i8 }

@.str.23 = external hidden unnamed_addr constant [29 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

; 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(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local { i32, ptr } @_ZN7DynexCN12NodeRpcProxy10doGetBlockEjRNS_12BlockDetailsE(ptr noundef nonnull align 8 dereferenceable(560) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(248) %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::error_code", align 8
  %5 = alloca %"struct.DynexCN::COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT::request", align 4
  %6 = alloca %"class.boost::value_initialized.340", align 4
  %7 = alloca %"struct.DynexCN::COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT::response", align 8
  %8 = alloca %"class.boost::value_initialized.342", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @_ZN5boost17value_initializedIN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT7requestEEC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %6)
  %11 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5boost17value_initializedIN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT7requestEEcvRS3_Ev(ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 280, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 280, ptr nonnull %8) #5
  call void @_ZN5boost17value_initializedIN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseEEC2Ev(ptr noundef nonnull align 8 dereferenceable(280) %8)
  %12 = invoke noundef nonnull align 8 dereferenceable(280) ptr @_ZN5boost17value_initializedIN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseEEcvRS3_Ev(ptr noundef nonnull align 8 dereferenceable(280) %8)
          to label %13 unwind label %22

13:                                               ; preds = %3
  invoke void @_ZN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(280) %7, ptr noundef nonnull align 8 dereferenceable(280) %12)
          to label %14 unwind label %22

14:                                               ; preds = %13
  call void @_ZN5boost17value_initializedIN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseEED2Ev(ptr noundef nonnull align 8 dereferenceable(280) %8) #5
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %8) #5
  store i32 %1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.23, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %15 unwind label %24

15:                                               ; preds = %14
  %16 = invoke { i32, ptr } @_ZN7DynexCN12NodeRpcProxy11jsonCommandINS_39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT7requestENS2_8responseEEESt10error_codeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RT0_(ptr noundef nonnull align 8 dereferenceable(560) %0, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(280) %7)
          to label %17 unwind label %26

17:                                               ; preds = %15
  %18 = extractvalue { i32, ptr } %16, 0
  store i32 %18, ptr %4, align 8
  %19 = getelementptr inbounds i8, ptr %4, i64 8
  %20 = extractvalue { i32, ptr } %16, 1
  store ptr %20, ptr %19, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  %21 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  br i1 %21, label %31, label %29

22:                                               ; preds = %13, %3
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5boost17value_initializedIN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseEED2Ev(ptr noundef nonnull align 8 dereferenceable(280) %8) #5
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %8) #5
  br label %32

24:                                               ; preds = %14
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %28

26:                                               ; preds = %15
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  br label %28

28:                                               ; preds = %26, %24
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %25, %24 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @_ZN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %7) #5
  br label %32

29:                                               ; preds = %17
  %30 = call noundef nonnull align 8 dereferenceable(248) ptr @_ZN7DynexCN12BlockDetailsaSEOS0_(ptr noundef nonnull align 8 dereferenceable(248) %2, ptr noundef nonnull align 8 dereferenceable(248) %7) #5
  br label %31

31:                                               ; preds = %17, %29
  call void @_ZN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %7) #5
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %.fca.0.load = load i32, ptr %4, align 8
  %.fca.0.insert = insertvalue { i32, ptr } poison, i32 %.fca.0.load, 0
  %.fca.1.load = load ptr, ptr %19, align 8
  %.fca.1.insert = insertvalue { i32, ptr } %.fca.0.insert, ptr %.fca.1.load, 1
  ret { i32, ptr } %.fca.1.insert

32:                                               ; preds = %28, %22
  %.pn.pn = phi { ptr, i32 } [ %.pn, %28 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT8responseC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(280), ptr noundef nonnull align 8 dereferenceable(280)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i32, ptr } @_ZN7DynexCN12NodeRpcProxy11jsonCommandINS_39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT7requestENS2_8responseEEESt10error_codeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RT0_(ptr noundef nonnull align 8 dereferenceable(560), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(280)) local_unnamed_addr #2 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 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 = { 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, !7, i64 0}
!6 = !{!"_ZTSN7DynexCN39COMMAND_RPC_GET_BLOCK_DETAILS_BY_HEIGHT7requestE", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}


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