; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/tracing/vcd_trace/test07 (test07)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.sc_core::sc_signal.18" = type { %"class.sc_core::sc_signal_inout_if.19", %"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.19" = type { %"class.sc_core::sc_signal_in_if.20", %"class.sc_core::sc_signal_write_if.21" }
%"class.sc_core::sc_signal_in_if.20" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_interface" = type { ptr }
%"class.sc_core::sc_signal_write_if.21" = 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 }
%"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] }
%"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_signal" = type { %"class.sc_core::sc_signal_inout_if", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, %"class.sc_dt::sc_bv", i64, %"class.sc_dt::sc_bv" }
%"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_signal_write_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_dt::sc_bv" = type { %"class.sc_dt::sc_bv_base" }
%"class.sc_dt::sc_bv_base" = type { %"class.sc_dt::sc_proxy", i32, i32, ptr }
%"class.sc_dt::sc_proxy" = type { ptr }
%"class.sc_core::sc_signal.14" = type { %"class.sc_core::sc_signal_inout_if.15", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, %"class.sc_dt::sc_lv", i64, %"class.sc_dt::sc_lv" }
%"class.sc_core::sc_signal_inout_if.15" = type { %"class.sc_core::sc_signal_in_if.16", %"class.sc_core::sc_signal_write_if.17" }
%"class.sc_core::sc_signal_in_if.16" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_signal_write_if.17" = type { %"class.sc_core::sc_interface" }
%"class.sc_dt::sc_lv" = type { %"class.sc_dt::sc_lv_base" }
%"class.sc_dt::sc_lv_base" = type { %"class.sc_dt::sc_proxy.13", i32, i32, ptr, ptr }
%"class.sc_dt::sc_proxy.13" = type { ptr }
%struct.proc1 = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", ptr, ptr, %"class.sc_dt::sc_signed", %"class.sc_dt::sc_unsigned" }
%"class.sc_core::sc_module" = type { %"class.sc_core::sc_object", %"class.sc_core::sc_process_host", %"class.sc_core::sc_sensitive", %"class.sc_core::sc_sensitive_pos", %"class.sc_core::sc_sensitive_neg", i8, ptr, i32, ptr, ptr }
%"class.sc_core::sc_process_host" = type { ptr }
%"class.sc_core::sc_sensitive" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_pos" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_neg" = type { ptr, i32, ptr }
%"class.sc_core::sc_in" = type { %"class.sc_core::sc_port", ptr, ptr, ptr, ptr }
%"class.sc_core::sc_port" = type { %"class.sc_core::sc_port_b" }
%"class.sc_core::sc_port_b" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.8" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_dt::sc_signed" = type { %"class.sc_dt::sc_value_base", i32, i32, i32, ptr }
%"class.sc_dt::sc_value_base" = type { ptr }
%"class.sc_dt::sc_unsigned" = type { %"class.sc_dt::sc_value_base", i32, i32, i32, ptr }
%"class.sc_core::sc_module_name" = type <{ ptr, ptr, ptr, ptr, i8, [7 x i8] }>
%"class.std::allocator.5" = type { i8 }

@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @sc_main(i32 noundef %0, ptr noundef %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.sc_core::sc_signal.18", align 8
  %7 = alloca %"class.sc_core::sc_signal", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.sc_core::sc_signal.14", align 8
  %11 = alloca %struct.proc1, align 8
  %12 = alloca %"class.sc_core::sc_module_name", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator.5", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.5", align 1
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 224, ptr %6) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %6)
  call void @llvm.lifetime.start.p0(i64 232, ptr %7) #7
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt5sc_bvILi4EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(232) %7)
          to label %21 unwind label %45

21:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 248, ptr %10) #7
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt5sc_lvILi4EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %10)
          to label %22 unwind label %49

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 496, ptr %11) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %12, ptr noundef @.str.5)
          to label %23 unwind label %53

23:                                               ; preds = %22
  invoke void @_ZN5proc1C2EN7sc_core14sc_module_nameERNS0_9sc_signalIbLNS0_16sc_writer_policyE0EEERNS2_IN5sc_dt5sc_bvILi4EEELS3_0EEERNS2_INS6_5sc_lvILi4EEELS3_0EEE(ptr noundef nonnull align 8 dereferenceable(496) %11, ptr noundef %12, ptr noundef nonnull align 8 dereferenceable(224) %6, ptr noundef nonnull align 8 dereferenceable(232) %7, ptr noundef nonnull align 8 dereferenceable(248) %10)
          to label %24 unwind label %57

24:                                               ; preds = %23
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %12) #7
  %25 = invoke noundef ptr @_ZN7sc_core24sc_create_vcd_trace_fileEPKc(ptr noundef @.str.6)
          to label %26 unwind label %61

26:                                               ; preds = %24
  store ptr %25, ptr %5, align 8, !tbaa !9
  %27 = load ptr, ptr %5, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct.proc1, ptr %11, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %29 unwind label %65

29:                                               ; preds = %26
  invoke void @_ZN7sc_core8sc_traceEPNS_13sc_trace_fileERKN5sc_dt9sc_signedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %27, ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %30 unwind label %69

30:                                               ; preds = %29
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  %31 = load ptr, ptr %5, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.proc1, ptr %11, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %33 unwind label %74

33:                                               ; preds = %30
  invoke void @_ZN7sc_core8sc_traceEPNS_13sc_trace_fileERKN5sc_dt11sc_unsignedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %31, ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %34 unwind label %78

34:                                               ; preds = %33
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  %35 = load ptr, ptr %5, align 8, !tbaa !9
  invoke void @_ZN7sc_core8sc_traceIN5sc_dt5sc_bvILi4EEEEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %35, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef @.str.9)
          to label %36 unwind label %61

36:                                               ; preds = %34
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  invoke void @_ZN7sc_core8sc_traceIN5sc_dt5sc_lvILi4EEEEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %37, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @.str.10)
          to label %38 unwind label %61

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  store i8 0, ptr %17, align 1, !tbaa !11
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %6, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %39 unwind label %83

39:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 0, i32 noundef 2, i32 noundef 1)
          to label %40 unwind label %61

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %92, %40
  %42 = load i32, ptr %18, align 4, !tbaa !5
  %43 = icmp slt i32 %42, 10
  br i1 %43, label %87, label %44

44:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %108

45:                                               ; preds = %2
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %8, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %9, align 4
  br label %114

49:                                               ; preds = %21
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %8, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %9, align 4
  br label %113

53:                                               ; preds = %22
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %8, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %9, align 4
  br label %112

57:                                               ; preds = %23
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %8, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %9, align 4
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %12) #7
  br label %112

61:                                               ; preds = %108, %39, %36, %34, %24
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %8, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %9, align 4
  br label %111

65:                                               ; preds = %26
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %8, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %9, align 4
  br label %73

69:                                               ; preds = %29
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %8, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  br label %73

73:                                               ; preds = %69, %65
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  br label %111

74:                                               ; preds = %30
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %8, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %9, align 4
  br label %82

78:                                               ; preds = %33
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %8, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %82

82:                                               ; preds = %78, %74
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %111

83:                                               ; preds = %38
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %8, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  br label %111

87:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  store i8 1, ptr %19, align 1, !tbaa !11
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %6, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %88 unwind label %95

88:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %89 unwind label %99

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  store i8 0, ptr %20, align 1, !tbaa !11
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %6, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %90 unwind label %103

90:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %91 unwind label %99

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %18, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %18, align 4, !tbaa !5
  br label %41, !llvm.loop !13

95:                                               ; preds = %87
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %8, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %107

99:                                               ; preds = %90, %88
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %8, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %9, align 4
  br label %107

103:                                              ; preds = %89
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %8, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  br label %107

107:                                              ; preds = %103, %99, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %111

108:                                              ; preds = %44
  %109 = load ptr, ptr %5, align 8, !tbaa !9
  invoke void @_ZN7sc_core23sc_close_vcd_trace_fileEPNS_13sc_trace_fileE(ptr noundef %109)
          to label %110 unwind label %61

110:                                              ; preds = %108
  call void @_ZN5proc1D2Ev(ptr noundef nonnull align 8 dereferenceable(496) %11) #7
  call void @llvm.lifetime.end.p0(i64 496, ptr %11) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt5sc_lvILi4EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %10) #7
  call void @llvm.lifetime.end.p0(i64 248, ptr %10) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt5sc_bvILi4EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(232) %7) #7
  call void @llvm.lifetime.end.p0(i64 232, ptr %7) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %6) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret i32 0

111:                                              ; preds = %107, %83, %82, %73, %61
  call void @_ZN5proc1D2Ev(ptr noundef nonnull align 8 dereferenceable(496) %11) #7
  br label %112

112:                                              ; preds = %111, %57, %53
  call void @llvm.lifetime.end.p0(i64 496, ptr %11) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt5sc_lvILi4EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %10) #7
  br label %113

113:                                              ; preds = %112, %49
  call void @llvm.lifetime.end.p0(i64 248, ptr %10) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt5sc_bvILi4EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(232) %7) #7
  br label %114

114:                                              ; preds = %113, %45
  call void @llvm.lifetime.end.p0(i64 232, ptr %7) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %6) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %115

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

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

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

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

declare void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5proc1C2EN7sc_core14sc_module_nameERNS0_9sc_signalIbLNS0_16sc_writer_policyE0EEERNS2_IN5sc_dt5sc_bvILi4EEELS3_0EEERNS2_INS6_5sc_lvILi4EEELS3_0EEE(ptr noundef nonnull align 8 dereferenceable(496), ptr noundef, ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #1 align 2

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

declare noundef ptr @_ZN7sc_core24sc_create_vcd_trace_fileEPKc(ptr noundef) #2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_traceIN5sc_dt5sc_bvILi4EEEEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_traceIN5sc_dt5sc_lvILi4EEEEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

declare void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2

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

declare void @_ZN7sc_core23sc_close_vcd_trace_fileEPNS_13sc_trace_fileE(ptr noundef) #2

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

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

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

; Function Attrs: nounwind
declare void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224)) 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = { 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 = { 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 #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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.sc_core::sc_signal.18" = type { %"class.sc_core::sc_signal_inout_if.19", %"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.19" = type { %"class.sc_core::sc_signal_in_if.20", %"class.sc_core::sc_signal_write_if.21" }
%"class.sc_core::sc_signal_in_if.20" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_interface" = type { ptr }
%"class.sc_core::sc_signal_write_if.21" = 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 }
%"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] }
%"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_signal" = type { %"class.sc_core::sc_signal_inout_if", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, %"class.sc_dt::sc_bv", i64, %"class.sc_dt::sc_bv" }
%"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_signal_write_if" = type { %"class.sc_core::sc_interface" }
%"class.sc_dt::sc_bv" = type { %"class.sc_dt::sc_bv_base" }
%"class.sc_dt::sc_bv_base" = type { %"class.sc_dt::sc_proxy", i32, i32, ptr }
%"class.sc_dt::sc_proxy" = type { ptr }
%"class.sc_core::sc_signal.14" = type { %"class.sc_core::sc_signal_inout_if.15", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, %"class.sc_dt::sc_lv", i64, %"class.sc_dt::sc_lv" }
%"class.sc_core::sc_signal_inout_if.15" = type { %"class.sc_core::sc_signal_in_if.16", %"class.sc_core::sc_signal_write_if.17" }
%"class.sc_core::sc_signal_in_if.16" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_signal_write_if.17" = type { %"class.sc_core::sc_interface" }
%"class.sc_dt::sc_lv" = type { %"class.sc_dt::sc_lv_base" }
%"class.sc_dt::sc_lv_base" = type { %"class.sc_dt::sc_proxy.13", i32, i32, ptr, ptr }
%"class.sc_dt::sc_proxy.13" = type { ptr }
%struct.proc1 = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", ptr, ptr, %"class.sc_dt::sc_signed", %"class.sc_dt::sc_unsigned" }
%"class.sc_core::sc_module" = type { %"class.sc_core::sc_object", %"class.sc_core::sc_process_host", %"class.sc_core::sc_sensitive", %"class.sc_core::sc_sensitive_pos", %"class.sc_core::sc_sensitive_neg", i8, ptr, i32, ptr, ptr }
%"class.sc_core::sc_process_host" = type { ptr }
%"class.sc_core::sc_sensitive" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_pos" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_neg" = type { ptr, i32, ptr }
%"class.sc_core::sc_in" = type { %"class.sc_core::sc_port", ptr, ptr, ptr, ptr }
%"class.sc_core::sc_port" = type { %"class.sc_core::sc_port_b" }
%"class.sc_core::sc_port_b" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.8" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_dt::sc_signed" = type { %"class.sc_dt::sc_value_base", i32, i32, i32, ptr }
%"class.sc_dt::sc_value_base" = type { ptr }
%"class.sc_dt::sc_unsigned" = type { %"class.sc_dt::sc_value_base", i32, i32, i32, ptr }
%"class.sc_core::sc_module_name" = type <{ ptr, ptr, ptr, ptr, i8, [7 x i8] }>
%"class.std::allocator.5" = type { i8 }

@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @sc_main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.sc_core::sc_signal.18", align 8
  %4 = alloca %"class.sc_core::sc_signal", align 8
  %5 = alloca %"class.sc_core::sc_signal.14", align 8
  %6 = alloca %struct.proc1, align 8
  %7 = alloca %"class.sc_core::sc_module_name", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator.5", align 1
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator.5", align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %3) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3)
  call void @llvm.lifetime.start.p0(i64 232, ptr nonnull %4) #7
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt5sc_bvILi4EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(232) %4)
          to label %15 unwind label %30

15:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 248, ptr nonnull %5) #7
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt5sc_lvILi4EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %5)
          to label %16 unwind label %32

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 496, ptr nonnull %6) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %7, ptr noundef nonnull @.str.5)
          to label %17 unwind label %34

17:                                               ; preds = %16
  invoke void @_ZN5proc1C2EN7sc_core14sc_module_nameERNS0_9sc_signalIbLNS0_16sc_writer_policyE0EEERNS2_IN5sc_dt5sc_bvILi4EEELS3_0EEERNS2_INS6_5sc_lvILi4EEELS3_0EEE(ptr noundef nonnull align 8 dereferenceable(496) %6, ptr noundef nonnull %7, ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 8 dereferenceable(232) %4, ptr noundef nonnull align 8 dereferenceable(248) %5)
          to label %18 unwind label %36

18:                                               ; preds = %17
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %7) #7
  %19 = invoke noundef ptr @_ZN7sc_core24sc_create_vcd_trace_fileEPKc(ptr noundef nonnull @.str.6)
          to label %20 unwind label %38

20:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %21 unwind label %40

21:                                               ; preds = %20
  %22 = getelementptr inbounds i8, ptr %6, i64 432
  invoke void @_ZN7sc_core8sc_traceEPNS_13sc_trace_fileERKN5sc_dt9sc_signedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %19, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %23 unwind label %42

23:                                               ; preds = %21
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #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.8, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %24 unwind label %45

24:                                               ; preds = %23
  %25 = getelementptr inbounds i8, ptr %6, i64 464
  invoke void @_ZN7sc_core8sc_traceEPNS_13sc_trace_fileERKN5sc_dt11sc_unsignedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %19, ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %26 unwind label %47

26:                                               ; preds = %24
  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
  invoke void @_ZN7sc_core8sc_traceIN5sc_dt5sc_bvILi4EEEEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %19, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.9)
          to label %27 unwind label %38

27:                                               ; preds = %26
  invoke void @_ZN7sc_core8sc_traceIN5sc_dt5sc_lvILi4EEEEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %19, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull @.str.10)
          to label %28 unwind label %38

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #7
  store i8 0, ptr %12, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %29 unwind label %50

29:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 0, i32 noundef 2, i32 noundef 1)
          to label %.preheader.preheader unwind label %38

.preheader.preheader:                             ; preds = %29
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  store i8 1, ptr %13, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %52 unwind label %83

30:                                               ; preds = %2
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %93

32:                                               ; preds = %15
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %92

34:                                               ; preds = %16
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %91

36:                                               ; preds = %17
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %7) #7
  br label %91

38:                                               ; preds = %82, %29, %27, %26, %18
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %90

40:                                               ; preds = %20
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %44

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

44:                                               ; preds = %42, %40
  %.pn = phi { ptr, i32 } [ %43, %42 ], [ %41, %40 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %90

45:                                               ; preds = %23
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %49

47:                                               ; preds = %24
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %49

49:                                               ; preds = %47, %45
  %.pn17 = phi { ptr, i32 } [ %48, %47 ], [ %46, %45 ]
  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
  br label %90

50:                                               ; preds = %28
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  br label %90

52:                                               ; preds = %.preheader.preheader
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %53 unwind label %85

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  store i8 0, ptr %14, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %54 unwind label %87

54:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %.preheader.1 unwind label %85

.preheader.1:                                     ; preds = %54
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  store i8 1, ptr %13, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %55 unwind label %83

55:                                               ; preds = %.preheader.1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %56 unwind label %85

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  store i8 0, ptr %14, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %57 unwind label %87

57:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %.preheader.2 unwind label %85

.preheader.2:                                     ; preds = %57
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  store i8 1, ptr %13, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %58 unwind label %83

58:                                               ; preds = %.preheader.2
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %59 unwind label %85

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  store i8 0, ptr %14, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %60 unwind label %87

60:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %.preheader.3 unwind label %85

.preheader.3:                                     ; preds = %60
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  store i8 1, ptr %13, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %61 unwind label %83

61:                                               ; preds = %.preheader.3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %62 unwind label %85

62:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  store i8 0, ptr %14, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %63 unwind label %87

63:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %.preheader.4 unwind label %85

.preheader.4:                                     ; preds = %63
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  store i8 1, ptr %13, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %64 unwind label %83

64:                                               ; preds = %.preheader.4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %65 unwind label %85

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  store i8 0, ptr %14, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %66 unwind label %87

66:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %.preheader.5 unwind label %85

.preheader.5:                                     ; preds = %66
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  store i8 1, ptr %13, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %67 unwind label %83

67:                                               ; preds = %.preheader.5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %68 unwind label %85

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  store i8 0, ptr %14, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %69 unwind label %87

69:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %.preheader.6 unwind label %85

.preheader.6:                                     ; preds = %69
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  store i8 1, ptr %13, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %70 unwind label %83

70:                                               ; preds = %.preheader.6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %71 unwind label %85

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  store i8 0, ptr %14, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %72 unwind label %87

72:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %.preheader.7 unwind label %85

.preheader.7:                                     ; preds = %72
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  store i8 1, ptr %13, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %73 unwind label %83

73:                                               ; preds = %.preheader.7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %74 unwind label %85

74:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  store i8 0, ptr %14, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %75 unwind label %87

75:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %.preheader.8 unwind label %85

.preheader.8:                                     ; preds = %75
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  store i8 1, ptr %13, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %76 unwind label %83

76:                                               ; preds = %.preheader.8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %77 unwind label %85

77:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  store i8 0, ptr %14, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %78 unwind label %87

78:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %.preheader.9 unwind label %85

.preheader.9:                                     ; preds = %78
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  store i8 1, ptr %13, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %79 unwind label %83

79:                                               ; preds = %.preheader.9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %80 unwind label %85

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  store i8 0, ptr %14, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %81 unwind label %87

81:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 10, i32 noundef 2, i32 noundef 1)
          to label %82 unwind label %85

82:                                               ; preds = %81
  invoke void @_ZN7sc_core23sc_close_vcd_trace_fileEPNS_13sc_trace_fileE(ptr noundef %19)
          to label %89 unwind label %38

83:                                               ; preds = %.preheader.9, %.preheader.8, %.preheader.7, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  br label %90

85:                                               ; preds = %81, %79, %78, %76, %75, %73, %72, %70, %69, %67, %66, %64, %63, %61, %60, %58, %57, %55, %54, %52
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %90

87:                                               ; preds = %80, %77, %74, %71, %68, %65, %62, %59, %56, %53
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  br label %90

89:                                               ; preds = %82
  call void @_ZN5proc1D2Ev(ptr noundef nonnull align 8 dereferenceable(496) %6) #7
  call void @llvm.lifetime.end.p0(i64 496, ptr nonnull %6) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt5sc_lvILi4EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %5) #7
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %5) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt5sc_bvILi4EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(232) %4) #7
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %4) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %3) #7
  ret i32 0

90:                                               ; preds = %83, %85, %87, %50, %49, %44, %38
  %.pn19.pn = phi { ptr, i32 } [ %39, %38 ], [ %51, %50 ], [ %.pn17, %49 ], [ %.pn, %44 ], [ %86, %85 ], [ %88, %87 ], [ %84, %83 ]
  call void @_ZN5proc1D2Ev(ptr noundef nonnull align 8 dereferenceable(496) %6) #7
  br label %91

91:                                               ; preds = %90, %36, %34
  %.pn19.pn.pn = phi { ptr, i32 } [ %.pn19.pn, %90 ], [ %37, %36 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 496, ptr nonnull %6) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt5sc_lvILi4EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %5) #7
  br label %92

92:                                               ; preds = %91, %32
  %.pn19.pn.pn.pn = phi { ptr, i32 } [ %.pn19.pn.pn, %91 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %5) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt5sc_bvILi4EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(232) %4) #7
  br label %93

93:                                               ; preds = %92, %30
  %.pn19.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn19.pn.pn.pn, %92 ], [ %31, %30 ]
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %4) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn19.pn.pn.pn.pn
}

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

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

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

declare void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5proc1C2EN7sc_core14sc_module_nameERNS0_9sc_signalIbLNS0_16sc_writer_policyE0EEERNS2_IN5sc_dt5sc_bvILi4EEELS3_0EEERNS2_INS6_5sc_lvILi4EEELS3_0EEE(ptr noundef nonnull align 8 dereferenceable(496), ptr noundef, ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #1 align 2

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

declare noundef ptr @_ZN7sc_core24sc_create_vcd_trace_fileEPKc(ptr noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_traceIN5sc_dt5sc_bvILi4EEEEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_traceIN5sc_dt5sc_lvILi4EEEEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5

declare void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2

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

declare void @_ZN7sc_core23sc_close_vcd_trace_fileEPNS_13sc_trace_fileE(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nounwind
declare void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224)) 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = { 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 = { 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 #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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass