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

; 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_inout.20", %"class.sc_core::sc_out.28", %"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_core::sc_signal.55", %"class.sc_core::sc_signal.55", %"class.sc_core::sc_signal.55", %"class.sc_core::sc_signal.55", %"class.sc_core::sc_signal.55", %"class.sc_dt::sc_uint", %"class.sc_dt::sc_uint", %"class.sc_core::sc_signal.55" }
%"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, %"class.sc_dt::sc_uint", i64, %"class.sc_dt::sc_uint" }
%"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 }
%"class.sc_core::sc_signal.55" = type { %"class.sc_core::sc_signal_inout_if.56", %"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.56" = type { %"class.sc_core::sc_signal_in_if.57", %"class.sc_core::sc_signal_write_if.58" }
%"class.sc_core::sc_signal_in_if.57" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_signal_write_if.58" = type { %"class.sc_core::sc_interface" }

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

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

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

; 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)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15io_controller_m16read_from_memoryEN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::sc_uint") align 8, ptr noundef nonnull align 8 dereferenceable(5288), ptr noundef) #0 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(184)) #0 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)) #0 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 #0 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 void @_ZN15io_controller_m17write_into_memoryEN5sc_dt7sc_uintILi32EEES2_(ptr noundef nonnull align 8 dereferenceable(5288), ptr noundef, ptr noundef) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15io_controller_m13control_writeEv(ptr noundef nonnull align 8 dereferenceable(5288) %0) #0 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 %"class.sc_dt::sc_uint", align 8
  %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 i32, align 4
  %12 = alloca %"class.sc_dt::sc_uint", align 8
  %13 = alloca %"class.sc_dt::sc_uint", align 8
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca %"class.sc_dt::sc_uint", align 8
  %17 = alloca %"class.sc_dt::sc_uint", align 8
  %18 = alloca %"class.sc_dt::sc_uint", align 8
  %19 = alloca %"class.sc_dt::sc_uint", align 8
  %20 = alloca %"class.sc_dt::sc_uint", align 8
  %21 = alloca %"class.sc_dt::sc_uint", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %22 = 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)
  %23 = getelementptr inbounds %struct.io_controller_m, ptr %22, i32 0, i32 9
  %24 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbE4readEv(ptr noundef nonnull align 8 dereferenceable(184) %23)
          to label %25 unwind label %70

25:                                               ; preds = %1
  %26 = load i8, ptr %24, align 1, !tbaa !9, !range !11, !noundef !12
  %27 = trunc i8 %26 to i1
  br i1 %27, label %83, label %28

28:                                               ; preds = %25
  br label %29

29:                                               ; preds = %34, %28
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %22)
          to label %30 unwind label %70

30:                                               ; preds = %29
  br label %31

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

34:                                               ; preds = %31
  %35 = load i8, ptr %33, align 1, !tbaa !9, !range !11, !noundef !12
  %36 = trunc i8 %35 to i1
  %37 = xor i1 %36, true
  br i1 %37, label %29, label %38, !llvm.loop !13

38:                                               ; preds = %34
  br label %39

39:                                               ; preds = %44, %38
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %22)
          to label %40 unwind label %70

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  %42 = getelementptr inbounds %struct.io_controller_m, ptr %22, i32 0, i32 8
  %43 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(184) %42)
          to label %44 unwind label %70

44:                                               ; preds = %41
  %45 = load i8, ptr %43, align 1, !tbaa !9, !range !11, !noundef !12
  %46 = trunc i8 %45 to i1
  %47 = xor i1 %46, true
  br i1 %47, label %39, label %48, !llvm.loop !15

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #3
  %49 = getelementptr inbounds %struct.io_controller_m, ptr %22, i32 0, i32 3
  %50 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7sc_core8sc_inoutIN5sc_dt7sc_uintILi32EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(176) %49)
          to label %51 unwind label %74

51:                                               ; preds = %48
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %50)
          to label %52 unwind label %74

52:                                               ; preds = %51
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %22)
          to label %53 unwind label %78

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %59, %53
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %22)
          to label %55 unwind label %78

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  %57 = getelementptr inbounds %struct.io_controller_m, ptr %22, i32 0, i32 8
  %58 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(184) %57)
          to label %59 unwind label %78

59:                                               ; preds = %56
  %60 = load i8, ptr %58, align 1, !tbaa !9, !range !11, !noundef !12
  %61 = trunc i8 %60 to i1
  %62 = xor i1 %61, true
  br i1 %62, label %54, label %63, !llvm.loop !16

63:                                               ; preds = %59
  %64 = getelementptr inbounds %struct.io_controller_m, ptr %22, i32 0, i32 3
  %65 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7sc_core8sc_inoutIN5sc_dt7sc_uintILi32EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(176) %64)
          to label %66 unwind label %78

66:                                               ; preds = %63
  %67 = getelementptr inbounds %struct.io_controller_m, ptr %22, i32 0, i32 25
  %68 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 8 dereferenceable(24) %65)
          to label %69 unwind label %78

69:                                               ; preds = %66
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #3
  br label %83

70:                                               ; preds = %85, %41, %39, %31, %29, %1
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %4, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %5, align 4
  br label %276

74:                                               ; preds = %51, %48
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %4, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %5, align 4
  br label %82

78:                                               ; preds = %66, %63, %56, %54, %52
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %4, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %5, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  br label %82

82:                                               ; preds = %78, %74
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #3
  br label %276

83:                                               ; preds = %69, %25
  br label %84

84:                                               ; preds = %273, %83
  br label %85

85:                                               ; preds = %84
  invoke void @_ZN15io_controller_m1PEv(ptr noundef nonnull align 8 dereferenceable(5288) %22)
          to label %86 unwind label %70

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #3
  %87 = getelementptr inbounds %struct.io_controller_m, ptr %22, i32 0, i32 25
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %87)
          to label %88 unwind label %101

88:                                               ; preds = %86
  invoke void @_ZN15io_controller_m16read_from_memoryEN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint") align 8 %7, ptr noundef nonnull align 8 dereferenceable(5288) %22, ptr noundef %8)
          to label %89 unwind label %105

89:                                               ; preds = %88
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  %90 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %91 unwind label %109

91:                                               ; preds = %89
  %92 = icmp ne i64 %90, 0
  br i1 %92, label %93, label %127

93:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #3
  %94 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %95 unwind label %113

95:                                               ; preds = %93
  %96 = add i64 %94, 1604
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %96)
          to label %97 unwind label %113

97:                                               ; preds = %95
  invoke void @_ZN15io_controller_m16read_from_memoryEN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint") align 8 %9, ptr noundef nonnull align 8 dereferenceable(5288) %22, ptr noundef %10)
          to label %98 unwind label %117

98:                                               ; preds = %97
  %99 = 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) %9)
          to label %100 unwind label %121

100:                                              ; preds = %98
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #3
  br label %127

101:                                              ; preds = %86
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %4, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %5, align 4
  br label %275

105:                                              ; preds = %88
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %4, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %5, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  br label %275

109:                                              ; preds = %271, %222, %214, %213, %209, %207, %206, %204, %196, %133, %129, %127, %89
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %4, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %5, align 4
  br label %274

113:                                              ; preds = %95, %93
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %4, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %5, align 4
  br label %126

117:                                              ; preds = %97
  %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
  br label %125

121:                                              ; preds = %98
  %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
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  br label %125

125:                                              ; preds = %121, %117
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #3
  br label %126

126:                                              ; preds = %125, %113
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #3
  br label %274

127:                                              ; preds = %100, %91
  invoke void @_ZN15io_controller_m1VEv(ptr noundef nonnull align 8 dereferenceable(5288) %22)
          to label %128 unwind label %109

128:                                              ; preds = %127
  br label %129

129:                                              ; preds = %272, %128
  %130 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %131 unwind label %109

131:                                              ; preds = %129
  %132 = icmp ne i64 %130, 0
  br i1 %132, label %133, label %137

133:                                              ; preds = %131
  %134 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %135 unwind label %109

135:                                              ; preds = %133
  %136 = icmp eq i64 %134, 400
  br label %137

137:                                              ; preds = %135, %131
  %138 = phi i1 [ false, %131 ], [ %136, %135 ]
  br i1 %138, label %139, label %273

139:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !17
  br label %140

140:                                              ; preds = %165, %139
  %141 = load i32, ptr %11, align 4, !tbaa !17
  %142 = icmp slt i32 %141, 400
  br i1 %142, label %144, label %143

143:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %195

144:                                              ; preds = %140
  invoke void @_ZN15io_controller_m1PEv(ptr noundef nonnull align 8 dereferenceable(5288) %22)
          to label %145 unwind label %168

145:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #3
  %146 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %147 unwind label %172

147:                                              ; preds = %145
  %148 = load i32, ptr %11, align 4, !tbaa !17
  %149 = mul nsw i32 %148, 4
  %150 = sext i32 %149 to i64
  %151 = add i64 %146, %150
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %151)
          to label %152 unwind label %172

152:                                              ; preds = %147
  invoke void @_ZN15io_controller_m16read_from_memoryEN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint") align 8 %12, ptr noundef nonnull align 8 dereferenceable(5288) %22, ptr noundef %13)
          to label %153 unwind label %176

153:                                              ; preds = %152
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  invoke void @_ZN15io_controller_m1VEv(ptr noundef nonnull align 8 dereferenceable(5288) %22)
          to label %154 unwind label %180

154:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #3
  store i8 1, ptr %14, align 1, !tbaa !9
  %155 = getelementptr inbounds %struct.io_controller_m, ptr %22, i32 0, i32 20
  %156 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %155, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %157 unwind label %184

157:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  %158 = getelementptr inbounds %struct.io_controller_m, ptr %22, i32 0, i32 18
  %159 = invoke noundef nonnull align 8 dereferenceable(232) ptr @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi32EEELNS_16sc_writer_policyE0EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(232) %158, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %160 unwind label %180

160:                                              ; preds = %157
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %22)
          to label %161 unwind label %180

161:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #3
  store i8 0, ptr %15, align 1, !tbaa !9
  %162 = getelementptr inbounds %struct.io_controller_m, ptr %22, i32 0, i32 20
  %163 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %162, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %164 unwind label %188

164:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #3
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %11, align 4, !tbaa !17
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %11, align 4, !tbaa !17
  br label %140, !llvm.loop !19

168:                                              ; preds = %144
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %4, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %5, align 4
  br label %194

172:                                              ; preds = %147, %145
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %4, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %5, align 4
  br label %193

176:                                              ; preds = %152
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %4, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %5, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  br label %193

180:                                              ; preds = %160, %157, %153
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %4, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %5, align 4
  br label %192

184:                                              ; preds = %154
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %4, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  br label %192

188:                                              ; preds = %161
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %4, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #3
  br label %192

192:                                              ; preds = %188, %184, %180
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  br label %193

193:                                              ; preds = %192, %176, %172
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #3
  br label %194

194:                                              ; preds = %193, %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %274

195:                                              ; preds = %143
  br label %196

196:                                              ; preds = %205, %195
  %197 = getelementptr inbounds %struct.io_controller_m, ptr %22, i32 0, i32 21
  %198 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE4readEv(ptr noundef nonnull align 8 dereferenceable(224) %197)
          to label %199 unwind label %109

199:                                              ; preds = %196
  %200 = load i8, ptr %198, align 1, !tbaa !9, !range !11, !noundef !12
  %201 = trunc i8 %200 to i1
  %202 = zext i1 %201 to i32
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %206

204:                                              ; preds = %199
  invoke void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232) %22, i32 noundef 2)
          to label %205 unwind label %109

205:                                              ; preds = %204
  br label %196, !llvm.loop !20

206:                                              ; preds = %199
  invoke void @_ZN15io_controller_m1PEv(ptr noundef nonnull align 8 dereferenceable(5288) %22)
          to label %207 unwind label %109

207:                                              ; preds = %206
  %208 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %209 unwind label %109

209:                                              ; preds = %207
  %210 = add i64 %208, 1604
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %210)
          to label %211 unwind label %109

211:                                              ; preds = %209
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ej(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef -1)
          to label %212 unwind label %234

212:                                              ; preds = %211
  invoke void @_ZN15io_controller_m17write_into_memoryEN5sc_dt7sc_uintILi32EEES2_(ptr noundef nonnull align 8 dereferenceable(5288) %22, ptr noundef %16, ptr noundef %17)
          to label %213 unwind label %238

213:                                              ; preds = %212
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #3
  invoke void @_ZN15io_controller_m1VEv(ptr noundef nonnull align 8 dereferenceable(5288) %22)
          to label %214 unwind label %109

214:                                              ; preds = %213
  invoke void @_ZN15io_controller_m1PEv(ptr noundef nonnull align 8 dereferenceable(5288) %22)
          to label %215 unwind label %109

215:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #3
  %216 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %217 unwind label %243

217:                                              ; preds = %215
  %218 = add i64 %216, 1600
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %218)
          to label %219 unwind label %243

219:                                              ; preds = %217
  invoke void @_ZN15io_controller_m16read_from_memoryEN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint") align 8 %18, ptr noundef nonnull align 8 dereferenceable(5288) %22, ptr noundef %19)
          to label %220 unwind label %247

220:                                              ; preds = %219
  %221 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %222 unwind label %251

222:                                              ; preds = %220
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #3
  %223 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %224 unwind label %109

224:                                              ; preds = %222
  %225 = icmp ne i64 %223, 0
  br i1 %225, label %226, label %271

226:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #3
  %227 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %228 unwind label %257

228:                                              ; preds = %226
  %229 = add i64 %227, 1604
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %229)
          to label %230 unwind label %257

230:                                              ; preds = %228
  invoke void @_ZN15io_controller_m16read_from_memoryEN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_uint") align 8 %20, ptr noundef nonnull align 8 dereferenceable(5288) %22, ptr noundef %21)
          to label %231 unwind label %261

231:                                              ; preds = %230
  %232 = 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) %20)
          to label %233 unwind label %265

233:                                              ; preds = %231
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #3
  br label %271

234:                                              ; preds = %211
  %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 %242

238:                                              ; preds = %212
  %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 @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #3
  br label %242

242:                                              ; preds = %238, %234
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #3
  br label %274

243:                                              ; preds = %217, %215
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %4, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %5, align 4
  br label %256

247:                                              ; preds = %219
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %4, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %5, align 4
  br label %255

251:                                              ; preds = %220
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %4, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %5, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  br label %255

255:                                              ; preds = %251, %247
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  br label %256

256:                                              ; preds = %255, %243
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #3
  br label %274

257:                                              ; preds = %228, %226
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %4, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %5, align 4
  br label %270

261:                                              ; preds = %230
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %4, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %5, align 4
  br label %269

265:                                              ; preds = %231
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %4, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %5, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #3
  br label %269

269:                                              ; preds = %265, %261
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #3
  br label %270

270:                                              ; preds = %269, %257
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #3
  br label %274

271:                                              ; preds = %233, %224
  invoke void @_ZN15io_controller_m1VEv(ptr noundef nonnull align 8 dereferenceable(5288) %22)
          to label %272 unwind label %109

272:                                              ; preds = %271
  br label %129, !llvm.loop !21

273:                                              ; preds = %137
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #3
  br label %84, !llvm.loop !22

274:                                              ; preds = %270, %256, %242, %194, %126, %109
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  br label %275

275:                                              ; preds = %274, %105, %101
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #3
  br label %276

276:                                              ; preds = %275, %82, %70
  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 %277

277:                                              ; preds = %276
  %278 = load ptr, ptr %4, align 8
  %279 = load i32, ptr %5, align 4
  %280 = insertvalue { ptr, i32 } poison, ptr %278, 0
  %281 = insertvalue { ptr, i32 } %280, i32 %279, 1
  resume { ptr, i32 } %281
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt7sc_uintILi32EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 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)) #0 align 2

; 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 void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(232) ptr @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi32EEELNS_16sc_writer_policyE0EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(24)) #0 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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !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 uwtable
declare dso_local void @_ZN15io_controller_m1PEv(ptr noundef nonnull align 8 dereferenceable(5288)) local_unnamed_addr #0 align 2

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

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

; 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 #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15io_controller_m16read_from_memoryEN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::sc_uint") align 8, ptr noundef nonnull align 8 dereferenceable(5288), ptr noundef) local_unnamed_addr #0 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #0 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 #0 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 #0 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 void @_ZN15io_controller_m17write_into_memoryEN5sc_dt7sc_uintILi32EEES2_(ptr noundef nonnull align 8 dereferenceable(5288), ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress noreturn uwtable
define dso_local void @_ZN15io_controller_m13control_writeEv(ptr noundef nonnull align 8 dereferenceable(5288) %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 %"class.sc_dt::sc_uint", align 8
  %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 %"class.sc_dt::sc_uint", align 8
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca %"class.sc_dt::sc_uint", align 8
  %13 = alloca %"class.sc_dt::sc_uint", align 8
  %14 = alloca %"class.sc_dt::sc_uint", align 8
  %15 = alloca %"class.sc_dt::sc_uint", align 8
  %16 = alloca %"class.sc_dt::sc_uint", align 8
  %17 = alloca %"class.sc_dt::sc_uint", align 8
  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)
  %18 = getelementptr inbounds i8, ptr %0, i64 1696
  %19 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbE4readEv(ptr noundef nonnull align 8 dereferenceable(184) %18)
          to label %20 unwind label %.loopexit.split-lp41.loopexit.split-lp.loopexit.split-lp

20:                                               ; preds = %1
  %21 = load i8, ptr %19, align 1, !tbaa !5, !range !9, !noundef !10
  %22 = trunc nuw i8 %21 to i1
  br i1 %22, label %54, label %.preheader54

.preheader54:                                     ; preds = %20, %25
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %23 unwind label %.loopexit.split-lp41.loopexit.split-lp.loopexit

23:                                               ; preds = %.preheader54
  %24 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(184) %18)
          to label %25 unwind label %.loopexit.split-lp41.loopexit.split-lp.loopexit

25:                                               ; preds = %23
  %26 = load i8, ptr %24, align 1, !tbaa !5, !range !9, !noundef !10
  %27 = trunc nuw i8 %26 to i1
  br i1 %27, label %.preheader50, label %.preheader54, !llvm.loop !11

.preheader50:                                     ; preds = %25
  %28 = getelementptr inbounds i8, ptr %0, i64 1512
  br label %29

29:                                               ; preds = %.preheader50, %32
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %30 unwind label %.loopexit.split-lp41.loopexit

30:                                               ; preds = %29
  %31 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(184) %28)
          to label %32 unwind label %.loopexit.split-lp41.loopexit

32:                                               ; preds = %30
  %33 = load i8, ptr %31, align 1, !tbaa !5, !range !9, !noundef !10
  %34 = trunc nuw i8 %33 to i1
  br i1 %34, label %35, label %29, !llvm.loop !13

35:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  %36 = getelementptr inbounds i8, ptr %0, i64 592
  %37 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7sc_core8sc_inoutIN5sc_dt7sc_uintILi32EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(176) %36)
          to label %38 unwind label %50

38:                                               ; preds = %35
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %37)
          to label %39 unwind label %50

39:                                               ; preds = %38
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader44 unwind label %.loopexit.split-lp46

.preheader44:                                     ; preds = %39, %42
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %40 unwind label %.loopexit45

40:                                               ; preds = %.preheader44
  %41 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core5sc_inIbEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(184) %28)
          to label %42 unwind label %.loopexit45

42:                                               ; preds = %40
  %43 = load i8, ptr %41, align 1, !tbaa !5, !range !9, !noundef !10
  %44 = trunc nuw i8 %43 to i1
  br i1 %44, label %45, label %.preheader44, !llvm.loop !14

45:                                               ; preds = %42
  %46 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7sc_core8sc_inoutIN5sc_dt7sc_uintILi32EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(176) %36)
          to label %47 unwind label %.loopexit.split-lp46

47:                                               ; preds = %45
  %48 = getelementptr inbounds i8, ptr %0, i64 5016
  %49 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %48, ptr noundef nonnull align 8 dereferenceable(24) %46)
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  br label %54

.loopexit40:                                      ; preds = %59
  %lpad.loopexit42 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp41

.loopexit.split-lp41.loopexit:                    ; preds = %30, %29
  %lpad.loopexit51 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp41

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

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

50:                                               ; preds = %38, %35
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %53

.loopexit45:                                      ; preds = %.preheader44, %40
  %lpad.loopexit47 = landingpad { ptr, i32 }
          cleanup
  br label %52

.loopexit.split-lp46:                             ; preds = %39, %45
  %lpad.loopexit.split-lp48 = landingpad { ptr, i32 }
          cleanup
  br label %52

52:                                               ; preds = %.loopexit.split-lp46, %.loopexit45
  %lpad.phi49 = phi { ptr, i32 } [ %lpad.loopexit47, %.loopexit45 ], [ %lpad.loopexit.split-lp48, %.loopexit.split-lp46 ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %53

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

54:                                               ; preds = %47, %20
  %55 = getelementptr inbounds i8, ptr %0, i64 5016
  %56 = getelementptr inbounds i8, ptr %0, i64 3896
  %57 = getelementptr inbounds i8, ptr %0, i64 3432
  %58 = getelementptr inbounds i8, ptr %0, i64 4120
  br label %59

59:                                               ; preds = %.critedge, %54
  invoke void @_ZN15io_controller_m1PEv(ptr noundef nonnull align 8 dereferenceable(5288) %0)
          to label %60 unwind label %.loopexit40

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %55)
          to label %61 unwind label %70

61:                                               ; preds = %60
  invoke void @_ZN15io_controller_m16read_from_memoryEN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint") align 8 %4, ptr noundef nonnull align 8 dereferenceable(5288) %0, ptr noundef nonnull %5)
          to label %62 unwind label %72

62:                                               ; preds = %61
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  %63 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %.not = icmp eq i64 %63, 0
  br i1 %.not, label %79, label %64

64:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  %65 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %66 = add i64 %65, 1604
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %66)
          to label %67 unwind label %74

67:                                               ; preds = %64
  invoke void @_ZN15io_controller_m16read_from_memoryEN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint") align 8 %6, ptr noundef nonnull align 8 dereferenceable(5288) %0, ptr noundef nonnull %7)
          to label %68 unwind label %76

68:                                               ; preds = %67
  %69 = 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) %6)
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  br label %79

70:                                               ; preds = %60
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %153

72:                                               ; preds = %61
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  br label %153

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

.loopexit.split-lp.loopexit:                      ; preds = %152, %123, %122, %117, %116
  %lpad.loopexit37 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

74:                                               ; preds = %64
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %78

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

78:                                               ; preds = %76, %74
  %.pn18 = phi { ptr, i32 } [ %77, %76 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  br label %.loopexit.split-lp

79:                                               ; preds = %68, %62
  invoke void @_ZN15io_controller_m1VEv(ptr noundef nonnull align 8 dereferenceable(5288) %0)
          to label %.preheader36 unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader36:                                     ; preds = %79, %152
  %80 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %.not20 = icmp eq i64 %80, 0
  br i1 %.not20, label %.critedge, label %81

81:                                               ; preds = %.preheader36
  %82 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %83 = icmp eq i64 %82, 400
  br i1 %83, label %.preheader35, label %.critedge

.preheader35:                                     ; preds = %81, %97
  %indvars.iv = phi i64 [ %indvars.iv.next, %97 ], [ 0, %81 ]
  invoke void @_ZN15io_controller_m1PEv(ptr noundef nonnull align 8 dereferenceable(5288) %0)
          to label %84 unwind label %98

84:                                               ; preds = %.preheader35
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  %85 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %86 = shl nuw nsw i64 %indvars.iv, 2
  %87 = add i64 %85, %86
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %87)
          to label %88 unwind label %100

88:                                               ; preds = %84
  invoke void @_ZN15io_controller_m16read_from_memoryEN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint") align 8 %8, ptr noundef nonnull align 8 dereferenceable(5288) %0, ptr noundef nonnull %9)
          to label %89 unwind label %102

89:                                               ; preds = %88
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  invoke void @_ZN15io_controller_m1VEv(ptr noundef nonnull align 8 dereferenceable(5288) %0)
          to label %90 unwind label %104

90:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #4
  store i8 1, ptr %10, 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) %56, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %92 unwind label %106

92:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  %93 = invoke noundef nonnull align 8 dereferenceable(232) ptr @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi32EEELNS_16sc_writer_policyE0EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(232) %57, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %94 unwind label %104

94:                                               ; preds = %92
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %95 unwind label %104

95:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #4
  store i8 0, ptr %11, align 1, !tbaa !5
  %96 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %56, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %97 unwind label %108

97:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #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 %8) #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 %.preheader, label %.preheader35, !llvm.loop !15

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

100:                                              ; preds = %84
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %111

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

104:                                              ; preds = %94, %92, %89
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %110

106:                                              ; preds = %90
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  br label %110

108:                                              ; preds = %95
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #4
  br label %110

110:                                              ; preds = %108, %106, %104
  %.pn28 = phi { ptr, i32 } [ %109, %108 ], [ %105, %104 ], [ %107, %106 ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  br label %111

111:                                              ; preds = %110, %102, %100
  %.pn28.pn = phi { ptr, i32 } [ %.pn28, %110 ], [ %103, %102 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  br label %.loopexit.split-lp

.preheader:                                       ; preds = %97, %115
  %112 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE4readEv(ptr noundef nonnull align 8 dereferenceable(224) %58)
  %113 = load i8, ptr %112, align 1, !tbaa !5, !range !9, !noundef !10
  %114 = trunc nuw i8 %113 to i1
  br i1 %114, label %115, label %116

115:                                              ; preds = %.preheader
  invoke void @_ZN7sc_core9sc_module4waitEi(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef 2)
          to label %.preheader unwind label %.loopexit, !llvm.loop !16

116:                                              ; preds = %.preheader
  invoke void @_ZN15io_controller_m1PEv(ptr noundef nonnull align 8 dereferenceable(5288) %0)
          to label %117 unwind label %.loopexit.split-lp.loopexit

117:                                              ; preds = %116
  %118 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %119 = add i64 %118, 1604
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %119)
          to label %120 unwind label %.loopexit.split-lp.loopexit

120:                                              ; preds = %117
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ej(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef -1)
          to label %121 unwind label %137

121:                                              ; preds = %120
  invoke void @_ZN15io_controller_m17write_into_memoryEN5sc_dt7sc_uintILi32EEES2_(ptr noundef nonnull align 8 dereferenceable(5288) %0, ptr noundef nonnull %12, ptr noundef nonnull %13)
          to label %122 unwind label %139

122:                                              ; preds = %121
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  invoke void @_ZN15io_controller_m1VEv(ptr noundef nonnull align 8 dereferenceable(5288) %0)
          to label %123 unwind label %.loopexit.split-lp.loopexit

123:                                              ; preds = %122
  invoke void @_ZN15io_controller_m1PEv(ptr noundef nonnull align 8 dereferenceable(5288) %0)
          to label %124 unwind label %.loopexit.split-lp.loopexit

124:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #4
  %125 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %126 = add i64 %125, 1600
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %126)
          to label %127 unwind label %142

127:                                              ; preds = %124
  invoke void @_ZN15io_controller_m16read_from_memoryEN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint") align 8 %14, ptr noundef nonnull align 8 dereferenceable(5288) %0, ptr noundef nonnull %15)
          to label %128 unwind label %144

128:                                              ; preds = %127
  %129 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi32EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %14)
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  %130 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %.not25 = icmp eq i64 %130, 0
  br i1 %.not25, label %152, label %131

131:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #4
  %132 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %133 = add i64 %132, 1604
  invoke void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %133)
          to label %134 unwind label %147

134:                                              ; preds = %131
  invoke void @_ZN15io_controller_m16read_from_memoryEN5sc_dt7sc_uintILi32EEE(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_uint") align 8 %16, ptr noundef nonnull align 8 dereferenceable(5288) %0, ptr noundef nonnull %17)
          to label %135 unwind label %149

135:                                              ; preds = %134
  %136 = 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) %16)
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #4
  br label %152

137:                                              ; preds = %120
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %141

139:                                              ; preds = %121
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  br label %141

141:                                              ; preds = %139, %137
  %.pn21 = phi { ptr, i32 } [ %140, %139 ], [ %138, %137 ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  br label %.loopexit.split-lp

142:                                              ; preds = %124
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %146

144:                                              ; preds = %127
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  br label %146

146:                                              ; preds = %144, %142
  %.pn23 = phi { ptr, i32 } [ %145, %144 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  br label %.loopexit.split-lp

147:                                              ; preds = %131
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %151

149:                                              ; preds = %134
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  br label %151

151:                                              ; preds = %149, %147
  %.pn26 = phi { ptr, i32 } [ %150, %149 ], [ %148, %147 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #4
  br label %.loopexit.split-lp

152:                                              ; preds = %135, %128
  invoke void @_ZN15io_controller_m1VEv(ptr noundef nonnull align 8 dereferenceable(5288) %0)
          to label %.preheader36 unwind label %.loopexit.split-lp.loopexit, !llvm.loop !17

.critedge:                                        ; preds = %.preheader36, %81
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  br label %59, !llvm.loop !18

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %98, %111, %151, %146, %141, %78
  %.pn28.pn.pn.pn = phi { ptr, i32 } [ %.pn26, %151 ], [ %.pn23, %146 ], [ %.pn21, %141 ], [ %.pn18, %78 ], [ %.pn28.pn, %111 ], [ %99, %98 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit37, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp38, %.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %153

153:                                              ; preds = %.loopexit.split-lp, %72, %70
  %.pn28.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn28.pn.pn.pn, %.loopexit.split-lp ], [ %73, %72 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  br label %.loopexit.split-lp41

.loopexit.split-lp41:                             ; preds = %.loopexit40, %.loopexit.split-lp41.loopexit.split-lp.loopexit, %.loopexit.split-lp41.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp41.loopexit, %153, %53
  %.pn28.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn28.pn.pn.pn.pn, %153 ], [ %.pn, %53 ], [ %lpad.loopexit42, %.loopexit40 ], [ %lpad.loopexit51, %.loopexit.split-lp41.loopexit ], [ %lpad.loopexit55, %.loopexit.split-lp41.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp41.loopexit.split-lp.loopexit.split-lp ]
  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 } %.pn28.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt7sc_uintILi32EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 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 #0 align 2

; 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 void @_ZN5sc_dt7sc_uintILi32EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(232) ptr @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi32EEELNS_16sc_writer_policyE0EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 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

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

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

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


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