; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/misc/stars/star111657 (star111657)

; 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.sc_dt::sc_uint" = type { %"class.sc_dt::sc_uint_base" }
%"class.sc_dt::sc_uint_base" = type { %"class.sc_dt::sc_value_base", i64, i32, i32 }
%"class.sc_dt::sc_value_base" = type { ptr }
%struct.io_controller_m = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", %"class.sc_core::sc_out", %"class.sc_core::sc_out", %"class.sc_core::sc_inout.20", %"class.sc_core::sc_out.28", %"class.sc_core::sc_out.28", %"class.sc_core::sc_out.29", %"class.sc_core::sc_out.29", %"class.sc_core::sc_out.29", %"class.sc_core::sc_out.29", %"class.sc_core::sc_in", %"class.sc_core::sc_in", %"class.sc_core::sc_in", %"class.sc_core::sc_out.38", %"class.sc_core::sc_out.29", %"class.sc_core::sc_in.47", %"class.sc_core::sc_in", %"class.sc_core::sc_in", %"class.sc_core::sc_in", %"class.sc_core::sc_signal", %"class.sc_core::sc_signal", %"class.sc_core::sc_signal", %"class.sc_core::sc_signal", %"class.sc_dt::sc_uint", %"class.sc_dt::sc_uint", %"class.sc_core::sc_signal", %"class.sc_core::sc_signal", [400 x %"class.sc_dt::sc_uint"], [400 x %"class.sc_dt::sc_uint"] }
%"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.0", %"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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.sc_core::sc_out" = type { %"class.sc_core::sc_inout" }
%"class.sc_core::sc_inout" = type { %"class.sc_core::sc_port.13", ptr, ptr, ptr }
%"class.sc_core::sc_port.13" = type { %"class.sc_core::sc_port_b.14" }
%"class.sc_core::sc_port_b.14" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.15" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<30>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<30>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<30>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<30>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<30>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<30>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<30>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<30>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_inout.20" = type { %"class.sc_core::sc_port.21", ptr, ptr, ptr }
%"class.sc_core::sc_port.21" = type { %"class.sc_core::sc_port_b.22" }
%"class.sc_core::sc_port_b.22" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.23" }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<32>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<32>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<32>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<32>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<32>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<32>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<32>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<32>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_out.28" = type { %"class.sc_core::sc_inout.20" }
%"class.sc_core::sc_out.38" = type { %"class.sc_core::sc_inout.39" }
%"class.sc_core::sc_inout.39" = type { %"class.sc_core::sc_port.40", ptr, ptr, ptr }
%"class.sc_core::sc_port.40" = type { %"class.sc_core::sc_port_b.41" }
%"class.sc_core::sc_port_b.41" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.42" }
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<4>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<4>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<4>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<4>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<4>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<4>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<4>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<4>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_out.29" = type { %"class.sc_core::sc_inout.30" }
%"class.sc_core::sc_inout.30" = type { %"class.sc_core::sc_port.31", ptr, ptr, ptr, ptr, ptr }
%"class.sc_core::sc_port.31" = type { %"class.sc_core::sc_port_b.32" }
%"class.sc_core::sc_port_b.32" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.33" }
%"class.std::vector.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_in.47" = type { %"class.sc_core::sc_port.48", ptr, ptr }
%"class.sc_core::sc_port.48" = type { %"class.sc_core::sc_port_b.49" }
%"class.sc_core::sc_port_b.49" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.50" }
%"class.std::vector.50" = type { %"struct.std::_Vector_base.51" }
%"struct.std::_Vector_base.51" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<4>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<4>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<4>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<4>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<4>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<4>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<4>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<4>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_in" = type { %"class.sc_core::sc_port", ptr, ptr, ptr, ptr }
%"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.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_signal" = type { %"class.sc_core::sc_signal_inout_if", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, i8, i64, ptr, i8, ptr, ptr }
%"class.sc_core::sc_signal_inout_if" = type { %"class.sc_core::sc_signal_in_if", %"class.sc_core::sc_signal_write_if" }
%"class.sc_core::sc_signal_in_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_interface" = type { ptr }
%"class.sc_core::sc_signal_write_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_prim_channel" = type { %"class.sc_core::sc_object", ptr, ptr }
%"struct.sc_core::sc_writer_policy_check" = type { %"struct.sc_core::sc_writer_policy_check_port", %"struct.sc_core::sc_writer_policy_check_write" }
%"struct.sc_core::sc_writer_policy_check_port" = type { ptr }
%"struct.sc_core::sc_writer_policy_check_write" = type { i8, ptr }

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15io_controller_m17read_from_memory0EN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::sc_uint") align 8, ptr noundef nonnull align 8 dereferenceable(24296), ptr noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7sc_core8sc_inoutIN5sc_dt7sc_uintILi32EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(176)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15io_controller_m13control_writeEv(ptr noundef nonnull align 8 dereferenceable(24296) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.sc_dt::sc_uint", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.sc_dt::sc_uint", align 8
  %7 = alloca i8, align 1
  %8 = alloca %"class.sc_dt::sc_uint", align 8
  %9 = alloca %"class.sc_dt::sc_uint", align 8
  %10 = alloca %"class.sc_dt::sc_uint", align 8
  %11 = alloca %"class.sc_dt::sc_uint", align 8
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca %"class.sc_dt::sc_uint", align 8
  %16 = alloca %"class.sc_dt::sc_uint", align 8
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca %"class.sc_dt::sc_uint", align 8
  %22 = alloca %"class.sc_dt::sc_uint", align 8
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca %"class.sc_dt::sc_uint", align 8
  %26 = alloca %"class.sc_dt::sc_uint", align 8
  %27 = alloca %"class.sc_dt::sc_uint", align 8
  %28 = alloca %"class.sc_dt::sc_uint", align 8
  %29 = alloca i8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %30 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #3
  call void @_ZN5sc_dt7sc_uintILi32EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3)
  br label %31

31:                                               ; preds = %40, %1
  %32 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 13
  %33 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbE4readEv(ptr noundef nonnull align 8 dereferenceable(184) %32)
          to label %34 unwind label %41

34:                                               ; preds = %31
  %35 = load i8, ptr %33, align 1, !tbaa !9, !range !11, !noundef !12
  %36 = trunc i8 %35 to i1
  %37 = zext i1 %36 to i32
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %45

39:                                               ; preds = %34
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %30)
          to label %40 unwind label %41

40:                                               ; preds = %39
  br label %31, !llvm.loop !13

41:                                               ; preds = %54, %46, %39, %31
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %4, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %5, align 4
  br label %382

45:                                               ; preds = %34
  br label %46

46:                                               ; preds = %55, %45
  %47 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 12
  %48 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbE4readEv(ptr noundef nonnull align 8 dereferenceable(184) %47)
          to label %49 unwind label %41

49:                                               ; preds = %46
  %50 = load i8, ptr %48, align 1, !tbaa !9, !range !11, !noundef !12
  %51 = trunc i8 %50 to i1
  %52 = zext i1 %51 to i32
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %56

54:                                               ; preds = %49
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %30)
          to label %55 unwind label %41

55:                                               ; preds = %54
  br label %46, !llvm.loop !15

56:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #3
  %57 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 4
  %58 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7sc_core8sc_inoutIN5sc_dt7sc_uintILi32EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(176) %57)
          to label %59 unwind label %72

59:                                               ; preds = %56
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %58)
          to label %60 unwind label %72

60:                                               ; preds = %59
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %30)
          to label %61 unwind label %76

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %71, %61
  %63 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 12
  %64 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbE4readEv(ptr noundef nonnull align 8 dereferenceable(184) %63)
          to label %65 unwind label %76

65:                                               ; preds = %62
  %66 = load i8, ptr %64, align 1, !tbaa !9, !range !11, !noundef !12
  %67 = trunc i8 %66 to i1
  %68 = zext i1 %67 to i32
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %80

70:                                               ; preds = %65
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %30)
          to label %71 unwind label %76

71:                                               ; preds = %70
  br label %62, !llvm.loop !16

72:                                               ; preds = %59, %56
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %4, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %5, align 4
  br label %381

76:                                               ; preds = %97, %91, %89, %86, %83, %80, %70, %62, %60
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %4, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %5, align 4
  br label %380

80:                                               ; preds = %65
  %81 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 4
  %82 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7sc_core8sc_inoutIN5sc_dt7sc_uintILi32EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(176) %81)
          to label %83 unwind label %76

83:                                               ; preds = %80
  %84 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 24
  %85 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 8 dereferenceable(24) %82)
          to label %86 unwind label %76

86:                                               ; preds = %83
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %30)
          to label %87 unwind label %76

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %377, %87
  br label %89

89:                                               ; preds = %88
  invoke void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232) %30, i32 noundef 1000)
          to label %90 unwind label %76

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %98, %90
  %92 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 27
  %93 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(224) %92)
          to label %94 unwind label %76

94:                                               ; preds = %91
  %95 = load i8, ptr %93, align 1, !tbaa !9, !range !11, !noundef !12
  %96 = trunc i8 %95 to i1
  br i1 %96, label %97, label %99

97:                                               ; preds = %94
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %30)
          to label %98 unwind label %76

98:                                               ; preds = %97
  br label %91, !llvm.loop !17

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  store i8 1, ptr %7, align 1, !tbaa !9
  %100 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 27
  %101 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %100, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %102 unwind label %117

102:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #3
  %103 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 24
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %103)
          to label %104 unwind label %121

104:                                              ; preds = %102
  invoke void @_ZN15io_controller_m17read_from_memory0EN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24296) %30, ptr noundef %9)
          to label %105 unwind label %125

105:                                              ; preds = %104
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  %106 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %107 unwind label %129

107:                                              ; preds = %105
  %108 = icmp ne i64 %106, 0
  br i1 %108, label %109, label %147

109:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #3
  %110 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %111 unwind label %133

111:                                              ; preds = %109
  %112 = add i64 %110, 1604
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %112)
          to label %113 unwind label %133

113:                                              ; preds = %111
  invoke void @_ZN15io_controller_m17read_from_memory0EN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24296) %30, ptr noundef %11)
          to label %114 unwind label %137

114:                                              ; preds = %113
  %115 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %116 unwind label %141

116:                                              ; preds = %114
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #3
  br label %147

117:                                              ; preds = %99
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %4, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  br label %380

121:                                              ; preds = %102
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %4, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %5, align 4
  br label %379

125:                                              ; preds = %104
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %4, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %5, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  br label %379

129:                                              ; preds = %325, %296, %290, %282, %280, %275, %269, %266, %258, %155, %151, %105
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %4, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %5, align 4
  br label %378

133:                                              ; preds = %111, %109
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %4, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %5, align 4
  br label %146

137:                                              ; preds = %113
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %4, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %5, align 4
  br label %145

141:                                              ; preds = %114
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %4, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %5, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #3
  br label %145

145:                                              ; preds = %141, %137
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  br label %146

146:                                              ; preds = %145, %133
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #3
  br label %378

147:                                              ; preds = %116, %107
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #3
  store i8 0, ptr %12, align 1, !tbaa !9
  %148 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 27
  %149 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %148, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %150 unwind label %166

150:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  br label %151

151:                                              ; preds = %372, %150
  %152 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %153 unwind label %129

153:                                              ; preds = %151
  %154 = icmp ne i64 %152, 0
  br i1 %154, label %155, label %159

155:                                              ; preds = %153
  %156 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %157 unwind label %129

157:                                              ; preds = %155
  %158 = icmp eq i64 %156, 400
  br label %159

159:                                              ; preds = %157, %153
  %160 = phi i1 [ false, %153 ], [ %158, %157 ]
  br i1 %160, label %161, label %377

161:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !18
  br label %162

162:                                              ; preds = %251, %161
  %163 = load i32, ptr %13, align 4, !tbaa !18
  %164 = icmp slt i32 %163, 400
  br i1 %164, label %170, label %165

165:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %257

166:                                              ; preds = %147
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %4, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  br label %378

170:                                              ; preds = %162
  br label %171

171:                                              ; preds = %178, %170
  %172 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 27
  %173 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(224) %172)
          to label %174 unwind label %179

174:                                              ; preds = %171
  %175 = load i8, ptr %173, align 1, !tbaa !9, !range !11, !noundef !12
  %176 = trunc i8 %175 to i1
  br i1 %176, label %177, label %183

177:                                              ; preds = %174
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %30)
          to label %178 unwind label %179

178:                                              ; preds = %177
  br label %171, !llvm.loop !20

179:                                              ; preds = %177, %171
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %4, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %5, align 4
  br label %256

183:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #3
  store i8 1, ptr %14, align 1, !tbaa !9
  %184 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 27
  %185 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %184, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %186 unwind label %214

186:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #3
  %187 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %188 unwind label %218

188:                                              ; preds = %186
  %189 = load i32, ptr %13, align 4, !tbaa !18
  %190 = mul nsw i32 %189, 4
  %191 = sext i32 %190 to i64
  %192 = add i64 %187, %191
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %192)
          to label %193 unwind label %218

193:                                              ; preds = %188
  invoke void @_ZN15io_controller_m17read_from_memory0EN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24296) %30, ptr noundef %16)
          to label %194 unwind label %222

194:                                              ; preds = %193
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #3
  store i8 0, ptr %17, align 1, !tbaa !9
  %195 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 27
  %196 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %195, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %197 unwind label %226

197:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #3
  %198 = load i32, ptr %13, align 4, !tbaa !18
  %199 = icmp eq i32 %198, 0
  br i1 %199, label %200, label %242

200:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #3
  store i8 1, ptr %18, align 1, !tbaa !9
  %201 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 20
  %202 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %201, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %203 unwind label %230

203:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #3
  %204 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 28
  %205 = load i32, ptr %13, align 4, !tbaa !18
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [400 x %"class.sc_dt::sc_uint"], ptr %204, i64 0, i64 %206
  %208 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %207, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %209 unwind label %234

209:                                              ; preds = %203
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %30)
          to label %210 unwind label %234

210:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #3
  store i8 0, ptr %19, align 1, !tbaa !9
  %211 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 20
  %212 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %211, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %213 unwind label %238

213:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #3
  br label %250

214:                                              ; preds = %183
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %4, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  br label %256

218:                                              ; preds = %188, %186
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %4, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %5, align 4
  br label %255

222:                                              ; preds = %193
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %4, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %5, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #3
  br label %255

226:                                              ; preds = %194
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %4, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #3
  br label %254

230:                                              ; preds = %200
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %4, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #3
  br label %254

234:                                              ; preds = %248, %242, %209, %203
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %4, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %5, align 4
  br label %254

238:                                              ; preds = %210
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %4, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #3
  br label %254

242:                                              ; preds = %197
  %243 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 28
  %244 = load i32, ptr %13, align 4, !tbaa !18
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [400 x %"class.sc_dt::sc_uint"], ptr %243, i64 0, i64 %245
  %247 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %246, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %248 unwind label %234

248:                                              ; preds = %242
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %30)
          to label %249 unwind label %234

249:                                              ; preds = %248
  br label %250

250:                                              ; preds = %249, %213
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #3
  br label %251

251:                                              ; preds = %250
  %252 = load i32, ptr %13, align 4, !tbaa !18
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %13, align 4, !tbaa !18
  br label %162, !llvm.loop !21

254:                                              ; preds = %238, %234, %230, %226
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #3
  br label %255

255:                                              ; preds = %254, %222, %218
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #3
  br label %256

256:                                              ; preds = %255, %214, %179
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %378

257:                                              ; preds = %165
  br label %258

258:                                              ; preds = %267, %257
  %259 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 21
  %260 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE4readEv(ptr noundef nonnull align 8 dereferenceable(224) %259)
          to label %261 unwind label %129

261:                                              ; preds = %258
  %262 = load i8, ptr %260, align 1, !tbaa !9, !range !11, !noundef !12
  %263 = trunc i8 %262 to i1
  %264 = zext i1 %263 to i32
  %265 = icmp eq i32 %264, 0
  br i1 %265, label %266, label %268

266:                                              ; preds = %261
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %30)
          to label %267 unwind label %129

267:                                              ; preds = %266
  br label %258, !llvm.loop !22

268:                                              ; preds = %261
  br label %269

269:                                              ; preds = %276, %268
  %270 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 27
  %271 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(224) %270)
          to label %272 unwind label %129

272:                                              ; preds = %269
  %273 = load i8, ptr %271, align 1, !tbaa !9, !range !11, !noundef !12
  %274 = trunc i8 %273 to i1
  br i1 %274, label %275, label %277

275:                                              ; preds = %272
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %30)
          to label %276 unwind label %129

276:                                              ; preds = %275
  br label %269, !llvm.loop !23

277:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #3
  store i8 1, ptr %20, align 1, !tbaa !9
  %278 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 27
  %279 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %278, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %280 unwind label %298

280:                                              ; preds = %277
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #3
  %281 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %282 unwind label %129

282:                                              ; preds = %280
  %283 = add i64 %281, 1604
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %283)
          to label %284 unwind label %129

284:                                              ; preds = %282
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ej(ptr noundef nonnull align 8 dereferenceable(24) %22, i32 noundef -1)
          to label %285 unwind label %302

285:                                              ; preds = %284
  invoke void @_ZN15io_controller_m18write_into_memory0EN5sc_dt7sc_uintILi32EEES2_(ptr noundef nonnull align 8 dereferenceable(24296) %30, ptr noundef %21, ptr noundef %22)
          to label %286 unwind label %306

286:                                              ; preds = %285
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #3
  store i8 0, ptr %23, align 1, !tbaa !9
  %287 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 27
  %288 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %287, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %289 unwind label %311

289:                                              ; preds = %286
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #3
  br label %290

290:                                              ; preds = %297, %289
  %291 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 27
  %292 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(224) %291)
          to label %293 unwind label %129

293:                                              ; preds = %290
  %294 = load i8, ptr %292, align 1, !tbaa !9, !range !11, !noundef !12
  %295 = trunc i8 %294 to i1
  br i1 %295, label %296, label %315

296:                                              ; preds = %293
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %30)
          to label %297 unwind label %129

297:                                              ; preds = %296
  br label %290, !llvm.loop !24

298:                                              ; preds = %277
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %4, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #3
  br label %378

302:                                              ; preds = %284
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %4, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %5, align 4
  br label %310

306:                                              ; preds = %285
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %4, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %5, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #3
  br label %310

310:                                              ; preds = %306, %302
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #3
  br label %378

311:                                              ; preds = %286
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %4, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #3
  br label %378

315:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #3
  store i8 1, ptr %24, align 1, !tbaa !9
  %316 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 27
  %317 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %316, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %318 unwind label %337

318:                                              ; preds = %315
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #3
  %319 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %320 unwind label %341

320:                                              ; preds = %318
  %321 = add i64 %319, 1600
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %321)
          to label %322 unwind label %341

322:                                              ; preds = %320
  invoke void @_ZN15io_controller_m17read_from_memory0EN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint") align 8 %25, ptr noundef nonnull align 8 dereferenceable(24296) %30, ptr noundef %26)
          to label %323 unwind label %345

323:                                              ; preds = %322
  %324 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %325 unwind label %349

325:                                              ; preds = %323
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #3
  %326 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %327 unwind label %129

327:                                              ; preds = %325
  %328 = icmp ne i64 %326, 0
  br i1 %328, label %329, label %369

329:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #3
  %330 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %331 unwind label %355

331:                                              ; preds = %329
  %332 = add i64 %330, 1604
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %332)
          to label %333 unwind label %355

333:                                              ; preds = %331
  invoke void @_ZN15io_controller_m17read_from_memory0EN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint") align 8 %27, ptr noundef nonnull align 8 dereferenceable(24296) %30, ptr noundef %28)
          to label %334 unwind label %359

334:                                              ; preds = %333
  %335 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %336 unwind label %363

336:                                              ; preds = %334
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #3
  br label %369

337:                                              ; preds = %315
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %4, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #3
  br label %378

341:                                              ; preds = %320, %318
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %4, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %5, align 4
  br label %354

345:                                              ; preds = %322
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %4, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %5, align 4
  br label %353

349:                                              ; preds = %323
  %350 = landingpad { ptr, i32 }
          cleanup
  %351 = extractvalue { ptr, i32 } %350, 0
  store ptr %351, ptr %4, align 8
  %352 = extractvalue { ptr, i32 } %350, 1
  store i32 %352, ptr %5, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #3
  br label %353

353:                                              ; preds = %349, %345
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #3
  br label %354

354:                                              ; preds = %353, %341
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #3
  br label %378

355:                                              ; preds = %331, %329
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %4, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %5, align 4
  br label %368

359:                                              ; preds = %333
  %360 = landingpad { ptr, i32 }
          cleanup
  %361 = extractvalue { ptr, i32 } %360, 0
  store ptr %361, ptr %4, align 8
  %362 = extractvalue { ptr, i32 } %360, 1
  store i32 %362, ptr %5, align 4
  br label %367

363:                                              ; preds = %334
  %364 = landingpad { ptr, i32 }
          cleanup
  %365 = extractvalue { ptr, i32 } %364, 0
  store ptr %365, ptr %4, align 8
  %366 = extractvalue { ptr, i32 } %364, 1
  store i32 %366, ptr %5, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #3
  br label %367

367:                                              ; preds = %363, %359
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #3
  br label %368

368:                                              ; preds = %367, %355
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #3
  br label %378

369:                                              ; preds = %336, %327
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #3
  store i8 0, ptr %29, align 1, !tbaa !9
  %370 = getelementptr inbounds %struct.io_controller_m, ptr %30, i32 0, i32 27
  %371 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %370, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %372 unwind label %373

372:                                              ; preds = %369
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #3
  br label %151, !llvm.loop !25

373:                                              ; preds = %369
  %374 = landingpad { ptr, i32 }
          cleanup
  %375 = extractvalue { ptr, i32 } %374, 0
  store ptr %375, ptr %4, align 8
  %376 = extractvalue { ptr, i32 } %374, 1
  store i32 %376, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #3
  br label %378

377:                                              ; preds = %159
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #3
  br label %88, !llvm.loop !26

378:                                              ; preds = %373, %368, %354, %337, %311, %310, %298, %256, %166, %146, %129
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  br label %379

379:                                              ; preds = %378, %125, %121
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #3
  br label %380

380:                                              ; preds = %379, %117, %76
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  br label %381

381:                                              ; preds = %380, %72
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #3
  br label %382

382:                                              ; preds = %381, %41
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #3
  br label %383

383:                                              ; preds = %382
  %384 = load ptr, ptr %4, align 8
  %385 = load i32, ptr %5, align 4
  %386 = insertvalue { ptr, i32 } poison, ptr %384, 0
  %387 = insertvalue { ptr, i32 } %386, i32 %385, 1
  resume { ptr, i32 } %387
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232), i32 noundef) #1 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}


; 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.sc_dt::sc_uint" = type { %"class.sc_dt::sc_uint_base" }
%"class.sc_dt::sc_uint_base" = type { %"class.sc_dt::sc_value_base", i64, i32, i32 }
%"class.sc_dt::sc_value_base" = type { 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 uwtable
declare dso_local void @_ZN5sc_dt7sc_uintILi32EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15io_controller_m17read_from_memory0EN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::sc_uint") align 8, ptr noundef nonnull align 8 dereferenceable(24296), ptr noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7sc_core8sc_inoutIN5sc_dt7sc_uintILi32EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress noreturn uwtable
define dso_local void @_ZN15io_controller_m13control_writeEv(ptr noundef nonnull align 8 dereferenceable(24296) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.sc_dt::sc_uint", align 8
  %3 = alloca %"class.sc_dt::sc_uint", align 8
  %4 = alloca i8, align 1
  %5 = alloca %"class.sc_dt::sc_uint", align 8
  %6 = alloca %"class.sc_dt::sc_uint", align 8
  %7 = alloca %"class.sc_dt::sc_uint", align 8
  %8 = alloca %"class.sc_dt::sc_uint", align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca %"class.sc_dt::sc_uint", align 8
  %12 = alloca %"class.sc_dt::sc_uint", align 8
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca %"class.sc_dt::sc_uint", align 8
  %18 = alloca %"class.sc_dt::sc_uint", align 8
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca %"class.sc_dt::sc_uint", align 8
  %22 = alloca %"class.sc_dt::sc_uint", align 8
  %23 = alloca %"class.sc_dt::sc_uint", align 8
  %24 = alloca %"class.sc_dt::sc_uint", align 8
  %25 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #4
  call void @_ZN5sc_dt7sc_uintILi32EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %26 = getelementptr inbounds i8, ptr %0, i64 2432
  br label %27

27:                                               ; preds = %33, %1
  %28 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbE4readEv(ptr noundef nonnull align 8 dereferenceable(184) %26)
          to label %29 unwind label %.loopexit.split-lp66

29:                                               ; preds = %27
  %30 = load i8, ptr %28, align 1, !tbaa !5, !range !9, !noundef !10
  %31 = icmp eq i8 %30, 0
  br i1 %31, label %33, label %.preheader64

.preheader64:                                     ; preds = %29
  %32 = getelementptr inbounds i8, ptr %0, i64 2248
  br label %34

33:                                               ; preds = %29
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %27 unwind label %.loopexit.split-lp66, !llvm.loop !11

.loopexit65:                                      ; preds = %34, %39
  %lpad.loopexit67 = landingpad { ptr, i32 }
          cleanup
  br label %213

.loopexit.split-lp66:                             ; preds = %27, %33
  %lpad.loopexit.split-lp68 = landingpad { ptr, i32 }
          cleanup
  br label %213

34:                                               ; preds = %.preheader64, %39
  %35 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbE4readEv(ptr noundef nonnull align 8 dereferenceable(184) %32)
          to label %36 unwind label %.loopexit65

36:                                               ; preds = %34
  %37 = load i8, ptr %35, align 1, !tbaa !5, !range !9, !noundef !10
  %38 = icmp eq i8 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %36
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %34 unwind label %.loopexit65, !llvm.loop !13

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  %41 = getelementptr inbounds i8, ptr %0, i64 768
  %42 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7sc_core8sc_inoutIN5sc_dt7sc_uintILi32EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(176) %41)
          to label %43 unwind label %50

43:                                               ; preds = %40
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %42)
          to label %44 unwind label %50

44:                                               ; preds = %43
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader60 unwind label %.loopexit.split-lp52.loopexit.split-lp.loopexit.split-lp

.preheader60:                                     ; preds = %44, %49
  %45 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbE4readEv(ptr noundef nonnull align 8 dereferenceable(184) %32)
          to label %46 unwind label %.loopexit.split-lp52.loopexit.split-lp.loopexit

46:                                               ; preds = %.preheader60
  %47 = load i8, ptr %45, align 1, !tbaa !5, !range !9, !noundef !10
  %48 = icmp eq i8 %47, 0
  br i1 %48, label %49, label %52

49:                                               ; preds = %46
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader60 unwind label %.loopexit.split-lp52.loopexit.split-lp.loopexit, !llvm.loop !14

50:                                               ; preds = %43, %40
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %212

.loopexit51:                                      ; preds = %.preheader50, %66
  %lpad.loopexit53 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp52

.loopexit.split-lp52.loopexit:                    ; preds = %61
  %lpad.loopexit57 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp52

.loopexit.split-lp52.loopexit.split-lp.loopexit:  ; preds = %.preheader60, %49
  %lpad.loopexit61 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp52

.loopexit.split-lp52.loopexit.split-lp.loopexit.split-lp: ; preds = %44, %52, %54
  %lpad.loopexit.split-lp62 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp52

52:                                               ; preds = %46
  %53 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7sc_core8sc_inoutIN5sc_dt7sc_uintILi32EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(176) %41)
          to label %54 unwind label %.loopexit.split-lp52.loopexit.split-lp.loopexit.split-lp

54:                                               ; preds = %52
  %55 = getelementptr inbounds i8, ptr %0, i64 4600
  %56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 8 dereferenceable(24) %53)
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader56 unwind label %.loopexit.split-lp52.loopexit.split-lp.loopexit.split-lp

.preheader56:                                     ; preds = %54
  %57 = getelementptr inbounds i8, ptr %0, i64 4872
  %58 = getelementptr inbounds i8, ptr %0, i64 5096
  %59 = getelementptr inbounds i8, ptr %0, i64 3704
  %60 = getelementptr inbounds i8, ptr %0, i64 3928
  br label %61

61:                                               ; preds = %.preheader56, %.critedge
  invoke void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef 1000)
          to label %.preheader50 unwind label %.loopexit.split-lp52.loopexit

.preheader50:                                     ; preds = %61, %66
  %62 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(224) %57)
          to label %63 unwind label %.loopexit51

63:                                               ; preds = %.preheader50
  %64 = load i8, ptr %62, align 1, !tbaa !5, !range !9, !noundef !10
  %65 = trunc nuw i8 %64 to i1
  br i1 %65, label %66, label %67

66:                                               ; preds = %63
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader50 unwind label %.loopexit51, !llvm.loop !15

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  store i8 1, ptr %4, align 1, !tbaa !5
  %68 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %57, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %69 unwind label %79

69:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %55)
          to label %70 unwind label %81

70:                                               ; preds = %69
  invoke void @_ZN15io_controller_m17read_from_memory0EN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint") align 8 %5, ptr noundef nonnull align 8 dereferenceable(24296) %0, ptr noundef nonnull %6)
          to label %71 unwind label %83

71:                                               ; preds = %70
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  %72 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %.not = icmp eq i64 %72, 0
  br i1 %.not, label %90, label %73

73:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  %74 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %75 = add i64 %74, 1604
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %75)
          to label %76 unwind label %85

76:                                               ; preds = %73
  invoke void @_ZN15io_controller_m17read_from_memory0EN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24296) %0, ptr noundef nonnull %8)
          to label %77 unwind label %87

77:                                               ; preds = %76
  %78 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %7)
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  br label %90

79:                                               ; preds = %67
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  br label %.loopexit.split-lp52

81:                                               ; preds = %69
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %211

83:                                               ; preds = %70
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  br label %211

.loopexit:                                        ; preds = %163, %168
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %152, %.preheader42
  %lpad.loopexit43 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %147
  %lpad.loopexit47 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %155
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

85:                                               ; preds = %73
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %89

87:                                               ; preds = %76
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  br label %89

89:                                               ; preds = %87, %85
  %.pn = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  br label %.loopexit.split-lp

90:                                               ; preds = %77, %71
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #4
  store i8 0, ptr %9, align 1, !tbaa !5
  %91 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %57, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %92 unwind label %96

92:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  %93 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %.not2273 = icmp eq i64 %93, 0
  br i1 %.not2273, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %92, %207
  %94 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %95 = icmp eq i64 %94, 400
  br i1 %95, label %.preheader, label %.critedge

.preheader:                                       ; preds = %.lr.ph, %141
  %indvars.iv = phi i64 [ %indvars.iv.next, %141 ], [ 0, %.lr.ph ]
  br label %98

96:                                               ; preds = %90
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  br label %.loopexit.split-lp

98:                                               ; preds = %.preheader, %103
  %99 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(224) %57)
          to label %100 unwind label %104

100:                                              ; preds = %98
  %101 = load i8, ptr %99, align 1, !tbaa !5, !range !9, !noundef !10
  %102 = trunc nuw i8 %101 to i1
  br i1 %102, label %103, label %106

103:                                              ; preds = %100
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %98 unwind label %104, !llvm.loop !16

104:                                              ; preds = %103, %98
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

106:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #4
  store i8 1, ptr %10, align 1, !tbaa !5
  %107 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %57, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %108 unwind label %124

108:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #4
  %109 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %110 = shl nuw nsw i64 %indvars.iv, 2
  %111 = add i64 %109, %110
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %111)
          to label %112 unwind label %126

112:                                              ; preds = %108
  invoke void @_ZN15io_controller_m17read_from_memory0EN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24296) %0, ptr noundef nonnull %12)
          to label %113 unwind label %128

113:                                              ; preds = %112
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #4
  store i8 0, ptr %13, align 1, !tbaa !5
  %114 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %57, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %115 unwind label %130

115:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #4
  %116 = icmp eq i64 %indvars.iv, 0
  br i1 %116, label %117, label %138

117:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #4
  store i8 1, ptr %14, align 1, !tbaa !5
  %118 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %59, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %119 unwind label %132

119:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #4
  %120 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 8 dereferenceable(24) %11)
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %121 unwind label %134

121:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #4
  store i8 0, ptr %15, align 1, !tbaa !5
  %122 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %59, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %123 unwind label %136

123:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #4
  br label %141

124:                                              ; preds = %106
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  br label %.loopexit.split-lp

126:                                              ; preds = %108
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %143

128:                                              ; preds = %112
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  br label %143

130:                                              ; preds = %113
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #4
  br label %142

132:                                              ; preds = %117
  %133 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #4
  br label %142

134:                                              ; preds = %138, %119
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %142

136:                                              ; preds = %121
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #4
  br label %142

138:                                              ; preds = %115
  %139 = getelementptr inbounds [400 x %"class.sc_dt::sc_uint"], ptr %58, i64 0, i64 %indvars.iv
  %140 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 8 dereferenceable(24) %11)
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %141 unwind label %134

141:                                              ; preds = %138, %123
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 400
  br i1 %exitcond.not, label %.preheader46, label %.preheader, !llvm.loop !17

142:                                              ; preds = %136, %134, %132, %130
  %.pn30 = phi { ptr, i32 } [ %137, %136 ], [ %135, %134 ], [ %133, %132 ], [ %131, %130 ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  br label %143

143:                                              ; preds = %142, %128, %126
  %.pn30.pn = phi { ptr, i32 } [ %.pn30, %142 ], [ %129, %128 ], [ %127, %126 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  br label %.loopexit.split-lp

.preheader46:                                     ; preds = %141, %147
  %144 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE4readEv(ptr noundef nonnull align 8 dereferenceable(224) %60)
  %145 = load i8, ptr %144, align 1, !tbaa !5, !range !9, !noundef !10
  %146 = icmp eq i8 %145, 0
  br i1 %146, label %147, label %.preheader42

147:                                              ; preds = %.preheader46
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader46 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit, !llvm.loop !18

.preheader42:                                     ; preds = %.preheader46, %152
  %148 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(224) %57)
          to label %149 unwind label %.loopexit.split-lp.loopexit

149:                                              ; preds = %.preheader42
  %150 = load i8, ptr %148, align 1, !tbaa !5, !range !9, !noundef !10
  %151 = trunc nuw i8 %150 to i1
  br i1 %151, label %152, label %153

152:                                              ; preds = %149
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader42 unwind label %.loopexit.split-lp.loopexit, !llvm.loop !19

153:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #4
  store i8 1, ptr %16, align 1, !tbaa !5
  %154 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %57, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %155 unwind label %169

155:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #4
  %156 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %157 = add i64 %156, 1604
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %157)
          to label %158 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

158:                                              ; preds = %155
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ej(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef -1)
          to label %159 unwind label %171

159:                                              ; preds = %158
  invoke void @_ZN15io_controller_m18write_into_memory0EN5sc_dt7sc_uintILi32EEES2_(ptr noundef nonnull align 8 dereferenceable(24296) %0, ptr noundef nonnull %17, ptr noundef nonnull %18)
          to label %160 unwind label %173

160:                                              ; preds = %159
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #4
  store i8 0, ptr %19, align 1, !tbaa !5
  %161 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %57, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %162 unwind label %176

162:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #4
  br label %163

163:                                              ; preds = %168, %162
  %164 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(224) %57)
          to label %165 unwind label %.loopexit

165:                                              ; preds = %163
  %166 = load i8, ptr %164, align 1, !tbaa !5, !range !9, !noundef !10
  %167 = trunc nuw i8 %166 to i1
  br i1 %167, label %168, label %178

168:                                              ; preds = %165
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %163 unwind label %.loopexit, !llvm.loop !20

169:                                              ; preds = %153
  %170 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #4
  br label %.loopexit.split-lp

171:                                              ; preds = %158
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %175

173:                                              ; preds = %159
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  br label %175

175:                                              ; preds = %173, %171
  %.pn23 = phi { ptr, i32 } [ %174, %173 ], [ %172, %171 ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  br label %.loopexit.split-lp

176:                                              ; preds = %160
  %177 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #4
  br label %.loopexit.split-lp

178:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #4
  store i8 1, ptr %20, align 1, !tbaa !5
  %179 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %57, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %180 unwind label %193

180:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #4
  %181 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %182 = add i64 %181, 1600
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %182)
          to label %183 unwind label %195

183:                                              ; preds = %180
  invoke void @_ZN15io_controller_m17read_from_memory0EN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint") align 8 %21, ptr noundef nonnull align 8 dereferenceable(24296) %0, ptr noundef nonnull %22)
          to label %184 unwind label %197

184:                                              ; preds = %183
  %185 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %21)
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #4
  %186 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %.not27 = icmp eq i64 %186, 0
  br i1 %.not27, label %205, label %187

187:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #4
  %188 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %189 = add i64 %188, 1604
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %189)
          to label %190 unwind label %200

190:                                              ; preds = %187
  invoke void @_ZN15io_controller_m17read_from_memory0EN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint") align 8 %23, ptr noundef nonnull align 8 dereferenceable(24296) %0, ptr noundef nonnull %24)
          to label %191 unwind label %202

191:                                              ; preds = %190
  %192 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %23)
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #4
  br label %205

193:                                              ; preds = %178
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #4
  br label %.loopexit.split-lp

195:                                              ; preds = %180
  %196 = landingpad { ptr, i32 }
          cleanup
  br label %199

197:                                              ; preds = %183
  %198 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #4
  br label %199

199:                                              ; preds = %197, %195
  %.pn25 = phi { ptr, i32 } [ %198, %197 ], [ %196, %195 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #4
  br label %.loopexit.split-lp

200:                                              ; preds = %187
  %201 = landingpad { ptr, i32 }
          cleanup
  br label %204

202:                                              ; preds = %190
  %203 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #4
  br label %204

204:                                              ; preds = %202, %200
  %.pn28 = phi { ptr, i32 } [ %203, %202 ], [ %201, %200 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #4
  br label %.loopexit.split-lp

205:                                              ; preds = %191, %184
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #4
  store i8 0, ptr %25, align 1, !tbaa !5
  %206 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %57, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %207 unwind label %209

207:                                              ; preds = %205
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #4
  %208 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %.not22 = icmp eq i64 %208, 0
  br i1 %.not22, label %.critedge, label %.lr.ph, !llvm.loop !21

209:                                              ; preds = %205
  %210 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #4
  br label %.loopexit.split-lp

.critedge:                                        ; preds = %.lr.ph, %207, %92
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  br label %61, !llvm.loop !22

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %104, %124, %143, %209, %204, %199, %193, %176, %175, %169, %96, %89
  %.pn33.pn = phi { ptr, i32 } [ %210, %209 ], [ %.pn28, %204 ], [ %.pn25, %199 ], [ %194, %193 ], [ %177, %176 ], [ %.pn23, %175 ], [ %170, %169 ], [ %97, %96 ], [ %.pn, %89 ], [ %105, %104 ], [ %.pn30.pn, %143 ], [ %125, %124 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit43, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit47, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  br label %211

211:                                              ; preds = %.loopexit.split-lp, %83, %81
  %.pn33.pn.pn = phi { ptr, i32 } [ %.pn33.pn, %.loopexit.split-lp ], [ %84, %83 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  br label %.loopexit.split-lp52

.loopexit.split-lp52:                             ; preds = %.loopexit51, %.loopexit.split-lp52.loopexit.split-lp.loopexit, %.loopexit.split-lp52.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp52.loopexit, %211, %79
  %.pn37 = phi { ptr, i32 } [ %.pn33.pn.pn, %211 ], [ %80, %79 ], [ %lpad.loopexit53, %.loopexit51 ], [ %lpad.loopexit57, %.loopexit.split-lp52.loopexit ], [ %lpad.loopexit61, %.loopexit.split-lp52.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp62, %.loopexit.split-lp52.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %212

212:                                              ; preds = %.loopexit.split-lp52, %50
  %.pn37.pn = phi { ptr, i32 } [ %.pn37, %.loopexit.split-lp52 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  br label %213

213:                                              ; preds = %.loopexit65, %.loopexit.split-lp66, %212
  %.pn40 = phi { ptr, i32 } [ %.pn37.pn, %212 ], [ %lpad.loopexit67, %.loopexit65 ], [ %lpad.loopexit.split-lp68, %.loopexit.split-lp66 ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn40
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232), i32 noundef) local_unnamed_addr #1 align 2

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

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

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

attributes #0 = { mustprogress 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 = { 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 noreturn 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 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass