; LLVM IR from gem5/gem5 :: ext/systemc/src/sysc/kernel (sc_thread_process)

; 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_process_b" = type <{ %"class.sc_core::sc_object", ptr, i32, i32, i32, i32, i8, i8, [6 x i8], ptr, i32, [4 x i8], ptr, ptr, i8, i8, i8, i8, [4 x i8], ptr, ptr, i32, i32, %"class.std::vector.8", ptr, ptr, ptr, ptr, { i64, i64 }, i32, [4 x i8], %"class.std::vector.13", i8, [7 x i8], ptr, ptr, i32, i8, [3 x i8], ptr, i32, i8, [3 x i8] }>
%"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.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<sc_core::sc_reset *, std::allocator<sc_core::sc_reset *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_reset *, std::allocator<sc_core::sc_reset *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_reset *, std::allocator<sc_core::sc_reset *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_reset *, std::allocator<sc_core::sc_reset *>>::_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<const sc_core::sc_event *, std::allocator<const sc_core::sc_event *>>::_Vector_impl" }
%"struct.std::_Vector_base<const sc_core::sc_event *, std::allocator<const sc_core::sc_event *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const sc_core::sc_event *, std::allocator<const sc_core::sc_event *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const sc_core::sc_event *, std::allocator<const sc_core::sc_event *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [93 x i8], align 1
@_ZN7sc_core41SC_ID_NOT_EXPECTING_DYNAMIC_EVENT_NOTIFY_E = external constant [0 x i8], align 1

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

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

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

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

declare void @_ZN7sc_core12sc_process_b21remove_dynamic_eventsEb(ptr noundef nonnull align 8 dereferenceable(357), i1 noundef zeroext) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7sc_core17sc_thread_process15trigger_dynamicEPNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(404) %0, ptr noundef %1) #4 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %6 = load ptr, ptr %4, align 8
  %7 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 37
  store i8 0, ptr %7, align 4, !tbaa !9
  %8 = call noundef zeroext i1 @_ZNK7sc_core12sc_process_b11is_runnableEv(ptr noundef nonnull align 8 dereferenceable(357) %6)
  br i1 %8, label %9, label %10

9:                                                ; preds = %2
  store i1 true, ptr %3, align 1
  br label %147

10:                                               ; preds = %2
  %11 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 29
  %12 = load i32, ptr %11, align 8, !tbaa !36
  %13 = and i32 %12, 1
  %14 = icmp ne i32 %13, 0
  br i1 %14, label %15, label %22

15:                                               ; preds = %10
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %18 = load ptr, ptr %17, align 8, !tbaa !37
  %19 = icmp eq ptr %16, %18
  br i1 %19, label %20, label %21

20:                                               ; preds = %15
  call void @_ZN7sc_core12sc_process_b21remove_dynamic_eventsEb(ptr noundef nonnull align 8 dereferenceable(357) %6, i1 noundef zeroext true)
  store i1 true, ptr %3, align 1
  br label %147

21:                                               ; preds = %15
  store i1 false, ptr %3, align 1
  br label %147

22:                                               ; preds = %10
  %23 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  %24 = load i32, ptr %23, align 8, !tbaa !38
  switch i32 %24, label %134 [
    i32 1, label %25
    i32 3, label %28
    i32 2, label %42
    i32 4, label %50
    i32 5, label %52
    i32 6, label %72
    i32 7, label %99
    i32 0, label %132
  ]

25:                                               ; preds = %22
  %26 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 9
  store ptr null, ptr %26, align 8, !tbaa !39
  %27 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %27, align 8, !tbaa !38
  br label %134

28:                                               ; preds = %22
  %29 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 10
  %30 = load i32, ptr %29, align 8, !tbaa !40
  %31 = add nsw i32 %30, -1
  store i32 %31, ptr %29, align 8, !tbaa !40
  %32 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 10
  %33 = load i32, ptr %32, align 8, !tbaa !40
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %40

35:                                               ; preds = %28
  %36 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %37 = load ptr, ptr %36, align 8, !tbaa !41
  call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %37)
  %38 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  store ptr null, ptr %38, align 8, !tbaa !41
  %39 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %39, align 8, !tbaa !38
  br label %41

40:                                               ; preds = %28
  store i1 true, ptr %3, align 1
  br label %147

41:                                               ; preds = %35
  br label %134

42:                                               ; preds = %22
  %43 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %44 = load ptr, ptr %43, align 8, !tbaa !41
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_thread_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef %6, ptr noundef %45)
  %46 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %47 = load ptr, ptr %46, align 8, !tbaa !41
  call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %47)
  %48 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  store ptr null, ptr %48, align 8, !tbaa !41
  %49 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %49, align 8, !tbaa !38
  br label %134

50:                                               ; preds = %22
  %51 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %51, align 8, !tbaa !38
  br label %134

52:                                               ; preds = %22
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %55 = load ptr, ptr %54, align 8, !tbaa !37
  %56 = icmp eq ptr %53, %55
  br i1 %56, label %57, label %64

57:                                               ; preds = %52
  %58 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 37
  store i8 1, ptr %58, align 4, !tbaa !9
  %59 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 9
  %60 = load ptr, ptr %59, align 8, !tbaa !39
  %61 = call noundef zeroext i1 @_ZNK7sc_core8sc_event14remove_dynamicEPNS_17sc_thread_processE(ptr noundef nonnull align 8 dereferenceable(160) %60, ptr noundef %6)
  %62 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 9
  store ptr null, ptr %62, align 8, !tbaa !39
  %63 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %63, align 8, !tbaa !38
  br label %71

64:                                               ; preds = %52
  %65 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %66 = load ptr, ptr %65, align 8, !tbaa !37
  call void @_ZN7sc_core8sc_event6cancelEv(ptr noundef nonnull align 8 dereferenceable(160) %66)
  %67 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %68 = load ptr, ptr %67, align 8, !tbaa !37
  call void @_ZN7sc_core8sc_event5resetEv(ptr noundef nonnull align 8 dereferenceable(160) %68)
  %69 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 9
  store ptr null, ptr %69, align 8, !tbaa !39
  %70 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %70, align 8, !tbaa !38
  br label %71

71:                                               ; preds = %64, %57
  br label %134

72:                                               ; preds = %22
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %75 = load ptr, ptr %74, align 8, !tbaa !37
  %76 = icmp eq ptr %73, %75
  br i1 %76, label %77, label %86

77:                                               ; preds = %72
  %78 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 37
  store i8 1, ptr %78, align 4, !tbaa !9
  %79 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %80 = load ptr, ptr %79, align 8, !tbaa !41
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_thread_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %80, ptr noundef %6, ptr noundef %81)
  %82 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %83 = load ptr, ptr %82, align 8, !tbaa !41
  call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %83)
  %84 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  store ptr null, ptr %84, align 8, !tbaa !41
  %85 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %85, align 8, !tbaa !38
  br label %98

86:                                               ; preds = %72
  %87 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %88 = load ptr, ptr %87, align 8, !tbaa !37
  call void @_ZN7sc_core8sc_event6cancelEv(ptr noundef nonnull align 8 dereferenceable(160) %88)
  %89 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %90 = load ptr, ptr %89, align 8, !tbaa !37
  call void @_ZN7sc_core8sc_event5resetEv(ptr noundef nonnull align 8 dereferenceable(160) %90)
  %91 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %92 = load ptr, ptr %91, align 8, !tbaa !41
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_thread_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %92, ptr noundef %6, ptr noundef %93)
  %94 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %95 = load ptr, ptr %94, align 8, !tbaa !41
  call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %95)
  %96 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  store ptr null, ptr %96, align 8, !tbaa !41
  %97 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %97, align 8, !tbaa !38
  br label %98

98:                                               ; preds = %86, %77
  br label %134

99:                                               ; preds = %22
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %102 = load ptr, ptr %101, align 8, !tbaa !37
  %103 = icmp eq ptr %100, %102
  br i1 %103, label %104, label %113

104:                                              ; preds = %99
  %105 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 37
  store i8 1, ptr %105, align 4, !tbaa !9
  %106 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %107 = load ptr, ptr %106, align 8, !tbaa !41
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_thread_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %107, ptr noundef %6, ptr noundef %108)
  %109 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %110 = load ptr, ptr %109, align 8, !tbaa !41
  call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %110)
  %111 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  store ptr null, ptr %111, align 8, !tbaa !41
  %112 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %112, align 8, !tbaa !38
  br label %131

113:                                              ; preds = %99
  %114 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 10
  %115 = load i32, ptr %114, align 8, !tbaa !40
  %116 = add nsw i32 %115, -1
  store i32 %116, ptr %114, align 8, !tbaa !40
  %117 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 10
  %118 = load i32, ptr %117, align 8, !tbaa !40
  %119 = icmp eq i32 %118, 0
  br i1 %119, label %120, label %129

120:                                              ; preds = %113
  %121 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %122 = load ptr, ptr %121, align 8, !tbaa !37
  call void @_ZN7sc_core8sc_event6cancelEv(ptr noundef nonnull align 8 dereferenceable(160) %122)
  %123 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %124 = load ptr, ptr %123, align 8, !tbaa !37
  call void @_ZN7sc_core8sc_event5resetEv(ptr noundef nonnull align 8 dereferenceable(160) %124)
  %125 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %126 = load ptr, ptr %125, align 8, !tbaa !41
  call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %126)
  %127 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  store ptr null, ptr %127, align 8, !tbaa !41
  %128 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %128, align 8, !tbaa !38
  br label %130

129:                                              ; preds = %113
  store i1 true, ptr %3, align 1
  br label %147

130:                                              ; preds = %120
  br label %131

131:                                              ; preds = %130, %104
  br label %134

132:                                              ; preds = %22
  %133 = call noundef ptr @_ZNK7sc_core9sc_object4nameEv(ptr noundef nonnull align 8 dereferenceable(112) %6)
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 1, ptr noundef @_ZN7sc_core41SC_ID_NOT_EXPECTING_DYNAMIC_EVENT_NOTIFY_E, ptr noundef %133, ptr noundef @.str.3, i32 noundef 842)
  store i1 true, ptr %3, align 1
  br label %147

134:                                              ; preds = %131, %98, %71, %50, %42, %41, %25, %22
  %135 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 29
  %136 = load i32, ptr %135, align 8, !tbaa !36
  %137 = and i32 %136, 4
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %144

139:                                              ; preds = %134
  %140 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 29
  %141 = load i32, ptr %140, align 8, !tbaa !36
  %142 = or i32 %141, 2
  %143 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 29
  store i32 %142, ptr %143, align 8, !tbaa !36
  br label %146

144:                                              ; preds = %134
  %145 = call noundef ptr @_ZNK7sc_core9sc_object10simcontextEv(ptr noundef nonnull align 8 dereferenceable(112) %6)
  call void @_ZN7sc_core13sc_simcontext20push_runnable_threadEPNS_17sc_thread_processE(ptr noundef nonnull align 8 dereferenceable(344) %145, ptr noundef %6)
  br label %146

146:                                              ; preds = %144, %139
  store i1 true, ptr %3, align 1
  br label %147

147:                                              ; preds = %146, %132, %129, %40, %21, %20, %9
  %148 = load i1, ptr %3, align 1
  ret i1 %148
}

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

declare void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_thread_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZNK7sc_core8sc_event14remove_dynamicEPNS_17sc_thread_processE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) #2

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

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

attributes #0 = { 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 #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 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" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !24, i64 340}
!10 = !{!"_ZTSN7sc_core12sc_process_bE", !11, i64 0, !6, i64 112, !23, i64 120, !23, i64 124, !23, i64 128, !23, i64 132, !24, i64 136, !24, i64 137, !6, i64 144, !23, i64 152, !6, i64 160, !6, i64 168, !24, i64 176, !24, i64 177, !24, i64 178, !24, i64 179, !6, i64 184, !6, i64 192, !25, i64 200, !23, i64 204, !26, i64 208, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !7, i64 264, !23, i64 280, !30, i64 288, !24, i64 312, !6, i64 320, !6, i64 328, !34, i64 336, !24, i64 340, !6, i64 344, !35, i64 352, !24, i64 356}
!11 = !{!"_ZTSN7sc_core9sc_objectE", !6, i64 8, !12, i64 16, !16, i64 40, !20, i64 64, !6, i64 96, !6, i64 104}
!12 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !7, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"_ZTSN7sc_core17sc_curr_proc_kindE", !7, i64 0}
!26 = !{!"_ZTSSt6vectorIPN7sc_core8sc_resetESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_resetESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_resetESaIS2_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_resetESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt6vectorIPKN7sc_core8sc_eventESaIS3_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIPKN7sc_core8sc_eventESaIS3_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIPKN7sc_core8sc_eventESaIS3_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPKN7sc_core8sc_eventESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSN7sc_core12sc_process_b18process_throw_typeE", !7, i64 0}
!35 = !{!"_ZTSN7sc_core12sc_process_b9trigger_tE", !7, i64 0}
!36 = !{!10, !23, i64 280}
!37 = !{!10, !6, i64 344}
!38 = !{!10, !35, i64 352}
!39 = !{!10, !6, i64 144}
!40 = !{!10, !23, i64 152}
!41 = !{!10, !6, i64 160}


; 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"

@.str.3 = external hidden unnamed_addr constant [93 x i8], align 1
@_ZN7sc_core41SC_ID_NOT_EXPECTING_DYNAMIC_EVENT_NOTIFY_E = external constant [0 x i8], align 1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core13sc_simcontext20push_runnable_threadEPNS_17sc_thread_processE(ptr noundef nonnull align 8 dereferenceable(344), ptr noundef) local_unnamed_addr #1 align 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

declare void @_ZN7sc_core12sc_process_b21remove_dynamic_eventsEb(ptr noundef nonnull align 8 dereferenceable(357), i1 noundef zeroext) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7sc_core17sc_thread_process15trigger_dynamicEPNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(404) %0, ptr noundef %1) local_unnamed_addr #4 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 340
  store i8 0, ptr %3, align 4, !tbaa !5
  %4 = tail call noundef zeroext i1 @_ZNK7sc_core12sc_process_b11is_runnableEv(ptr noundef nonnull align 8 dereferenceable(357) %0)
  br i1 %4, label %81, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 280
  %7 = load i32, ptr %6, align 8, !tbaa !35
  %8 = and i32 %7, 1
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %14, label %9

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %0, i64 344
  %11 = load ptr, ptr %10, align 8, !tbaa !36
  %12 = icmp eq ptr %11, %1
  br i1 %12, label %13, label %81

13:                                               ; preds = %9
  tail call void @_ZN7sc_core12sc_process_b21remove_dynamic_eventsEb(ptr noundef nonnull align 8 dereferenceable(357) %0, i1 noundef zeroext true)
  br label %81

14:                                               ; preds = %5
  %15 = getelementptr inbounds i8, ptr %0, i64 352
  %16 = load i32, ptr %15, align 8, !tbaa !37
  switch i32 %16, label %74 [
    i32 1, label %17
    i32 3, label %19
    i32 2, label %27
    i32 4, label %.sink.split
    i32 5, label %31
    i32 6, label %42
    i32 7, label %55
    i32 0, label %72
  ]

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %0, i64 144
  br label %.sink.split.sink.split

19:                                               ; preds = %14
  %20 = getelementptr inbounds i8, ptr %0, i64 152
  %21 = load i32, ptr %20, align 8, !tbaa !38
  %22 = add nsw i32 %21, -1
  store i32 %22, ptr %20, align 8, !tbaa !38
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %81

24:                                               ; preds = %19
  %25 = getelementptr inbounds i8, ptr %0, i64 160
  %26 = load ptr, ptr %25, align 8, !tbaa !39
  tail call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %26)
  br label %.sink.split.sink.split

27:                                               ; preds = %14
  %28 = getelementptr inbounds i8, ptr %0, i64 160
  %29 = load ptr, ptr %28, align 8, !tbaa !39
  tail call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_thread_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull %0, ptr noundef %1)
  %30 = load ptr, ptr %28, align 8, !tbaa !39
  tail call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %30)
  br label %.sink.split.sink.split

31:                                               ; preds = %14
  %32 = getelementptr inbounds i8, ptr %0, i64 344
  %33 = load ptr, ptr %32, align 8, !tbaa !36
  %34 = icmp eq ptr %33, %1
  br i1 %34, label %35, label %39

35:                                               ; preds = %31
  store i8 1, ptr %3, align 4, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %0, i64 144
  %37 = load ptr, ptr %36, align 8, !tbaa !40
  %38 = tail call noundef zeroext i1 @_ZNK7sc_core8sc_event14remove_dynamicEPNS_17sc_thread_processE(ptr noundef nonnull align 8 dereferenceable(160) %37, ptr noundef nonnull %0)
  br label %.sink.split.sink.split

39:                                               ; preds = %31
  tail call void @_ZN7sc_core8sc_event6cancelEv(ptr noundef nonnull align 8 dereferenceable(160) %33)
  %40 = load ptr, ptr %32, align 8, !tbaa !36
  tail call void @_ZN7sc_core8sc_event5resetEv(ptr noundef nonnull align 8 dereferenceable(160) %40)
  %41 = getelementptr inbounds i8, ptr %0, i64 144
  br label %.sink.split.sink.split

42:                                               ; preds = %14
  %43 = getelementptr inbounds i8, ptr %0, i64 344
  %44 = load ptr, ptr %43, align 8, !tbaa !36
  %45 = icmp eq ptr %44, %1
  br i1 %45, label %46, label %50

46:                                               ; preds = %42
  store i8 1, ptr %3, align 4, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %0, i64 160
  %48 = load ptr, ptr %47, align 8, !tbaa !39
  tail call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_thread_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull %0, ptr noundef %1)
  %49 = load ptr, ptr %47, align 8, !tbaa !39
  tail call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %49)
  br label %.sink.split.sink.split

50:                                               ; preds = %42
  tail call void @_ZN7sc_core8sc_event6cancelEv(ptr noundef nonnull align 8 dereferenceable(160) %44)
  %51 = load ptr, ptr %43, align 8, !tbaa !36
  tail call void @_ZN7sc_core8sc_event5resetEv(ptr noundef nonnull align 8 dereferenceable(160) %51)
  %52 = getelementptr inbounds i8, ptr %0, i64 160
  %53 = load ptr, ptr %52, align 8, !tbaa !39
  tail call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_thread_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull %0, ptr noundef %1)
  %54 = load ptr, ptr %52, align 8, !tbaa !39
  tail call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %54)
  br label %.sink.split.sink.split

55:                                               ; preds = %14
  %56 = getelementptr inbounds i8, ptr %0, i64 344
  %57 = load ptr, ptr %56, align 8, !tbaa !36
  %58 = icmp eq ptr %57, %1
  br i1 %58, label %59, label %63

59:                                               ; preds = %55
  store i8 1, ptr %3, align 4, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %0, i64 160
  %61 = load ptr, ptr %60, align 8, !tbaa !39
  tail call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_thread_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %61, ptr noundef nonnull %0, ptr noundef %1)
  %62 = load ptr, ptr %60, align 8, !tbaa !39
  tail call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %62)
  br label %.sink.split.sink.split

63:                                               ; preds = %55
  %64 = getelementptr inbounds i8, ptr %0, i64 152
  %65 = load i32, ptr %64, align 8, !tbaa !38
  %66 = add nsw i32 %65, -1
  store i32 %66, ptr %64, align 8, !tbaa !38
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %81

68:                                               ; preds = %63
  tail call void @_ZN7sc_core8sc_event6cancelEv(ptr noundef nonnull align 8 dereferenceable(160) %57)
  %69 = load ptr, ptr %56, align 8, !tbaa !36
  tail call void @_ZN7sc_core8sc_event5resetEv(ptr noundef nonnull align 8 dereferenceable(160) %69)
  %70 = getelementptr inbounds i8, ptr %0, i64 160
  %71 = load ptr, ptr %70, align 8, !tbaa !39
  tail call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %71)
  br label %.sink.split.sink.split

72:                                               ; preds = %14
  %73 = tail call noundef ptr @_ZNK7sc_core9sc_object4nameEv(ptr noundef nonnull align 8 dereferenceable(112) %0)
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 1, ptr noundef nonnull @_ZN7sc_core41SC_ID_NOT_EXPECTING_DYNAMIC_EVENT_NOTIFY_E, ptr noundef %73, ptr noundef nonnull @.str.3, i32 noundef 842)
  br label %81

.sink.split.sink.split:                           ; preds = %59, %68, %46, %50, %35, %39, %27, %24, %17
  %.sink = phi ptr [ %18, %17 ], [ %25, %24 ], [ %28, %27 ], [ %41, %39 ], [ %36, %35 ], [ %52, %50 ], [ %47, %46 ], [ %70, %68 ], [ %60, %59 ]
  store ptr null, ptr %.sink, align 8, !tbaa !41
  br label %.sink.split

.sink.split:                                      ; preds = %.sink.split.sink.split, %14
  store i32 0, ptr %15, align 8, !tbaa !37
  br label %74

74:                                               ; preds = %.sink.split, %14
  %75 = load i32, ptr %6, align 8, !tbaa !35
  %76 = and i32 %75, 4
  %.not13 = icmp eq i32 %76, 0
  br i1 %.not13, label %79, label %77

77:                                               ; preds = %74
  %78 = or i32 %75, 2
  store i32 %78, ptr %6, align 8, !tbaa !35
  br label %81

79:                                               ; preds = %74
  %80 = tail call noundef ptr @_ZNK7sc_core9sc_object10simcontextEv(ptr noundef nonnull align 8 dereferenceable(112) %0)
  tail call void @_ZN7sc_core13sc_simcontext20push_runnable_threadEPNS_17sc_thread_processE(ptr noundef nonnull align 8 dereferenceable(344) %80, ptr noundef nonnull %0)
  br label %81

81:                                               ; preds = %77, %79, %63, %19, %9, %2, %72, %13
  %.0 = phi i1 [ true, %13 ], [ true, %72 ], [ true, %2 ], [ false, %9 ], [ true, %19 ], [ true, %63 ], [ true, %79 ], [ true, %77 ]
  ret i1 %.0
}

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

declare void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_thread_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZNK7sc_core8sc_event14remove_dynamicEPNS_17sc_thread_processE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) local_unnamed_addr #2

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

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

attributes #0 = { 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 #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 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" }

!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, !23, i64 340}
!6 = !{!"_ZTSN7sc_core12sc_process_bE", !7, i64 0, !8, i64 112, !22, i64 120, !22, i64 124, !22, i64 128, !22, i64 132, !23, i64 136, !23, i64 137, !8, i64 144, !22, i64 152, !8, i64 160, !8, i64 168, !23, i64 176, !23, i64 177, !23, i64 178, !23, i64 179, !8, i64 184, !8, i64 192, !24, i64 200, !22, i64 204, !25, i64 208, !8, i64 232, !8, i64 240, !8, i64 248, !8, i64 256, !9, i64 264, !22, i64 280, !29, i64 288, !23, i64 312, !8, i64 320, !8, i64 328, !33, i64 336, !23, i64 340, !8, i64 344, !34, i64 352, !23, i64 356}
!7 = !{!"_ZTSN7sc_core9sc_objectE", !8, i64 8, !11, i64 16, !15, i64 40, !19, i64 64, !8, i64 96, !8, i64 104}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!15 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !21, i64 8, !9, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !8, i64 0}
!21 = !{!"long", !9, i64 0}
!22 = !{!"int", !9, i64 0}
!23 = !{!"bool", !9, i64 0}
!24 = !{!"_ZTSN7sc_core17sc_curr_proc_kindE", !9, i64 0}
!25 = !{!"_ZTSSt6vectorIPN7sc_core8sc_resetESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_resetESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_resetESaIS2_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_resetESaIS2_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!29 = !{!"_ZTSSt6vectorIPKN7sc_core8sc_eventESaIS3_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIPKN7sc_core8sc_eventESaIS3_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIPKN7sc_core8sc_eventESaIS3_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIPKN7sc_core8sc_eventESaIS3_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!33 = !{!"_ZTSN7sc_core12sc_process_b18process_throw_typeE", !9, i64 0}
!34 = !{!"_ZTSN7sc_core12sc_process_b9trigger_tE", !9, i64 0}
!35 = !{!6, !22, i64 280}
!36 = !{!6, !8, i64 344}
!37 = !{!6, !34, i64 352}
!38 = !{!6, !22, i64 152}
!39 = !{!6, !8, i64 160}
!40 = !{!6, !8, i64 144}
!41 = !{!8, !8, i64 0}


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