; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/misc/sim_tests/new_prop/new_prop1 (new_prop1)

; 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 }
%struct.new_prop = type { %"class.sc_core::sc_module", [16 x %"class.sc_core::sc_in"] }
%"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.8" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_module_name" = type <{ ptr, ptr, ptr, ptr, i8, [7 x i8] }>

@_ZL10print_func = external hidden global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@stdout = external global ptr, align 8

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @sc_main(i32 noundef %0, ptr noundef %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca [16 x %"class.sc_core::sc_signal"], align 16
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.new_prop, align 8
  %10 = alloca %"class.sc_core::sc_module_name", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 3584, ptr %6) #7
  %17 = getelementptr inbounds [16 x %"class.sc_core::sc_signal"], ptr %6, i32 0, i32 0
  %18 = getelementptr inbounds %"class.sc_core::sc_signal", ptr %17, i64 16
  br label %19

19:                                               ; preds = %21, %2
  %20 = phi ptr [ %17, %2 ], [ %22, %21 ]
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %20)
          to label %21 unwind label %31

21:                                               ; preds = %19
  %22 = getelementptr inbounds %"class.sc_core::sc_signal", ptr %20, i64 1
  %23 = icmp eq ptr %22, %18
  br i1 %23, label %24, label %19

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 3176, ptr %9) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %10, ptr noundef @.str.4)
          to label %25 unwind label %41

25:                                               ; preds = %24
  invoke void @_ZN8new_propC2EN7sc_core14sc_module_nameE(ptr noundef nonnull align 8 dereferenceable(3176) %9, ptr noundef %10)
          to label %26 unwind label %45

26:                                               ; preds = %25
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %58, %26
  %28 = load i32, ptr %11, align 4, !tbaa !5
  %29 = icmp slt i32 %28, 16
  br i1 %29, label %49, label %30

30:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %65

31:                                               ; preds = %19
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %7, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %8, align 4
  %35 = icmp eq ptr %17, %20
  br i1 %35, label %40, label %36

36:                                               ; preds = %36, %31
  %37 = phi ptr [ %20, %31 ], [ %38, %36 ]
  %38 = getelementptr inbounds %"class.sc_core::sc_signal", ptr %37, i64 -1
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %38) #7
  %39 = icmp eq ptr %38, %17
  br i1 %39, label %40, label %36

40:                                               ; preds = %36, %31
  br label %167

41:                                               ; preds = %24
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %7, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %8, align 4
  br label %153

45:                                               ; preds = %25
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %7, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %8, align 4
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %10) #7
  br label %153

49:                                               ; preds = %27
  %50 = getelementptr inbounds %struct.new_prop, ptr %9, i32 0, i32 1
  %51 = load i32, ptr %11, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [16 x %"class.sc_core::sc_in"], ptr %50, i64 0, i64 %52
  %54 = load i32, ptr %11, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [16 x %"class.sc_core::sc_signal"], ptr %6, i64 0, i64 %55
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %53, ptr noundef nonnull align 8 dereferenceable(8) %56)
          to label %57 unwind label %61

57:                                               ; preds = %49
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %11, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %11, align 4, !tbaa !5
  br label %27, !llvm.loop !11

61:                                               ; preds = %49
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %7, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %152

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

66:                                               ; preds = %76, %65
  %67 = load i32, ptr %12, align 4, !tbaa !5
  %68 = icmp slt i32 %67, 16
  br i1 %68, label %70, label %69

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

70:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #7
  store i8 0, ptr %13, align 1, !tbaa !13
  %71 = load i32, ptr %12, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [16 x %"class.sc_core::sc_signal"], ptr %6, i64 0, i64 %72
  %74 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %73, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %75 unwind label %79

75:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %12, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %12, align 4, !tbaa !5
  br label %66, !llvm.loop !15

79:                                               ; preds = %70
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %7, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %152

83:                                               ; preds = %69
  store ptr @_ZL10dont_printPKcz, ptr @_ZL10print_func, align 8, !tbaa !9
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 0, i32 noundef 2, i32 noundef 1)
          to label %84 unwind label %89

84:                                               ; preds = %83
  store ptr @printf, ptr @_ZL10print_func, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %130, %84
  %86 = load i32, ptr %14, align 4, !tbaa !5
  %87 = icmp slt i32 %86, 16
  br i1 %87, label %93, label %88

88:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %146

89:                                               ; preds = %146, %83
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %7, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %8, align 4
  br label %152

93:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #7
  %94 = load i32, ptr %14, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [16 x %"class.sc_core::sc_signal"], ptr %6, i64 0, i64 %95
  %97 = load ptr, ptr %96, align 16, !tbaa !16
  %98 = getelementptr inbounds ptr, ptr %97, i64 7
  %99 = load ptr, ptr %98, align 8
  %100 = invoke noundef nonnull align 1 dereferenceable(1) ptr %99(ptr noundef nonnull align 8 dereferenceable(224) %96)
          to label %101 unwind label %133

101:                                              ; preds = %93
  %102 = load i8, ptr %100, align 1, !tbaa !13, !range !18, !noundef !19
  %103 = trunc i8 %102 to i1
  %104 = xor i1 %103, true
  %105 = zext i1 %104 to i8
  store i8 %105, ptr %15, align 1, !tbaa !13
  %106 = load i32, ptr %14, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [16 x %"class.sc_core::sc_signal"], ptr %6, i64 0, i64 %107
  %109 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %108, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %110 unwind label %133

110:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
          to label %111 unwind label %137

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  %112 = load i32, ptr %14, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [16 x %"class.sc_core::sc_signal"], ptr %6, i64 0, i64 %113
  %115 = load ptr, ptr %114, align 16, !tbaa !16
  %116 = getelementptr inbounds ptr, ptr %115, i64 7
  %117 = load ptr, ptr %116, align 8
  %118 = invoke noundef nonnull align 1 dereferenceable(1) ptr %117(ptr noundef nonnull align 8 dereferenceable(224) %114)
          to label %119 unwind label %141

119:                                              ; preds = %111
  %120 = load i8, ptr %118, align 1, !tbaa !13, !range !18, !noundef !19
  %121 = trunc i8 %120 to i1
  %122 = xor i1 %121, true
  %123 = zext i1 %122 to i8
  store i8 %123, ptr %16, align 1, !tbaa !13
  %124 = load i32, ptr %14, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [16 x %"class.sc_core::sc_signal"], ptr %6, i64 0, i64 %125
  %127 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %126, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %128 unwind label %141

128:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
          to label %129 unwind label %137

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %14, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %14, align 4, !tbaa !5
  br label %85, !llvm.loop !20

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

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

141:                                              ; preds = %119, %111
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %7, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  br label %145

145:                                              ; preds = %141, %137, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %152

146:                                              ; preds = %88
  %147 = load ptr, ptr @stdout, align 8, !tbaa !9
  %148 = invoke i32 @fflush(ptr noundef %147)
          to label %149 unwind label %89

149:                                              ; preds = %146
  store i32 0, ptr %3, align 4
  call void @_ZN8new_propD2Ev(ptr noundef nonnull align 8 dereferenceable(3176) %9) #7
  call void @llvm.lifetime.end.p0(i64 3176, ptr %9) #7
  %150 = getelementptr inbounds [16 x %"class.sc_core::sc_signal"], ptr %6, i32 0, i32 0
  %151 = getelementptr inbounds %"class.sc_core::sc_signal", ptr %150, i64 16
  br label %156

152:                                              ; preds = %145, %89, %79, %61
  call void @_ZN8new_propD2Ev(ptr noundef nonnull align 8 dereferenceable(3176) %9) #7
  br label %153

153:                                              ; preds = %152, %45, %41
  call void @llvm.lifetime.end.p0(i64 3176, ptr %9) #7
  %154 = getelementptr inbounds [16 x %"class.sc_core::sc_signal"], ptr %6, i32 0, i32 0
  %155 = getelementptr inbounds %"class.sc_core::sc_signal", ptr %154, i64 16
  br label %162

156:                                              ; preds = %156, %149
  %157 = phi ptr [ %151, %149 ], [ %158, %156 ]
  %158 = getelementptr inbounds %"class.sc_core::sc_signal", ptr %157, i64 -1
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %158) #7
  %159 = icmp eq ptr %158, %150
  br i1 %159, label %160, label %156

160:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 3584, ptr %6) #7
  %161 = load i32, ptr %3, align 4
  ret i32 %161

162:                                              ; preds = %162, %153
  %163 = phi ptr [ %155, %153 ], [ %164, %162 ]
  %164 = getelementptr inbounds %"class.sc_core::sc_signal", ptr %163, i64 -1
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %164) #7
  %165 = icmp eq ptr %164, %154
  br i1 %165, label %166, label %162

166:                                              ; preds = %162
  br label %167

167:                                              ; preds = %166, %40
  call void @llvm.lifetime.end.p0(i64 3584, ptr %6) #7
  br label %168

168:                                              ; preds = %167
  %169 = load ptr, ptr %7, align 8
  %170 = load i32, ptr %8, align 4
  %171 = insertvalue { ptr, i32 } poison, ptr %169, 0
  %172 = insertvalue { ptr, i32 } %171, i32 %170, 1
  resume { ptr, i32 } %172
}

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL10dont_printPKcz(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) #5

declare i32 @printf(ptr noundef, ...) #3

declare i32 @fflush(ptr noundef) #3

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

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


; 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 }
%struct.new_prop = type { %"class.sc_core::sc_module", [16 x %"class.sc_core::sc_in"] }
%"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.8" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_module_name" = type <{ ptr, ptr, ptr, ptr, i8, [7 x i8] }>

@_ZL10print_func = external hidden local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @sc_main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca [16 x %"class.sc_core::sc_signal"], align 16
  %4 = alloca %struct.new_prop, align 8
  %5 = alloca %"class.sc_core::sc_module_name", align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 3584, ptr nonnull %3) #8
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3)
  %.ptr.1 = getelementptr inbounds i8, ptr %3, i64 224
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.1)
          to label %9 unwind label %.preheader32.preheader

9:                                                ; preds = %2
  %.ptr.2 = getelementptr inbounds i8, ptr %3, i64 448
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.2)
          to label %10 unwind label %.preheader32.preheader

10:                                               ; preds = %9
  %.ptr.3 = getelementptr inbounds i8, ptr %3, i64 672
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.3)
          to label %11 unwind label %.preheader32.preheader

11:                                               ; preds = %10
  %.ptr.4 = getelementptr inbounds i8, ptr %3, i64 896
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.4)
          to label %12 unwind label %.preheader32.preheader

12:                                               ; preds = %11
  %.ptr.5 = getelementptr inbounds i8, ptr %3, i64 1120
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.5)
          to label %13 unwind label %.preheader32.preheader

13:                                               ; preds = %12
  %.ptr.6 = getelementptr inbounds i8, ptr %3, i64 1344
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.6)
          to label %14 unwind label %.preheader32.preheader

14:                                               ; preds = %13
  %.ptr.7 = getelementptr inbounds i8, ptr %3, i64 1568
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.7)
          to label %15 unwind label %.preheader32.preheader

15:                                               ; preds = %14
  %.ptr.8 = getelementptr inbounds i8, ptr %3, i64 1792
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.8)
          to label %16 unwind label %.preheader32.preheader

16:                                               ; preds = %15
  %.ptr.9 = getelementptr inbounds i8, ptr %3, i64 2016
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.9)
          to label %17 unwind label %.preheader32.preheader

17:                                               ; preds = %16
  %.ptr.10 = getelementptr inbounds i8, ptr %3, i64 2240
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.10)
          to label %18 unwind label %.preheader32.preheader

18:                                               ; preds = %17
  %.ptr.11 = getelementptr inbounds i8, ptr %3, i64 2464
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.11)
          to label %19 unwind label %.preheader32.preheader

19:                                               ; preds = %18
  %.ptr.12 = getelementptr inbounds i8, ptr %3, i64 2688
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.12)
          to label %20 unwind label %.preheader32.preheader

20:                                               ; preds = %19
  %.ptr.13 = getelementptr inbounds i8, ptr %3, i64 2912
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.13)
          to label %21 unwind label %.preheader32.preheader

21:                                               ; preds = %20
  %.ptr.14 = getelementptr inbounds i8, ptr %3, i64 3136
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.14)
          to label %22 unwind label %.preheader32.preheader

22:                                               ; preds = %21
  %.ptr.15 = getelementptr inbounds i8, ptr %3, i64 3360
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.15)
          to label %23 unwind label %.preheader32.preheader

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 3176, ptr nonnull %4) #8
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %5, ptr noundef nonnull @.str.4)
          to label %24 unwind label %30

24:                                               ; preds = %23
  invoke void @_ZN8new_propC2EN7sc_core14sc_module_nameE(ptr noundef nonnull align 8 dereferenceable(3176) %4, ptr noundef nonnull %5)
          to label %25 unwind label %32

25:                                               ; preds = %24
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %5) #8
  %26 = getelementptr inbounds i8, ptr %4, i64 232
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %26, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %34 unwind label %65

.preheader32.preheader:                           ; preds = %2, %9, %10, %11, %12, %13, %14, %15, %16, %17, %18, %19, %20, %21, %22
  %.ptr.lcssa.ph = phi ptr [ %.ptr.15, %22 ], [ %.ptr.14, %21 ], [ %.ptr.13, %20 ], [ %.ptr.12, %19 ], [ %.ptr.11, %18 ], [ %.ptr.10, %17 ], [ %.ptr.9, %16 ], [ %.ptr.8, %15 ], [ %.ptr.7, %14 ], [ %.ptr.6, %13 ], [ %.ptr.5, %12 ], [ %.ptr.4, %11 ], [ %.ptr.3, %10 ], [ %.ptr.2, %9 ], [ %.ptr.1, %2 ]
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  br label %.preheader32

.preheader32:                                     ; preds = %.preheader32.preheader, %.preheader32
  %27 = phi ptr [ %28, %.preheader32 ], [ %.ptr.lcssa.ph, %.preheader32.preheader ]
  %28 = getelementptr inbounds i8, ptr %27, i64 -224
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %28) #8
  %29 = icmp eq ptr %28, %3
  br i1 %29, label %.loopexit, label %.preheader32

30:                                               ; preds = %23
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

32:                                               ; preds = %24
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %5) #8
  br label %.loopexit.loopexit

34:                                               ; preds = %25
  %35 = getelementptr inbounds i8, ptr %4, i64 416
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %35, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.1)
          to label %36 unwind label %65

36:                                               ; preds = %34
  %37 = getelementptr inbounds i8, ptr %4, i64 600
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %37, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.2)
          to label %38 unwind label %65

38:                                               ; preds = %36
  %39 = getelementptr inbounds i8, ptr %4, i64 784
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %39, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.3)
          to label %40 unwind label %65

40:                                               ; preds = %38
  %41 = getelementptr inbounds i8, ptr %4, i64 968
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %41, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.4)
          to label %42 unwind label %65

42:                                               ; preds = %40
  %43 = getelementptr inbounds i8, ptr %4, i64 1152
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %43, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.5)
          to label %44 unwind label %65

44:                                               ; preds = %42
  %45 = getelementptr inbounds i8, ptr %4, i64 1336
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %45, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.6)
          to label %46 unwind label %65

46:                                               ; preds = %44
  %47 = getelementptr inbounds i8, ptr %4, i64 1520
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %47, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.7)
          to label %48 unwind label %65

48:                                               ; preds = %46
  %49 = getelementptr inbounds i8, ptr %4, i64 1704
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %49, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.8)
          to label %50 unwind label %65

50:                                               ; preds = %48
  %51 = getelementptr inbounds i8, ptr %4, i64 1888
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %51, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.9)
          to label %52 unwind label %65

52:                                               ; preds = %50
  %53 = getelementptr inbounds i8, ptr %4, i64 2072
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %53, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.10)
          to label %54 unwind label %65

54:                                               ; preds = %52
  %55 = getelementptr inbounds i8, ptr %4, i64 2256
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %55, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.11)
          to label %56 unwind label %65

56:                                               ; preds = %54
  %57 = getelementptr inbounds i8, ptr %4, i64 2440
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %57, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.12)
          to label %58 unwind label %65

58:                                               ; preds = %56
  %59 = getelementptr inbounds i8, ptr %4, i64 2624
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %59, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.13)
          to label %60 unwind label %65

60:                                               ; preds = %58
  %61 = getelementptr inbounds i8, ptr %4, i64 2808
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %61, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.14)
          to label %62 unwind label %65

62:                                               ; preds = %60
  %63 = getelementptr inbounds i8, ptr %4, i64 2992
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %63, ptr noundef nonnull align 8 dereferenceable(8) %.ptr.15)
          to label %.preheader.preheader unwind label %65

.preheader.preheader:                             ; preds = %62
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !5
  %64 = 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) %6)
          to label %.preheader.1 unwind label %83

65:                                               ; preds = %62, %60, %58, %56, %54, %52, %50, %48, %46, %44, %42, %40, %38, %36, %34, %25
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %134

.preheader.1:                                     ; preds = %.preheader.preheader
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !5
  %67 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.1, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %.preheader.2 unwind label %83

.preheader.2:                                     ; preds = %.preheader.1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !5
  %68 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.2, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %.preheader.3 unwind label %83

.preheader.3:                                     ; preds = %.preheader.2
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !5
  %69 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.3, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %.preheader.4 unwind label %83

.preheader.4:                                     ; preds = %.preheader.3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !5
  %70 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.4, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %.preheader.5 unwind label %83

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

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

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

.preheader.8:                                     ; preds = %.preheader.7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !5
  %74 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.8, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %.preheader.9 unwind label %83

.preheader.9:                                     ; preds = %.preheader.8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !5
  %75 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.9, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %.preheader.10 unwind label %83

.preheader.10:                                    ; preds = %.preheader.9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !5
  %76 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.10, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %.preheader.11 unwind label %83

.preheader.11:                                    ; preds = %.preheader.10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !5
  %77 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.11, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %.preheader.12 unwind label %83

.preheader.12:                                    ; preds = %.preheader.11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !5
  %78 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.12, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %.preheader.13 unwind label %83

.preheader.13:                                    ; preds = %.preheader.12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !5
  %79 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.13, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %.preheader.14 unwind label %83

.preheader.14:                                    ; preds = %.preheader.13
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !5
  %80 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.14, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %.preheader.15 unwind label %83

.preheader.15:                                    ; preds = %.preheader.14
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !5
  %81 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %.ptr.15, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %82 unwind label %83

82:                                               ; preds = %.preheader.15
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  store ptr @_ZL10dont_printPKcz, ptr @_ZL10print_func, align 8, !tbaa !9
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 0, i32 noundef 2, i32 noundef 1)
          to label %85 unwind label %104

83:                                               ; preds = %.preheader.15, %.preheader.14, %.preheader.13, %.preheader.12, %.preheader.11, %.preheader.10, %.preheader.9, %.preheader.8, %.preheader.7, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  br label %134

85:                                               ; preds = %82
  store ptr @printf, ptr @_ZL10print_func, align 8, !tbaa !9
  br label %106

86:                                               ; preds = %127
  %87 = load ptr, ptr @stdout, align 8, !tbaa !9
  %88 = call i32 @fflush(ptr noundef %87)
  call void @_ZN8new_propD2Ev(ptr noundef nonnull align 8 dereferenceable(3176) %4) #8
  call void @llvm.lifetime.end.p0(i64 3176, ptr nonnull %4) #8
  %89 = getelementptr inbounds i8, ptr %3, i64 3360
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %89) #8
  %90 = getelementptr inbounds i8, ptr %3, i64 3136
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %90) #8
  %91 = getelementptr inbounds i8, ptr %3, i64 2912
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %91) #8
  %92 = getelementptr inbounds i8, ptr %3, i64 2688
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %92) #8
  %93 = getelementptr inbounds i8, ptr %3, i64 2464
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %93) #8
  %94 = getelementptr inbounds i8, ptr %3, i64 2240
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %94) #8
  %95 = getelementptr inbounds i8, ptr %3, i64 2016
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %95) #8
  %96 = getelementptr inbounds i8, ptr %3, i64 1792
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %96) #8
  %97 = getelementptr inbounds i8, ptr %3, i64 1568
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %97) #8
  %98 = getelementptr inbounds i8, ptr %3, i64 1344
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %98) #8
  %99 = getelementptr inbounds i8, ptr %3, i64 1120
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %99) #8
  %100 = getelementptr inbounds i8, ptr %3, i64 896
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %100) #8
  %101 = getelementptr inbounds i8, ptr %3, i64 672
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %101) #8
  %102 = getelementptr inbounds i8, ptr %3, i64 448
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %102) #8
  %103 = getelementptr inbounds i8, ptr %3, i64 224
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %103) #8
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #8
  call void @llvm.lifetime.end.p0(i64 3584, ptr nonnull %3) #8
  ret i32 0

104:                                              ; preds = %82
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %134

106:                                              ; preds = %85, %127
  %indvars.iv = phi i64 [ 0, %85 ], [ %indvars.iv.next, %127 ]
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #8
  %107 = getelementptr inbounds [16 x %"class.sc_core::sc_signal"], ptr %3, i64 0, i64 %indvars.iv
  %108 = load ptr, ptr %107, align 16, !tbaa !11
  %109 = getelementptr inbounds i8, ptr %108, i64 56
  %110 = load ptr, ptr %109, align 8
  %111 = invoke noundef nonnull align 1 dereferenceable(1) ptr %110(ptr noundef nonnull align 8 dereferenceable(224) %107)
          to label %112 unwind label %128

112:                                              ; preds = %106
  %113 = load i8, ptr %111, align 1, !tbaa !5, !range !13, !noundef !14
  %114 = xor i8 %113, 1
  store i8 %114, ptr %7, align 1, !tbaa !5
  %115 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %107, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %116 unwind label %128

116:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
          to label %117 unwind label %130

117:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #8
  %118 = load ptr, ptr %107, align 16, !tbaa !11
  %119 = getelementptr inbounds i8, ptr %118, i64 56
  %120 = load ptr, ptr %119, align 8
  %121 = invoke noundef nonnull align 1 dereferenceable(1) ptr %120(ptr noundef nonnull align 8 dereferenceable(224) %107)
          to label %122 unwind label %132

122:                                              ; preds = %117
  %123 = load i8, ptr %121, align 1, !tbaa !5, !range !13, !noundef !14
  %124 = xor i8 %123, 1
  store i8 %124, ptr %8, 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) %107, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %126 unwind label %132

126:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
          to label %127 unwind label %130

127:                                              ; preds = %126
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 16
  br i1 %exitcond.not, label %86, label %106, !llvm.loop !15

128:                                              ; preds = %112, %106
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  br label %134

130:                                              ; preds = %126, %116
  %131 = landingpad { ptr, i32 }
          cleanup
  br label %134

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

134:                                              ; preds = %128, %130, %132, %104, %83, %65
  %.pn28 = phi { ptr, i32 } [ %66, %65 ], [ %84, %83 ], [ %105, %104 ], [ %131, %130 ], [ %133, %132 ], [ %129, %128 ]
  call void @_ZN8new_propD2Ev(ptr noundef nonnull align 8 dereferenceable(3176) %4) #8
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %134, %32, %30
  %.pn28.pn = phi { ptr, i32 } [ %.pn28, %134 ], [ %33, %32 ], [ %31, %30 ]
  call void @llvm.lifetime.end.p0(i64 3176, ptr nonnull %4) #8
  %135 = getelementptr inbounds i8, ptr %3, i64 3360
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %135) #8
  %136 = getelementptr inbounds i8, ptr %3, i64 3136
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %136) #8
  %137 = getelementptr inbounds i8, ptr %3, i64 2912
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %137) #8
  %138 = getelementptr inbounds i8, ptr %3, i64 2688
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %138) #8
  %139 = getelementptr inbounds i8, ptr %3, i64 2464
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %139) #8
  %140 = getelementptr inbounds i8, ptr %3, i64 2240
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %140) #8
  %141 = getelementptr inbounds i8, ptr %3, i64 2016
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %141) #8
  %142 = getelementptr inbounds i8, ptr %3, i64 1792
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %142) #8
  %143 = getelementptr inbounds i8, ptr %3, i64 1568
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %143) #8
  %144 = getelementptr inbounds i8, ptr %3, i64 1344
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %144) #8
  %145 = getelementptr inbounds i8, ptr %3, i64 1120
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %145) #8
  %146 = getelementptr inbounds i8, ptr %3, i64 896
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %146) #8
  %147 = getelementptr inbounds i8, ptr %3, i64 672
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %147) #8
  %148 = getelementptr inbounds i8, ptr %3, i64 448
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %148) #8
  %149 = getelementptr inbounds i8, ptr %3, i64 224
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %149) #8
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #8
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader32, %.loopexit.loopexit
  %.pn28.pn.pn = phi { ptr, i32 } [ %.pn28.pn, %.loopexit.loopexit ], [ %lpad.thr_comm, %.preheader32 ]
  call void @llvm.lifetime.end.p0(i64 3584, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn28.pn.pn
}

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL10dont_printPKcz(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) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) #6

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #6

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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