; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/1666-2011-compliance/sc_pause (sc_pause)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.sc_core::sc_time" = type { i64 }
%struct.Top = type { %"class.sc_core::sc_module", ptr, %"class.sc_core::sc_event", %"class.sc_core::sc_event", %"class.sc_core::sc_event", i32, [4 x i8], %"class.sc_core::sc_signal" }
%"class.sc_core::sc_module" = type { %"class.sc_core::sc_object", %"class.sc_core::sc_process_host", %"class.sc_core::sc_sensitive", %"class.sc_core::sc_sensitive_pos", %"class.sc_core::sc_sensitive_neg", i8, ptr, i32, ptr, ptr }
%"class.sc_core::sc_object" = type { ptr, ptr, %"class.std::vector", %"class.std::vector.0", %"class.std::__cxx11::basic_string", ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.sc_core::sc_process_host" = type { ptr }
%"class.sc_core::sc_sensitive" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_pos" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_neg" = type { ptr, i32, ptr }
%"class.sc_core::sc_event" = type { %"class.std::__cxx11::basic_string", ptr, ptr, i32, i32, ptr, %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector.13", %"class.std::vector.13" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_signal" = type <{ %"class.sc_core::sc_signal_inout_if", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, i32, [4 x i8], i64, i32, [4 x i8] }>
%"class.sc_core::sc_signal_inout_if" = type { %"class.sc_core::sc_signal_in_if", %"class.sc_core::sc_signal_write_if" }
%"class.sc_core::sc_signal_in_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_interface" = type { ptr }
%"class.sc_core::sc_signal_write_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_prim_channel" = type { %"class.sc_core::sc_object", ptr, ptr }
%"struct.sc_core::sc_writer_policy_check" = type { %"struct.sc_core::sc_writer_policy_check_port", %"struct.sc_core::sc_writer_policy_check_write" }
%"struct.sc_core::sc_writer_policy_check_port" = type { ptr }
%"struct.sc_core::sc_writer_policy_check_write" = type { i8, ptr }
%"class.sc_core::sc_module_name" = type <{ ptr, ptr, ptr, ptr, i8, [7 x i8] }>
%"class.sc_core::sc_process_handle" = type { ptr }
%struct.M = type { %"class.sc_core::sc_module", %struct.my_interface, %"class.sc_core::sc_export", %"class.sc_core::sc_signal", %"class.sc_core::sc_signal", %"class.sc_core::sc_signal", %"class.sc_core::sc_signal", %"class.sc_core::sc_event", %"class.sc_core::sc_event", %"class.sc_core::sc_event", ptr, ptr }
%struct.my_interface = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_export" = type { %"class.sc_core::sc_export_base", ptr }
%"class.sc_core::sc_export_base" = type { %"class.sc_core::sc_object" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZN7sc_core23SC_ID_ASSERTION_FAILED_E = external constant [0 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZN7sc_core12SC_ZERO_TIMEE = external global %"class.sc_core::sc_time", align 8
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20spawned_while_pausedv() #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv() #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7sc_core7sc_timeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

declare void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8), double noundef, i32 noundef) unnamed_addr #2

declare void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN7sc_core13sc_get_statusEv() #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN7sc_core22sc_get_curr_simcontextEv() #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 %struct.Top, align 8
  %6 = alloca %"class.sc_core::sc_module_name", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.sc_core::sc_time", align 8
  %11 = alloca %"class.sc_core::sc_time", align 8
  %12 = alloca %"class.sc_core::sc_process_handle", align 8
  %13 = alloca %"class.sc_core::sc_time", align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  %14 = call noundef i64 @_ZN7sc_core14sc_delta_countEv()
  %15 = icmp eq i64 %14, 0
  br i1 %15, label %16, label %17

16:                                               ; preds = %2
  br label %18

17:                                               ; preds = %2
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.6, ptr noundef @.str.3, i32 noundef 303)
  br label %18

18:                                               ; preds = %17, %16
  %19 = phi i32 [ 0, %16 ], [ 0, %17 ]
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef @_ZSt3hexRSt8ios_base)
  %22 = call noundef i32 @_ZN7sc_core13sc_get_statusEv()
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_corelsERSoNS_9sc_statusE(ptr noundef nonnull align 8 dereferenceable(8) %21, i32 noundef %22)
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef @.str.8)
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %26 = call noundef i32 @_ZN7sc_core13sc_get_statusEv()
  %27 = icmp eq i32 %26, 1
  br i1 %27, label %28, label %29

28:                                               ; preds = %18
  br label %30

29:                                               ; preds = %18
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.9, ptr noundef @.str.3, i32 noundef 305)
  br label %30

30:                                               ; preds = %29, %28
  %31 = phi i32 [ 0, %28 ], [ 0, %29 ]
  %32 = call noundef ptr @_ZN7sc_core22sc_get_curr_simcontextEv()
  %33 = call noundef zeroext i1 @_ZN7sc_core13sc_is_runningEPKNS_13sc_simcontextE(ptr noundef %32)
  %34 = zext i1 %33 to i32
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %30
  br label %38

37:                                               ; preds = %30
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.10, ptr noundef @.str.3, i32 noundef 306)
  br label %38

38:                                               ; preds = %37, %36
  %39 = phi i32 [ 0, %36 ], [ 0, %37 ]
  call void @llvm.lifetime.start.p0(i64 928, ptr %5) #7
  call void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %6, ptr noundef @.str.11)
  invoke void @_ZN3TopC2EN7sc_core14sc_module_nameE(ptr noundef nonnull align 8 dereferenceable(928) %5, ptr noundef %6)
          to label %40 unwind label %219

40:                                               ; preds = %38
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %6) #7
  invoke void @_ZN7sc_core8sc_pauseEv()
          to label %41 unwind label %223

41:                                               ; preds = %40
  %42 = getelementptr inbounds %struct.Top, ptr %5, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 42, ptr %9, align 4, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EE5writeERKi(ptr noundef nonnull align 8 dereferenceable(196) %42, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %43 unwind label %227

43:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  %44 = getelementptr inbounds %struct.Top, ptr %5, i32 0, i32 2
  invoke void @_ZN7sc_core8sc_event6notifyEdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(160) %44, double noundef 4.200000e+01, i32 noundef 3)
          to label %45 unwind label %223

45:                                               ; preds = %43
  %46 = getelementptr inbounds %struct.Top, ptr %5, i32 0, i32 3
  invoke void @_ZN7sc_core8sc_event6notifyERKNS_7sc_timeE(ptr noundef nonnull align 8 dereferenceable(160) %46, ptr noundef nonnull align 8 dereferenceable(8) @_ZN7sc_core12SC_ZERO_TIMEE)
          to label %47 unwind label %223

47:                                               ; preds = %45
  %48 = invoke noundef i32 @_ZN7sc_core13sc_get_statusEv()
          to label %49 unwind label %223

49:                                               ; preds = %47
  %50 = icmp eq i32 %48, 1
  br i1 %50, label %51, label %52

51:                                               ; preds = %49
  br label %54

52:                                               ; preds = %49
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.9, ptr noundef @.str.3, i32 noundef 315)
          to label %53 unwind label %223

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53, %51
  %55 = phi i32 [ 0, %51 ], [ 0, %53 ]
  %56 = invoke noundef i64 @_ZN7sc_core14sc_delta_countEv()
          to label %57 unwind label %223

57:                                               ; preds = %54
  %58 = icmp eq i64 %56, 0
  br i1 %58, label %59, label %60

59:                                               ; preds = %57
  br label %62

60:                                               ; preds = %57
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.6, ptr noundef @.str.3, i32 noundef 316)
          to label %61 unwind label %223

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61, %59
  %63 = phi i32 [ 0, %59 ], [ 0, %61 ]
  invoke void @_ZN7sc_core8sc_startEv()
          to label %64 unwind label %223

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
          to label %66 unwind label %223

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef @_ZSt3hexRSt8ios_base)
          to label %68 unwind label %223

68:                                               ; preds = %66
  %69 = invoke noundef i32 @_ZN7sc_core13sc_get_statusEv()
          to label %70 unwind label %223

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_corelsERSoNS_9sc_statusE(ptr noundef nonnull align 8 dereferenceable(8) %67, i32 noundef %69)
          to label %72 unwind label %223

72:                                               ; preds = %70
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef @.str.12)
          to label %74 unwind label %223

74:                                               ; preds = %72
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %76 unwind label %223

76:                                               ; preds = %74
  %77 = invoke noundef i32 @_ZN7sc_core13sc_get_statusEv()
          to label %78 unwind label %223

78:                                               ; preds = %76
  %79 = icmp eq i32 %77, 32
  br i1 %79, label %80, label %81

80:                                               ; preds = %78
  br label %83

81:                                               ; preds = %78
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.13, ptr noundef @.str.3, i32 noundef 320)
          to label %82 unwind label %223

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82, %80
  %84 = phi i32 [ 0, %80 ], [ 0, %82 ]
  %85 = invoke noundef ptr @_ZN7sc_core22sc_get_curr_simcontextEv()
          to label %86 unwind label %223

86:                                               ; preds = %83
  %87 = invoke noundef zeroext i1 @_ZN7sc_core13sc_is_runningEPKNS_13sc_simcontextE(ptr noundef %85)
          to label %88 unwind label %223

88:                                               ; preds = %86
  %89 = zext i1 %87 to i32
  %90 = icmp eq i32 %89, 1
  br i1 %90, label %91, label %92

91:                                               ; preds = %88
  br label %94

92:                                               ; preds = %88
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.14, ptr noundef @.str.3, i32 noundef 321)
          to label %93 unwind label %223

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93, %91
  %95 = phi i32 [ 0, %91 ], [ 0, %93 ]
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv()
          to label %97 unwind label %223

97:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %10, double noundef 4.200000e+01, i32 noundef 3)
          to label %98 unwind label %231

98:                                               ; preds = %97
  %99 = invoke noundef zeroext i1 @_ZNK7sc_core7sc_timeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %100 unwind label %231

100:                                              ; preds = %98
  br i1 %99, label %101, label %102

101:                                              ; preds = %100
  br label %104

102:                                              ; preds = %100
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 322)
          to label %103 unwind label %231

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103, %101
  %105 = phi i32 [ 0, %101 ], [ 0, %103 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 3, i32 noundef 1)
          to label %106 unwind label %223

106:                                              ; preds = %104
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
          to label %108 unwind label %223

108:                                              ; preds = %106
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef @_ZSt3hexRSt8ios_base)
          to label %110 unwind label %223

110:                                              ; preds = %108
  %111 = invoke noundef i32 @_ZN7sc_core13sc_get_statusEv()
          to label %112 unwind label %223

112:                                              ; preds = %110
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_corelsERSoNS_9sc_statusE(ptr noundef nonnull align 8 dereferenceable(8) %109, i32 noundef %111)
          to label %114 unwind label %223

114:                                              ; preds = %112
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef @.str.12)
          to label %116 unwind label %223

116:                                              ; preds = %114
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %118 unwind label %223

118:                                              ; preds = %116
  %119 = invoke noundef i32 @_ZN7sc_core13sc_get_statusEv()
          to label %120 unwind label %223

120:                                              ; preds = %118
  %121 = icmp eq i32 %119, 32
  br i1 %121, label %122, label %123

122:                                              ; preds = %120
  br label %125

123:                                              ; preds = %120
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.13, ptr noundef @.str.3, i32 noundef 326)
          to label %124 unwind label %223

124:                                              ; preds = %123
  br label %125

125:                                              ; preds = %124, %122
  %126 = phi i32 [ 0, %122 ], [ 0, %124 ]
  %127 = invoke noundef ptr @_ZN7sc_core22sc_get_curr_simcontextEv()
          to label %128 unwind label %223

128:                                              ; preds = %125
  %129 = invoke noundef zeroext i1 @_ZN7sc_core13sc_is_runningEPKNS_13sc_simcontextE(ptr noundef %127)
          to label %130 unwind label %223

130:                                              ; preds = %128
  %131 = zext i1 %129 to i32
  %132 = icmp eq i32 %131, 1
  br i1 %132, label %133, label %134

133:                                              ; preds = %130
  br label %136

134:                                              ; preds = %130
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.14, ptr noundef @.str.3, i32 noundef 327)
          to label %135 unwind label %223

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135, %133
  %137 = phi i32 [ 0, %133 ], [ 0, %135 ]
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv()
          to label %139 unwind label %223

139:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %11, double noundef 4.200000e+01, i32 noundef 3)
          to label %140 unwind label %235

140:                                              ; preds = %139
  %141 = invoke noundef zeroext i1 @_ZNK7sc_core7sc_timeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %138, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %142 unwind label %235

142:                                              ; preds = %140
  br i1 %141, label %143, label %144

143:                                              ; preds = %142
  br label %146

144:                                              ; preds = %142
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 328)
          to label %145 unwind label %235

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145, %143
  %147 = phi i32 [ 0, %143 ], [ 0, %145 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  %148 = getelementptr inbounds %struct.Top, ptr %5, i32 0, i32 4
  invoke void @_ZN7sc_core8sc_event6notifyEv(ptr noundef nonnull align 8 dereferenceable(160) %148)
          to label %149 unwind label %223

149:                                              ; preds = %146
  %150 = invoke noundef i64 @_ZN7sc_core14sc_delta_countEv()
          to label %151 unwind label %223

151:                                              ; preds = %149
  %152 = trunc i64 %150 to i32
  %153 = getelementptr inbounds %struct.Top, ptr %5, i32 0, i32 5
  store i32 %152, ptr %153, align 8, !tbaa !11
  %154 = getelementptr inbounds %struct.Top, ptr %5, i32 0, i32 1
  %155 = load ptr, ptr %154, align 8, !tbaa !53
  %156 = getelementptr inbounds %struct.M, ptr %155, i32 0, i32 2
  %157 = invoke noundef ptr @_ZN7sc_core9sc_exportI12my_interfaceEptEv(ptr noundef nonnull align 8 dereferenceable(120) %156)
          to label %158 unwind label %223

158:                                              ; preds = %151
  %159 = load ptr, ptr %157, align 8, !tbaa !54
  %160 = getelementptr inbounds ptr, ptr %159, i64 4
  %161 = load ptr, ptr %160, align 8
  invoke void %161(ptr noundef nonnull align 8 dereferenceable(8) %157)
          to label %162 unwind label %223

162:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  invoke void @_ZN7sc_core8sc_spawnIPFvvEEENS_17sc_process_handleET_PKcPKNS_16sc_spawn_optionsE(ptr dead_on_unwind writable sret(%"class.sc_core::sc_process_handle") align 8 %12, ptr noundef @_Z20spawned_while_pausedv, ptr noundef null, ptr noundef null)
          to label %163 unwind label %239

163:                                              ; preds = %162
  %164 = invoke noundef zeroext i1 @_ZNK7sc_core17sc_process_handle5validEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %165 unwind label %243

165:                                              ; preds = %163
  br i1 %164, label %166, label %167

166:                                              ; preds = %165
  br label %169

167:                                              ; preds = %165
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.15, ptr noundef @.str.3, i32 noundef 338)
          to label %168 unwind label %243

168:                                              ; preds = %167
  br label %169

169:                                              ; preds = %168, %166
  %170 = phi i32 [ 0, %166 ], [ 0, %168 ]
  invoke void @_ZN7sc_core8sc_startEv()
          to label %171 unwind label %243

171:                                              ; preds = %169
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
          to label %173 unwind label %243

173:                                              ; preds = %171
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %172, ptr noundef @_ZSt3hexRSt8ios_base)
          to label %175 unwind label %243

175:                                              ; preds = %173
  %176 = invoke noundef i32 @_ZN7sc_core13sc_get_statusEv()
          to label %177 unwind label %243

177:                                              ; preds = %175
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_corelsERSoNS_9sc_statusE(ptr noundef nonnull align 8 dereferenceable(8) %174, i32 noundef %176)
          to label %179 unwind label %243

179:                                              ; preds = %177
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef @.str.16)
          to label %181 unwind label %243

181:                                              ; preds = %179
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %180, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %183 unwind label %243

183:                                              ; preds = %181
  %184 = invoke noundef i32 @_ZN7sc_core13sc_get_statusEv()
          to label %185 unwind label %243

185:                                              ; preds = %183
  %186 = icmp eq i32 %184, 64
  br i1 %186, label %187, label %188

187:                                              ; preds = %185
  br label %190

188:                                              ; preds = %185
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.17, ptr noundef @.str.3, i32 noundef 342)
          to label %189 unwind label %243

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189, %187
  %191 = phi i32 [ 0, %187 ], [ 0, %189 ]
  %192 = invoke noundef ptr @_ZN7sc_core22sc_get_curr_simcontextEv()
          to label %193 unwind label %243

193:                                              ; preds = %190
  %194 = invoke noundef zeroext i1 @_ZN7sc_core13sc_is_runningEPKNS_13sc_simcontextE(ptr noundef %192)
          to label %195 unwind label %243

195:                                              ; preds = %193
  %196 = zext i1 %194 to i32
  %197 = icmp eq i32 %196, 0
  br i1 %197, label %198, label %199

198:                                              ; preds = %195
  br label %201

199:                                              ; preds = %195
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.10, ptr noundef @.str.3, i32 noundef 343)
          to label %200 unwind label %243

200:                                              ; preds = %199
  br label %201

201:                                              ; preds = %200, %198
  %202 = phi i32 [ 0, %198 ], [ 0, %200 ]
  %203 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv()
          to label %204 unwind label %243

204:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %13, double noundef 4.400000e+01, i32 noundef 3)
          to label %205 unwind label %247

205:                                              ; preds = %204
  %206 = invoke noundef zeroext i1 @_ZNK7sc_core7sc_timeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %207 unwind label %247

207:                                              ; preds = %205
  br i1 %206, label %208, label %209

208:                                              ; preds = %207
  br label %211

209:                                              ; preds = %207
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.18, ptr noundef @.str.3, i32 noundef 344)
          to label %210 unwind label %247

210:                                              ; preds = %209
  br label %211

211:                                              ; preds = %210, %208
  %212 = phi i32 [ 0, %208 ], [ 0, %210 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %213 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %214 unwind label %243

214:                                              ; preds = %211
  %215 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %213, ptr noundef @.str.19)
          to label %216 unwind label %243

216:                                              ; preds = %214
  %217 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %215, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %218 unwind label %243

218:                                              ; preds = %216
  call void @_ZN7sc_core17sc_process_handleD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @_ZN3TopD2Ev(ptr noundef nonnull align 8 dereferenceable(928) %5) #7
  call void @llvm.lifetime.end.p0(i64 928, ptr %5) #7
  ret i32 0

219:                                              ; preds = %38
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %7, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %8, align 4
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %6) #7
  br label %254

223:                                              ; preds = %158, %151, %149, %146, %136, %134, %128, %125, %123, %118, %116, %114, %112, %110, %108, %106, %104, %94, %92, %86, %83, %81, %76, %74, %72, %70, %68, %66, %64, %62, %60, %54, %52, %47, %45, %43, %40
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %7, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %8, align 4
  br label %253

227:                                              ; preds = %41
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %7, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %253

231:                                              ; preds = %102, %98, %97
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %7, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %253

235:                                              ; preds = %144, %140, %139
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %7, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %253

239:                                              ; preds = %162
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %7, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %8, align 4
  br label %252

243:                                              ; preds = %216, %214, %211, %201, %199, %193, %190, %188, %183, %181, %179, %177, %175, %173, %171, %169, %167, %163
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %7, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %8, align 4
  br label %251

247:                                              ; preds = %209, %205, %204
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %7, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %251

251:                                              ; preds = %247, %243
  call void @_ZN7sc_core17sc_process_handleD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %252

252:                                              ; preds = %251, %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %253

253:                                              ; preds = %252, %235, %231, %227, %223
  call void @_ZN3TopD2Ev(ptr noundef nonnull align 8 dereferenceable(928) %5) #7
  br label %254

254:                                              ; preds = %253, %219
  call void @llvm.lifetime.end.p0(i64 928, ptr %5) #7
  br label %255

255:                                              ; preds = %254
  %256 = load ptr, ptr %7, align 8
  %257 = load i32, ptr %8, align 4
  %258 = insertvalue { ptr, i32 } poison, ptr %256, 0
  %259 = insertvalue { ptr, i32 } %258, i32 %257, 1
  resume { ptr, i32 } %259
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN7sc_core14sc_delta_countEv() #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_corelsERSoNS_9sc_statusE(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3hexRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7sc_core13sc_is_runningEPKNS_13sc_simcontextE(ptr noundef) #3

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_pauseEv() #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EE5writeERKi(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_event6notifyEdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(160), double noundef, i32 noundef) #1 align 2

declare void @_ZN7sc_core8sc_event6notifyERKNS_7sc_timeE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(8)) #2

declare void @_ZN7sc_core8sc_startEv() #2

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

declare void @_ZN7sc_core8sc_event6notifyEv(ptr noundef nonnull align 8 dereferenceable(160)) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_spawnIPFvvEEENS_17sc_process_handleET_PKcPKNS_16sc_spawn_optionsE(ptr dead_on_unwind noalias writable sret(%"class.sc_core::sc_process_handle") align 8, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7sc_core17sc_process_handle5validEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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, !6, i64 720}
!12 = !{!"_ZTS3Top", !13, i64 0, !10, i64 232, !34, i64 240, !34, i64 400, !34, i64 560, !6, i64 720, !44, i64 728}
!13 = !{!"_ZTSN7sc_core9sc_moduleE", !14, i64 0, !26, i64 112, !27, i64 120, !29, i64 144, !31, i64 168, !33, i64 192, !10, i64 200, !6, i64 208, !10, i64 216, !10, i64 224}
!14 = !{!"_ZTSN7sc_core9sc_objectE", !10, i64 8, !15, i64 16, !19, i64 40, !23, i64 64, !10, i64 96, !10, i64 104}
!15 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!19 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !25, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSN7sc_core15sc_process_hostE"}
!27 = !{!"_ZTSN7sc_core12sc_sensitiveE", !10, i64 0, !28, i64 8, !10, i64 16}
!28 = !{!"_ZTSN7sc_core12sc_sensitiveUt_E", !7, i64 0}
!29 = !{!"_ZTSN7sc_core16sc_sensitive_posE", !10, i64 0, !30, i64 8, !10, i64 16}
!30 = !{!"_ZTSN7sc_core16sc_sensitive_posUt_E", !7, i64 0}
!31 = !{!"_ZTSN7sc_core16sc_sensitive_negE", !10, i64 0, !32, i64 8, !10, i64 16}
!32 = !{!"_ZTSN7sc_core16sc_sensitive_negUt_E", !7, i64 0}
!33 = !{!"bool", !7, i64 0}
!34 = !{!"_ZTSN7sc_core8sc_eventE", !23, i64 0, !10, i64 32, !10, i64 40, !35, i64 48, !6, i64 52, !10, i64 56, !36, i64 64, !36, i64 88, !40, i64 112, !40, i64 136}
!35 = !{!"_ZTSN7sc_core8sc_event8notify_tE", !7, i64 0}
!36 = !{!"_ZTSSt6vectorIPN7sc_core17sc_method_processESaIS2_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!40 = !{!"_ZTSSt6vectorIPN7sc_core17sc_thread_processESaIS2_EE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!44 = !{!"_ZTSN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EEE", !45, i64 0, !48, i64 16, !49, i64 144, !10, i64 168, !6, i64 176, !52, i64 184, !6, i64 192}
!45 = !{!"_ZTSN7sc_core18sc_signal_inout_ifIiEE", !46, i64 0, !47, i64 8}
!46 = !{!"_ZTSN7sc_core15sc_signal_in_ifIiEE"}
!47 = !{!"_ZTSN7sc_core18sc_signal_write_ifIiEE"}
!48 = !{!"_ZTSN7sc_core15sc_prim_channelE", !14, i64 0, !10, i64 112, !10, i64 120}
!49 = !{!"_ZTSN7sc_core22sc_writer_policy_checkILNS_16sc_writer_policyE0EEE", !50, i64 0, !51, i64 8}
!50 = !{!"_ZTSN7sc_core27sc_writer_policy_check_portE", !10, i64 0}
!51 = !{!"_ZTSN7sc_core28sc_writer_policy_check_writeE", !33, i64 0, !10, i64 8}
!52 = !{!"long long", !7, i64 0}
!53 = !{!12, !10, i64 232}
!54 = !{!55, !55, i64 0}
!55 = !{!"vtable pointer", !8, i64 0}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.sc_core::sc_time" = type { i64 }
%struct.Top = type { %"class.sc_core::sc_module", ptr, %"class.sc_core::sc_event", %"class.sc_core::sc_event", %"class.sc_core::sc_event", i32, [4 x i8], %"class.sc_core::sc_signal" }
%"class.sc_core::sc_module" = type { %"class.sc_core::sc_object", %"class.sc_core::sc_process_host", %"class.sc_core::sc_sensitive", %"class.sc_core::sc_sensitive_pos", %"class.sc_core::sc_sensitive_neg", i8, ptr, i32, ptr, ptr }
%"class.sc_core::sc_object" = type { ptr, ptr, %"class.std::vector", %"class.std::vector.0", %"class.std::__cxx11::basic_string", ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.sc_core::sc_process_host" = type { ptr }
%"class.sc_core::sc_sensitive" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_pos" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_neg" = type { ptr, i32, ptr }
%"class.sc_core::sc_event" = type { %"class.std::__cxx11::basic_string", ptr, ptr, i32, i32, ptr, %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector.13", %"class.std::vector.13" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_signal" = type <{ %"class.sc_core::sc_signal_inout_if", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, i32, [4 x i8], i64, i32, [4 x i8] }>
%"class.sc_core::sc_signal_inout_if" = type { %"class.sc_core::sc_signal_in_if", %"class.sc_core::sc_signal_write_if" }
%"class.sc_core::sc_signal_in_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_interface" = type { ptr }
%"class.sc_core::sc_signal_write_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_prim_channel" = type { %"class.sc_core::sc_object", ptr, ptr }
%"struct.sc_core::sc_writer_policy_check" = type { %"struct.sc_core::sc_writer_policy_check_port", %"struct.sc_core::sc_writer_policy_check_write" }
%"struct.sc_core::sc_writer_policy_check_port" = type { ptr }
%"struct.sc_core::sc_writer_policy_check_write" = type { i8, ptr }
%"class.sc_core::sc_module_name" = type <{ ptr, ptr, ptr, ptr, i8, [7 x i8] }>
%"class.sc_core::sc_process_handle" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZN7sc_core23SC_ID_ASSERTION_FAILED_E = external constant [0 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZN7sc_core12SC_ZERO_TIMEE = external global %"class.sc_core::sc_time", align 8
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20spawned_while_pausedv() #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv() local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7sc_core7sc_timeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

declare void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8), double noundef, i32 noundef) unnamed_addr #2

declare void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN7sc_core13sc_get_statusEv() local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN7sc_core22sc_get_curr_simcontextEv() local_unnamed_addr #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 %struct.Top, align 8
  %4 = alloca %"class.sc_core::sc_module_name", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.sc_core::sc_time", align 8
  %7 = alloca %"class.sc_core::sc_time", align 8
  %8 = alloca %"class.sc_core::sc_process_handle", align 8
  %9 = alloca %"class.sc_core::sc_time", align 8
  %10 = tail call noundef i64 @_ZN7sc_core14sc_delta_countEv()
  %11 = icmp eq i64 %10, 0
  br i1 %11, label %13, label %12

12:                                               ; preds = %2
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.3, i32 noundef 303)
  br label %13

13:                                               ; preds = %2, %12
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull @_ZSt3hexRSt8ios_base)
  %16 = tail call noundef i32 @_ZN7sc_core13sc_get_statusEv()
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_corelsERSoNS_9sc_statusE(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef %16)
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @.str.8)
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %20 = tail call noundef i32 @_ZN7sc_core13sc_get_statusEv()
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %23, label %22

22:                                               ; preds = %13
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.3, i32 noundef 305)
  br label %23

23:                                               ; preds = %13, %22
  %24 = tail call noundef ptr @_ZN7sc_core22sc_get_curr_simcontextEv()
  %25 = tail call noundef zeroext i1 @_ZN7sc_core13sc_is_runningEPKNS_13sc_simcontextE(ptr noundef %24)
  br i1 %25, label %26, label %27

26:                                               ; preds = %23
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.3, i32 noundef 306)
  br label %27

27:                                               ; preds = %23, %26
  call void @llvm.lifetime.start.p0(i64 928, ptr nonnull %3) #7
  call void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %4, ptr noundef nonnull @.str.11)
  invoke void @_ZN3TopC2EN7sc_core14sc_module_nameE(ptr noundef nonnull align 8 dereferenceable(928) %3, ptr noundef nonnull %4)
          to label %28 unwind label %158

28:                                               ; preds = %27
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %4) #7
  invoke void @_ZN7sc_core8sc_pauseEv()
          to label %29 unwind label %160

29:                                               ; preds = %28
  %30 = getelementptr inbounds i8, ptr %3, i64 728
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 42, ptr %5, align 4, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EE5writeERKi(ptr noundef nonnull align 8 dereferenceable(196) %30, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %31 unwind label %162

31:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %32 = getelementptr inbounds i8, ptr %3, i64 240
  invoke void @_ZN7sc_core8sc_event6notifyEdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(160) %32, double noundef 4.200000e+01, i32 noundef 3)
          to label %33 unwind label %160

33:                                               ; preds = %31
  %34 = getelementptr inbounds i8, ptr %3, i64 400
  invoke void @_ZN7sc_core8sc_event6notifyERKNS_7sc_timeE(ptr noundef nonnull align 8 dereferenceable(160) %34, ptr noundef nonnull align 8 dereferenceable(8) @_ZN7sc_core12SC_ZERO_TIMEE)
          to label %35 unwind label %160

35:                                               ; preds = %33
  %36 = invoke noundef i32 @_ZN7sc_core13sc_get_statusEv()
          to label %37 unwind label %160

37:                                               ; preds = %35
  %38 = icmp eq i32 %36, 1
  br i1 %38, label %40, label %39

39:                                               ; preds = %37
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.3, i32 noundef 315)
          to label %40 unwind label %160

40:                                               ; preds = %39, %37
  %41 = invoke noundef i64 @_ZN7sc_core14sc_delta_countEv()
          to label %42 unwind label %160

42:                                               ; preds = %40
  %43 = icmp eq i64 %41, 0
  br i1 %43, label %45, label %44

44:                                               ; preds = %42
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.3, i32 noundef 316)
          to label %45 unwind label %160

45:                                               ; preds = %44, %42
  invoke void @_ZN7sc_core8sc_startEv()
          to label %46 unwind label %160

46:                                               ; preds = %45
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
          to label %48 unwind label %160

48:                                               ; preds = %46
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull @_ZSt3hexRSt8ios_base)
          to label %50 unwind label %160

50:                                               ; preds = %48
  %51 = invoke noundef i32 @_ZN7sc_core13sc_get_statusEv()
          to label %52 unwind label %160

52:                                               ; preds = %50
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_corelsERSoNS_9sc_statusE(ptr noundef nonnull align 8 dereferenceable(8) %49, i32 noundef %51)
          to label %54 unwind label %160

54:                                               ; preds = %52
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull @.str.12)
          to label %56 unwind label %160

56:                                               ; preds = %54
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %58 unwind label %160

58:                                               ; preds = %56
  %59 = invoke noundef i32 @_ZN7sc_core13sc_get_statusEv()
          to label %60 unwind label %160

60:                                               ; preds = %58
  %61 = icmp eq i32 %59, 32
  br i1 %61, label %63, label %62

62:                                               ; preds = %60
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.3, i32 noundef 320)
          to label %63 unwind label %160

63:                                               ; preds = %62, %60
  %64 = invoke noundef ptr @_ZN7sc_core22sc_get_curr_simcontextEv()
          to label %65 unwind label %160

65:                                               ; preds = %63
  %66 = call noundef zeroext i1 @_ZN7sc_core13sc_is_runningEPKNS_13sc_simcontextE(ptr noundef %64)
  br i1 %66, label %68, label %67

67:                                               ; preds = %65
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.3, i32 noundef 321)
          to label %68 unwind label %160

68:                                               ; preds = %67, %65
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv()
          to label %70 unwind label %160

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %6, double noundef 4.200000e+01, i32 noundef 3)
          to label %71 unwind label %164

71:                                               ; preds = %70
  %72 = call noundef zeroext i1 @_ZNK7sc_core7sc_timeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull align 8 dereferenceable(8) %6)
  br i1 %72, label %74, label %73

73:                                               ; preds = %71
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 322)
          to label %74 unwind label %164

74:                                               ; preds = %73, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 3, i32 noundef 1)
          to label %75 unwind label %160

75:                                               ; preds = %74
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
          to label %77 unwind label %160

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull @_ZSt3hexRSt8ios_base)
          to label %79 unwind label %160

79:                                               ; preds = %77
  %80 = invoke noundef i32 @_ZN7sc_core13sc_get_statusEv()
          to label %81 unwind label %160

81:                                               ; preds = %79
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_corelsERSoNS_9sc_statusE(ptr noundef nonnull align 8 dereferenceable(8) %78, i32 noundef %80)
          to label %83 unwind label %160

83:                                               ; preds = %81
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull @.str.12)
          to label %85 unwind label %160

85:                                               ; preds = %83
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %87 unwind label %160

87:                                               ; preds = %85
  %88 = invoke noundef i32 @_ZN7sc_core13sc_get_statusEv()
          to label %89 unwind label %160

89:                                               ; preds = %87
  %90 = icmp eq i32 %88, 32
  br i1 %90, label %92, label %91

91:                                               ; preds = %89
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.3, i32 noundef 326)
          to label %92 unwind label %160

92:                                               ; preds = %91, %89
  %93 = invoke noundef ptr @_ZN7sc_core22sc_get_curr_simcontextEv()
          to label %94 unwind label %160

94:                                               ; preds = %92
  %95 = call noundef zeroext i1 @_ZN7sc_core13sc_is_runningEPKNS_13sc_simcontextE(ptr noundef %93)
  br i1 %95, label %97, label %96

96:                                               ; preds = %94
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.3, i32 noundef 327)
          to label %97 unwind label %160

97:                                               ; preds = %96, %94
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv()
          to label %99 unwind label %160

99:                                               ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %7, double noundef 4.200000e+01, i32 noundef 3)
          to label %100 unwind label %166

100:                                              ; preds = %99
  %101 = call noundef zeroext i1 @_ZNK7sc_core7sc_timeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef nonnull align 8 dereferenceable(8) %7)
  br i1 %101, label %103, label %102

102:                                              ; preds = %100
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 328)
          to label %103 unwind label %166

103:                                              ; preds = %102, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %104 = getelementptr inbounds i8, ptr %3, i64 560
  invoke void @_ZN7sc_core8sc_event6notifyEv(ptr noundef nonnull align 8 dereferenceable(160) %104)
          to label %105 unwind label %160

105:                                              ; preds = %103
  %106 = invoke noundef i64 @_ZN7sc_core14sc_delta_countEv()
          to label %107 unwind label %160

107:                                              ; preds = %105
  %108 = trunc i64 %106 to i32
  %109 = getelementptr inbounds i8, ptr %3, i64 720
  store i32 %108, ptr %109, align 8, !tbaa !9
  %110 = getelementptr inbounds i8, ptr %3, i64 232
  %111 = load ptr, ptr %110, align 8, !tbaa !52
  %112 = getelementptr inbounds i8, ptr %111, i64 240
  %113 = invoke noundef ptr @_ZN7sc_core9sc_exportI12my_interfaceEptEv(ptr noundef nonnull align 8 dereferenceable(120) %112)
          to label %114 unwind label %160

114:                                              ; preds = %107
  %115 = load ptr, ptr %113, align 8, !tbaa !53
  %116 = getelementptr inbounds i8, ptr %115, i64 32
  %117 = load ptr, ptr %116, align 8
  invoke void %117(ptr noundef nonnull align 8 dereferenceable(8) %113)
          to label %118 unwind label %160

118:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  invoke void @_ZN7sc_core8sc_spawnIPFvvEEENS_17sc_process_handleET_PKcPKNS_16sc_spawn_optionsE(ptr dead_on_unwind nonnull writable sret(%"class.sc_core::sc_process_handle") align 8 %8, ptr noundef nonnull @_Z20spawned_while_pausedv, ptr noundef null, ptr noundef null)
          to label %119 unwind label %168

119:                                              ; preds = %118
  %120 = call noundef zeroext i1 @_ZNK7sc_core17sc_process_handle5validEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  br i1 %120, label %122, label %121

121:                                              ; preds = %119
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.3, i32 noundef 338)
          to label %122 unwind label %170

122:                                              ; preds = %121, %119
  invoke void @_ZN7sc_core8sc_startEv()
          to label %123 unwind label %170

123:                                              ; preds = %122
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
          to label %125 unwind label %170

125:                                              ; preds = %123
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef nonnull @_ZSt3hexRSt8ios_base)
          to label %127 unwind label %170

127:                                              ; preds = %125
  %128 = invoke noundef i32 @_ZN7sc_core13sc_get_statusEv()
          to label %129 unwind label %170

129:                                              ; preds = %127
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_corelsERSoNS_9sc_statusE(ptr noundef nonnull align 8 dereferenceable(8) %126, i32 noundef %128)
          to label %131 unwind label %170

131:                                              ; preds = %129
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull @.str.16)
          to label %133 unwind label %170

133:                                              ; preds = %131
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %135 unwind label %170

135:                                              ; preds = %133
  %136 = invoke noundef i32 @_ZN7sc_core13sc_get_statusEv()
          to label %137 unwind label %170

137:                                              ; preds = %135
  %138 = icmp eq i32 %136, 64
  br i1 %138, label %140, label %139

139:                                              ; preds = %137
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.3, i32 noundef 342)
          to label %140 unwind label %170

140:                                              ; preds = %139, %137
  %141 = invoke noundef ptr @_ZN7sc_core22sc_get_curr_simcontextEv()
          to label %142 unwind label %170

142:                                              ; preds = %140
  %143 = call noundef zeroext i1 @_ZN7sc_core13sc_is_runningEPKNS_13sc_simcontextE(ptr noundef %141)
  br i1 %143, label %144, label %145

144:                                              ; preds = %142
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.3, i32 noundef 343)
          to label %145 unwind label %170

145:                                              ; preds = %144, %142
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv()
          to label %147 unwind label %170

147:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  invoke void @_ZN7sc_core7sc_timeC1EdNS_12sc_time_unitE(ptr noundef nonnull align 8 dereferenceable(8) %9, double noundef 4.400000e+01, i32 noundef 3)
          to label %148 unwind label %172

148:                                              ; preds = %147
  %149 = call noundef zeroext i1 @_ZNK7sc_core7sc_timeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull align 8 dereferenceable(8) %9)
  br i1 %149, label %151, label %150

150:                                              ; preds = %148
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.3, i32 noundef 344)
          to label %151 unwind label %172

151:                                              ; preds = %150, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %153 unwind label %170

153:                                              ; preds = %151
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef nonnull @.str.19)
          to label %155 unwind label %170

155:                                              ; preds = %153
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %157 unwind label %170

157:                                              ; preds = %155
  call void @_ZN7sc_core17sc_process_handleD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZN3TopD2Ev(ptr noundef nonnull align 8 dereferenceable(928) %3) #7
  call void @llvm.lifetime.end.p0(i64 928, ptr nonnull %3) #7
  ret i32 0

158:                                              ; preds = %27
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %4) #7
  br label %177

160:                                              ; preds = %114, %107, %105, %103, %97, %96, %92, %91, %87, %85, %83, %81, %79, %77, %75, %74, %68, %67, %63, %62, %58, %56, %54, %52, %50, %48, %46, %45, %44, %40, %39, %35, %33, %31, %28
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %176

162:                                              ; preds = %29
  %163 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %176

164:                                              ; preds = %73, %70
  %165 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %176

166:                                              ; preds = %102, %99
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %176

168:                                              ; preds = %118
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %175

170:                                              ; preds = %155, %153, %151, %145, %144, %140, %139, %135, %133, %131, %129, %127, %125, %123, %122, %121
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %174

172:                                              ; preds = %150, %147
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %174

174:                                              ; preds = %172, %170
  %.pn = phi { ptr, i32 } [ %171, %170 ], [ %173, %172 ]
  call void @_ZN7sc_core17sc_process_handleD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br label %175

175:                                              ; preds = %174, %168
  %.pn.pn = phi { ptr, i32 } [ %.pn, %174 ], [ %169, %168 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %176

176:                                              ; preds = %175, %166, %164, %162, %160
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %175 ], [ %161, %160 ], [ %167, %166 ], [ %165, %164 ], [ %163, %162 ]
  call void @_ZN3TopD2Ev(ptr noundef nonnull align 8 dereferenceable(928) %3) #7
  br label %177

177:                                              ; preds = %176, %158
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %176 ], [ %159, %158 ]
  call void @llvm.lifetime.end.p0(i64 928, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN7sc_core14sc_delta_countEv() local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_corelsERSoNS_9sc_statusE(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3hexRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7sc_core13sc_is_runningEPKNS_13sc_simcontextE(ptr noundef) local_unnamed_addr #3

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_pauseEv() local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EE5writeERKi(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

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

declare void @_ZN7sc_core8sc_event6notifyERKNS_7sc_timeE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

declare void @_ZN7sc_core8sc_startEv() local_unnamed_addr #2

; 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 #1

declare void @_ZN7sc_core8sc_event6notifyEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_spawnIPFvvEEENS_17sc_process_handleET_PKcPKNS_16sc_spawn_optionsE(ptr dead_on_unwind noalias writable sret(%"class.sc_core::sc_process_handle") align 8, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7sc_core17sc_process_handle5validEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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, !6, i64 720}
!10 = !{!"_ZTS3Top", !11, i64 0, !13, i64 232, !33, i64 240, !33, i64 400, !33, i64 560, !6, i64 720, !43, i64 728}
!11 = !{!"_ZTSN7sc_core9sc_moduleE", !12, i64 0, !25, i64 112, !26, i64 120, !28, i64 144, !30, i64 168, !32, i64 192, !13, i64 200, !6, i64 208, !13, i64 216, !13, i64 224}
!12 = !{!"_ZTSN7sc_core9sc_objectE", !13, i64 8, !14, i64 16, !18, i64 40, !22, i64 64, !13, i64 96, !13, i64 104}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!18 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !24, i64 8, !7, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSN7sc_core15sc_process_hostE"}
!26 = !{!"_ZTSN7sc_core12sc_sensitiveE", !13, i64 0, !27, i64 8, !13, i64 16}
!27 = !{!"_ZTSN7sc_core12sc_sensitiveUt_E", !7, i64 0}
!28 = !{!"_ZTSN7sc_core16sc_sensitive_posE", !13, i64 0, !29, i64 8, !13, i64 16}
!29 = !{!"_ZTSN7sc_core16sc_sensitive_posUt_E", !7, i64 0}
!30 = !{!"_ZTSN7sc_core16sc_sensitive_negE", !13, i64 0, !31, i64 8, !13, i64 16}
!31 = !{!"_ZTSN7sc_core16sc_sensitive_negUt_E", !7, i64 0}
!32 = !{!"bool", !7, i64 0}
!33 = !{!"_ZTSN7sc_core8sc_eventE", !22, i64 0, !13, i64 32, !13, i64 40, !34, i64 48, !6, i64 52, !13, i64 56, !35, i64 64, !35, i64 88, !39, i64 112, !39, i64 136}
!34 = !{!"_ZTSN7sc_core8sc_event8notify_tE", !7, i64 0}
!35 = !{!"_ZTSSt6vectorIPN7sc_core17sc_method_processESaIS2_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!39 = !{!"_ZTSSt6vectorIPN7sc_core17sc_thread_processESaIS2_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!43 = !{!"_ZTSN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EEE", !44, i64 0, !47, i64 16, !48, i64 144, !13, i64 168, !6, i64 176, !51, i64 184, !6, i64 192}
!44 = !{!"_ZTSN7sc_core18sc_signal_inout_ifIiEE", !45, i64 0, !46, i64 8}
!45 = !{!"_ZTSN7sc_core15sc_signal_in_ifIiEE"}
!46 = !{!"_ZTSN7sc_core18sc_signal_write_ifIiEE"}
!47 = !{!"_ZTSN7sc_core15sc_prim_channelE", !12, i64 0, !13, i64 112, !13, i64 120}
!48 = !{!"_ZTSN7sc_core22sc_writer_policy_checkILNS_16sc_writer_policyE0EEE", !49, i64 0, !50, i64 8}
!49 = !{!"_ZTSN7sc_core27sc_writer_policy_check_portE", !13, i64 0}
!50 = !{!"_ZTSN7sc_core28sc_writer_policy_check_writeE", !32, i64 0, !13, i64 8}
!51 = !{!"long long", !7, i64 0}
!52 = !{!10, !13, i64 232}
!53 = !{!54, !54, i64 0}
!54 = !{!"vtable pointer", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass