; LLVM IR from gem5/gem5 :: ext/systemc/src/sysc/kernel (sc_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.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::allocator.5" = type { i8 }
%"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.18", ptr, ptr, ptr, ptr, { i64, i64 }, i32, [4 x i8], %"class.std::vector.23", 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::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = 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.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = 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 = external hidden unnamed_addr constant [22 x i8], align 1
@_ZN7sc_core12sc_process_b24m_last_created_process_pE = external dso_local global ptr, align 8
@_ZTVN7sc_core12sc_process_bE = external dso_local unnamed_addr constant { [26 x ptr] }, align 8
@.str.19 = external hidden unnamed_addr constant [12 x i8], align 1

declare void @_ZN7sc_core8sc_eventC1EPKc(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) unnamed_addr #0

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7sc_core12sc_process_bC2EPKcbbMNS_15sc_process_hostEFvvEPS3_PKNS_16sc_spawn_optionsE(ptr noundef nonnull align 8 dereferenceable(357) %0, ptr noundef %1, i1 noundef zeroext %2, i1 noundef zeroext %3, i64 %4, i64 %5, ptr noundef %6, ptr noundef %7) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca { i64, i64 }, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca { i64, i64 }, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator.5", align 1
  %22 = alloca i1, align 1
  %23 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  store i64 %4, ptr %23, align 8
  %24 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  store i64 %5, ptr %24, align 8
  %25 = load { i64, i64 }, ptr %9, align 8, !tbaa !5
  store ptr %0, ptr %10, align 8, !tbaa !8
  store ptr %1, ptr %11, align 8, !tbaa !8
  %26 = zext i1 %2 to i8
  store i8 %26, ptr %12, align 1, !tbaa !10
  %27 = zext i1 %3 to i8
  store i8 %27, ptr %13, align 1, !tbaa !10
  store { i64, i64 } %25, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !8
  store ptr %7, ptr %16, align 8, !tbaa !8
  %28 = load ptr, ptr %10, align 8
  %29 = load ptr, ptr %11, align 8, !tbaa !8
  call void @_ZN7sc_core9sc_objectC2EPKc(ptr noundef nonnull align 8 dereferenceable(112) %28, ptr noundef %29)
  store ptr getelementptr inbounds inrange(-16, 192) ({ [26 x ptr] }, ptr @_ZTVN7sc_core12sc_process_bE, i32 0, i32 0, i32 2), ptr %28, align 8, !tbaa !12
  %30 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 1
  store ptr null, ptr %30, align 8, !tbaa !14
  %31 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 2
  store i32 0, ptr %31, align 8, !tbaa !40
  %32 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 3
  %33 = invoke noundef ptr @_ZNK7sc_core9sc_object10simcontextEv(ptr noundef nonnull align 8 dereferenceable(112) %28)
          to label %34 unwind label %89

34:                                               ; preds = %8
  %35 = invoke noundef i32 @_ZN7sc_core13sc_simcontext12next_proc_idEv(ptr noundef nonnull align 8 dereferenceable(344) %33)
          to label %36 unwind label %89

36:                                               ; preds = %34
  store i32 %35, ptr %32, align 4, !tbaa !41
  %37 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 4
  store i32 0, ptr %37, align 8, !tbaa !42
  %38 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 5
  store i32 0, ptr %38, align 4, !tbaa !43
  %39 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 6
  store i8 0, ptr %39, align 8, !tbaa !44
  %40 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 7
  %41 = invoke noundef ptr @_ZNK7sc_core9sc_object10simcontextEv(ptr noundef nonnull align 8 dereferenceable(112) %28)
          to label %42 unwind label %89

42:                                               ; preds = %36
  %43 = invoke noundef zeroext i1 @_ZNK7sc_core13sc_simcontext16elaboration_doneEv(ptr noundef nonnull align 8 dereferenceable(344) %41)
          to label %44 unwind label %89

44:                                               ; preds = %42
  %45 = zext i1 %43 to i8
  store i8 %45, ptr %40, align 1, !tbaa !45
  %46 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 9
  store ptr null, ptr %46, align 8, !tbaa !46
  %47 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 10
  store i32 0, ptr %47, align 8, !tbaa !47
  %48 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 12
  store ptr null, ptr %48, align 8, !tbaa !48
  %49 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 13
  store ptr null, ptr %49, align 8, !tbaa !49
  %50 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 14
  %51 = load i8, ptr %13, align 1, !tbaa !10, !range !50, !noundef !51
  %52 = trunc i8 %51 to i1
  %53 = zext i1 %52 to i8
  store i8 %53, ptr %50, align 8, !tbaa !52
  %54 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 15
  store i8 0, ptr %54, align 1, !tbaa !53
  %55 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 16
  store i8 0, ptr %55, align 2, !tbaa !54
  %56 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 17
  %57 = load i8, ptr %12, align 1, !tbaa !10, !range !50, !noundef !51
  %58 = trunc i8 %57 to i1
  %59 = zext i1 %58 to i8
  store i8 %59, ptr %56, align 1, !tbaa !55
  %60 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 19
  store ptr null, ptr %60, align 8, !tbaa !56
  %61 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 20
  store ptr null, ptr %61, align 8, !tbaa !57
  %62 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 21
  store i32 0, ptr %62, align 8, !tbaa !58
  %63 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 22
  store i32 1, ptr %63, align 4, !tbaa !59
  %64 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 23
  call void @llvm.memset.p0.i64(ptr align 8 %64, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIPN7sc_core8sc_resetESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %64) #10
  %65 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 24
  store ptr null, ptr %65, align 8, !tbaa !60
  %66 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 25
  store ptr null, ptr %66, align 8, !tbaa !61
  %67 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 26
  store ptr null, ptr %67, align 8, !tbaa !62
  %68 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 27
  %69 = load ptr, ptr %15, align 8, !tbaa !8
  store ptr %69, ptr %68, align 8, !tbaa !63
  %70 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 28
  %71 = load { i64, i64 }, ptr %14, align 8, !tbaa !5
  store { i64, i64 } %71, ptr %70, align 8, !tbaa !64
  %72 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 29
  store i32 0, ptr %72, align 8, !tbaa !65
  %73 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 31
  call void @llvm.memset.p0.i64(ptr align 8 %73, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIPKN7sc_core8sc_eventESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %73) #10
  %74 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 32
  store i8 0, ptr %74, align 8, !tbaa !66
  %75 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 34
  store ptr null, ptr %75, align 8, !tbaa !67
  %76 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 35
  store ptr null, ptr %76, align 8, !tbaa !68
  %77 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 36
  store i32 0, ptr %77, align 8, !tbaa !69
  %78 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 37
  store i8 0, ptr %78, align 4, !tbaa !70
  %79 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 39
  store ptr null, ptr %79, align 8, !tbaa !71
  %80 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 40
  store i32 0, ptr %80, align 8, !tbaa !72
  %81 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 41
  store i8 0, ptr %81, align 4, !tbaa !73
  store ptr %28, ptr @_ZN7sc_core12sc_process_b24m_last_created_process_pE, align 8, !tbaa !8
  %82 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 160) #11
          to label %83 unwind label %93

83:                                               ; preds = %44
  store i1 true, ptr %22, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %84 unwind label %97

84:                                               ; preds = %83
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str.19)
          to label %85 unwind label %101

85:                                               ; preds = %84
  %86 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  invoke void @_ZN7sc_core8sc_eventC1EPKc(ptr noundef nonnull align 8 dereferenceable(160) %82, ptr noundef %86)
          to label %87 unwind label %105

87:                                               ; preds = %85
  store i1 false, ptr %22, align 1
  %88 = getelementptr inbounds %"class.sc_core::sc_process_b", ptr %28, i32 0, i32 39
  store ptr %82, ptr %88, align 8, !tbaa !71
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #10
  ret void

89:                                               ; preds = %42, %36, %34, %8
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %17, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %18, align 4
  br label %115

93:                                               ; preds = %44
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %17, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %18, align 4
  br label %114

97:                                               ; preds = %83
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %17, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %18, align 4
  br label %110

101:                                              ; preds = %84
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %17, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %18, align 4
  br label %109

105:                                              ; preds = %85
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %17, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  br label %109

109:                                              ; preds = %105, %101
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  br label %110

110:                                              ; preds = %109, %97
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #10
  %111 = load i1, ptr %22, align 1
  br i1 %111, label %112, label %113

112:                                              ; preds = %110
  call void @_ZdlPvm(ptr noundef %82, i64 noundef 160) #12
  br label %113

113:                                              ; preds = %112, %110
  br label %114

114:                                              ; preds = %113, %93
  call void @_ZNSt6vectorIPKN7sc_core8sc_eventESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %73) #10
  call void @_ZNSt6vectorIPN7sc_core8sc_resetESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %64) #10
  br label %115

115:                                              ; preds = %114, %89
  call void @_ZN7sc_core9sc_objectD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %28) #10
  br label %116

116:                                              ; preds = %115
  %117 = load ptr, ptr %17, align 8
  %118 = load i32, ptr %18, align 4
  %119 = insertvalue { ptr, i32 } poison, ptr %117, 0
  %120 = insertvalue { ptr, i32 } %119, i32 %118, 1
  resume { ptr, i32 } %120
}

declare void @_ZN7sc_core9sc_objectC2EPKc(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7sc_core13sc_simcontext12next_proc_idEv(ptr noundef nonnull align 8 dereferenceable(344)) #7 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN7sc_core9sc_objectD2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #9

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { nobuiltin allocsize(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 = { nobuiltin 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"bool", !6, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"vtable pointer", !7, i64 0}
!14 = !{!15, !9, i64 112}
!15 = !{!"_ZTSN7sc_core12sc_process_bE", !16, i64 0, !9, i64 112, !28, i64 120, !28, i64 124, !28, i64 128, !28, i64 132, !11, i64 136, !11, i64 137, !9, i64 144, !28, i64 152, !9, i64 160, !9, i64 168, !11, i64 176, !11, i64 177, !11, i64 178, !11, i64 179, !9, i64 184, !9, i64 192, !29, i64 200, !28, i64 204, !30, i64 208, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !6, i64 264, !28, i64 280, !34, i64 288, !11, i64 312, !9, i64 320, !9, i64 328, !38, i64 336, !11, i64 340, !9, i64 344, !39, i64 352, !11, i64 356}
!16 = !{!"_ZTSN7sc_core9sc_objectE", !9, i64 8, !17, i64 16, !21, i64 40, !25, i64 64, !9, i64 96, !9, i64 104}
!17 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!21 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !27, i64 8, !6, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!27 = !{!"long", !6, i64 0}
!28 = !{!"int", !6, i64 0}
!29 = !{!"_ZTSN7sc_core17sc_curr_proc_kindE", !6, i64 0}
!30 = !{!"_ZTSSt6vectorIPN7sc_core8sc_resetESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_resetESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_resetESaIS2_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_resetESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!34 = !{!"_ZTSSt6vectorIPKN7sc_core8sc_eventESaIS3_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIPKN7sc_core8sc_eventESaIS3_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIPKN7sc_core8sc_eventESaIS3_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIPKN7sc_core8sc_eventESaIS3_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!38 = !{!"_ZTSN7sc_core12sc_process_b18process_throw_typeE", !6, i64 0}
!39 = !{!"_ZTSN7sc_core12sc_process_b9trigger_tE", !6, i64 0}
!40 = !{!15, !28, i64 120}
!41 = !{!15, !28, i64 124}
!42 = !{!15, !28, i64 128}
!43 = !{!15, !28, i64 132}
!44 = !{!15, !11, i64 136}
!45 = !{!15, !11, i64 137}
!46 = !{!15, !9, i64 144}
!47 = !{!15, !28, i64 152}
!48 = !{!15, !9, i64 160}
!49 = !{!15, !9, i64 168}
!50 = !{i8 0, i8 2}
!51 = !{}
!52 = !{!15, !11, i64 176}
!53 = !{!15, !11, i64 177}
!54 = !{!15, !11, i64 178}
!55 = !{!15, !11, i64 179}
!56 = !{!15, !9, i64 184}
!57 = !{!15, !9, i64 192}
!58 = !{!15, !29, i64 200}
!59 = !{!15, !28, i64 204}
!60 = !{!15, !9, i64 232}
!61 = !{!15, !9, i64 240}
!62 = !{!15, !9, i64 248}
!63 = !{!15, !9, i64 256}
!64 = !{!15, !6, i64 264}
!65 = !{!15, !28, i64 280}
!66 = !{!15, !11, i64 312}
!67 = !{!15, !9, i64 320}
!68 = !{!15, !9, i64 328}
!69 = !{!15, !38, i64 336}
!70 = !{!15, !11, i64 340}
!71 = !{!15, !9, i64 344}
!72 = !{!15, !39, i64 352}
!73 = !{!15, !11, i64 356}


; 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::__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::allocator.5" = type { i8 }

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@_ZN7sc_core12sc_process_b24m_last_created_process_pE = external dso_local local_unnamed_addr global ptr, align 8
@_ZTVN7sc_core12sc_process_bE = external dso_local unnamed_addr constant { [26 x ptr] }, align 8
@.str.19 = external hidden unnamed_addr constant [12 x i8], align 1

declare void @_ZN7sc_core8sc_eventC1EPKc(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) unnamed_addr #0

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7sc_core12sc_process_bC2EPKcbbMNS_15sc_process_hostEFvvEPS3_PKNS_16sc_spawn_optionsE(ptr noundef nonnull align 8 dereferenceable(357) %0, ptr noundef %1, i1 noundef zeroext %2, i1 noundef zeroext %3, i64 %4, i64 %5, ptr noundef %6, ptr nocapture noundef readnone %7) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator.5", align 1
  %12 = zext i1 %2 to i8
  %13 = zext i1 %3 to i8
  tail call void @_ZN7sc_core9sc_objectC2EPKc(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %1)
  store ptr getelementptr inbounds inrange(-16, 192) (i8, ptr @_ZTVN7sc_core12sc_process_bE, i64 16), ptr %0, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %0, i64 112
  store ptr null, ptr %14, align 8, !tbaa !8
  %15 = getelementptr inbounds i8, ptr %0, i64 120
  store i32 0, ptr %15, align 8, !tbaa !37
  %16 = getelementptr inbounds i8, ptr %0, i64 124
  %17 = tail call noundef ptr @_ZNK7sc_core9sc_object10simcontextEv(ptr noundef nonnull align 8 dereferenceable(112) %0)
  %18 = tail call noundef i32 @_ZN7sc_core13sc_simcontext12next_proc_idEv(ptr noundef nonnull align 8 dereferenceable(344) %17)
  store i32 %18, ptr %16, align 4, !tbaa !38
  %19 = getelementptr inbounds i8, ptr %0, i64 128
  %20 = getelementptr inbounds i8, ptr %0, i64 137
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(9) %19, i8 0, i64 9, i1 false)
  %21 = tail call noundef ptr @_ZNK7sc_core9sc_object10simcontextEv(ptr noundef nonnull align 8 dereferenceable(112) %0)
  %22 = tail call noundef zeroext i1 @_ZNK7sc_core13sc_simcontext16elaboration_doneEv(ptr noundef nonnull align 8 dereferenceable(344) %21)
  %23 = zext i1 %22 to i8
  store i8 %23, ptr %20, align 1, !tbaa !39
  %24 = getelementptr inbounds i8, ptr %0, i64 144
  store ptr null, ptr %24, align 8, !tbaa !40
  %25 = getelementptr inbounds i8, ptr %0, i64 152
  store i32 0, ptr %25, align 8, !tbaa !41
  %26 = getelementptr inbounds i8, ptr %0, i64 160
  %27 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %26, i8 0, i64 16, i1 false)
  store i8 %13, ptr %27, align 8, !tbaa !42
  %28 = getelementptr inbounds i8, ptr %0, i64 177
  store i8 0, ptr %28, align 1, !tbaa !43
  %29 = getelementptr inbounds i8, ptr %0, i64 178
  store i8 0, ptr %29, align 2, !tbaa !44
  %30 = getelementptr inbounds i8, ptr %0, i64 179
  store i8 %12, ptr %30, align 1, !tbaa !45
  %31 = getelementptr inbounds i8, ptr %0, i64 184
  %32 = getelementptr inbounds i8, ptr %0, i64 204
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %31, i8 0, i64 20, i1 false)
  store i32 1, ptr %32, align 4, !tbaa !46
  %33 = getelementptr inbounds i8, ptr %0, i64 208
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %33, i8 0, i64 24, i1 false)
  tail call void @_ZNSt6vectorIPN7sc_core8sc_resetESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #10
  %34 = getelementptr inbounds i8, ptr %0, i64 232
  %35 = getelementptr inbounds i8, ptr %0, i64 256
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %34, i8 0, i64 24, i1 false)
  store ptr %6, ptr %35, align 8, !tbaa !47
  %36 = getelementptr inbounds i8, ptr %0, i64 264
  store i64 %4, ptr %36, align 8, !tbaa !48
  %.repack16 = getelementptr inbounds i8, ptr %0, i64 272
  store i64 %5, ptr %.repack16, align 8, !tbaa !48
  %37 = getelementptr inbounds i8, ptr %0, i64 280
  store i32 0, ptr %37, align 8, !tbaa !49
  %38 = getelementptr inbounds i8, ptr %0, i64 288
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %38, i8 0, i64 24, i1 false)
  tail call void @_ZNSt6vectorIPKN7sc_core8sc_eventESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #10
  %39 = getelementptr inbounds i8, ptr %0, i64 312
  store i8 0, ptr %39, align 8, !tbaa !50
  %40 = getelementptr inbounds i8, ptr %0, i64 320
  %41 = getelementptr inbounds i8, ptr %0, i64 344
  store ptr null, ptr %41, align 8, !tbaa !51
  %42 = getelementptr inbounds i8, ptr %0, i64 352
  store i32 0, ptr %42, align 8, !tbaa !52
  %43 = getelementptr inbounds i8, ptr %0, i64 356
  store i8 0, ptr %43, align 4, !tbaa !53
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(21) %40, i8 0, i64 21, i1 false)
  store ptr %0, ptr @_ZN7sc_core12sc_process_b24m_last_created_process_pE, align 8, !tbaa !54
  %44 = invoke noalias noundef nonnull dereferenceable(160) ptr @_Znwm(i64 noundef 160) #11
          to label %45 unwind label %50

45:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %46 unwind label %52

46:                                               ; preds = %45
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.19)
          to label %47 unwind label %54

47:                                               ; preds = %46
  %48 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  invoke void @_ZN7sc_core8sc_eventC1EPKc(ptr noundef nonnull align 8 dereferenceable(160) %44, ptr noundef %48)
          to label %49 unwind label %56

49:                                               ; preds = %47
  store ptr %44, ptr %41, align 8, !tbaa !51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #10
  ret void

50:                                               ; preds = %8
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %60

52:                                               ; preds = %45
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %59

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

56:                                               ; preds = %47
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  br label %58

58:                                               ; preds = %56, %54
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  br label %59

59:                                               ; preds = %58, %52
  %.pn.pn = phi { ptr, i32 } [ %.pn, %58 ], [ %53, %52 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #10
  call void @_ZdlPvm(ptr noundef nonnull %44, i64 noundef 160) #12
  br label %60

60:                                               ; preds = %59, %50
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %59 ], [ %51, %50 ]
  call void @_ZNSt6vectorIPKN7sc_core8sc_eventESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #10
  call void @_ZNSt6vectorIPN7sc_core8sc_resetESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #10
  call void @_ZN7sc_core9sc_objectD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %0) #10
  resume { ptr, i32 } %.pn.pn.pn
}

declare void @_ZN7sc_core9sc_objectC2EPKc(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7sc_core13sc_simcontext12next_proc_idEv(ptr noundef nonnull align 8 dereferenceable(344)) local_unnamed_addr #7 align 2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN7sc_core9sc_objectD2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #9

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { nobuiltin allocsize(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 = { nobuiltin 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 112}
!9 = !{!"_ZTSN7sc_core12sc_process_bE", !10, i64 0, !11, i64 112, !24, i64 120, !24, i64 124, !24, i64 128, !24, i64 132, !25, i64 136, !25, i64 137, !11, i64 144, !24, i64 152, !11, i64 160, !11, i64 168, !25, i64 176, !25, i64 177, !25, i64 178, !25, i64 179, !11, i64 184, !11, i64 192, !26, i64 200, !24, i64 204, !27, i64 208, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !12, i64 264, !24, i64 280, !31, i64 288, !25, i64 312, !11, i64 320, !11, i64 328, !35, i64 336, !25, i64 340, !11, i64 344, !36, i64 352, !25, i64 356}
!10 = !{!"_ZTSN7sc_core9sc_objectE", !11, i64 8, !13, i64 16, !17, i64 40, !21, i64 64, !11, i64 96, !11, i64 104}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!17 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !23, i64 8, !12, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!23 = !{!"long", !12, i64 0}
!24 = !{!"int", !12, i64 0}
!25 = !{!"bool", !12, i64 0}
!26 = !{!"_ZTSN7sc_core17sc_curr_proc_kindE", !12, i64 0}
!27 = !{!"_ZTSSt6vectorIPN7sc_core8sc_resetESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_resetESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_resetESaIS2_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_resetESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!31 = !{!"_ZTSSt6vectorIPKN7sc_core8sc_eventESaIS3_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIPKN7sc_core8sc_eventESaIS3_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPKN7sc_core8sc_eventESaIS3_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPKN7sc_core8sc_eventESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!35 = !{!"_ZTSN7sc_core12sc_process_b18process_throw_typeE", !12, i64 0}
!36 = !{!"_ZTSN7sc_core12sc_process_b9trigger_tE", !12, i64 0}
!37 = !{!9, !24, i64 120}
!38 = !{!9, !24, i64 124}
!39 = !{!9, !25, i64 137}
!40 = !{!9, !11, i64 144}
!41 = !{!9, !24, i64 152}
!42 = !{!9, !25, i64 176}
!43 = !{!9, !25, i64 177}
!44 = !{!9, !25, i64 178}
!45 = !{!9, !25, i64 179}
!46 = !{!9, !24, i64 204}
!47 = !{!9, !11, i64 256}
!48 = !{!9, !12, i64 264}
!49 = !{!9, !24, i64 280}
!50 = !{!9, !25, i64 312}
!51 = !{!9, !11, i64 344}
!52 = !{!9, !36, i64 352}
!53 = !{!9, !25, i64 356}
!54 = !{!11, !11, i64 0}


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