; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/misc/stars/star107755/star107755.ll (ZN4test10reset_loopEv)

; 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 }
%"class.sc_dt::sc_lv" = type { %"class.sc_dt::sc_lv_base" }
%"class.sc_dt::sc_lv_base" = type { %"class.sc_dt::sc_proxy", i32, i32, ptr, ptr }
%"class.sc_dt::sc_proxy" = type { ptr }
%"class.sc_dt::sc_logic" = type { i32 }
%struct.test = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", %"class.sc_core::sc_in", %"class.sc_core::sc_in.13", %"class.sc_core::sc_out", %"class.sc_core::sc_out.28", %"class.sc_core::sc_out.28" }
%"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_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.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<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_in.13" = type { %"class.sc_core::sc_port.14", ptr, ptr }
%"class.sc_core::sc_port.14" = type { %"class.sc_core::sc_port_b.15" }
%"class.sc_core::sc_port_b.15" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.16" }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_lv<14>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_lv<14>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_lv<14>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_lv<14>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_lv<14>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_lv<14>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_lv<14>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_lv<14>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_out" = type { %"class.sc_core::sc_inout" }
%"class.sc_core::sc_inout" = 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_lv<14>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_lv<14>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_lv<14>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_lv<14>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_lv<14>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_lv<14>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_lv<14>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_lv<14>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_out.28" = type { %"class.sc_core::sc_inout.29" }
%"class.sc_core::sc_inout.29" = type { %"class.sc_core::sc_port.30", ptr, ptr, ptr, ptr, ptr }
%"class.sc_core::sc_port.30" = type { %"class.sc_core::sc_port_b.31" }
%"class.sc_core::sc_port_b.31" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.32" }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_logic> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_logic> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_logic> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_logic> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_logic> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_logic> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_logic> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_logic> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4test10reset_loopEv(ptr noundef nonnull align 8 dereferenceable(1328) %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca [2 x %"class.sc_dt::sc_uint"], align 16
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca [2 x %"class.sc_dt::sc_uint"], align 16
  %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 %"class.sc_dt::sc_lv", align 8
  %12 = alloca %"class.sc_dt::sc_logic", align 4
  %13 = alloca %"class.sc_dt::sc_logic", align 4
  %14 = alloca %"class.sc_dt::sc_logic", align 4
  %15 = alloca %"class.sc_dt::sc_logic", align 4
  %16 = alloca %"class.sc_dt::sc_lv", align 8
  %17 = alloca %"class.sc_dt::sc_logic", align 4
  %18 = alloca %"class.sc_dt::sc_lv", align 8
  %19 = alloca %"class.sc_dt::sc_logic", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %20 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr %3) #3
  %21 = getelementptr inbounds [2 x %"class.sc_dt::sc_uint"], ptr %3, i32 0, i32 0
  %22 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %21, i64 2
  br label %23

23:                                               ; preds = %25, %1
  %24 = phi ptr [ %21, %1 ], [ %26, %25 ]
  invoke void @_ZN5sc_dt7sc_uintILi14EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %25 unwind label %105

25:                                               ; preds = %23
  %26 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %24, i64 1
  %27 = icmp eq ptr %26, %22
  br i1 %27, label %28, label %23

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 48, ptr %6) #3
  %29 = getelementptr inbounds [2 x %"class.sc_dt::sc_uint"], ptr %6, i32 0, i32 0
  %30 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %29, i64 2
  br label %31

31:                                               ; preds = %33, %28
  %32 = phi ptr [ %29, %28 ], [ %34, %33 ]
  invoke void @_ZN5sc_dt7sc_uintILi14EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %33 unwind label %115

33:                                               ; preds = %31
  %34 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %32, i64 1
  %35 = icmp eq ptr %34, %30
  br i1 %35, label %36, label %31

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #3
  invoke void @_ZN5sc_dt7sc_uintILi14EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %37 unwind label %125

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #3
  invoke void @_ZN5sc_dt7sc_uintILi14EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %38 unwind label %129

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #3
  invoke void @_ZN5sc_dt7sc_uintILi14EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %39 unwind label %133

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #3
  invoke void @_ZN5sc_dt7sc_uintILi14EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %40 unwind label %137

40:                                               ; preds = %39
  %41 = getelementptr inbounds %struct.test, ptr %20, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #3
  invoke void @_ZN5sc_dt5sc_lvILi14EEC2Ei(ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef 0)
          to label %42 unwind label %141

42:                                               ; preds = %40
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt5sc_lvILi14EEEE5writeERKS3_(ptr noundef nonnull align 8 dereferenceable(176) %41, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %43 unwind label %145

43:                                               ; preds = %42
  call void @_ZN5sc_dt10sc_lv_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #3
  %44 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 0)
          to label %45 unwind label %150

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %44)
          to label %47 unwind label %150

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %46)
          to label %49 unwind label %150

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %48)
          to label %51 unwind label %150

51:                                               ; preds = %49
  %52 = getelementptr inbounds %struct.test, ptr %20, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  invoke void @_ZN5sc_dt8sc_logicC2Ec(ptr noundef nonnull align 4 dereferenceable(4) %12, i8 noundef signext 48)
          to label %53 unwind label %154

53:                                               ; preds = %51
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt8sc_logicEE5writeERKS2_(ptr noundef nonnull align 8 dereferenceable(192) %52, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %54 unwind label %158

54:                                               ; preds = %53
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  %55 = getelementptr inbounds %struct.test, ptr %20, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  invoke void @_ZN5sc_dt8sc_logicC2Ec(ptr noundef nonnull align 4 dereferenceable(4) %13, i8 noundef signext 48)
          to label %56 unwind label %163

56:                                               ; preds = %54
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt8sc_logicEE5writeERKS2_(ptr noundef nonnull align 8 dereferenceable(192) %55, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %57 unwind label %167

57:                                               ; preds = %56
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %20)
          to label %58 unwind label %150

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %104, %58
  br label %60

60:                                               ; preds = %59
  %61 = getelementptr inbounds %struct.test, ptr %20, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  invoke void @_ZN5sc_dt8sc_logicC2Ec(ptr noundef nonnull align 4 dereferenceable(4) %14, i8 noundef signext 49)
          to label %62 unwind label %172

62:                                               ; preds = %60
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt8sc_logicEE5writeERKS2_(ptr noundef nonnull align 8 dereferenceable(192) %61, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %63 unwind label %176

63:                                               ; preds = %62
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %20)
          to label %64 unwind label %150

64:                                               ; preds = %63
  %65 = getelementptr inbounds %struct.test, ptr %20, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  invoke void @_ZN5sc_dt8sc_logicC2Ec(ptr noundef nonnull align 4 dereferenceable(4) %15, i8 noundef signext 48)
          to label %66 unwind label %181

66:                                               ; preds = %64
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt8sc_logicEE5writeERKS2_(ptr noundef nonnull align 8 dereferenceable(192) %65, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %67 unwind label %185

67:                                               ; preds = %66
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  %68 = getelementptr inbounds %struct.test, ptr %20, i32 0, i32 3
  %69 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7sc_core5sc_inIN5sc_dt5sc_lvILi14EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(168) %68)
          to label %70 unwind label %150

70:                                               ; preds = %67
  %71 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKNS_10sc_lv_baseE(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(32) %69)
          to label %72 unwind label %150

72:                                               ; preds = %70
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %20)
          to label %73 unwind label %150

73:                                               ; preds = %72
  %74 = getelementptr inbounds %struct.test, ptr %20, i32 0, i32 3
  %75 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7sc_core5sc_inIN5sc_dt5sc_lvILi14EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(168) %74)
          to label %76 unwind label %150

76:                                               ; preds = %73
  %77 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKNS_10sc_lv_baseE(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(32) %75)
          to label %78 unwind label %150

78:                                               ; preds = %76
  %79 = getelementptr inbounds [2 x %"class.sc_dt::sc_uint"], ptr %3, i64 0, i64 0
  %80 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %81 unwind label %150

81:                                               ; preds = %78
  %82 = getelementptr inbounds [2 x %"class.sc_dt::sc_uint"], ptr %6, i64 0, i64 1
  %83 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %82, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %84 unwind label %150

84:                                               ; preds = %81
  %85 = getelementptr inbounds [2 x %"class.sc_dt::sc_uint"], ptr %3, i64 0, i64 0
  %86 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %85)
          to label %87 unwind label %150

87:                                               ; preds = %84
  %88 = getelementptr inbounds [2 x %"class.sc_dt::sc_uint"], ptr %6, i64 0, i64 1
  %89 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %88)
          to label %90 unwind label %150

90:                                               ; preds = %87
  %91 = getelementptr inbounds %struct.test, ptr %20, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #3
  invoke void @_ZN5sc_dt5sc_lvILi14EEC2ERKNS_12sc_uint_baseE(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %92 unwind label %190

92:                                               ; preds = %90
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt5sc_lvILi14EEEE5writeERKS3_(ptr noundef nonnull align 8 dereferenceable(176) %91, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %93 unwind label %194

93:                                               ; preds = %92
  call void @_ZN5sc_dt10sc_lv_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #3
  %94 = getelementptr inbounds %struct.test, ptr %20, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  invoke void @_ZN5sc_dt8sc_logicC2Ec(ptr noundef nonnull align 4 dereferenceable(4) %17, i8 noundef signext 49)
          to label %95 unwind label %199

95:                                               ; preds = %93
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt8sc_logicEE5writeERKS2_(ptr noundef nonnull align 8 dereferenceable(192) %94, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %96 unwind label %203

96:                                               ; preds = %95
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %20)
          to label %97 unwind label %150

97:                                               ; preds = %96
  %98 = getelementptr inbounds %struct.test, ptr %20, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #3
  invoke void @_ZN5sc_dt5sc_lvILi14EEC2ERKNS_12sc_uint_baseE(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %99 unwind label %208

99:                                               ; preds = %97
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt5sc_lvILi14EEEE5writeERKS3_(ptr noundef nonnull align 8 dereferenceable(176) %98, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %100 unwind label %212

100:                                              ; preds = %99
  call void @_ZN5sc_dt10sc_lv_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #3
  %101 = getelementptr inbounds %struct.test, ptr %20, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  invoke void @_ZN5sc_dt8sc_logicC2Ec(ptr noundef nonnull align 4 dereferenceable(4) %19, i8 noundef signext 48)
          to label %102 unwind label %217

102:                                              ; preds = %100
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt8sc_logicEE5writeERKS2_(ptr noundef nonnull align 8 dereferenceable(192) %101, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %103 unwind label %221

103:                                              ; preds = %102
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %20)
          to label %104 unwind label %150

104:                                              ; preds = %103
  br label %59, !llvm.loop !9

105:                                              ; preds = %23
  %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
  %109 = icmp eq ptr %21, %24
  br i1 %109, label %114, label %110

110:                                              ; preds = %110, %105
  %111 = phi ptr [ %24, %105 ], [ %112, %110 ]
  %112 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %111, i64 -1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %112) #3
  %113 = icmp eq ptr %112, %21
  br i1 %113, label %114, label %110

114:                                              ; preds = %110, %105
  br label %246

115:                                              ; preds = %31
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %4, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %5, align 4
  %119 = icmp eq ptr %29, %32
  br i1 %119, label %124, label %120

120:                                              ; preds = %120, %115
  %121 = phi ptr [ %32, %115 ], [ %122, %120 ]
  %122 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %121, i64 -1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %122) #3
  %123 = icmp eq ptr %122, %29
  br i1 %123, label %124, label %120

124:                                              ; preds = %120, %115
  br label %238

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

129:                                              ; preds = %37
  %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 %229

133:                                              ; preds = %38
  %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 %228

137:                                              ; preds = %39
  %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 %227

141:                                              ; preds = %40
  %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
  br label %149

145:                                              ; preds = %42
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %4, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %5, align 4
  call void @_ZN5sc_dt10sc_lv_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #3
  br label %149

149:                                              ; preds = %145, %141
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #3
  br label %226

150:                                              ; preds = %103, %96, %87, %84, %81, %78, %76, %73, %72, %70, %67, %63, %57, %49, %47, %45, %43
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %4, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %5, align 4
  br label %226

154:                                              ; preds = %51
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %4, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %5, align 4
  br label %162

158:                                              ; preds = %53
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %4, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %5, align 4
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %12) #3
  br label %162

162:                                              ; preds = %158, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %226

163:                                              ; preds = %54
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %4, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %5, align 4
  br label %171

167:                                              ; preds = %56
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %4, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %5, align 4
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %13) #3
  br label %171

171:                                              ; preds = %167, %163
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %226

172:                                              ; preds = %60
  %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 %180

176:                                              ; preds = %62
  %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_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %14) #3
  br label %180

180:                                              ; preds = %176, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %226

181:                                              ; preds = %64
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %4, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %5, align 4
  br label %189

185:                                              ; preds = %66
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %4, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %5, align 4
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %15) #3
  br label %189

189:                                              ; preds = %185, %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %226

190:                                              ; preds = %90
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %4, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %5, align 4
  br label %198

194:                                              ; preds = %92
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %4, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %5, align 4
  call void @_ZN5sc_dt10sc_lv_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #3
  br label %198

198:                                              ; preds = %194, %190
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #3
  br label %226

199:                                              ; preds = %93
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %4, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %5, align 4
  br label %207

203:                                              ; preds = %95
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %4, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %5, align 4
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %17) #3
  br label %207

207:                                              ; preds = %203, %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %226

208:                                              ; preds = %97
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %4, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %5, align 4
  br label %216

212:                                              ; preds = %99
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %4, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %5, align 4
  call void @_ZN5sc_dt10sc_lv_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #3
  br label %216

216:                                              ; preds = %212, %208
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #3
  br label %226

217:                                              ; preds = %100
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %4, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %5, align 4
  br label %225

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

225:                                              ; preds = %221, %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %226

226:                                              ; preds = %225, %216, %207, %198, %189, %180, %171, %162, %150, %149
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #3
  br label %227

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

228:                                              ; preds = %227, %133
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  br label %229

229:                                              ; preds = %228, %129
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #3
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  br label %230

230:                                              ; preds = %229, %125
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #3
  %231 = getelementptr inbounds [2 x %"class.sc_dt::sc_uint"], ptr %6, i32 0, i32 0
  %232 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %231, i64 2
  br label %233

233:                                              ; preds = %233, %230
  %234 = phi ptr [ %232, %230 ], [ %235, %233 ]
  %235 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %234, i64 -1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %235) #3
  %236 = icmp eq ptr %235, %231
  br i1 %236, label %237, label %233

237:                                              ; preds = %233
  br label %238

238:                                              ; preds = %237, %124
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #3
  %239 = getelementptr inbounds [2 x %"class.sc_dt::sc_uint"], ptr %3, i32 0, i32 0
  %240 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %239, i64 2
  br label %241

241:                                              ; preds = %241, %238
  %242 = phi ptr [ %240, %238 ], [ %243, %241 ]
  %243 = getelementptr inbounds %"class.sc_dt::sc_uint", ptr %242, i64 -1
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %243) #3
  %244 = icmp eq ptr %243, %239
  br i1 %244, label %245, label %241

245:                                              ; preds = %241
  br label %246

246:                                              ; preds = %245, %114
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #3
  br label %247

247:                                              ; preds = %246
  %248 = load ptr, ptr %4, align 8
  %249 = load i32, ptr %5, align 4
  %250 = insertvalue { ptr, i32 } poison, ptr %248, 0
  %251 = insertvalue { ptr, i32 } %250, i32 %249, 1
  resume { ptr, i32 } %251
}

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZN7sc_core8sc_inoutIN5sc_dt5sc_lvILi14EEEE5writeERKS3_(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(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 @_ZN7sc_core8sc_inoutIN5sc_dt8sc_logicEE5writeERKS2_(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt8sc_logicC2Ec(ptr noundef nonnull align 4 dereferenceable(4), i8 noundef signext) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 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: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7sc_core5sc_inIN5sc_dt5sc_lvILi14EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(168)) #0 align 2

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; 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 }
%"class.sc_dt::sc_lv" = type { %"class.sc_dt::sc_lv_base" }
%"class.sc_dt::sc_lv_base" = type { %"class.sc_dt::sc_proxy", i32, i32, ptr, ptr }
%"class.sc_dt::sc_proxy" = type { ptr }
%"class.sc_dt::sc_logic" = type { i32 }

; Function Attrs: mustprogress noreturn uwtable
define dso_local void @_ZN4test10reset_loopEv(ptr noundef nonnull align 8 dereferenceable(1328) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [2 x %"class.sc_dt::sc_uint"], align 16
  %3 = alloca [2 x %"class.sc_dt::sc_uint"], align 16
  %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_lv", align 8
  %9 = alloca %"class.sc_dt::sc_logic", align 4
  %10 = alloca %"class.sc_dt::sc_logic", align 4
  %11 = alloca %"class.sc_dt::sc_logic", align 4
  %12 = alloca %"class.sc_dt::sc_logic", align 4
  %13 = alloca %"class.sc_dt::sc_lv", align 8
  %14 = alloca %"class.sc_dt::sc_logic", align 4
  %15 = alloca %"class.sc_dt::sc_lv", align 8
  %16 = alloca %"class.sc_dt::sc_logic", align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #4
  call void @_ZN5sc_dt7sc_uintILi14EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %.ptr.1 = getelementptr inbounds i8, ptr %2, i64 24
  invoke void @_ZN5sc_dt7sc_uintILi14EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1)
          to label %17 unwind label %.preheader61.preheader

17:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #4
  invoke void @_ZN5sc_dt7sc_uintILi14EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %19 unwind label %.thread74

.thread74:                                        ; preds = %17
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit57

19:                                               ; preds = %17
  %.ptr30.1 = getelementptr inbounds i8, ptr %3, i64 24
  invoke void @_ZN5sc_dt7sc_uintILi14EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr30.1)
          to label %20 unwind label %.preheader59.preheader

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  invoke void @_ZN5sc_dt7sc_uintILi14EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %21 unwind label %70

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  invoke void @_ZN5sc_dt7sc_uintILi14EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %22 unwind label %72

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  invoke void @_ZN5sc_dt7sc_uintILi14EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %23 unwind label %74

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  invoke void @_ZN5sc_dt7sc_uintILi14EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %24 unwind label %76

24:                                               ; preds = %23
  %25 = getelementptr inbounds i8, ptr %0, i64 768
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  invoke void @_ZN5sc_dt5sc_lvILi14EEC2Ei(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 0)
          to label %26 unwind label %78

26:                                               ; preds = %24
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt5sc_lvILi14EEEE5writeERKS3_(ptr noundef nonnull align 8 dereferenceable(176) %25, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %27 unwind label %80

27:                                               ; preds = %26
  call void @_ZN5sc_dt10sc_lv_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  %28 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 0)
          to label %29 unwind label %.loopexit.split-lp

29:                                               ; preds = %27
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %28)
  %31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %30)
  %32 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %31)
  %33 = getelementptr inbounds i8, ptr %0, i64 944
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  invoke void @_ZN5sc_dt8sc_logicC2Ec(ptr noundef nonnull align 4 dereferenceable(4) %9, i8 noundef signext 48)
          to label %34 unwind label %83

34:                                               ; preds = %29
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt8sc_logicEE5writeERKS2_(ptr noundef nonnull align 8 dereferenceable(192) %33, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %35 unwind label %85

35:                                               ; preds = %34
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  %36 = getelementptr inbounds i8, ptr %0, i64 1136
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  invoke void @_ZN5sc_dt8sc_logicC2Ec(ptr noundef nonnull align 4 dereferenceable(4) %10, i8 noundef signext 48)
          to label %37 unwind label %88

37:                                               ; preds = %35
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt8sc_logicEE5writeERKS2_(ptr noundef nonnull align 8 dereferenceable(192) %36, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %38 unwind label %90

38:                                               ; preds = %37
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %38
  %39 = getelementptr inbounds i8, ptr %0, i64 600
  br label %40

40:                                               ; preds = %.preheader, %67
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  invoke void @_ZN5sc_dt8sc_logicC2Ec(ptr noundef nonnull align 4 dereferenceable(4) %11, i8 noundef signext 49)
          to label %41 unwind label %93

41:                                               ; preds = %40
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt8sc_logicEE5writeERKS2_(ptr noundef nonnull align 8 dereferenceable(192) %33, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %42 unwind label %95

42:                                               ; preds = %41
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %43 unwind label %.loopexit58

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  invoke void @_ZN5sc_dt8sc_logicC2Ec(ptr noundef nonnull align 4 dereferenceable(4) %12, i8 noundef signext 48)
          to label %44 unwind label %98

44:                                               ; preds = %43
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt8sc_logicEE5writeERKS2_(ptr noundef nonnull align 8 dereferenceable(192) %33, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %45 unwind label %100

45:                                               ; preds = %44
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  %46 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7sc_core5sc_inIN5sc_dt5sc_lvILi14EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(168) %39)
          to label %47 unwind label %.loopexit58

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKNS_10sc_lv_baseE(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(32) %46)
          to label %49 unwind label %.loopexit58

49:                                               ; preds = %47
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %50 unwind label %.loopexit58

50:                                               ; preds = %49
  %51 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7sc_core5sc_inIN5sc_dt5sc_lvILi14EEEE4readEv(ptr noundef nonnull align 8 dereferenceable(168) %39)
          to label %52 unwind label %.loopexit58

52:                                               ; preds = %50
  %53 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKNS_10sc_lv_baseE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(32) %51)
          to label %54 unwind label %.loopexit58

54:                                               ; preds = %52
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %4)
  %56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr30.1, ptr noundef nonnull align 8 dereferenceable(24) %5)
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %2)
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %.ptr30.1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #4
  invoke void @_ZN5sc_dt5sc_lvILi14EEC2ERKNS_12sc_uint_baseE(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %59 unwind label %103

59:                                               ; preds = %54
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt5sc_lvILi14EEEE5writeERKS3_(ptr noundef nonnull align 8 dereferenceable(176) %25, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %60 unwind label %105

60:                                               ; preds = %59
  call void @_ZN5sc_dt10sc_lv_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  invoke void @_ZN5sc_dt8sc_logicC2Ec(ptr noundef nonnull align 4 dereferenceable(4) %14, i8 noundef signext 49)
          to label %61 unwind label %108

61:                                               ; preds = %60
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt8sc_logicEE5writeERKS2_(ptr noundef nonnull align 8 dereferenceable(192) %36, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %62 unwind label %110

62:                                               ; preds = %61
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %63 unwind label %.loopexit58

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #4
  invoke void @_ZN5sc_dt5sc_lvILi14EEC2ERKNS_12sc_uint_baseE(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %64 unwind label %113

64:                                               ; preds = %63
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt5sc_lvILi14EEEE5writeERKS3_(ptr noundef nonnull align 8 dereferenceable(176) %25, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %65 unwind label %115

65:                                               ; preds = %64
  call void @_ZN5sc_dt10sc_lv_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #4
  invoke void @_ZN5sc_dt8sc_logicC2Ec(ptr noundef nonnull align 4 dereferenceable(4) %16, i8 noundef signext 48)
          to label %66 unwind label %118

66:                                               ; preds = %65
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt8sc_logicEE5writeERKS2_(ptr noundef nonnull align 8 dereferenceable(192) %36, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %67 unwind label %120

67:                                               ; preds = %66
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  invoke void @_ZN7sc_core9sc_module4waitEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %40 unwind label %.loopexit58, !llvm.loop !5

.preheader61.preheader:                           ; preds = %1
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.preheader59.preheader:                           ; preds = %19
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %.loopexit57

70:                                               ; preds = %20
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit57.loopexit

72:                                               ; preds = %21
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %126

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

76:                                               ; preds = %23
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %124

78:                                               ; preds = %24
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %82

80:                                               ; preds = %26
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt10sc_lv_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  br label %82

82:                                               ; preds = %80, %78
  %.pn = phi { ptr, i32 } [ %81, %80 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  br label %123

.loopexit58:                                      ; preds = %42, %45, %47, %49, %50, %52, %62, %67
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %123

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

83:                                               ; preds = %29
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %87

85:                                               ; preds = %34
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %9) #4
  br label %87

87:                                               ; preds = %85, %83
  %.pn33 = phi { ptr, i32 } [ %86, %85 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  br label %123

88:                                               ; preds = %35
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %92

90:                                               ; preds = %37
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %10) #4
  br label %92

92:                                               ; preds = %90, %88
  %.pn35 = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  br label %123

93:                                               ; preds = %40
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %97

95:                                               ; preds = %41
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %11) #4
  br label %97

97:                                               ; preds = %95, %93
  %.pn37 = phi { ptr, i32 } [ %96, %95 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  br label %123

98:                                               ; preds = %43
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %102

100:                                              ; preds = %44
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %12) #4
  br label %102

102:                                              ; preds = %100, %98
  %.pn39 = phi { ptr, i32 } [ %101, %100 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  br label %123

103:                                              ; preds = %54
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %107

105:                                              ; preds = %59
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt10sc_lv_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  br label %107

107:                                              ; preds = %105, %103
  %.pn41 = phi { ptr, i32 } [ %106, %105 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #4
  br label %123

108:                                              ; preds = %60
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %112

110:                                              ; preds = %61
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %14) #4
  br label %112

112:                                              ; preds = %110, %108
  %.pn43 = phi { ptr, i32 } [ %111, %110 ], [ %109, %108 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  br label %123

113:                                              ; preds = %63
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %117

115:                                              ; preds = %64
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt10sc_lv_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #4
  br label %117

117:                                              ; preds = %115, %113
  %.pn45 = phi { ptr, i32 } [ %116, %115 ], [ %114, %113 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #4
  br label %123

118:                                              ; preds = %65
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %122

120:                                              ; preds = %66
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt8sc_logicD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %16) #4
  br label %122

122:                                              ; preds = %120, %118
  %.pn47 = phi { ptr, i32 } [ %121, %120 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  br label %123

123:                                              ; preds = %.loopexit58, %.loopexit.split-lp, %122, %117, %112, %107, %102, %97, %92, %87, %82
  %.pn49 = phi { ptr, i32 } [ %.pn47, %122 ], [ %.pn45, %117 ], [ %.pn43, %112 ], [ %.pn41, %107 ], [ %.pn39, %102 ], [ %.pn37, %97 ], [ %.pn35, %92 ], [ %.pn33, %87 ], [ %.pn, %82 ], [ %lpad.loopexit, %.loopexit58 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  br label %124

124:                                              ; preds = %123, %76
  %.pn49.pn = phi { ptr, i32 } [ %.pn49, %123 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  br label %125

125:                                              ; preds = %124, %74
  %.pn49.pn.pn = phi { ptr, i32 } [ %.pn49.pn, %124 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  br label %126

126:                                              ; preds = %125, %72
  %.pn49.pn.pn.pn = phi { ptr, i32 } [ %.pn49.pn.pn, %125 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %.loopexit57.loopexit

.loopexit57.loopexit:                             ; preds = %126, %70
  %.pn49.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn49.pn.pn.pn, %126 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  %127 = getelementptr inbounds i8, ptr %3, i64 24
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %127) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %.loopexit57

.loopexit57:                                      ; preds = %.preheader59.preheader, %.thread74, %.loopexit57.loopexit
  %.pn49.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn49.pn.pn.pn.pn, %.loopexit57.loopexit ], [ %18, %.thread74 ], [ %69, %.preheader59.preheader ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
  %128 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %128) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader61.preheader, %.loopexit57
  %.pn49.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn49.pn.pn.pn.pn.pn, %.loopexit57 ], [ %68, %.preheader61.preheader ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn49.pn.pn.pn.pn.pn.pn
}

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt5sc_lvILi14EEC2Ei(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #2 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 noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi14EEaSEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass