; LLVM IR from gem5/gem5 :: ext/systemc/src/sysc/communication/sc_clock.ll (ZN7sc_core8sc_clockC2EPKcdddb)

; 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.sc_core::sc_time" = type { i64 }
%"class.std::allocator.5" = type { i8 }
%"class.sc_core::sc_clock" = type { %"class.sc_core::sc_signal", %"class.sc_core::sc_time", double, %"class.sc_core::sc_time", i8, %"class.sc_core::sc_time", %"class.sc_core::sc_time", %"class.sc_core::sc_event", %"class.sc_core::sc_event" }
%"class.sc_core::sc_signal" = type { %"class.sc_core::sc_signal_inout_if", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, i8, i64, ptr, i8, ptr, ptr }
%"class.sc_core::sc_signal_inout_if" = type { %"class.sc_core::sc_signal_in_if", %"class.sc_core::sc_signal_write_if" }
%"class.sc_core::sc_signal_in_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_interface" = type { ptr }
%"class.sc_core::sc_signal_write_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_prim_channel" = type { %"class.sc_core::sc_object", ptr, ptr }
%"class.sc_core::sc_object" = type { ptr, ptr, %"class.std::vector", %"class.std::vector.0", %"class.std::__cxx11::basic_string", ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_event *, std::allocator<sc_core::sc_event *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.sc_core::sc_writer_policy_check" = type { %"struct.sc_core::sc_writer_policy_check_port", %"struct.sc_core::sc_writer_policy_check_write" }
%"struct.sc_core::sc_writer_policy_check_port" = type { ptr }
%"struct.sc_core::sc_writer_policy_check_write" = type { i8, ptr }
%"class.sc_core::sc_event" = type { %"class.std::__cxx11::basic_string", ptr, ptr, i32, i32, ptr, %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector.13", %"class.std::vector.13" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_method_process *, std::allocator<sc_core::sc_method_process *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_thread_process *, std::allocator<sc_core::sc_thread_process *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_simcontext" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"struct.sc_core::sc_curr_proc_info", ptr, i8, i32, %"class.std::vector.13", %"class.std::vector", %"class.std::vector.0", %"class.std::vector", ptr, %"class.std::vector.18", i8, ptr, ptr, ptr, %"class.sc_core::sc_time", %"class.sc_core::sc_time", ptr, i64, i64, i8, i8, i8, i8, i32, ptr, i8, i8, i32, i8, ptr, ptr }
%"struct.sc_core::sc_curr_proc_info" = type <{ ptr, i32, [4 x i8] }>
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<sc_core::sc_trace_file *, std::allocator<sc_core::sc_trace_file *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_trace_file *, std::allocator<sc_core::sc_trace_file *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_trace_file *, std::allocator<sc_core::sc_trace_file *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_trace_file *, std::allocator<sc_core::sc_trace_file *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.sc_core::sc_time_params" = type <{ double, i8, i8, [6 x i8], i64, i8, [7 x i8] }>

@_ZTVN7sc_core8sc_clockE = external dso_local unnamed_addr constant { [28 x ptr], [12 x ptr], [22 x ptr] }, align 8
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZZN7sc_core8sc_clockC1EPKcdddbE13warn_sc_clock = external hidden global i8, align 1
@_ZN7sc_core28SC_ID_IEEE_1666_DEPRECATION_E = external constant [0 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [91 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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) #3

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_clock4initERKNS_7sc_timeEdS3_b(ptr noundef nonnull align 8 dereferenceable(592), ptr noundef nonnull align 8 dereferenceable(8), double noundef, ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) #0 align 2

declare void @_ZN7sc_core7sc_time10from_valueEy(ptr dead_on_unwind writable sret(%"class.sc_core::sc_time") align 8, i64 noundef) #5

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

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

; Function Attrs: nounwind
declare void @_ZN7sc_core8sc_eventD1Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #6

; Function Attrs: nounwind
declare void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED2Ev(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef) unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7sc_core8sc_clockC2EPKcdddb(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef %1, ptr noundef %2, double noundef %3, double noundef %4, double noundef %5, i1 noundef zeroext %6) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator.5", align 1
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator.5", align 1
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::allocator.5", align 1
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator.5", align 1
  %29 = alloca %"class.sc_core::sc_time", align 8
  %30 = alloca %"class.sc_core::sc_time", align 8
  %31 = alloca %"class.sc_core::sc_time", align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store double %3, ptr %11, align 8, !tbaa !9
  store double %4, ptr %12, align 8, !tbaa !9
  store double %5, ptr %13, align 8, !tbaa !9
  %32 = zext i1 %6 to i8
  store i8 %32, ptr %14, align 1, !tbaa !11
  %33 = load ptr, ptr %8, align 8
  %34 = load ptr, ptr %9, align 8
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = getelementptr inbounds ptr, ptr %34, i64 1
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC2EPKc(ptr noundef nonnull align 8 dereferenceable(224) %33, ptr noundef %36, ptr noundef %35)
  %37 = load ptr, ptr %34, align 8
  store ptr %37, ptr %33, align 8, !tbaa !13
  %38 = getelementptr inbounds ptr, ptr %34, i64 11
  %39 = load ptr, ptr %38, align 8
  %40 = load ptr, ptr %33, align 8, !tbaa !13
  %41 = getelementptr i8, ptr %40, i64 -48
  %42 = load i64, ptr %41, align 8
  %43 = getelementptr inbounds i8, ptr %33, i64 %42
  store ptr %39, ptr %43, align 8, !tbaa !13
  %44 = getelementptr inbounds ptr, ptr %34, i64 12
  %45 = load ptr, ptr %44, align 8
  %46 = getelementptr inbounds i8, ptr %33, i64 8
  store ptr %45, ptr %46, align 8, !tbaa !13
  %47 = getelementptr inbounds i8, ptr %33, i64 16
  store ptr getelementptr inbounds inrange(-16, 160) ({ [28 x ptr], [12 x ptr], [22 x ptr] }, ptr @_ZTVN7sc_core8sc_clockE, i32 0, i32 2, i32 2), ptr %47, align 8, !tbaa !13
  %48 = getelementptr inbounds %"class.sc_core::sc_clock", ptr %33, i32 0, i32 1
  invoke void @_ZN7sc_core7sc_timeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %49 unwind label %78

49:                                               ; preds = %7
  %50 = getelementptr inbounds %"class.sc_core::sc_clock", ptr %33, i32 0, i32 2
  store double 0.000000e+00, ptr %50, align 8, !tbaa !15
  %51 = getelementptr inbounds %"class.sc_core::sc_clock", ptr %33, i32 0, i32 3
  invoke void @_ZN7sc_core7sc_timeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %51)
          to label %52 unwind label %78

52:                                               ; preds = %49
  %53 = getelementptr inbounds %"class.sc_core::sc_clock", ptr %33, i32 0, i32 4
  store i8 0, ptr %53, align 8, !tbaa !50
  %54 = getelementptr inbounds %"class.sc_core::sc_clock", ptr %33, i32 0, i32 5
  invoke void @_ZN7sc_core7sc_timeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %54)
          to label %55 unwind label %78

55:                                               ; preds = %52
  %56 = getelementptr inbounds %"class.sc_core::sc_clock", ptr %33, i32 0, i32 6
  invoke void @_ZN7sc_core7sc_timeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %56)
          to label %57 unwind label %78

57:                                               ; preds = %55
  %58 = getelementptr inbounds %"class.sc_core::sc_clock", ptr %33, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %59 unwind label %82

59:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #7
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef %60, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %61 unwind label %86

61:                                               ; preds = %59
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %62 unwind label %90

62:                                               ; preds = %61
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.2)
          to label %63 unwind label %94

63:                                               ; preds = %62
  %64 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  invoke void @_ZN7sc_core8sc_eventC1EPKc(ptr noundef nonnull align 8 dereferenceable(160) %58, ptr noundef %64)
          to label %65 unwind label %98

65:                                               ; preds = %63
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  %66 = getelementptr inbounds %"class.sc_core::sc_clock", ptr %33, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %67 unwind label %106

67:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #7
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef %68, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %69 unwind label %110

69:                                               ; preds = %67
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %24, ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %70 unwind label %114

70:                                               ; preds = %69
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef @.str.3)
          to label %71 unwind label %118

71:                                               ; preds = %70
  %72 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  invoke void @_ZN7sc_core8sc_eventC1EPKc(ptr noundef nonnull align 8 dereferenceable(160) %66, ptr noundef %72)
          to label %73 unwind label %122

73:                                               ; preds = %71
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  %74 = load i8, ptr @_ZZN7sc_core8sc_clockC1EPKcdddbE13warn_sc_clock, align 1, !tbaa !11, !range !51, !noundef !52
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %134

76:                                               ; preds = %73
  store i8 0, ptr @_ZZN7sc_core8sc_clockC1EPKcdddbE13warn_sc_clock, align 1, !tbaa !11
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 0, ptr noundef @_ZN7sc_core28SC_ID_IEEE_1666_DEPRECATION_E, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 189)
          to label %77 unwind label %130

77:                                               ; preds = %76
  br label %134

78:                                               ; preds = %55, %52, %49, %7
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %15, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %16, align 4
  br label %178

82:                                               ; preds = %57
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %15, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %16, align 4
  br label %105

86:                                               ; preds = %59
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %15, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %16, align 4
  br label %104

90:                                               ; preds = %61
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %15, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %16, align 4
  br label %103

94:                                               ; preds = %62
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %15, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %16, align 4
  br label %102

98:                                               ; preds = %63
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %15, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %16, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  br label %102

102:                                              ; preds = %98, %94
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  br label %103

103:                                              ; preds = %102, %90
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  br label %104

104:                                              ; preds = %103, %86
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %105

105:                                              ; preds = %104, %82
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  br label %178

106:                                              ; preds = %65
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %15, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %16, align 4
  br label %129

110:                                              ; preds = %67
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %15, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %16, align 4
  br label %128

114:                                              ; preds = %69
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %15, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %16, align 4
  br label %127

118:                                              ; preds = %70
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %15, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %16, align 4
  br label %126

122:                                              ; preds = %71
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %15, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %16, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  br label %126

126:                                              ; preds = %122, %118
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  br label %127

127:                                              ; preds = %126, %114
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  br label %128

128:                                              ; preds = %127, %110
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  br label %129

129:                                              ; preds = %128, %106
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  br label %177

130:                                              ; preds = %76
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %15, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %16, align 4
  br label %176

134:                                              ; preds = %77, %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %135 = getelementptr inbounds i8, ptr %33, i64 16
  %136 = invoke noundef ptr @_ZNK7sc_core9sc_object10simcontextEv(ptr noundef nonnull align 8 dereferenceable(112) %135)
          to label %137 unwind label %157

137:                                              ; preds = %134
  %138 = getelementptr inbounds %"class.sc_core::sc_simcontext", ptr %136, i32 0, i32 21
  %139 = load ptr, ptr %138, align 8, !tbaa !53
  %140 = getelementptr inbounds %"struct.sc_core::sc_time_params", ptr %139, i32 0, i32 4
  %141 = load i64, ptr %140, align 8, !tbaa !63
  invoke void @_ZN7sc_core7sc_time10from_valueEy(ptr dead_on_unwind writable sret(%"class.sc_core::sc_time") align 8 %29, i64 noundef %141)
          to label %142 unwind label %157

142:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %143 = load double, ptr %11, align 8, !tbaa !9
  invoke void @_ZN7sc_coremlEdRKNS_7sc_timeE(ptr dead_on_unwind writable sret(%"class.sc_core::sc_time") align 8 %30, double noundef %143, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %144 unwind label %161

144:                                              ; preds = %142
  %145 = load double, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %146 = load double, ptr %13, align 8, !tbaa !9
  invoke void @_ZN7sc_coremlEdRKNS_7sc_timeE(ptr dead_on_unwind writable sret(%"class.sc_core::sc_time") align 8 %31, double noundef %146, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %147 unwind label %165

147:                                              ; preds = %144
  %148 = load i8, ptr %14, align 1, !tbaa !11, !range !51, !noundef !52
  %149 = trunc i8 %148 to i1
  invoke void @_ZN7sc_core8sc_clock4initERKNS_7sc_timeEdS3_b(ptr noundef nonnull align 8 dereferenceable(592) %33, ptr noundef nonnull align 8 dereferenceable(8) %30, double noundef %145, ptr noundef nonnull align 8 dereferenceable(8) %31, i1 noundef zeroext %149)
          to label %150 unwind label %165

150:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  %151 = load i8, ptr %14, align 1, !tbaa !11, !range !51, !noundef !52
  %152 = trunc i8 %151 to i1
  br i1 %152, label %153, label %170

153:                                              ; preds = %150
  %154 = getelementptr inbounds %"class.sc_core::sc_clock", ptr %33, i32 0, i32 7
  %155 = getelementptr inbounds %"class.sc_core::sc_clock", ptr %33, i32 0, i32 3
  invoke void @_ZN7sc_core8sc_event15notify_internalERKNS_7sc_timeE(ptr noundef nonnull align 8 dereferenceable(160) %154, ptr noundef nonnull align 8 dereferenceable(8) %155)
          to label %156 unwind label %157

156:                                              ; preds = %153
  br label %174

157:                                              ; preds = %170, %153, %137, %134
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %15, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %16, align 4
  br label %175

161:                                              ; preds = %142
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %15, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %16, align 4
  br label %169

165:                                              ; preds = %147, %144
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %15, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %169

169:                                              ; preds = %165, %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %175

170:                                              ; preds = %150
  %171 = getelementptr inbounds %"class.sc_core::sc_clock", ptr %33, i32 0, i32 8
  %172 = getelementptr inbounds %"class.sc_core::sc_clock", ptr %33, i32 0, i32 3
  invoke void @_ZN7sc_core8sc_event15notify_internalERKNS_7sc_timeE(ptr noundef nonnull align 8 dereferenceable(160) %171, ptr noundef nonnull align 8 dereferenceable(8) %172)
          to label %173 unwind label %157

173:                                              ; preds = %170
  br label %174

174:                                              ; preds = %173, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  ret void

175:                                              ; preds = %169, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %176

176:                                              ; preds = %175, %130
  call void @_ZN7sc_core8sc_eventD1Ev(ptr noundef nonnull align 8 dereferenceable(160) %66) #7
  br label %177

177:                                              ; preds = %176, %129
  call void @_ZN7sc_core8sc_eventD1Ev(ptr noundef nonnull align 8 dereferenceable(160) %58) #7
  br label %178

178:                                              ; preds = %177, %105, %78
  %179 = getelementptr inbounds ptr, ptr %34, i64 1
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED2Ev(ptr noundef nonnull align 8 dereferenceable(224) %33, ptr noundef %179) #7
  br label %180

180:                                              ; preds = %178
  %181 = load ptr, ptr %15, align 8
  %182 = load i32, ptr %16, align 4
  %183 = insertvalue { ptr, i32 } poison, ptr %181, 0
  %184 = insertvalue { ptr, i32 } %183, i32 %182, 1
  resume { ptr, i32 } %184
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_coremlEdRKNS_7sc_timeE(ptr dead_on_unwind noalias writable sret(%"class.sc_core::sc_time") align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(8)) #3

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint mustprogress 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !10, i64 232}
!16 = !{!"_ZTSN7sc_core8sc_clockE", !17, i64 0, !38, i64 224, !10, i64 232, !38, i64 240, !12, i64 248, !38, i64 256, !38, i64 264, !39, i64 272, !39, i64 432}
!17 = !{!"_ZTSN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEE", !18, i64 0, !21, i64 16, !34, i64 144, !6, i64 168, !12, i64 176, !37, i64 184, !6, i64 192, !12, i64 200, !6, i64 208, !6, i64 216}
!18 = !{!"_ZTSN7sc_core18sc_signal_inout_ifIbEE", !19, i64 0, !20, i64 8}
!19 = !{!"_ZTSN7sc_core15sc_signal_in_ifIbEE"}
!20 = !{!"_ZTSN7sc_core18sc_signal_write_ifIbEE"}
!21 = !{!"_ZTSN7sc_core15sc_prim_channelE", !22, i64 0, !6, i64 112, !6, i64 120}
!22 = !{!"_ZTSN7sc_core9sc_objectE", !6, i64 8, !23, i64 16, !27, i64 40, !31, i64 64, !6, i64 96, !6, i64 104}
!23 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !32, i64 0, !33, i64 8, !7, i64 16}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!33 = !{!"long", !7, i64 0}
!34 = !{!"_ZTSN7sc_core22sc_writer_policy_checkILNS_16sc_writer_policyE0EEE", !35, i64 0, !36, i64 8}
!35 = !{!"_ZTSN7sc_core27sc_writer_policy_check_portE", !6, i64 0}
!36 = !{!"_ZTSN7sc_core28sc_writer_policy_check_writeE", !12, i64 0, !6, i64 8}
!37 = !{!"long long", !7, i64 0}
!38 = !{!"_ZTSN7sc_core7sc_timeE", !37, i64 0}
!39 = !{!"_ZTSN7sc_core8sc_eventE", !31, i64 0, !6, i64 32, !6, i64 40, !40, i64 48, !41, i64 52, !6, i64 56, !42, i64 64, !42, i64 88, !46, i64 112, !46, i64 136}
!40 = !{!"_ZTSN7sc_core8sc_event8notify_tE", !7, i64 0}
!41 = !{!"int", !7, i64 0}
!42 = !{!"_ZTSSt6vectorIPN7sc_core17sc_method_processESaIS2_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!"_ZTSSt6vectorIPN7sc_core17sc_thread_processESaIS2_EE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!50 = !{!16, !12, i64 248}
!51 = !{i8 0, i8 2}
!52 = !{}
!53 = !{!54, !6, i64 248}
!54 = !{!"_ZTSN7sc_core13sc_simcontextE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !55, i64 64, !6, i64 80, !12, i64 88, !41, i64 92, !46, i64 96, !23, i64 120, !27, i64 144, !23, i64 168, !6, i64 192, !57, i64 200, !12, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !38, i64 256, !38, i64 264, !6, i64 272, !37, i64 280, !37, i64 288, !12, i64 296, !12, i64 297, !12, i64 298, !12, i64 299, !61, i64 300, !6, i64 304, !12, i64 312, !12, i64 313, !62, i64 316, !12, i64 320, !6, i64 328, !6, i64 336}
!55 = !{!"_ZTSN7sc_core17sc_curr_proc_infoE", !6, i64 0, !56, i64 8}
!56 = !{!"_ZTSN7sc_core17sc_curr_proc_kindE", !7, i64 0}
!57 = !{!"_ZTSSt6vectorIPN7sc_core13sc_trace_fileESaIS2_EE", !58, i64 0}
!58 = !{!"_ZTSSt12_Vector_baseIPN7sc_core13sc_trace_fileESaIS2_EE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core13sc_trace_fileESaIS2_EE12_Vector_implE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core13sc_trace_fileESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!61 = !{!"_ZTSN7sc_core13sc_simcontext16execution_phasesE", !7, i64 0}
!62 = !{!"_ZTSN7sc_core9sc_statusE", !7, i64 0}
!63 = !{!64, !37, i64 16}
!64 = !{!"_ZTSN7sc_core14sc_time_paramsE", !10, i64 0, !12, i64 8, !12, i64 9, !37, i64 16, !12, i64 24}


; 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.sc_core::sc_time" = type { i64 }
%"class.std::allocator.5" = type { i8 }

@_ZTVN7sc_core8sc_clockE = external dso_local unnamed_addr constant { [28 x ptr], [12 x ptr], [22 x ptr] }, align 8
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZZN7sc_core8sc_clockC1EPKcdddbE13warn_sc_clock = external hidden local_unnamed_addr global i8, align 1
@_ZN7sc_core28SC_ID_IEEE_1666_DEPRECATION_E = external constant [0 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [91 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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 #3

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_clock4initERKNS_7sc_timeEdS3_b(ptr noundef nonnull align 8 dereferenceable(592), ptr noundef nonnull align 8 dereferenceable(8), double noundef, ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #0 align 2

declare void @_ZN7sc_core7sc_time10from_valueEy(ptr dead_on_unwind writable sret(%"class.sc_core::sc_time") align 8, i64 noundef) local_unnamed_addr #5

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

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

; Function Attrs: nounwind
declare void @_ZN7sc_core8sc_eventD1Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #6

; Function Attrs: nounwind
declare void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED2Ev(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef) unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7sc_core8sc_clockC2EPKcdddb(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef %1, ptr noundef %2, double noundef %3, double noundef %4, double noundef %5, i1 noundef zeroext %6) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %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 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator.5", align 1
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator.5", align 1
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator.5", align 1
  %20 = alloca %"class.sc_core::sc_time", align 8
  %21 = alloca %"class.sc_core::sc_time", align 8
  %22 = alloca %"class.sc_core::sc_time", align 8
  %23 = getelementptr inbounds i8, ptr %1, i64 8
  tail call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC2EPKc(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull %23, ptr noundef %2)
  %24 = load ptr, ptr %1, align 8
  store ptr %24, ptr %0, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %1, i64 88
  %26 = load ptr, ptr %25, align 8
  %27 = getelementptr i8, ptr %24, i64 -48
  %28 = load i64, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr %0, i64 %28
  store ptr %26, ptr %29, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %1, i64 96
  %31 = load ptr, ptr %30, align 8
  %32 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %31, ptr %32, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr getelementptr inbounds inrange(-16, 160) (i8, ptr @_ZTVN7sc_core8sc_clockE, i64 336), ptr %33, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %0, i64 224
  tail call void @_ZN7sc_core7sc_timeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34)
  %35 = getelementptr inbounds i8, ptr %0, i64 232
  store double 0.000000e+00, ptr %35, align 8, !tbaa !8
  %36 = getelementptr inbounds i8, ptr %0, i64 240
  tail call void @_ZN7sc_core7sc_timeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36)
  %37 = getelementptr inbounds i8, ptr %0, i64 248
  store i8 0, ptr %37, align 8, !tbaa !47
  %38 = getelementptr inbounds i8, ptr %0, i64 256
  tail call void @_ZN7sc_core7sc_timeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38)
  %39 = getelementptr inbounds i8, ptr %0, i64 264
  tail call void @_ZN7sc_core7sc_timeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %39)
  %40 = getelementptr inbounds i8, ptr %0, i64 272
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %41 unwind label %57

41:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %42 unwind label %59

42:                                               ; preds = %41
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(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 align 8 dereferenceable(32) %12)
          to label %43 unwind label %61

43:                                               ; preds = %42
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.2)
          to label %44 unwind label %63

44:                                               ; preds = %43
  %45 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  invoke void @_ZN7sc_core8sc_eventC1EPKc(ptr noundef nonnull align 8 dereferenceable(160) %40, ptr noundef %45)
          to label %46 unwind label %65

46:                                               ; preds = %44
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  %47 = getelementptr inbounds i8, ptr %0, i64 432
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %48 unwind label %71

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %49 unwind label %73

49:                                               ; preds = %48
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %50 unwind label %75

50:                                               ; preds = %49
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull @.str.3)
          to label %51 unwind label %77

51:                                               ; preds = %50
  %52 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  invoke void @_ZN7sc_core8sc_eventC1EPKc(ptr noundef nonnull align 8 dereferenceable(160) %47, ptr noundef %52)
          to label %53 unwind label %79

53:                                               ; preds = %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  %54 = load i8, ptr @_ZZN7sc_core8sc_clockC1EPKcdddbE13warn_sc_clock, align 1, !tbaa !48, !range !49, !noundef !50
  %55 = trunc nuw i8 %54 to i1
  br i1 %55, label %56, label %87

56:                                               ; preds = %53
  store i8 0, ptr @_ZZN7sc_core8sc_clockC1EPKcdddbE13warn_sc_clock, align 1, !tbaa !48
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 0, ptr noundef nonnull @_ZN7sc_core28SC_ID_IEEE_1666_DEPRECATION_E, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 189)
          to label %87 unwind label %85

57:                                               ; preds = %7
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %70

59:                                               ; preds = %41
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %69

61:                                               ; preds = %42
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %68

63:                                               ; preds = %43
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %67

65:                                               ; preds = %44
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %67

67:                                               ; preds = %65, %63
  %.pn = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %68

68:                                               ; preds = %67, %61
  %.pn.pn = phi { ptr, i32 } [ %.pn, %67 ], [ %62, %61 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %69

69:                                               ; preds = %68, %59
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %68 ], [ %60, %59 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %70

70:                                               ; preds = %69, %57
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %69 ], [ %58, %57 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %108

71:                                               ; preds = %46
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %84

73:                                               ; preds = %48
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %83

75:                                               ; preds = %49
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %82

77:                                               ; preds = %50
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %81

79:                                               ; preds = %51
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  br label %81

81:                                               ; preds = %79, %77
  %.pn28 = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %82

82:                                               ; preds = %81, %75
  %.pn28.pn = phi { ptr, i32 } [ %.pn28, %81 ], [ %76, %75 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  br label %83

83:                                               ; preds = %82, %73
  %.pn28.pn.pn = phi { ptr, i32 } [ %.pn28.pn, %82 ], [ %74, %73 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  br label %84

84:                                               ; preds = %83, %71
  %.pn28.pn.pn.pn = phi { ptr, i32 } [ %.pn28.pn.pn, %83 ], [ %72, %71 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  br label %107

85:                                               ; preds = %56
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %106

87:                                               ; preds = %56, %53
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %88 = call noundef ptr @_ZNK7sc_core9sc_object10simcontextEv(ptr noundef nonnull align 8 dereferenceable(112) %33)
  %89 = getelementptr inbounds i8, ptr %88, i64 248
  %90 = load ptr, ptr %89, align 8, !tbaa !51
  %91 = getelementptr inbounds i8, ptr %90, i64 16
  %92 = load i64, ptr %91, align 8, !tbaa !61
  invoke void @_ZN7sc_core7sc_time10from_valueEy(ptr dead_on_unwind nonnull writable sret(%"class.sc_core::sc_time") align 8 %20, i64 noundef %92)
          to label %93 unwind label %97

93:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  invoke void @_ZN7sc_coremlEdRKNS_7sc_timeE(ptr dead_on_unwind nonnull writable sret(%"class.sc_core::sc_time") align 8 %21, double noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %94 unwind label %99

94:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  invoke void @_ZN7sc_coremlEdRKNS_7sc_timeE(ptr dead_on_unwind nonnull writable sret(%"class.sc_core::sc_time") align 8 %22, double noundef %5, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %95 unwind label %101

95:                                               ; preds = %94
  invoke void @_ZN7sc_core8sc_clock4initERKNS_7sc_timeEdS3_b(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(8) %21, double noundef %4, ptr noundef nonnull align 8 dereferenceable(8) %22, i1 noundef zeroext %6)
          to label %.invoke unwind label %101

.invoke:                                          ; preds = %95
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  %96 = select i1 %6, ptr %40, ptr %47
  invoke void @_ZN7sc_core8sc_event15notify_internalERKNS_7sc_timeE(ptr noundef nonnull align 8 dereferenceable(160) %96, ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %104 unwind label %97

97:                                               ; preds = %.invoke, %87
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %105

99:                                               ; preds = %93
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %95, %94
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %103

103:                                              ; preds = %101, %99
  %.pn33 = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  br label %105

104:                                              ; preds = %.invoke
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  ret void

105:                                              ; preds = %103, %97
  %.pn35 = phi { ptr, i32 } [ %98, %97 ], [ %.pn33, %103 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  br label %106

106:                                              ; preds = %105, %85
  %.pn35.pn = phi { ptr, i32 } [ %.pn35, %105 ], [ %86, %85 ]
  call void @_ZN7sc_core8sc_eventD1Ev(ptr noundef nonnull align 8 dereferenceable(160) %47) #7
  br label %107

107:                                              ; preds = %106, %84
  %.pn35.pn.pn = phi { ptr, i32 } [ %.pn35.pn, %106 ], [ %.pn28.pn.pn.pn, %84 ]
  call void @_ZN7sc_core8sc_eventD1Ev(ptr noundef nonnull align 8 dereferenceable(160) %40) #7
  br label %108

108:                                              ; preds = %107, %70
  %.pn35.pn.pn.pn = phi { ptr, i32 } [ %.pn35.pn.pn, %107 ], [ %.pn.pn.pn.pn, %70 ]
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED2Ev(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull %23) #7
  resume { ptr, i32 } %.pn35.pn.pn.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_coremlEdRKNS_7sc_timeE(ptr dead_on_unwind noalias writable sret(%"class.sc_core::sc_time") align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint mustprogress 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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, !35, i64 232}
!9 = !{!"_ZTSN7sc_core8sc_clockE", !10, i64 0, !34, i64 224, !35, i64 232, !34, i64 240, !32, i64 248, !34, i64 256, !34, i64 264, !36, i64 272, !36, i64 432}
!10 = !{!"_ZTSN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEE", !11, i64 0, !14, i64 16, !29, i64 144, !16, i64 168, !32, i64 176, !33, i64 184, !16, i64 192, !32, i64 200, !16, i64 208, !16, i64 216}
!11 = !{!"_ZTSN7sc_core18sc_signal_inout_ifIbEE", !12, i64 0, !13, i64 8}
!12 = !{!"_ZTSN7sc_core15sc_signal_in_ifIbEE"}
!13 = !{!"_ZTSN7sc_core18sc_signal_write_ifIbEE"}
!14 = !{!"_ZTSN7sc_core15sc_prim_channelE", !15, i64 0, !16, i64 112, !16, i64 120}
!15 = !{!"_ZTSN7sc_core9sc_objectE", !16, i64 8, !18, i64 16, !22, i64 40, !26, i64 64, !16, i64 96, !16, i64 104}
!16 = !{!"any pointer", !17, i64 0}
!17 = !{!"omnipotent char", !7, i64 0}
!18 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!22 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !28, i64 8, !17, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !16, i64 0}
!28 = !{!"long", !17, i64 0}
!29 = !{!"_ZTSN7sc_core22sc_writer_policy_checkILNS_16sc_writer_policyE0EEE", !30, i64 0, !31, i64 8}
!30 = !{!"_ZTSN7sc_core27sc_writer_policy_check_portE", !16, i64 0}
!31 = !{!"_ZTSN7sc_core28sc_writer_policy_check_writeE", !32, i64 0, !16, i64 8}
!32 = !{!"bool", !17, i64 0}
!33 = !{!"long long", !17, i64 0}
!34 = !{!"_ZTSN7sc_core7sc_timeE", !33, i64 0}
!35 = !{!"double", !17, i64 0}
!36 = !{!"_ZTSN7sc_core8sc_eventE", !26, i64 0, !16, i64 32, !16, i64 40, !37, i64 48, !38, i64 52, !16, i64 56, !39, i64 64, !39, i64 88, !43, i64 112, !43, i64 136}
!37 = !{!"_ZTSN7sc_core8sc_event8notify_tE", !17, i64 0}
!38 = !{!"int", !17, i64 0}
!39 = !{!"_ZTSSt6vectorIPN7sc_core17sc_method_processESaIS2_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_method_processESaIS2_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!43 = !{!"_ZTSSt6vectorIPN7sc_core17sc_thread_processESaIS2_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core17sc_thread_processESaIS2_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!47 = !{!9, !32, i64 248}
!48 = !{!32, !32, i64 0}
!49 = !{i8 0, i8 2}
!50 = !{}
!51 = !{!52, !16, i64 248}
!52 = !{!"_ZTSN7sc_core13sc_simcontextE", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !53, i64 64, !16, i64 80, !32, i64 88, !38, i64 92, !43, i64 96, !18, i64 120, !22, i64 144, !18, i64 168, !16, i64 192, !55, i64 200, !32, i64 224, !16, i64 232, !16, i64 240, !16, i64 248, !34, i64 256, !34, i64 264, !16, i64 272, !33, i64 280, !33, i64 288, !32, i64 296, !32, i64 297, !32, i64 298, !32, i64 299, !59, i64 300, !16, i64 304, !32, i64 312, !32, i64 313, !60, i64 316, !32, i64 320, !16, i64 328, !16, i64 336}
!53 = !{!"_ZTSN7sc_core17sc_curr_proc_infoE", !16, i64 0, !54, i64 8}
!54 = !{!"_ZTSN7sc_core17sc_curr_proc_kindE", !17, i64 0}
!55 = !{!"_ZTSSt6vectorIPN7sc_core13sc_trace_fileESaIS2_EE", !56, i64 0}
!56 = !{!"_ZTSSt12_Vector_baseIPN7sc_core13sc_trace_fileESaIS2_EE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core13sc_trace_fileESaIS2_EE12_Vector_implE", !58, i64 0}
!58 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core13sc_trace_fileESaIS2_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!59 = !{!"_ZTSN7sc_core13sc_simcontext16execution_phasesE", !17, i64 0}
!60 = !{!"_ZTSN7sc_core9sc_statusE", !17, i64 0}
!61 = !{!62, !33, i64 16}
!62 = !{!"_ZTSN7sc_core14sc_time_paramsE", !35, i64 0, !32, i64 8, !32, i64 9, !33, i64 16, !32, i64 24}


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