; LLVM IR from gem5/gem5 :: util/tlm/examples/slave_port (sc_target)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.Target = type <{ %"class.sc_core::sc_module", %"class.tlm_utils::simple_target_socket", ptr, %"class.sc_core::sc_event", i8, i8, [6 x i8], ptr, ptr, %"class.tlm_utils::peq_with_cb_and_phase", ptr, i64, i32, [4 x i8] }>
%"class.sc_core::sc_module" = type { %"class.sc_core::sc_object", %"class.sc_core::sc_process_host", %"class.sc_core::sc_sensitive", %"class.sc_core::sc_sensitive_pos", %"class.sc_core::sc_sensitive_neg", i8, ptr, i32, ptr, ptr }
%"class.sc_core::sc_object" = type { ptr, ptr, %"class.std::vector", %"class.std::vector.3", %"class.std::__cxx11::basic_string", ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_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.sc_core::sc_process_host" = type { ptr }
%"class.sc_core::sc_sensitive" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_pos" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_neg" = type { ptr, i32, ptr }
%"class.tlm_utils::simple_target_socket" = type { %"class.tlm::tlm_target_socket", %"class.tlm_utils::simple_target_socket<Target>::fw_process", %"class.tlm_utils::simple_target_socket<Target>::bw_process", %"class.std::map", %"class.sc_core::sc_event", ptr }
%"class.tlm::tlm_target_socket" = type { %"class.tlm::tlm_base_target_socket" }
%"class.tlm::tlm_base_target_socket" = type { %"class.tlm::tlm_base_target_socket_b", %"class.sc_core::sc_export", %"class.sc_core::sc_port" }
%"class.tlm::tlm_base_target_socket_b" = type { ptr }
%"class.sc_core::sc_export" = type { %"class.sc_core::sc_export_base", ptr }
%"class.sc_core::sc_export_base" = type { %"class.sc_core::sc_object" }
%"class.sc_core::sc_port" = type { %"class.sc_core::sc_port_b" }
%"class.sc_core::sc_port_b" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.8" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<tlm::tlm_bw_transport_if<> *, std::allocator<tlm::tlm_bw_transport_if<> *>>::_Vector_impl" }
%"struct.std::_Vector_base<tlm::tlm_bw_transport_if<> *, std::allocator<tlm::tlm_bw_transport_if<> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<tlm::tlm_bw_transport_if<> *, std::allocator<tlm::tlm_bw_transport_if<> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tlm::tlm_bw_transport_if<> *, std::allocator<tlm::tlm_bw_transport_if<> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.tlm_utils::simple_target_socket<Target>::fw_process" = type { %"class.tlm::tlm_fw_transport_if.base", %"class.tlm::tlm_mm_interface", %"class.tlm_utils::simple_target_socket<Target>::fw_process::process_handle_list", %"class.std::__cxx11::basic_string", ptr, ptr, { i64, i64 }, { i64, i64 }, { i64, i64 }, { i64, i64 }, %"class.tlm_utils::peq_with_get", i8, %"class.sc_core::sc_event", %"class.tlm::tlm_blocking_transport_if", %"class.tlm::tlm_fw_direct_mem_if", %"class.tlm::tlm_transport_dbg_if" }
%"class.tlm::tlm_fw_transport_if.base" = type { %"class.tlm::tlm_fw_nonblocking_transport_if" }
%"class.tlm::tlm_fw_nonblocking_transport_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_interface" = type { ptr }
%"class.tlm::tlm_mm_interface" = type { ptr }
%"class.tlm_utils::simple_target_socket<Target>::fw_process::process_handle_list" = type { %"class.std::vector.13" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<tlm_utils::simple_target_socket<Target>::fw_process::process_handle_class *, std::allocator<tlm_utils::simple_target_socket<Target>::fw_process::process_handle_class *>>::_Vector_impl" }
%"struct.std::_Vector_base<tlm_utils::simple_target_socket<Target>::fw_process::process_handle_class *, std::allocator<tlm_utils::simple_target_socket<Target>::fw_process::process_handle_class *>>::_Vector_impl" = type { %"struct.std::_Vector_base<tlm_utils::simple_target_socket<Target>::fw_process::process_handle_class *, std::allocator<tlm_utils::simple_target_socket<Target>::fw_process::process_handle_class *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tlm_utils::simple_target_socket<Target>::fw_process::process_handle_class *, std::allocator<tlm_utils::simple_target_socket<Target>::fw_process::process_handle_class *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.tlm_utils::peq_with_get" = type { %"class.sc_core::sc_object", %"class.std::multimap", %"class.sc_core::sc_event" }
%"class.std::multimap" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<const sc_core::sc_time, std::pair<const sc_core::sc_time, tlm::tlm_generic_payload *>, std::_Select1st<std::pair<const sc_core::sc_time, tlm::tlm_generic_payload *>>, std::less<const sc_core::sc_time>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const sc_core::sc_time, std::pair<const sc_core::sc_time, tlm::tlm_generic_payload *>, std::_Select1st<std::pair<const sc_core::sc_time, tlm::tlm_generic_payload *>>, std::less<const sc_core::sc_time>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.tlm::tlm_blocking_transport_if" = type { %"class.sc_core::sc_interface" }
%"class.tlm::tlm_fw_direct_mem_if" = type { %"class.sc_core::sc_interface" }
%"class.tlm::tlm_transport_dbg_if" = type { %"class.sc_core::sc_interface" }
%"class.tlm_utils::simple_target_socket<Target>::bw_process" = type { %"class.tlm::tlm_bw_transport_if.base", ptr, %"class.tlm::tlm_bw_direct_mem_if" }
%"class.tlm::tlm_bw_transport_if.base" = type { %"class.tlm::tlm_bw_nonblocking_transport_if" }
%"class.tlm::tlm_bw_nonblocking_transport_if" = type { %"class.sc_core::sc_interface" }
%"class.tlm::tlm_bw_direct_mem_if" = type { %"class.sc_core::sc_interface" }
%"class.std::map" = type { %"class.std::_Rb_tree.31" }
%"class.std::_Rb_tree.31" = type { %"struct.std::_Rb_tree<tlm::tlm_generic_payload *, std::pair<tlm::tlm_generic_payload *const, sc_core::sc_event *>, std::_Select1st<std::pair<tlm::tlm_generic_payload *const, sc_core::sc_event *>>, std::less<tlm::tlm_generic_payload *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<tlm::tlm_generic_payload *, std::pair<tlm::tlm_generic_payload *const, sc_core::sc_event *>, std::_Select1st<std::pair<tlm::tlm_generic_payload *const, sc_core::sc_event *>>, std::less<tlm::tlm_generic_payload *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.sc_core::sc_event" = type { %"class.std::__cxx11::basic_string", ptr, ptr, i32, i32, ptr, %"class.std::vector.21", %"class.std::vector.21", %"class.std::vector.26", %"class.std::vector.26" }
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.tlm_utils::peq_with_cb_and_phase" = type { %"class.sc_core::sc_object", ptr, { i64, i64 }, %"class.tlm_utils::time_ordered_list", %"class.tlm_utils::peq_with_cb_and_phase<Target>::delta_list", %"class.tlm_utils::peq_with_cb_and_phase<Target>::delta_list", %"class.tlm_utils::peq_with_cb_and_phase<Target>::delta_list", %"class.sc_core::sc_event" }
%"class.tlm_utils::time_ordered_list" = type <{ ptr, ptr, ptr, i32, [4 x i8] }>
%"class.tlm_utils::peq_with_cb_and_phase<Target>::delta_list" = type <{ i32, [4 x i8], %"class.std::vector.36", i32, [4 x i8] }>
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<std::pair<tlm::tlm_generic_payload *, tlm::tlm_phase>, std::allocator<std::pair<tlm::tlm_generic_payload *, tlm::tlm_phase>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<tlm::tlm_generic_payload *, tlm::tlm_phase>, std::allocator<std::pair<tlm::tlm_generic_payload *, tlm::tlm_phase>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<tlm::tlm_generic_payload *, tlm::tlm_phase>, std::allocator<std::pair<tlm::tlm_generic_payload *, tlm::tlm_phase>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<tlm::tlm_generic_payload *, tlm::tlm_phase>, std::allocator<std::pair<tlm::tlm_generic_payload *, tlm::tlm_phase>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.18 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.28 = external hidden unnamed_addr constant [11 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

declare void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Target19execute_transactionERN3tlm19tlm_generic_payloadE(ptr noundef nonnull align 8 dereferenceable(2076) %0, ptr noundef nonnull align 8 dereferenceable(140) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = call noundef i64 @_ZNK3tlm19tlm_generic_payload11get_addressEv(ptr noundef nonnull align 8 dereferenceable(140) %14)
  call void @_ZN6Target13check_addressEy(ptr noundef nonnull align 8 dereferenceable(2076) %13, i64 noundef %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = call noundef i32 @_ZNK3tlm19tlm_generic_payload11get_commandEv(ptr noundef nonnull align 8 dereferenceable(140) %16)
  store i32 %17, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = call noundef i64 @_ZNK3tlm19tlm_generic_payload11get_addressEv(ptr noundef nonnull align 8 dereferenceable(140) %18)
  %20 = getelementptr inbounds %struct.Target, ptr %13, i32 0, i32 12
  %21 = load i32, ptr %20, align 8, !tbaa !11
  %22 = zext i32 %21 to i64
  %23 = sub i64 %19, %22
  store i64 %23, ptr %6, align 8, !tbaa !90
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = call noundef ptr @_ZNK3tlm19tlm_generic_payload12get_data_ptrEv(ptr noundef nonnull align 8 dereferenceable(140) %24)
  store ptr %25, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = call noundef i32 @_ZNK3tlm19tlm_generic_payload15get_data_lengthEv(ptr noundef nonnull align 8 dereferenceable(140) %26)
  store i32 %27, ptr %8, align 4, !tbaa !91
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = call noundef ptr @_ZNK3tlm19tlm_generic_payload19get_byte_enable_ptrEv(ptr noundef nonnull align 8 dereferenceable(140) %28)
  store ptr %29, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = call noundef i32 @_ZNK3tlm19tlm_generic_payload19get_streaming_widthEv(ptr noundef nonnull align 8 dereferenceable(140) %30)
  store i32 %31, ptr %10, align 4, !tbaa !91
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %38

34:                                               ; preds = %2
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.28)
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3tlm19tlm_generic_payload19set_response_statusENS_19tlm_response_statusE(ptr noundef nonnull align 8 dereferenceable(140) %37, i32 noundef -5)
  store i32 1, ptr %11, align 4
  br label %71

38:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %39 = getelementptr inbounds %struct.Target, ptr %13, i32 0, i32 10
  %40 = load ptr, ptr %39, align 8, !tbaa !92
  %41 = load i64, ptr %6, align 8, !tbaa !90
  %42 = getelementptr inbounds i8, ptr %40, i64 %41
  store ptr %42, ptr %12, align 8, !tbaa !5
  %43 = load i32, ptr %5, align 4, !tbaa !9
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %55

45:                                               ; preds = %38
  %46 = getelementptr inbounds %struct.Target, ptr %13, i32 0, i32 5
  %47 = load i8, ptr %46, align 1, !tbaa !93, !range !94, !noundef !95
  %48 = trunc i8 %47 to i1
  br i1 %48, label %49, label %50

49:                                               ; preds = %45
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 0, ptr noundef @.str.19, ptr noundef @.str.20, ptr noundef @.str.18, i32 noundef 240)
  br label %50

50:                                               ; preds = %49, %45
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = load i32, ptr %8, align 4, !tbaa !91
  %54 = zext i32 %53 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %51, ptr align 1 %52, i64 %54, i1 false)
  br label %69

55:                                               ; preds = %38
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = icmp eq i32 %56, 1
  br i1 %57, label %58, label %68

58:                                               ; preds = %55
  %59 = getelementptr inbounds %struct.Target, ptr %13, i32 0, i32 5
  %60 = load i8, ptr %59, align 1, !tbaa !93, !range !94, !noundef !95
  %61 = trunc i8 %60 to i1
  br i1 %61, label %62, label %63

62:                                               ; preds = %58
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 0, ptr noundef @.str.19, ptr noundef @.str.21, ptr noundef @.str.18, i32 noundef 245)
  br label %63

63:                                               ; preds = %62, %58
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = load i32, ptr %8, align 4, !tbaa !91
  %67 = zext i32 %66 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %64, ptr align 1 %65, i64 %67, i1 false)
  br label %68

68:                                               ; preds = %63, %55
  br label %69

69:                                               ; preds = %68, %50
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3tlm19tlm_generic_payload19set_response_statusENS_19tlm_response_statusE(ptr noundef nonnull align 8 dereferenceable(140) %70, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  store i32 0, ptr %11, align 4
  br label %71

71:                                               ; preds = %69, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  %72 = load i32, ptr %11, align 4
  switch i32 %72, label %74 [
    i32 0, label %73
    i32 1, label %73
  ]

73:                                               ; preds = %71, %71
  ret void

74:                                               ; preds = %71
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3tlm19tlm_generic_payload11get_addressEv(ptr noundef nonnull align 8 dereferenceable(140)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3tlm19tlm_generic_payload11get_commandEv(ptr noundef nonnull align 8 dereferenceable(140)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3tlm19tlm_generic_payload15get_data_lengthEv(ptr noundef nonnull align 8 dereferenceable(140)) #3 align 2

; 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) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3tlm19tlm_generic_payload19get_streaming_widthEv(ptr noundef nonnull align 8 dereferenceable(140)) #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tlm19tlm_generic_payload19set_response_statusENS_19tlm_response_statusE(ptr noundef nonnull align 8 dereferenceable(140), i32 noundef) #3 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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 = !{!"_ZTSN3tlm11tlm_commandE", !7, i64 0}
!11 = !{!12, !34, i64 2072}
!12 = !{!"_ZTS6Target", !13, i64 0, !35, i64 232, !6, i64 1416, !65, i64 1424, !33, i64 1584, !33, i64 1585, !6, i64 1592, !6, i64 1600, !82, i64 1608, !6, i64 2056, !89, i64 2064, !34, i64 2072}
!13 = !{!"_ZTSN7sc_core9sc_moduleE", !14, i64 0, !26, i64 112, !27, i64 120, !29, i64 144, !31, i64 168, !33, i64 192, !6, i64 200, !34, i64 208, !6, i64 216, !6, i64 224}
!14 = !{!"_ZTSN7sc_core9sc_objectE", !6, i64 8, !15, i64 16, !19, i64 40, !23, i64 64, !6, i64 96, !6, i64 104}
!15 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !25, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSN7sc_core15sc_process_hostE"}
!27 = !{!"_ZTSN7sc_core12sc_sensitiveE", !6, i64 0, !28, i64 8, !6, i64 16}
!28 = !{!"_ZTSN7sc_core12sc_sensitiveUt_E", !7, i64 0}
!29 = !{!"_ZTSN7sc_core16sc_sensitive_posE", !6, i64 0, !30, i64 8, !6, i64 16}
!30 = !{!"_ZTSN7sc_core16sc_sensitive_posUt_E", !7, i64 0}
!31 = !{!"_ZTSN7sc_core16sc_sensitive_negE", !6, i64 0, !32, i64 8, !6, i64 16}
!32 = !{!"_ZTSN7sc_core16sc_sensitive_negUt_E", !7, i64 0}
!33 = !{!"bool", !7, i64 0}
!34 = !{!"int", !7, i64 0}
!35 = !{!"_ZTSN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEEE", !36, i64 0, !48, i64 280, !75, i64 944, !77, i64 968, !65, i64 1016, !6, i64 1176}
!36 = !{!"_ZTSN3tlm17tlm_target_socketILj32ENS_23tlm_base_protocol_typesELi1ELN7sc_core14sc_port_policyE0EEE", !37, i64 0}
!37 = !{!"_ZTSN3tlm22tlm_base_target_socketILj32ENS_19tlm_fw_transport_ifINS_23tlm_base_protocol_typesEEENS_19tlm_bw_transport_ifIS2_EELi1ELN7sc_core14sc_port_policyE0EEE", !38, i64 0, !39, i64 8, !41, i64 128}
!38 = !{!"_ZTSN3tlm24tlm_base_target_socket_bILj32ENS_19tlm_fw_transport_ifINS_23tlm_base_protocol_typesEEENS_19tlm_bw_transport_ifIS2_EEEE"}
!39 = !{!"_ZTSN7sc_core9sc_exportIN3tlm19tlm_fw_transport_ifINS1_23tlm_base_protocol_typesEEEEE", !40, i64 0, !6, i64 112}
!40 = !{!"_ZTSN7sc_core14sc_export_baseE", !14, i64 0}
!41 = !{!"_ZTSN7sc_core7sc_portIN3tlm19tlm_bw_transport_ifINS1_23tlm_base_protocol_typesEEELi1ELNS_14sc_port_policyE0EEE", !42, i64 0}
!42 = !{!"_ZTSN7sc_core9sc_port_bIN3tlm19tlm_bw_transport_ifINS1_23tlm_base_protocol_typesEEEEE", !43, i64 0, !6, i64 120, !44, i64 128}
!43 = !{!"_ZTSN7sc_core12sc_port_baseE", !14, i64 0, !6, i64 112}
!44 = !{!"_ZTSSt6vectorIPN3tlm19tlm_bw_transport_ifINS0_23tlm_base_protocol_typesEEESaIS4_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseIPN3tlm19tlm_bw_transport_ifINS0_23tlm_base_protocol_typesEEESaIS4_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIPN3tlm19tlm_bw_transport_ifINS0_23tlm_base_protocol_typesEEESaIS4_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIPN3tlm19tlm_bw_transport_ifINS0_23tlm_base_protocol_typesEEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!48 = !{!"_ZTSN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEE10fw_processE", !49, i64 0, !50, i64 8, !51, i64 16, !23, i64 40, !6, i64 72, !6, i64 80, !7, i64 88, !7, i64 104, !7, i64 120, !7, i64 136, !56, i64 152, !33, i64 472, !65, i64 480}
!49 = !{!"_ZTSN3tlm19tlm_fw_transport_ifINS_23tlm_base_protocol_typesEEE"}
!50 = !{!"_ZTSN3tlm16tlm_mm_interfaceE"}
!51 = !{!"_ZTSN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEE10fw_process19process_handle_listE", !52, i64 0}
!52 = !{!"_ZTSSt6vectorIPN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEE10fw_process20process_handle_classESaIS8_EE", !53, i64 0}
!53 = !{!"_ZTSSt12_Vector_baseIPN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEE10fw_process20process_handle_classESaIS8_EE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIPN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEE10fw_process20process_handle_classESaIS8_EE12_Vector_implE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIPN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEE10fw_process20process_handle_classESaIS8_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!56 = !{!"_ZTSN9tlm_utils12peq_with_getIN3tlm19tlm_generic_payloadEEE", !14, i64 0, !57, i64 112, !65, i64 160}
!57 = !{!"_ZTSSt8multimapIKN7sc_core7sc_timeEPN3tlm19tlm_generic_payloadESt4lessIS2_ESaISt4pairIS2_S5_EEE", !58, i64 0}
!58 = !{!"_ZTSSt8_Rb_treeIKN7sc_core7sc_timeESt4pairIS2_PN3tlm19tlm_generic_payloadEESt10_Select1stIS7_ESt4lessIS2_ESaIS7_EE", !59, i64 0}
!59 = !{!"_ZTSNSt8_Rb_treeIKN7sc_core7sc_timeESt4pairIS2_PN3tlm19tlm_generic_payloadEESt10_Select1stIS7_ESt4lessIS2_ESaIS7_EE13_Rb_tree_implISB_Lb1EEE", !60, i64 0, !62, i64 8}
!60 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIKN7sc_core7sc_timeEEE", !61, i64 0}
!61 = !{!"_ZTSSt4lessIKN7sc_core7sc_timeEE"}
!62 = !{!"_ZTSSt15_Rb_tree_header", !63, i64 0, !25, i64 32}
!63 = !{!"_ZTSSt18_Rb_tree_node_base", !64, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!64 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!65 = !{!"_ZTSN7sc_core8sc_eventE", !23, i64 0, !6, i64 32, !6, i64 40, !66, i64 48, !34, i64 52, !6, i64 56, !67, i64 64, !67, i64 88, !71, i64 112, !71, i64 136}
!66 = !{!"_ZTSN7sc_core8sc_event8notify_tE", !7, i64 0}
!67 = !{!"_ZTSSt6vectorIPN7sc_core17sc_method_processESaIS2_EE", !68, i64 0}
!68 = !{!"_ZTSSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE", !69, i64 0}
!69 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE12_Vector_implE", !70, i64 0}
!70 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!71 = !{!"_ZTSSt6vectorIPN7sc_core17sc_thread_processESaIS2_EE", !72, i64 0}
!72 = !{!"_ZTSSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE", !73, i64 0}
!73 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE12_Vector_implE", !74, i64 0}
!74 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!75 = !{!"_ZTSN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEE10bw_processE", !76, i64 0, !6, i64 8}
!76 = !{!"_ZTSN3tlm19tlm_bw_transport_ifINS_23tlm_base_protocol_typesEEE"}
!77 = !{!"_ZTSSt3mapIPN3tlm19tlm_generic_payloadEPN7sc_core8sc_eventESt4lessIS2_ESaISt4pairIKS2_S5_EEE", !78, i64 0}
!78 = !{!"_ZTSSt8_Rb_treeIPN3tlm19tlm_generic_payloadESt4pairIKS2_PN7sc_core8sc_eventEESt10_Select1stIS8_ESt4lessIS2_ESaIS8_EE", !79, i64 0}
!79 = !{!"_ZTSNSt8_Rb_treeIPN3tlm19tlm_generic_payloadESt4pairIKS2_PN7sc_core8sc_eventEESt10_Select1stIS8_ESt4lessIS2_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !80, i64 0, !62, i64 8}
!80 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIPN3tlm19tlm_generic_payloadEEE", !81, i64 0}
!81 = !{!"_ZTSSt4lessIPN3tlm19tlm_generic_payloadEE"}
!82 = !{!"_ZTSN9tlm_utils21peq_with_cb_and_phaseI6TargetN3tlm23tlm_base_protocol_typesEEE", !14, i64 0, !6, i64 112, !7, i64 120, !83, i64 136, !84, i64 168, !84, i64 208, !84, i64 248, !65, i64 288}
!83 = !{!"_ZTSN9tlm_utils17time_ordered_listISt4pairIPN3tlm19tlm_generic_payloadENS2_9tlm_phaseEEEE", !6, i64 0, !6, i64 8, !6, i64 16, !34, i64 24}
!84 = !{!"_ZTSN9tlm_utils21peq_with_cb_and_phaseI6TargetN3tlm23tlm_base_protocol_typesEE10delta_listE", !34, i64 0, !85, i64 8, !34, i64 32}
!85 = !{!"_ZTSSt6vectorISt4pairIPN3tlm19tlm_generic_payloadENS1_9tlm_phaseEESaIS5_EE", !86, i64 0}
!86 = !{!"_ZTSSt12_Vector_baseISt4pairIPN3tlm19tlm_generic_payloadENS1_9tlm_phaseEESaIS5_EE", !87, i64 0}
!87 = !{!"_ZTSNSt12_Vector_baseISt4pairIPN3tlm19tlm_generic_payloadENS1_9tlm_phaseEESaIS5_EE12_Vector_implE", !88, i64 0}
!88 = !{!"_ZTSNSt12_Vector_baseISt4pairIPN3tlm19tlm_generic_payloadENS1_9tlm_phaseEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!89 = !{!"long long", !7, i64 0}
!90 = !{!89, !89, i64 0}
!91 = !{!34, !34, i64 0}
!92 = !{!12, !6, i64 2056}
!93 = !{!12, !33, i64 1585}
!94 = !{i8 0, i8 2}
!95 = !{}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@.str.18 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.28 = external hidden unnamed_addr constant [11 x i8], align 1

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

declare void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Target19execute_transactionERN3tlm19tlm_generic_payloadE(ptr noundef nonnull align 8 dereferenceable(2076) %0, ptr noundef nonnull align 8 dereferenceable(140) %1) local_unnamed_addr #0 align 2 {
  %3 = tail call noundef i64 @_ZNK3tlm19tlm_generic_payload11get_addressEv(ptr noundef nonnull align 8 dereferenceable(140) %1)
  tail call void @_ZN6Target13check_addressEy(ptr noundef nonnull align 8 dereferenceable(2076) %0, i64 noundef %3)
  %4 = tail call noundef i32 @_ZNK3tlm19tlm_generic_payload11get_commandEv(ptr noundef nonnull align 8 dereferenceable(140) %1)
  %5 = tail call noundef i64 @_ZNK3tlm19tlm_generic_payload11get_addressEv(ptr noundef nonnull align 8 dereferenceable(140) %1)
  %6 = getelementptr inbounds i8, ptr %0, i64 2072
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = tail call noundef ptr @_ZNK3tlm19tlm_generic_payload12get_data_ptrEv(ptr noundef nonnull align 8 dereferenceable(140) %1)
  %9 = tail call noundef i32 @_ZNK3tlm19tlm_generic_payload15get_data_lengthEv(ptr noundef nonnull align 8 dereferenceable(140) %1)
  %10 = tail call noundef ptr @_ZNK3tlm19tlm_generic_payload19get_byte_enable_ptrEv(ptr noundef nonnull align 8 dereferenceable(140) %1)
  %11 = tail call noundef i32 @_ZNK3tlm19tlm_generic_payload19get_streaming_widthEv(ptr noundef nonnull align 8 dereferenceable(140) %1)
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %15, label %12

12:                                               ; preds = %2
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.28)
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %35

15:                                               ; preds = %2
  %16 = zext i32 %7 to i64
  %17 = sub i64 %5, %16
  %18 = getelementptr inbounds i8, ptr %0, i64 2056
  %19 = load ptr, ptr %18, align 8, !tbaa !87
  %20 = getelementptr inbounds i8, ptr %19, i64 %17
  switch i32 %4, label %35 [
    i32 0, label %21
    i32 1, label %28
  ]

21:                                               ; preds = %15
  %22 = getelementptr inbounds i8, ptr %0, i64 1585
  %23 = load i8, ptr %22, align 1, !tbaa !88, !range !89, !noundef !90
  %24 = trunc nuw i8 %23 to i1
  br i1 %24, label %25, label %26

25:                                               ; preds = %21
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 0, ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.18, i32 noundef 240)
  br label %26

26:                                               ; preds = %25, %21
  %27 = zext i32 %9 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 %20, i64 %27, i1 false)
  br label %35

28:                                               ; preds = %15
  %29 = getelementptr inbounds i8, ptr %0, i64 1585
  %30 = load i8, ptr %29, align 1, !tbaa !88, !range !89, !noundef !90
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %32, label %33

32:                                               ; preds = %28
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 0, ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.18, i32 noundef 245)
  br label %33

33:                                               ; preds = %32, %28
  %34 = zext i32 %9 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %20, ptr align 1 %8, i64 %34, i1 false)
  br label %35

35:                                               ; preds = %26, %33, %15, %12
  %.sink = phi i32 [ -5, %12 ], [ 1, %15 ], [ 1, %33 ], [ 1, %26 ]
  tail call void @_ZN3tlm19tlm_generic_payload19set_response_statusENS_19tlm_response_statusE(ptr noundef nonnull align 8 dereferenceable(140) %1, i32 noundef %.sink)
  ret void
}

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tlm19tlm_generic_payload19set_response_statusENS_19tlm_response_statusE(ptr noundef nonnull align 8 dereferenceable(140), i32 noundef) local_unnamed_addr #2 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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" }

!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, !31, i64 2072}
!6 = !{!"_ZTS6Target", !7, i64 0, !32, i64 232, !9, i64 1416, !62, i64 1424, !30, i64 1584, !30, i64 1585, !9, i64 1592, !9, i64 1600, !79, i64 1608, !9, i64 2056, !86, i64 2064, !31, i64 2072}
!7 = !{!"_ZTSN7sc_core9sc_moduleE", !8, i64 0, !23, i64 112, !24, i64 120, !26, i64 144, !28, i64 168, !30, i64 192, !9, i64 200, !31, i64 208, !9, i64 216, !9, i64 224}
!8 = !{!"_ZTSN7sc_core9sc_objectE", !9, i64 8, !12, i64 16, !16, i64 40, !20, i64 64, !9, i64 96, !9, i64 104}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!16 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !10, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!22 = !{!"long", !10, i64 0}
!23 = !{!"_ZTSN7sc_core15sc_process_hostE"}
!24 = !{!"_ZTSN7sc_core12sc_sensitiveE", !9, i64 0, !25, i64 8, !9, i64 16}
!25 = !{!"_ZTSN7sc_core12sc_sensitiveUt_E", !10, i64 0}
!26 = !{!"_ZTSN7sc_core16sc_sensitive_posE", !9, i64 0, !27, i64 8, !9, i64 16}
!27 = !{!"_ZTSN7sc_core16sc_sensitive_posUt_E", !10, i64 0}
!28 = !{!"_ZTSN7sc_core16sc_sensitive_negE", !9, i64 0, !29, i64 8, !9, i64 16}
!29 = !{!"_ZTSN7sc_core16sc_sensitive_negUt_E", !10, i64 0}
!30 = !{!"bool", !10, i64 0}
!31 = !{!"int", !10, i64 0}
!32 = !{!"_ZTSN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEEE", !33, i64 0, !45, i64 280, !72, i64 944, !74, i64 968, !62, i64 1016, !9, i64 1176}
!33 = !{!"_ZTSN3tlm17tlm_target_socketILj32ENS_23tlm_base_protocol_typesELi1ELN7sc_core14sc_port_policyE0EEE", !34, i64 0}
!34 = !{!"_ZTSN3tlm22tlm_base_target_socketILj32ENS_19tlm_fw_transport_ifINS_23tlm_base_protocol_typesEEENS_19tlm_bw_transport_ifIS2_EELi1ELN7sc_core14sc_port_policyE0EEE", !35, i64 0, !36, i64 8, !38, i64 128}
!35 = !{!"_ZTSN3tlm24tlm_base_target_socket_bILj32ENS_19tlm_fw_transport_ifINS_23tlm_base_protocol_typesEEENS_19tlm_bw_transport_ifIS2_EEEE"}
!36 = !{!"_ZTSN7sc_core9sc_exportIN3tlm19tlm_fw_transport_ifINS1_23tlm_base_protocol_typesEEEEE", !37, i64 0, !9, i64 112}
!37 = !{!"_ZTSN7sc_core14sc_export_baseE", !8, i64 0}
!38 = !{!"_ZTSN7sc_core7sc_portIN3tlm19tlm_bw_transport_ifINS1_23tlm_base_protocol_typesEEELi1ELNS_14sc_port_policyE0EEE", !39, i64 0}
!39 = !{!"_ZTSN7sc_core9sc_port_bIN3tlm19tlm_bw_transport_ifINS1_23tlm_base_protocol_typesEEEEE", !40, i64 0, !9, i64 120, !41, i64 128}
!40 = !{!"_ZTSN7sc_core12sc_port_baseE", !8, i64 0, !9, i64 112}
!41 = !{!"_ZTSSt6vectorIPN3tlm19tlm_bw_transport_ifINS0_23tlm_base_protocol_typesEEESaIS4_EE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseIPN3tlm19tlm_bw_transport_ifINS0_23tlm_base_protocol_typesEEESaIS4_EE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIPN3tlm19tlm_bw_transport_ifINS0_23tlm_base_protocol_typesEEESaIS4_EE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIPN3tlm19tlm_bw_transport_ifINS0_23tlm_base_protocol_typesEEESaIS4_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!45 = !{!"_ZTSN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEE10fw_processE", !46, i64 0, !47, i64 8, !48, i64 16, !20, i64 40, !9, i64 72, !9, i64 80, !10, i64 88, !10, i64 104, !10, i64 120, !10, i64 136, !53, i64 152, !30, i64 472, !62, i64 480}
!46 = !{!"_ZTSN3tlm19tlm_fw_transport_ifINS_23tlm_base_protocol_typesEEE"}
!47 = !{!"_ZTSN3tlm16tlm_mm_interfaceE"}
!48 = !{!"_ZTSN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEE10fw_process19process_handle_listE", !49, i64 0}
!49 = !{!"_ZTSSt6vectorIPN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEE10fw_process20process_handle_classESaIS8_EE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseIPN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEE10fw_process20process_handle_classESaIS8_EE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIPN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEE10fw_process20process_handle_classESaIS8_EE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIPN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEE10fw_process20process_handle_classESaIS8_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!53 = !{!"_ZTSN9tlm_utils12peq_with_getIN3tlm19tlm_generic_payloadEEE", !8, i64 0, !54, i64 112, !62, i64 160}
!54 = !{!"_ZTSSt8multimapIKN7sc_core7sc_timeEPN3tlm19tlm_generic_payloadESt4lessIS2_ESaISt4pairIS2_S5_EEE", !55, i64 0}
!55 = !{!"_ZTSSt8_Rb_treeIKN7sc_core7sc_timeESt4pairIS2_PN3tlm19tlm_generic_payloadEESt10_Select1stIS7_ESt4lessIS2_ESaIS7_EE", !56, i64 0}
!56 = !{!"_ZTSNSt8_Rb_treeIKN7sc_core7sc_timeESt4pairIS2_PN3tlm19tlm_generic_payloadEESt10_Select1stIS7_ESt4lessIS2_ESaIS7_EE13_Rb_tree_implISB_Lb1EEE", !57, i64 0, !59, i64 8}
!57 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIKN7sc_core7sc_timeEEE", !58, i64 0}
!58 = !{!"_ZTSSt4lessIKN7sc_core7sc_timeEE"}
!59 = !{!"_ZTSSt15_Rb_tree_header", !60, i64 0, !22, i64 32}
!60 = !{!"_ZTSSt18_Rb_tree_node_base", !61, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!61 = !{!"_ZTSSt14_Rb_tree_color", !10, i64 0}
!62 = !{!"_ZTSN7sc_core8sc_eventE", !20, i64 0, !9, i64 32, !9, i64 40, !63, i64 48, !31, i64 52, !9, i64 56, !64, i64 64, !64, i64 88, !68, i64 112, !68, i64 136}
!63 = !{!"_ZTSN7sc_core8sc_event8notify_tE", !10, i64 0}
!64 = !{!"_ZTSSt6vectorIPN7sc_core17sc_method_processESaIS2_EE", !65, i64 0}
!65 = !{!"_ZTSSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE", !66, i64 0}
!66 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE12_Vector_implE", !67, i64 0}
!67 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!68 = !{!"_ZTSSt6vectorIPN7sc_core17sc_thread_processESaIS2_EE", !69, i64 0}
!69 = !{!"_ZTSSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE", !70, i64 0}
!70 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE12_Vector_implE", !71, i64 0}
!71 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!72 = !{!"_ZTSN9tlm_utils20simple_target_socketI6TargetLj32EN3tlm23tlm_base_protocol_typesEE10bw_processE", !73, i64 0, !9, i64 8}
!73 = !{!"_ZTSN3tlm19tlm_bw_transport_ifINS_23tlm_base_protocol_typesEEE"}
!74 = !{!"_ZTSSt3mapIPN3tlm19tlm_generic_payloadEPN7sc_core8sc_eventESt4lessIS2_ESaISt4pairIKS2_S5_EEE", !75, i64 0}
!75 = !{!"_ZTSSt8_Rb_treeIPN3tlm19tlm_generic_payloadESt4pairIKS2_PN7sc_core8sc_eventEESt10_Select1stIS8_ESt4lessIS2_ESaIS8_EE", !76, i64 0}
!76 = !{!"_ZTSNSt8_Rb_treeIPN3tlm19tlm_generic_payloadESt4pairIKS2_PN7sc_core8sc_eventEESt10_Select1stIS8_ESt4lessIS2_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !77, i64 0, !59, i64 8}
!77 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIPN3tlm19tlm_generic_payloadEEE", !78, i64 0}
!78 = !{!"_ZTSSt4lessIPN3tlm19tlm_generic_payloadEE"}
!79 = !{!"_ZTSN9tlm_utils21peq_with_cb_and_phaseI6TargetN3tlm23tlm_base_protocol_typesEEE", !8, i64 0, !9, i64 112, !10, i64 120, !80, i64 136, !81, i64 168, !81, i64 208, !81, i64 248, !62, i64 288}
!80 = !{!"_ZTSN9tlm_utils17time_ordered_listISt4pairIPN3tlm19tlm_generic_payloadENS2_9tlm_phaseEEEE", !9, i64 0, !9, i64 8, !9, i64 16, !31, i64 24}
!81 = !{!"_ZTSN9tlm_utils21peq_with_cb_and_phaseI6TargetN3tlm23tlm_base_protocol_typesEE10delta_listE", !31, i64 0, !82, i64 8, !31, i64 32}
!82 = !{!"_ZTSSt6vectorISt4pairIPN3tlm19tlm_generic_payloadENS1_9tlm_phaseEESaIS5_EE", !83, i64 0}
!83 = !{!"_ZTSSt12_Vector_baseISt4pairIPN3tlm19tlm_generic_payloadENS1_9tlm_phaseEESaIS5_EE", !84, i64 0}
!84 = !{!"_ZTSNSt12_Vector_baseISt4pairIPN3tlm19tlm_generic_payloadENS1_9tlm_phaseEESaIS5_EE12_Vector_implE", !85, i64 0}
!85 = !{!"_ZTSNSt12_Vector_baseISt4pairIPN3tlm19tlm_generic_payloadENS1_9tlm_phaseEESaIS5_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!86 = !{!"long long", !10, i64 0}
!87 = !{!6, !9, i64 2056}
!88 = !{!6, !30, i64 1585}
!89 = !{i8 0, i8 2}
!90 = !{}


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