; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/misc/user_guide/newsched/test8 (test8)

; 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_core::sc_signal" = type { %"class.sc_core::sc_signal_inout_if", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, i8, i64, ptr, i8, ptr, ptr }
%"class.sc_core::sc_signal_inout_if" = type { %"class.sc_core::sc_signal_in_if", %"class.sc_core::sc_signal_write_if" }
%"class.sc_core::sc_signal_in_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_interface" = type { ptr }
%"class.sc_core::sc_signal_write_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_prim_channel" = type { %"class.sc_core::sc_object", ptr, ptr }
%"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] }
%"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.8" = type <{ %"class.sc_core::sc_signal_inout_if.9", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, i32, [4 x i8], i64, i32, [4 x i8] }>
%"class.sc_core::sc_signal_inout_if.9" = type { %"class.sc_core::sc_signal_in_if.10", %"class.sc_core::sc_signal_write_if.11" }
%"class.sc_core::sc_signal_in_if.10" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_signal_write_if.11" = type { %"class.sc_core::sc_interface" }
%struct.triga = type <{ %"class.sc_core::sc_module", %"class.sc_core::sc_in", ptr, i32, [4 x i8] }>
%"class.sc_core::sc_module" = type { %"class.sc_core::sc_object", %"class.sc_core::sc_process_host", %"class.sc_core::sc_sensitive", %"class.sc_core::sc_sensitive_pos", %"class.sc_core::sc_sensitive_neg", i8, ptr, i32, ptr, ptr }
%"class.sc_core::sc_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.12" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = 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_module_name" = type <{ ptr, ptr, ptr, ptr, i8, [7 x i8] }>
%struct.trigp = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", ptr }
%struct.watcher = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", %"class.sc_core::sc_in", ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local i32 @sc_main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %"class.sc_core::sc_signal", align 8
  %6 = alloca %"class.sc_core::sc_signal", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.sc_core::sc_signal.8", align 8
  %10 = alloca %"class.sc_core::sc_signal.8", align 8
  %11 = alloca %"class.sc_core::sc_signal.8", align 8
  %12 = alloca %"class.sc_core::sc_signal.8", align 8
  %13 = alloca %struct.triga, align 8
  %14 = alloca %"class.sc_core::sc_module_name", align 8
  %15 = alloca %struct.triga, align 8
  %16 = alloca %"class.sc_core::sc_module_name", align 8
  %17 = alloca %struct.trigp, align 8
  %18 = alloca %"class.sc_core::sc_module_name", align 8
  %19 = alloca %struct.trigp, align 8
  %20 = alloca %"class.sc_core::sc_module_name", align 8
  %21 = alloca %struct.watcher, align 8
  %22 = alloca %"class.sc_core::sc_module_name", align 8
  %23 = alloca ptr, align 8
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = alloca i32, align 4
  %27 = alloca i8, align 1
  %28 = alloca i8, align 1
  %29 = alloca i8, align 1
  %30 = alloca i8, align 1
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 224, ptr %5) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1EPKc(ptr noundef nonnull align 8 dereferenceable(224) %5, ptr noundef @.str)
  call void @llvm.lifetime.start.p0(i64 224, ptr %6) #7
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1EPKc(ptr noundef nonnull align 8 dereferenceable(224) %6, ptr noundef @.str.2)
          to label %31 unwind label %70

31:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 200, ptr %9) #7
  invoke void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(196) %9)
          to label %32 unwind label %74

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 200, ptr %10) #7
  invoke void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(196) %10)
          to label %33 unwind label %78

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 200, ptr %11) #7
  invoke void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(196) %11)
          to label %34 unwind label %82

34:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 200, ptr %12) #7
  invoke void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(196) %12)
          to label %35 unwind label %86

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 432, ptr %13) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %14, ptr noundef @.str.3)
          to label %36 unwind label %90

36:                                               ; preds = %35
  invoke void @_ZN5trigaC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(428) %13, ptr noundef %14, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(196) %10)
          to label %37 unwind label %94

37:                                               ; preds = %36
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %14) #7
  call void @llvm.lifetime.start.p0(i64 432, ptr %15) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %16, ptr noundef @.str.4)
          to label %38 unwind label %98

38:                                               ; preds = %37
  invoke void @_ZN5trigaC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(428) %15, ptr noundef %16, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(196) %12)
          to label %39 unwind label %102

39:                                               ; preds = %38
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %16) #7
  call void @llvm.lifetime.start.p0(i64 424, ptr %17) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %18, ptr noundef @.str.5)
          to label %40 unwind label %106

40:                                               ; preds = %39
  invoke void @_ZN5trigpC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(424) %17, ptr noundef %18, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(196) %9)
          to label %41 unwind label %110

41:                                               ; preds = %40
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %18) #7
  call void @llvm.lifetime.start.p0(i64 424, ptr %19) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %20, ptr noundef @.str.6)
          to label %42 unwind label %114

42:                                               ; preds = %41
  invoke void @_ZN5trigpC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(424) %19, ptr noundef %20, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(196) %11)
          to label %43 unwind label %118

43:                                               ; preds = %42
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %20) #7
  call void @llvm.lifetime.start.p0(i64 632, ptr %21) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %22, ptr noundef @.str.7)
          to label %44 unwind label %122

44:                                               ; preds = %43
  invoke void @_ZN7watcherC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEES4_RKNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEES9_S9_S9_(ptr noundef nonnull align 8 dereferenceable(632) %21, ptr noundef %22, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(196) %9, ptr noundef nonnull align 8 dereferenceable(196) %10, ptr noundef nonnull align 8 dereferenceable(196) %11, ptr noundef nonnull align 8 dereferenceable(196) %12)
          to label %45 unwind label %126

45:                                               ; preds = %44
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %46 = invoke noundef ptr @_ZN7sc_core24sc_create_vcd_trace_fileEPKc(ptr noundef @.str.8)
          to label %47 unwind label %130

47:                                               ; preds = %45
  store ptr %46, ptr %23, align 8, !tbaa !9
  %48 = load ptr, ptr %23, align 8, !tbaa !9
  invoke void @_ZN7sc_core8sc_traceIbEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %48, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef @.str)
          to label %49 unwind label %130

49:                                               ; preds = %47
  %50 = load ptr, ptr %23, align 8, !tbaa !9
  invoke void @_ZN7sc_core8sc_traceIbEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %50, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef @.str.2)
          to label %51 unwind label %130

51:                                               ; preds = %49
  %52 = load ptr, ptr %23, align 8, !tbaa !9
  invoke void @_ZN7sc_core8sc_traceIiEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %52, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef @.str.9)
          to label %53 unwind label %130

53:                                               ; preds = %51
  %54 = load ptr, ptr %23, align 8, !tbaa !9
  invoke void @_ZN7sc_core8sc_traceIiEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %54, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @.str.10)
          to label %55 unwind label %130

55:                                               ; preds = %53
  %56 = load ptr, ptr %23, align 8, !tbaa !9
  invoke void @_ZN7sc_core8sc_traceIiEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %56, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef @.str.11)
          to label %57 unwind label %130

57:                                               ; preds = %55
  %58 = load ptr, ptr %23, align 8, !tbaa !9
  invoke void @_ZN7sc_core8sc_traceIiEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %58, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.12)
          to label %59 unwind label %130

59:                                               ; preds = %57
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 0, i32 noundef 2, i32 noundef 1)
          to label %60 unwind label %130

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #7
  store i8 0, ptr %24, align 1, !tbaa !11
  %61 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %5, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %62 unwind label %134

62:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #7
  store i8 0, ptr %25, align 1, !tbaa !11
  %63 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %6, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %64 unwind label %138

64:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %65 unwind label %130

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %153, %65
  %67 = load i32, ptr %26, align 4, !tbaa !5
  %68 = icmp slt i32 %67, 10
  br i1 %68, label %142, label %69

69:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %177

70:                                               ; preds = %2
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %7, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %8, align 4
  br label %188

74:                                               ; preds = %31
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %7, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %8, align 4
  br label %187

78:                                               ; preds = %32
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %7, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %8, align 4
  br label %186

82:                                               ; preds = %33
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %7, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %8, align 4
  br label %185

86:                                               ; preds = %34
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %7, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %8, align 4
  br label %184

90:                                               ; preds = %35
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %7, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %8, align 4
  br label %183

94:                                               ; preds = %36
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %7, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %8, align 4
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %14) #7
  br label %183

98:                                               ; preds = %37
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %7, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %8, align 4
  br label %182

102:                                              ; preds = %38
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %7, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %8, align 4
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %16) #7
  br label %182

106:                                              ; preds = %39
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %7, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %8, align 4
  br label %181

110:                                              ; preds = %40
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %7, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %8, align 4
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %18) #7
  br label %181

114:                                              ; preds = %41
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %7, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %8, align 4
  br label %180

118:                                              ; preds = %42
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %7, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %8, align 4
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %20) #7
  br label %180

122:                                              ; preds = %43
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %7, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %8, align 4
  br label %179

126:                                              ; preds = %44
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %7, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %8, align 4
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %22) #7
  br label %179

130:                                              ; preds = %64, %59, %57, %55, %53, %51, %49, %47, %45
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %7, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %8, align 4
  br label %178

134:                                              ; preds = %60
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %7, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  br label %178

138:                                              ; preds = %62
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %7, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  br label %178

142:                                              ; preds = %66
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #7
  store i8 1, ptr %27, align 1, !tbaa !11
  %143 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %5, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %144 unwind label %156

144:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #7
  store i8 1, ptr %28, align 1, !tbaa !11
  %145 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %6, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %146 unwind label %160

146:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %147 unwind label %164

147:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #7
  store i8 0, ptr %29, align 1, !tbaa !11
  %148 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %5, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %149 unwind label %168

149:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #7
  store i8 0, ptr %30, align 1, !tbaa !11
  %150 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %6, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %151 unwind label %172

151:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %152 unwind label %164

152:                                              ; preds = %151
  br label %153

153:                                              ; preds = %152
  %154 = load i32, ptr %26, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %26, align 4, !tbaa !5
  br label %66, !llvm.loop !13

156:                                              ; preds = %142
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %7, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  br label %176

160:                                              ; preds = %144
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %7, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  br label %176

164:                                              ; preds = %151, %146
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %7, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %8, align 4
  br label %176

168:                                              ; preds = %147
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %7, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #7
  br label %176

172:                                              ; preds = %149
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %7, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #7
  br label %176

176:                                              ; preds = %172, %168, %164, %160, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %178

177:                                              ; preds = %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @_ZN7watcherD2Ev(ptr noundef nonnull align 8 dereferenceable(632) %21) #7
  call void @llvm.lifetime.end.p0(i64 632, ptr %21) #7
  call void @_ZN5trigpD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %19) #7
  call void @llvm.lifetime.end.p0(i64 424, ptr %19) #7
  call void @_ZN5trigpD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %17) #7
  call void @llvm.lifetime.end.p0(i64 424, ptr %17) #7
  call void @_ZN5trigaD2Ev(ptr noundef nonnull align 8 dereferenceable(428) %15) #7
  call void @llvm.lifetime.end.p0(i64 432, ptr %15) #7
  call void @_ZN5trigaD2Ev(ptr noundef nonnull align 8 dereferenceable(428) %13) #7
  call void @llvm.lifetime.end.p0(i64 432, ptr %13) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %12) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %12) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %11) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %11) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %10) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %10) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %9) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %9) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %6) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr %6) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %5) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr %5) #7
  ret i32 0

178:                                              ; preds = %176, %138, %134, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @_ZN7watcherD2Ev(ptr noundef nonnull align 8 dereferenceable(632) %21) #7
  br label %179

179:                                              ; preds = %178, %126, %122
  call void @llvm.lifetime.end.p0(i64 632, ptr %21) #7
  call void @_ZN5trigpD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %19) #7
  br label %180

180:                                              ; preds = %179, %118, %114
  call void @llvm.lifetime.end.p0(i64 424, ptr %19) #7
  call void @_ZN5trigpD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %17) #7
  br label %181

181:                                              ; preds = %180, %110, %106
  call void @llvm.lifetime.end.p0(i64 424, ptr %17) #7
  call void @_ZN5trigaD2Ev(ptr noundef nonnull align 8 dereferenceable(428) %15) #7
  br label %182

182:                                              ; preds = %181, %102, %98
  call void @llvm.lifetime.end.p0(i64 432, ptr %15) #7
  call void @_ZN5trigaD2Ev(ptr noundef nonnull align 8 dereferenceable(428) %13) #7
  br label %183

183:                                              ; preds = %182, %94, %90
  call void @llvm.lifetime.end.p0(i64 432, ptr %13) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %12) #7
  br label %184

184:                                              ; preds = %183, %86
  call void @llvm.lifetime.end.p0(i64 200, ptr %12) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %11) #7
  br label %185

185:                                              ; preds = %184, %82
  call void @llvm.lifetime.end.p0(i64 200, ptr %11) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %10) #7
  br label %186

186:                                              ; preds = %185, %78
  call void @llvm.lifetime.end.p0(i64 200, ptr %10) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %9) #7
  br label %187

187:                                              ; preds = %186, %74
  call void @llvm.lifetime.end.p0(i64 200, ptr %9) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %6) #7
  br label %188

188:                                              ; preds = %187, %70
  call void @llvm.lifetime.end.p0(i64 224, ptr %6) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %5) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr %5) #7
  br label %189

189:                                              ; preds = %188
  %190 = load ptr, ptr %7, align 8
  %191 = load i32, ptr %8, align 4
  %192 = insertvalue { ptr, i32 } poison, ptr %190, 0
  %193 = insertvalue { ptr, i32 } %192, i32 %191, 1
  resume { ptr, i32 } %193
}

; 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 @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1EPKc(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5trigaC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(428), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(196)) unnamed_addr #0 align 2

; Function Attrs: nounwind
declare void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5trigpC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(196)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7watcherC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEES4_RKNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEES9_S9_S9_(ptr noundef nonnull align 8 dereferenceable(632), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 8 dereferenceable(196)) unnamed_addr #0 align 2

declare noundef ptr @_ZN7sc_core24sc_create_vcd_trace_fileEPKc(ptr noundef) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef, i32 noundef, i32 noundef) #4

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7watcherD2Ev(ptr noundef nonnull align 8 dereferenceable(632)) unnamed_addr #5 align 2

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

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

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

; Function Attrs: nounwind
declare void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #3

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 = { "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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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_core::sc_signal" = type { %"class.sc_core::sc_signal_inout_if", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, i8, i64, ptr, i8, ptr, ptr }
%"class.sc_core::sc_signal_inout_if" = type { %"class.sc_core::sc_signal_in_if", %"class.sc_core::sc_signal_write_if" }
%"class.sc_core::sc_signal_in_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_interface" = type { ptr }
%"class.sc_core::sc_signal_write_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_prim_channel" = type { %"class.sc_core::sc_object", ptr, ptr }
%"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] }
%"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.8" = type <{ %"class.sc_core::sc_signal_inout_if.9", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, i32, [4 x i8], i64, i32, [4 x i8] }>
%"class.sc_core::sc_signal_inout_if.9" = type { %"class.sc_core::sc_signal_in_if.10", %"class.sc_core::sc_signal_write_if.11" }
%"class.sc_core::sc_signal_in_if.10" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_signal_write_if.11" = type { %"class.sc_core::sc_interface" }
%struct.triga = type <{ %"class.sc_core::sc_module", %"class.sc_core::sc_in", ptr, i32, [4 x i8] }>
%"class.sc_core::sc_module" = type { %"class.sc_core::sc_object", %"class.sc_core::sc_process_host", %"class.sc_core::sc_sensitive", %"class.sc_core::sc_sensitive_pos", %"class.sc_core::sc_sensitive_neg", i8, ptr, i32, ptr, ptr }
%"class.sc_core::sc_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.12" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = 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_module_name" = type <{ ptr, ptr, ptr, ptr, i8, [7 x i8] }>
%struct.trigp = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", ptr }
%struct.watcher = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", %"class.sc_core::sc_in", ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @sc_main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.sc_core::sc_signal", align 8
  %4 = alloca %"class.sc_core::sc_signal", align 8
  %5 = alloca %"class.sc_core::sc_signal.8", align 8
  %6 = alloca %"class.sc_core::sc_signal.8", align 8
  %7 = alloca %"class.sc_core::sc_signal.8", align 8
  %8 = alloca %"class.sc_core::sc_signal.8", align 8
  %9 = alloca %struct.triga, align 8
  %10 = alloca %"class.sc_core::sc_module_name", align 8
  %11 = alloca %struct.triga, align 8
  %12 = alloca %"class.sc_core::sc_module_name", align 8
  %13 = alloca %struct.trigp, align 8
  %14 = alloca %"class.sc_core::sc_module_name", align 8
  %15 = alloca %struct.trigp, align 8
  %16 = alloca %"class.sc_core::sc_module_name", align 8
  %17 = alloca %struct.watcher, align 8
  %18 = alloca %"class.sc_core::sc_module_name", align 8
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %3) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1EPKc(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull @.str)
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %4) #7
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1EPKc(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull @.str.2)
          to label %25 unwind label %54

25:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %5) #7
  invoke void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(196) %5)
          to label %26 unwind label %56

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %6) #7
  invoke void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(196) %6)
          to label %27 unwind label %58

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %7) #7
  invoke void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(196) %7)
          to label %28 unwind label %60

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %8) #7
  invoke void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(196) %8)
          to label %29 unwind label %62

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %9) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %10, ptr noundef nonnull @.str.3)
          to label %30 unwind label %64

30:                                               ; preds = %29
  invoke void @_ZN5trigaC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(428) %9, ptr noundef nonnull %10, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(196) %6)
          to label %31 unwind label %66

31:                                               ; preds = %30
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %10) #7
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %11) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %12, ptr noundef nonnull @.str.4)
          to label %32 unwind label %68

32:                                               ; preds = %31
  invoke void @_ZN5trigaC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(428) %11, ptr noundef nonnull %12, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(196) %8)
          to label %33 unwind label %70

33:                                               ; preds = %32
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %12) #7
  call void @llvm.lifetime.start.p0(i64 424, ptr nonnull %13) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %14, ptr noundef nonnull @.str.5)
          to label %34 unwind label %72

34:                                               ; preds = %33
  invoke void @_ZN5trigpC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(424) %13, ptr noundef nonnull %14, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(196) %5)
          to label %35 unwind label %74

35:                                               ; preds = %34
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %14) #7
  call void @llvm.lifetime.start.p0(i64 424, ptr nonnull %15) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %16, ptr noundef nonnull @.str.6)
          to label %36 unwind label %76

36:                                               ; preds = %35
  invoke void @_ZN5trigpC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(424) %15, ptr noundef nonnull %16, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(196) %7)
          to label %37 unwind label %78

37:                                               ; preds = %36
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %16) #7
  call void @llvm.lifetime.start.p0(i64 632, ptr nonnull %17) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %18, ptr noundef nonnull @.str.7)
          to label %38 unwind label %80

38:                                               ; preds = %37
  invoke void @_ZN7watcherC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEES4_RKNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEES9_S9_S9_(ptr noundef nonnull align 8 dereferenceable(632) %17, ptr noundef nonnull %18, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(196) %5, ptr noundef nonnull align 8 dereferenceable(196) %6, ptr noundef nonnull align 8 dereferenceable(196) %7, ptr noundef nonnull align 8 dereferenceable(196) %8)
          to label %39 unwind label %82

39:                                               ; preds = %38
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %18) #7
  %40 = invoke noundef ptr @_ZN7sc_core24sc_create_vcd_trace_fileEPKc(ptr noundef nonnull @.str.8)
          to label %41 unwind label %84

41:                                               ; preds = %39
  invoke void @_ZN7sc_core8sc_traceIbEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %40, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str)
          to label %42 unwind label %84

42:                                               ; preds = %41
  invoke void @_ZN7sc_core8sc_traceIbEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %40, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.2)
          to label %43 unwind label %84

43:                                               ; preds = %42
  invoke void @_ZN7sc_core8sc_traceIiEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %40, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull @.str.9)
          to label %44 unwind label %84

44:                                               ; preds = %43
  invoke void @_ZN7sc_core8sc_traceIiEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %40, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.10)
          to label %45 unwind label %84

45:                                               ; preds = %44
  invoke void @_ZN7sc_core8sc_traceIiEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %40, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.11)
          to label %46 unwind label %84

46:                                               ; preds = %45
  invoke void @_ZN7sc_core8sc_traceIiEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %40, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull @.str.12)
          to label %47 unwind label %84

47:                                               ; preds = %46
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 0, i32 noundef 2, i32 noundef 1)
          to label %48 unwind label %84

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #7
  store i8 0, ptr %19, align 1, !tbaa !5
  %49 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %50 unwind label %86

50:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #7
  store i8 0, ptr %20, align 1, !tbaa !5
  %51 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %52 unwind label %88

52:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %.preheader.preheader unwind label %84

.preheader.preheader:                             ; preds = %52
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #7
  store i8 1, ptr %21, align 1, !tbaa !5
  %53 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %90 unwind label %180

54:                                               ; preds = %2
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %200

56:                                               ; preds = %25
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %199

58:                                               ; preds = %26
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %198

60:                                               ; preds = %27
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %197

62:                                               ; preds = %28
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %196

64:                                               ; preds = %29
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %195

66:                                               ; preds = %30
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %10) #7
  br label %195

68:                                               ; preds = %31
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %194

70:                                               ; preds = %32
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %12) #7
  br label %194

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

74:                                               ; preds = %34
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %14) #7
  br label %193

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

78:                                               ; preds = %36
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %16) #7
  br label %192

80:                                               ; preds = %37
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %191

82:                                               ; preds = %38
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %18) #7
  br label %191

84:                                               ; preds = %52, %47, %46, %45, %44, %43, %42, %41, %39
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %190

86:                                               ; preds = %48
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #7
  br label %190

88:                                               ; preds = %50
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #7
  br label %190

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

92:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %93 unwind label %184

93:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #7
  store i8 0, ptr %23, align 1, !tbaa !5
  %94 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %95 unwind label %186

95:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #7
  store i8 0, ptr %24, 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) %4, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %97 unwind label %188

97:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %.preheader.1 unwind label %184

.preheader.1:                                     ; preds = %97
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #7
  store i8 1, ptr %21, align 1, !tbaa !5
  %98 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %99 unwind label %180

99:                                               ; preds = %.preheader.1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #7
  store i8 1, ptr %22, align 1, !tbaa !5
  %100 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %101 unwind label %182

101:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %102 unwind label %184

102:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #7
  store i8 0, ptr %23, align 1, !tbaa !5
  %103 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %104 unwind label %186

104:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #7
  store i8 0, ptr %24, align 1, !tbaa !5
  %105 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %106 unwind label %188

106:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %.preheader.2 unwind label %184

.preheader.2:                                     ; preds = %106
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #7
  store i8 1, ptr %21, align 1, !tbaa !5
  %107 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %108 unwind label %180

108:                                              ; preds = %.preheader.2
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #7
  store i8 1, ptr %22, align 1, !tbaa !5
  %109 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %110 unwind label %182

110:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %111 unwind label %184

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #7
  store i8 0, ptr %23, align 1, !tbaa !5
  %112 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %113 unwind label %186

113:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #7
  store i8 0, ptr %24, align 1, !tbaa !5
  %114 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %115 unwind label %188

115:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %.preheader.3 unwind label %184

.preheader.3:                                     ; preds = %115
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #7
  store i8 1, ptr %21, align 1, !tbaa !5
  %116 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %117 unwind label %180

117:                                              ; preds = %.preheader.3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #7
  store i8 1, ptr %22, align 1, !tbaa !5
  %118 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %119 unwind label %182

119:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %120 unwind label %184

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

122:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #7
  store i8 0, ptr %24, align 1, !tbaa !5
  %123 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %124 unwind label %188

124:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %.preheader.4 unwind label %184

.preheader.4:                                     ; preds = %124
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #7
  store i8 1, ptr %21, align 1, !tbaa !5
  %125 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %126 unwind label %180

126:                                              ; preds = %.preheader.4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #7
  store i8 1, ptr %22, align 1, !tbaa !5
  %127 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %128 unwind label %182

128:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %129 unwind label %184

129:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #7
  store i8 0, ptr %23, align 1, !tbaa !5
  %130 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %131 unwind label %186

131:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #7
  store i8 0, ptr %24, align 1, !tbaa !5
  %132 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %133 unwind label %188

133:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %.preheader.5 unwind label %184

.preheader.5:                                     ; preds = %133
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #7
  store i8 1, ptr %21, align 1, !tbaa !5
  %134 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %135 unwind label %180

135:                                              ; preds = %.preheader.5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #7
  store i8 1, ptr %22, align 1, !tbaa !5
  %136 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %137 unwind label %182

137:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %138 unwind label %184

138:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #7
  store i8 0, ptr %23, align 1, !tbaa !5
  %139 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %140 unwind label %186

140:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #7
  store i8 0, ptr %24, align 1, !tbaa !5
  %141 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %142 unwind label %188

142:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %.preheader.6 unwind label %184

.preheader.6:                                     ; preds = %142
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #7
  store i8 1, ptr %21, align 1, !tbaa !5
  %143 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %144 unwind label %180

144:                                              ; preds = %.preheader.6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #7
  store i8 1, ptr %22, align 1, !tbaa !5
  %145 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %146 unwind label %182

146:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %147 unwind label %184

147:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #7
  store i8 0, ptr %23, align 1, !tbaa !5
  %148 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %149 unwind label %186

149:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #7
  store i8 0, ptr %24, align 1, !tbaa !5
  %150 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %151 unwind label %188

151:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %.preheader.7 unwind label %184

.preheader.7:                                     ; preds = %151
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #7
  store i8 1, ptr %21, align 1, !tbaa !5
  %152 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %153 unwind label %180

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

155:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %156 unwind label %184

156:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #7
  store i8 0, ptr %23, align 1, !tbaa !5
  %157 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %158 unwind label %186

158:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #7
  store i8 0, ptr %24, align 1, !tbaa !5
  %159 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %160 unwind label %188

160:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %.preheader.8 unwind label %184

.preheader.8:                                     ; preds = %160
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #7
  store i8 1, ptr %21, align 1, !tbaa !5
  %161 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %162 unwind label %180

162:                                              ; preds = %.preheader.8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #7
  store i8 1, ptr %22, align 1, !tbaa !5
  %163 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %164 unwind label %182

164:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %165 unwind label %184

165:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #7
  store i8 0, ptr %23, align 1, !tbaa !5
  %166 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %167 unwind label %186

167:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #7
  store i8 0, ptr %24, align 1, !tbaa !5
  %168 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %169 unwind label %188

169:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %.preheader.9 unwind label %184

.preheader.9:                                     ; preds = %169
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #7
  store i8 1, ptr %21, align 1, !tbaa !5
  %170 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %171 unwind label %180

171:                                              ; preds = %.preheader.9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #7
  store i8 1, ptr %22, align 1, !tbaa !5
  %172 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %173 unwind label %182

173:                                              ; preds = %171
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %174 unwind label %184

174:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #7
  store i8 0, ptr %23, align 1, !tbaa !5
  %175 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %176 unwind label %186

176:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #7
  store i8 0, ptr %24, align 1, !tbaa !5
  %177 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %178 unwind label %188

178:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %179 unwind label %184

179:                                              ; preds = %178
  call void @_ZN7watcherD2Ev(ptr noundef nonnull align 8 dereferenceable(632) %17) #7
  call void @llvm.lifetime.end.p0(i64 632, ptr nonnull %17) #7
  call void @_ZN5trigpD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %15) #7
  call void @llvm.lifetime.end.p0(i64 424, ptr nonnull %15) #7
  call void @_ZN5trigpD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %13) #7
  call void @llvm.lifetime.end.p0(i64 424, ptr nonnull %13) #7
  call void @_ZN5trigaD2Ev(ptr noundef nonnull align 8 dereferenceable(428) %11) #7
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %11) #7
  call void @_ZN5trigaD2Ev(ptr noundef nonnull align 8 dereferenceable(428) %9) #7
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %9) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %8) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %8) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %7) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %7) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %6) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %6) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %5) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %5) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %4) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %4) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %3) #7
  ret i32 0

180:                                              ; preds = %.preheader.9, %.preheader.8, %.preheader.7, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #7
  br label %190

182:                                              ; preds = %171, %162, %153, %144, %135, %126, %117, %108, %99, %90
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #7
  br label %190

184:                                              ; preds = %178, %173, %169, %164, %160, %155, %151, %146, %142, %137, %133, %128, %124, %119, %115, %110, %106, %101, %97, %92
  %185 = landingpad { ptr, i32 }
          cleanup
  br label %190

186:                                              ; preds = %174, %165, %156, %147, %138, %129, %120, %111, %102, %93
  %187 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #7
  br label %190

188:                                              ; preds = %176, %167, %158, %149, %140, %131, %122, %113, %104, %95
  %189 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #7
  br label %190

190:                                              ; preds = %180, %182, %184, %186, %188, %88, %86, %84
  %.pn.pn = phi { ptr, i32 } [ %85, %84 ], [ %89, %88 ], [ %87, %86 ], [ %185, %184 ], [ %189, %188 ], [ %187, %186 ], [ %183, %182 ], [ %181, %180 ]
  call void @_ZN7watcherD2Ev(ptr noundef nonnull align 8 dereferenceable(632) %17) #7
  br label %191

191:                                              ; preds = %190, %82, %80
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %190 ], [ %83, %82 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 632, ptr nonnull %17) #7
  call void @_ZN5trigpD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %15) #7
  br label %192

192:                                              ; preds = %191, %78, %76
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %191 ], [ %79, %78 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 424, ptr nonnull %15) #7
  call void @_ZN5trigpD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %13) #7
  br label %193

193:                                              ; preds = %192, %74, %72
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %192 ], [ %75, %74 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 424, ptr nonnull %13) #7
  call void @_ZN5trigaD2Ev(ptr noundef nonnull align 8 dereferenceable(428) %11) #7
  br label %194

194:                                              ; preds = %193, %70, %68
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %193 ], [ %71, %70 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %11) #7
  call void @_ZN5trigaD2Ev(ptr noundef nonnull align 8 dereferenceable(428) %9) #7
  br label %195

195:                                              ; preds = %194, %66, %64
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %194 ], [ %67, %66 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %9) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %8) #7
  br label %196

196:                                              ; preds = %195, %62
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %195 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %8) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %7) #7
  br label %197

197:                                              ; preds = %196, %60
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %196 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %7) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %6) #7
  br label %198

198:                                              ; preds = %197, %58
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %197 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %6) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %5) #7
  br label %199

199:                                              ; preds = %198, %56
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %198 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %5) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %4) #7
  br label %200

200:                                              ; preds = %199, %54
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %199 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %4) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.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 @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1EPKc(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5trigaC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(428), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(196)) unnamed_addr #0 align 2

; Function Attrs: nounwind
declare void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5trigpC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(196)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7watcherC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEES4_RKNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEES9_S9_S9_(ptr noundef nonnull align 8 dereferenceable(632), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 8 dereferenceable(196)) unnamed_addr #0 align 2

declare noundef ptr @_ZN7sc_core24sc_create_vcd_trace_fileEPKc(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7watcherD2Ev(ptr noundef nonnull align 8 dereferenceable(632)) unnamed_addr #5 align 2

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

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

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

; Function Attrs: nounwind
declare void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #3

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 = { "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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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"}


; Effective O3 passes: GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass