; LLVM IR from gem5/gem5 :: ext/systemc/src/sysc/kernel (sc_method_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.2 = 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

declare noundef zeroext i1 @_ZNK7sc_core8sc_event14remove_dynamicEPNS_17sc_method_processE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) #1

declare void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_method_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) #1

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

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

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

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

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

; 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 noundef ptr @_ZN7sc_core24sc_get_current_process_bEv() #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7sc_core17sc_method_process15trigger_dynamicEPNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(400) %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 ptr @_ZN7sc_core24sc_get_current_process_bEv()
  %9 = icmp eq ptr %8, %6
  %10 = xor i1 %9, true
  %11 = xor i1 %10, true
  %12 = zext i1 %11 to i64
  %13 = call i64 @llvm.expect.i64(i64 %12, i64 0)
  %14 = icmp ne i64 %13, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %2
  call void @_ZNK7sc_core12sc_process_b34report_immediate_self_notificationEv(ptr noundef nonnull align 8 dereferenceable(357) %6)
  store i1 false, ptr %3, align 1
  br label %156

16:                                               ; preds = %2
  %17 = call noundef zeroext i1 @_ZNK7sc_core12sc_process_b11is_runnableEv(ptr noundef nonnull align 8 dereferenceable(357) %6)
  br i1 %17, label %18, label %19

18:                                               ; preds = %16
  store i1 true, ptr %3, align 1
  br label %156

19:                                               ; preds = %16
  %20 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 29
  %21 = load i32, ptr %20, align 8, !tbaa !36
  %22 = and i32 %21, 1
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %31

24:                                               ; preds = %19
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %27 = load ptr, ptr %26, align 8, !tbaa !37
  %28 = icmp eq ptr %25, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %24
  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 %156

30:                                               ; preds = %24
  store i1 false, ptr %3, align 1
  br label %156

31:                                               ; preds = %19
  %32 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  %33 = load i32, ptr %32, align 8, !tbaa !38
  switch i32 %33, label %143 [
    i32 1, label %34
    i32 3, label %37
    i32 2, label %51
    i32 4, label %59
    i32 5, label %61
    i32 6, label %81
    i32 7, label %108
    i32 0, label %141
  ]

34:                                               ; preds = %31
  %35 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 9
  store ptr null, ptr %35, align 8, !tbaa !39
  %36 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %36, align 8, !tbaa !38
  br label %143

37:                                               ; preds = %31
  %38 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 10
  %39 = load i32, ptr %38, align 8, !tbaa !40
  %40 = add nsw i32 %39, -1
  store i32 %40, ptr %38, align 8, !tbaa !40
  %41 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 10
  %42 = load i32, ptr %41, align 8, !tbaa !40
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %49

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

49:                                               ; preds = %37
  store i1 true, ptr %3, align 1
  br label %156

50:                                               ; preds = %44
  br label %143

51:                                               ; preds = %31
  %52 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %53 = load ptr, ptr %52, align 8, !tbaa !41
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_method_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef %6, ptr noundef %54)
  %55 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %56 = load ptr, ptr %55, align 8, !tbaa !41
  call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %56)
  %57 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  store ptr null, ptr %57, align 8, !tbaa !41
  %58 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %58, align 8, !tbaa !38
  br label %143

59:                                               ; preds = %31
  %60 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %60, align 8, !tbaa !38
  br label %143

61:                                               ; preds = %31
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %64 = load ptr, ptr %63, align 8, !tbaa !37
  %65 = icmp eq ptr %62, %64
  br i1 %65, label %66, label %73

66:                                               ; preds = %61
  %67 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 37
  store i8 1, ptr %67, align 4, !tbaa !9
  %68 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 9
  %69 = load ptr, ptr %68, align 8, !tbaa !39
  %70 = call noundef zeroext i1 @_ZNK7sc_core8sc_event14remove_dynamicEPNS_17sc_method_processE(ptr noundef nonnull align 8 dereferenceable(160) %69, ptr noundef %6)
  %71 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 9
  store ptr null, ptr %71, align 8, !tbaa !39
  %72 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %72, align 8, !tbaa !38
  br label %80

73:                                               ; preds = %61
  %74 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %75 = load ptr, ptr %74, align 8, !tbaa !37
  call void @_ZN7sc_core8sc_event6cancelEv(ptr noundef nonnull align 8 dereferenceable(160) %75)
  %76 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %77 = load ptr, ptr %76, align 8, !tbaa !37
  call void @_ZN7sc_core8sc_event5resetEv(ptr noundef nonnull align 8 dereferenceable(160) %77)
  %78 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 9
  store ptr null, ptr %78, align 8, !tbaa !39
  %79 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %79, align 8, !tbaa !38
  br label %80

80:                                               ; preds = %73, %66
  br label %143

81:                                               ; preds = %31
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %84 = load ptr, ptr %83, align 8, !tbaa !37
  %85 = icmp eq ptr %82, %84
  br i1 %85, label %86, label %95

86:                                               ; preds = %81
  %87 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 37
  store i8 1, ptr %87, align 4, !tbaa !9
  %88 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %89 = load ptr, ptr %88, align 8, !tbaa !41
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_method_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %89, ptr noundef %6, ptr noundef %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
  call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %92)
  %93 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  store ptr null, ptr %93, align 8, !tbaa !41
  %94 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %94, align 8, !tbaa !38
  br label %107

95:                                               ; preds = %81
  %96 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %97 = load ptr, ptr %96, align 8, !tbaa !37
  call void @_ZN7sc_core8sc_event6cancelEv(ptr noundef nonnull align 8 dereferenceable(160) %97)
  %98 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %99 = load ptr, ptr %98, align 8, !tbaa !37
  call void @_ZN7sc_core8sc_event5resetEv(ptr noundef nonnull align 8 dereferenceable(160) %99)
  %100 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %101 = load ptr, ptr %100, align 8, !tbaa !41
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_method_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %101, ptr noundef %6, ptr noundef %102)
  %103 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %104 = load ptr, ptr %103, align 8, !tbaa !41
  call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %104)
  %105 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  store ptr null, ptr %105, align 8, !tbaa !41
  %106 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %106, align 8, !tbaa !38
  br label %107

107:                                              ; preds = %95, %86
  br label %143

108:                                              ; preds = %31
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %111 = load ptr, ptr %110, align 8, !tbaa !37
  %112 = icmp eq ptr %109, %111
  br i1 %112, label %113, label %122

113:                                              ; preds = %108
  %114 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 37
  store i8 1, ptr %114, align 4, !tbaa !9
  %115 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %116 = load ptr, ptr %115, align 8, !tbaa !41
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_method_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %116, ptr noundef %6, ptr noundef %117)
  %118 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %119 = load ptr, ptr %118, align 8, !tbaa !41
  call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %119)
  %120 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  store ptr null, ptr %120, align 8, !tbaa !41
  %121 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %121, align 8, !tbaa !38
  br label %140

122:                                              ; preds = %108
  %123 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 10
  %124 = load i32, ptr %123, align 8, !tbaa !40
  %125 = add nsw i32 %124, -1
  store i32 %125, ptr %123, align 8, !tbaa !40
  %126 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 10
  %127 = load i32, ptr %126, align 8, !tbaa !40
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %138

129:                                              ; preds = %122
  %130 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %131 = load ptr, ptr %130, align 8, !tbaa !37
  call void @_ZN7sc_core8sc_event6cancelEv(ptr noundef nonnull align 8 dereferenceable(160) %131)
  %132 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 39
  %133 = load ptr, ptr %132, align 8, !tbaa !37
  call void @_ZN7sc_core8sc_event5resetEv(ptr noundef nonnull align 8 dereferenceable(160) %133)
  %134 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  %135 = load ptr, ptr %134, align 8, !tbaa !41
  call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %135)
  %136 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 12
  store ptr null, ptr %136, align 8, !tbaa !41
  %137 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 40
  store i32 0, ptr %137, align 8, !tbaa !38
  br label %139

138:                                              ; preds = %122
  store i1 true, ptr %3, align 1
  br label %156

139:                                              ; preds = %129
  br label %140

140:                                              ; preds = %139, %113
  br label %143

141:                                              ; preds = %31
  %142 = 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 %142, ptr noundef @.str.2, i32 noundef 782)
  store i1 true, ptr %3, align 1
  br label %156

143:                                              ; preds = %140, %107, %80, %59, %51, %50, %34, %31
  %144 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 29
  %145 = load i32, ptr %144, align 8, !tbaa !36
  %146 = and i32 %145, 4
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %153

148:                                              ; preds = %143
  %149 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 29
  %150 = load i32, ptr %149, align 8, !tbaa !36
  %151 = or i32 %150, 2
  %152 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %6, i32 0, i32 29
  store i32 %151, ptr %152, align 8, !tbaa !36
  br label %155

153:                                              ; preds = %143
  %154 = call noundef ptr @_ZNK7sc_core9sc_object10simcontextEv(ptr noundef nonnull align 8 dereferenceable(112) %6)
  call void @_ZN7sc_core13sc_simcontext20push_runnable_methodEPNS_17sc_method_processE(ptr noundef nonnull align 8 dereferenceable(344) %154, ptr noundef %6)
  br label %155

155:                                              ; preds = %153, %148
  store i1 true, ptr %3, align 1
  br label %156

156:                                              ; preds = %155, %141, %138, %49, %30, %29, %18, %15
  %157 = load i1, ptr %3, align 1
  ret i1 %157
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #5

declare void @_ZNK7sc_core12sc_process_b34report_immediate_self_notificationEv(ptr noundef nonnull align 8 dereferenceable(357)) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7sc_core12sc_process_b11is_runnableEv(ptr noundef nonnull align 8 dereferenceable(357)) #2 align 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 = { "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 = { 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 #3 = { 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 #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" }
attributes #5 = { nocallback nofree nosync nounwind willreturn memory(none) }

!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.2 = 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

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

declare void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_method_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) local_unnamed_addr #1

; 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 #2 align 2

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

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

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

; 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 noundef ptr @_ZN7sc_core24sc_get_current_process_bEv() local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7sc_core17sc_method_process15trigger_dynamicEPNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(400) %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 ptr @_ZN7sc_core24sc_get_current_process_bEv()
  %5 = icmp eq ptr %4, %0
  br i1 %5, label %6, label %7, !prof !35

6:                                                ; preds = %2
  tail call void @_ZNK7sc_core12sc_process_b34report_immediate_self_notificationEv(ptr noundef nonnull align 8 dereferenceable(357) %0)
  br label %85

7:                                                ; preds = %2
  %8 = tail call noundef zeroext i1 @_ZNK7sc_core12sc_process_b11is_runnableEv(ptr noundef nonnull align 8 dereferenceable(357) %0)
  br i1 %8, label %85, label %9

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 280
  %11 = load i32, ptr %10, align 8, !tbaa !36
  %12 = and i32 %11, 1
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %18, label %13

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %0, i64 344
  %15 = load ptr, ptr %14, align 8, !tbaa !37
  %16 = icmp eq ptr %15, %1
  br i1 %16, label %17, label %85

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

18:                                               ; preds = %9
  %19 = getelementptr inbounds i8, ptr %0, i64 352
  %20 = load i32, ptr %19, align 8, !tbaa !38
  switch i32 %20, label %78 [
    i32 1, label %21
    i32 3, label %23
    i32 2, label %31
    i32 4, label %.sink.split
    i32 5, label %35
    i32 6, label %46
    i32 7, label %59
    i32 0, label %76
  ]

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

23:                                               ; preds = %18
  %24 = getelementptr inbounds i8, ptr %0, i64 152
  %25 = load i32, ptr %24, align 8, !tbaa !39
  %26 = add nsw i32 %25, -1
  store i32 %26, ptr %24, align 8, !tbaa !39
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %85

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

31:                                               ; preds = %18
  %32 = getelementptr inbounds i8, ptr %0, i64 160
  %33 = load ptr, ptr %32, align 8, !tbaa !40
  tail call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_method_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull %0, ptr noundef %1)
  %34 = load ptr, ptr %32, align 8, !tbaa !40
  tail call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %34)
  br label %.sink.split.sink.split

35:                                               ; preds = %18
  %36 = getelementptr inbounds i8, ptr %0, i64 344
  %37 = load ptr, ptr %36, align 8, !tbaa !37
  %38 = icmp eq ptr %37, %1
  br i1 %38, label %39, label %43

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

43:                                               ; preds = %35
  tail call void @_ZN7sc_core8sc_event6cancelEv(ptr noundef nonnull align 8 dereferenceable(160) %37)
  %44 = load ptr, ptr %36, align 8, !tbaa !37
  tail call void @_ZN7sc_core8sc_event5resetEv(ptr noundef nonnull align 8 dereferenceable(160) %44)
  %45 = getelementptr inbounds i8, ptr %0, i64 144
  br label %.sink.split.sink.split

46:                                               ; preds = %18
  %47 = getelementptr inbounds i8, ptr %0, i64 344
  %48 = load ptr, ptr %47, align 8, !tbaa !37
  %49 = icmp eq ptr %48, %1
  br i1 %49, label %50, label %54

50:                                               ; preds = %46
  store i8 1, ptr %3, align 4, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %0, i64 160
  %52 = load ptr, ptr %51, align 8, !tbaa !40
  tail call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_method_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr noundef nonnull %0, ptr noundef %1)
  %53 = load ptr, ptr %51, align 8, !tbaa !40
  tail call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %53)
  br label %.sink.split.sink.split

54:                                               ; preds = %46
  tail call void @_ZN7sc_core8sc_event6cancelEv(ptr noundef nonnull align 8 dereferenceable(160) %48)
  %55 = load ptr, ptr %47, align 8, !tbaa !37
  tail call void @_ZN7sc_core8sc_event5resetEv(ptr noundef nonnull align 8 dereferenceable(160) %55)
  %56 = getelementptr inbounds i8, ptr %0, i64 160
  %57 = load ptr, ptr %56, align 8, !tbaa !40
  tail call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_method_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %57, ptr noundef nonnull %0, ptr noundef %1)
  %58 = load ptr, ptr %56, align 8, !tbaa !40
  tail call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %58)
  br label %.sink.split.sink.split

59:                                               ; preds = %18
  %60 = getelementptr inbounds i8, ptr %0, i64 344
  %61 = load ptr, ptr %60, align 8, !tbaa !37
  %62 = icmp eq ptr %61, %1
  br i1 %62, label %63, label %67

63:                                               ; preds = %59
  store i8 1, ptr %3, align 4, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %0, i64 160
  %65 = load ptr, ptr %64, align 8, !tbaa !40
  tail call void @_ZNK7sc_core13sc_event_list14remove_dynamicEPNS_17sc_method_processEPKNS_8sc_eventE(ptr noundef nonnull align 8 dereferenceable(32) %65, ptr noundef nonnull %0, ptr noundef %1)
  %66 = load ptr, ptr %64, align 8, !tbaa !40
  tail call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %66)
  br label %.sink.split.sink.split

67:                                               ; preds = %59
  %68 = getelementptr inbounds i8, ptr %0, i64 152
  %69 = load i32, ptr %68, align 8, !tbaa !39
  %70 = add nsw i32 %69, -1
  store i32 %70, ptr %68, align 8, !tbaa !39
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %85

72:                                               ; preds = %67
  tail call void @_ZN7sc_core8sc_event6cancelEv(ptr noundef nonnull align 8 dereferenceable(160) %61)
  %73 = load ptr, ptr %60, align 8, !tbaa !37
  tail call void @_ZN7sc_core8sc_event5resetEv(ptr noundef nonnull align 8 dereferenceable(160) %73)
  %74 = getelementptr inbounds i8, ptr %0, i64 160
  %75 = load ptr, ptr %74, align 8, !tbaa !40
  tail call void @_ZNK7sc_core13sc_event_list11auto_deleteEv(ptr noundef nonnull align 8 dereferenceable(32) %75)
  br label %.sink.split.sink.split

76:                                               ; preds = %18
  %77 = 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 %77, ptr noundef nonnull @.str.2, i32 noundef 782)
  br label %85

.sink.split.sink.split:                           ; preds = %63, %72, %50, %54, %39, %43, %31, %28, %21
  %.sink = phi ptr [ %22, %21 ], [ %29, %28 ], [ %32, %31 ], [ %45, %43 ], [ %40, %39 ], [ %56, %54 ], [ %51, %50 ], [ %74, %72 ], [ %64, %63 ]
  store ptr null, ptr %.sink, align 8, !tbaa !42
  br label %.sink.split

.sink.split:                                      ; preds = %.sink.split.sink.split, %18
  store i32 0, ptr %19, align 8, !tbaa !38
  br label %78

78:                                               ; preds = %.sink.split, %18
  %79 = load i32, ptr %10, align 8, !tbaa !36
  %80 = and i32 %79, 4
  %.not15 = icmp eq i32 %80, 0
  br i1 %.not15, label %83, label %81

81:                                               ; preds = %78
  %82 = or i32 %79, 2
  store i32 %82, ptr %10, align 8, !tbaa !36
  br label %85

83:                                               ; preds = %78
  %84 = tail call noundef ptr @_ZNK7sc_core9sc_object10simcontextEv(ptr noundef nonnull align 8 dereferenceable(112) %0)
  tail call void @_ZN7sc_core13sc_simcontext20push_runnable_methodEPNS_17sc_method_processE(ptr noundef nonnull align 8 dereferenceable(344) %84, ptr noundef nonnull %0)
  br label %85

85:                                               ; preds = %81, %83, %67, %23, %13, %7, %76, %17, %6
  %.0 = phi i1 [ false, %6 ], [ true, %17 ], [ true, %76 ], [ true, %7 ], [ false, %13 ], [ true, %23 ], [ true, %67 ], [ true, %83 ], [ true, %81 ]
  ret i1 %.0
}

declare void @_ZNK7sc_core12sc_process_b34report_immediate_self_notificationEv(ptr noundef nonnull align 8 dereferenceable(357)) local_unnamed_addr #1

; 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 #2 align 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 = { "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 = { 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 #3 = { 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 #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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!36 = !{!6, !22, i64 280}
!37 = !{!6, !8, i64 344}
!38 = !{!6, !34, i64 352}
!39 = !{!6, !22, i64 152}
!40 = !{!6, !8, i64 160}
!41 = !{!6, !8, i64 144}
!42 = !{!8, !8, i64 0}


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