; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/examples/isqrt (isqrt)

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

%struct.stimuli = type { i32, i32 }
%"struct.sc_core::sc_bind_proxy" = type { ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"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 }
%"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_time" = type { i64 }
%"class.sc_core::sc_event" = type { %"class.std::__cxx11::basic_string", ptr, ptr, i32, i32, ptr, %"class.std::vector.38", %"class.std::vector.38", %"class.std::vector.43", %"class.std::vector.43" }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = 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.43" = type { %"struct.std::_Vector_base.44" }
%"struct.std::_Vector_base.44" = 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_signal.48" = type { %"class.sc_core::sc_signal_inout_if.49", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, %"class.sc_dt::sc_uint", i64, %"class.sc_dt::sc_uint" }
%"class.sc_core::sc_signal_inout_if.49" = type { %"class.sc_core::sc_signal_in_if.50", %"class.sc_core::sc_signal_write_if.51" }
%"class.sc_core::sc_signal_in_if.50" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_signal_write_if.51" = type { %"class.sc_core::sc_interface" }
%"class.sc_dt::sc_uint" = type { %"class.sc_dt::sc_uint_base" }
%"class.sc_dt::sc_uint_base" = type { %"class.sc_dt::sc_value_base", i64, i32, i32 }
%"class.sc_dt::sc_value_base" = type { ptr }
%"class.sc_core::sc_signal.52" = type { %"class.sc_core::sc_signal_inout_if.53", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, %"class.sc_dt::sc_uint.37", i64, %"class.sc_dt::sc_uint.37" }
%"class.sc_core::sc_signal_inout_if.53" = type { %"class.sc_core::sc_signal_in_if.54", %"class.sc_core::sc_signal_write_if.55" }
%"class.sc_core::sc_signal_in_if.54" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_signal_write_if.55" = type { %"class.sc_core::sc_interface" }
%"class.sc_dt::sc_uint.37" = type { %"class.sc_dt::sc_uint_base" }
%"class.sc_core::sc_module_name" = type <{ ptr, ptr, ptr, ptr, i8, [7 x i8] }>

@S = external dso_local global [786 x %struct.stimuli], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZN7sc_core17SC_BIND_PROXY_NILE = external global %"struct.sc_core::sc_bind_proxy", align 8
@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @sc_main(i32 noundef %0, ptr noundef %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %"class.sc_core::sc_clock", align 8
  %6 = alloca %"class.sc_core::sc_signal", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.sc_core::sc_signal", align 8
  %10 = alloca %"class.sc_core::sc_signal", align 8
  %11 = alloca %"class.sc_core::sc_signal", align 8
  %12 = alloca %"class.sc_core::sc_signal", align 8
  %13 = alloca %"class.sc_core::sc_signal.48", align 8
  %14 = alloca %"class.sc_core::sc_signal.52", align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"class.sc_core::sc_module_name", align 8
  %18 = alloca i1, align 1
  %19 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %20 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %21 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %22 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %23 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %24 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %25 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %26 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %27 = alloca i8, align 1
  %28 = alloca i8, align 1
  %29 = alloca i8, align 1
  %30 = alloca i32, align 4
  %31 = alloca i8, align 1
  %32 = alloca %"class.sc_dt::sc_uint", align 8
  %33 = 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 592, ptr %5) #8
  call void @_ZN7sc_core8sc_clockC1Ev(ptr noundef nonnull align 8 dereferenceable(592) %5)
  call void @llvm.lifetime.start.p0(i64 224, ptr %6) #8
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %6)
          to label %34 unwind label %101

34:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 224, ptr %9) #8
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %9)
          to label %35 unwind label %105

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 224, ptr %10) #8
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %10)
          to label %36 unwind label %109

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 224, ptr %11) #8
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %11)
          to label %37 unwind label %113

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 224, ptr %12) #8
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %12)
          to label %38 unwind label %117

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 232, ptr %13) #8
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi18EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(232) %13)
          to label %39 unwind label %121

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 232, ptr %14) #8
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi10EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(232) %14)
          to label %40 unwind label %125

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %41 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1696) #9
          to label %42 unwind label %129

42:                                               ; preds = %40
  store i1 true, ptr %18, align 1
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %17, ptr noundef @.str)
          to label %43 unwind label %133

43:                                               ; preds = %42
  invoke void @_ZN3isqC2EN7sc_core14sc_module_nameE(ptr noundef nonnull align 8 dereferenceable(1696) %41, ptr noundef %17)
          to label %44 unwind label %137

44:                                               ; preds = %43
  store i1 false, ptr %18, align 1
  store ptr %41, ptr %16, align 8, !tbaa !9
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %17) #8
  %45 = load ptr, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  %46 = load ptr, ptr %6, align 8, !tbaa !11
  %47 = getelementptr i8, ptr %46, i64 -48
  %48 = load i64, ptr %47, align 8
  %49 = getelementptr inbounds i8, ptr %6, i64 %48
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(8) %49)
          to label %50 unwind label %145

50:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %51 = load ptr, ptr %5, align 8, !tbaa !11
  %52 = getelementptr i8, ptr %51, i64 -48
  %53 = load i64, ptr %52, align 8
  %54 = getelementptr inbounds i8, ptr %5, i64 %53
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %54)
          to label %55 unwind label %149

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %56 = load ptr, ptr %9, align 8, !tbaa !11
  %57 = getelementptr i8, ptr %56, i64 -48
  %58 = load i64, ptr %57, align 8
  %59 = getelementptr inbounds i8, ptr %9, i64 %58
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(8) %59)
          to label %60 unwind label %153

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  %61 = load ptr, ptr %10, align 8, !tbaa !11
  %62 = getelementptr i8, ptr %61, i64 -48
  %63 = load i64, ptr %62, align 8
  %64 = getelementptr inbounds i8, ptr %10, i64 %63
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) %64)
          to label %65 unwind label %157

65:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  %66 = load ptr, ptr %13, align 8, !tbaa !11
  %67 = getelementptr i8, ptr %66, i64 -48
  %68 = load i64, ptr %67, align 8
  %69 = getelementptr inbounds i8, ptr %13, i64 %68
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(8) %69)
          to label %70 unwind label %161

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #8
  %71 = load ptr, ptr %12, align 8, !tbaa !11
  %72 = getelementptr i8, ptr %71, i64 -48
  %73 = load i64, ptr %72, align 8
  %74 = getelementptr inbounds i8, ptr %12, i64 %73
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) %74)
          to label %75 unwind label %165

75:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  %76 = load ptr, ptr %11, align 8, !tbaa !11
  %77 = getelementptr i8, ptr %76, i64 -48
  %78 = load i64, ptr %77, align 8
  %79 = getelementptr inbounds i8, ptr %11, i64 %78
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %79)
          to label %80 unwind label %169

80:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  %81 = load ptr, ptr %14, align 8, !tbaa !11
  %82 = getelementptr i8, ptr %81, i64 -48
  %83 = load i64, ptr %82, align 8
  %84 = getelementptr inbounds i8, ptr %14, i64 %83
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(8) %84)
          to label %85 unwind label %173

85:                                               ; preds = %80
  invoke void @_ZN7sc_core9sc_moduleclERKNS_13sc_bind_proxyES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(232) %45, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE)
          to label %86 unwind label %173

86:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #8
  store i8 0, ptr %27, align 1, !tbaa !13
  %87 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %6, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %88 unwind label %184

88:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #8
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 2, i32 noundef 2, i32 noundef 1)
          to label %89 unwind label %129

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #8
  store i8 1, ptr %28, align 1, !tbaa !13
  %90 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %6, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %91 unwind label %188

91:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 2, i32 noundef 2, i32 noundef 1)
          to label %92 unwind label %129

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #8
  store i8 1, ptr %29, align 1, !tbaa !13
  %93 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %12, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %94 unwind label %192

94:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #8
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
          to label %95 unwind label %129

95:                                               ; preds = %94
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %279, %95
  %97 = load i32, ptr %30, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = icmp ult i64 %98, 786
  br i1 %99, label %196, label %100

100:                                              ; preds = %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %283

101:                                              ; preds = %2
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %7, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %8, align 4
  br label %309

105:                                              ; preds = %34
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %7, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %8, align 4
  br label %308

109:                                              ; preds = %35
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %7, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %8, align 4
  br label %307

113:                                              ; preds = %36
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %7, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %8, align 4
  br label %306

117:                                              ; preds = %37
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %7, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %8, align 4
  br label %305

121:                                              ; preds = %38
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %7, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %8, align 4
  br label %304

125:                                              ; preds = %39
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %7, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %8, align 4
  br label %303

129:                                              ; preds = %298, %296, %293, %291, %288, %286, %94, %91, %88, %40
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %7, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %8, align 4
  br label %302

133:                                              ; preds = %42
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %7, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %8, align 4
  br label %141

137:                                              ; preds = %43
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %7, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %8, align 4
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %17) #8
  br label %141

141:                                              ; preds = %137, %133
  %142 = load i1, ptr %18, align 1
  br i1 %142, label %143, label %144

143:                                              ; preds = %141
  call void @_ZdlPvm(ptr noundef %41, i64 noundef 1696) #10
  br label %144

144:                                              ; preds = %143, %141
  br label %302

145:                                              ; preds = %44
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %7, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %8, align 4
  br label %183

149:                                              ; preds = %50
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %7, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %8, align 4
  br label %182

153:                                              ; preds = %55
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %7, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %8, align 4
  br label %181

157:                                              ; preds = %60
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %7, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %8, align 4
  br label %180

161:                                              ; preds = %65
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %7, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %8, align 4
  br label %179

165:                                              ; preds = %70
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %7, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %8, align 4
  br label %178

169:                                              ; preds = %75
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %7, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %8, align 4
  br label %177

173:                                              ; preds = %85, %80
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %7, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  br label %177

177:                                              ; preds = %173, %169
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  br label %178

178:                                              ; preds = %177, %165
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  br label %179

179:                                              ; preds = %178, %161
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  br label %180

180:                                              ; preds = %179, %157
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  br label %181

181:                                              ; preds = %180, %153
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  br label %182

182:                                              ; preds = %181, %149
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  br label %183

183:                                              ; preds = %182, %145
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  br label %302

184:                                              ; preds = %86
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %7, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #8
  br label %302

188:                                              ; preds = %89
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %7, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  br label %302

192:                                              ; preds = %92
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %7, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #8
  br label %302

196:                                              ; preds = %96
  br label %197

197:                                              ; preds = %204, %196
  %198 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(224) %9)
          to label %199 unwind label %205

199:                                              ; preds = %197
  %200 = load i8, ptr %198, align 1, !tbaa !13, !range !15, !noundef !16
  %201 = trunc i8 %200 to i1
  %202 = xor i1 %201, true
  br i1 %202, label %203, label %209

203:                                              ; preds = %199
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
          to label %204 unwind label %205

204:                                              ; preds = %203
  br label %197, !llvm.loop !17

205:                                              ; preds = %255, %253, %241, %231, %229, %223, %219, %203, %197
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %7, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %8, align 4
  br label %282

209:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #8
  store i8 1, ptr %31, align 1, !tbaa !13
  %210 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %10, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %211 unwind label %261

211:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #8
  %212 = load i32, ptr %30, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [786 x %struct.stimuli], ptr @S, i64 0, i64 %213
  %215 = getelementptr inbounds %struct.stimuli, ptr %214, i32 0, i32 0
  %216 = load i32, ptr %215, align 8, !tbaa !19
  invoke void @_ZN5sc_dt7sc_uintILi18EEC2Ej(ptr noundef nonnull align 8 dereferenceable(24) %32, i32 noundef %216)
          to label %217 unwind label %265

217:                                              ; preds = %211
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi18EEELNS_16sc_writer_policyE0EE5writeERKS3_(ptr noundef nonnull align 8 dereferenceable(232) %13, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %218 unwind label %269

218:                                              ; preds = %217
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #8
  br label %219

219:                                              ; preds = %225, %218
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
          to label %220 unwind label %205

220:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #8
  store i8 0, ptr %33, align 1, !tbaa !13
  %221 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %10, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %222 unwind label %274

222:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #8
  br label %223

223:                                              ; preds = %222
  %224 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(224) %11)
          to label %225 unwind label %205

225:                                              ; preds = %223
  %226 = load i8, ptr %224, align 1, !tbaa !13, !range !15, !noundef !16
  %227 = trunc i8 %226 to i1
  %228 = xor i1 %227, true
  br i1 %228, label %219, label %229, !llvm.loop !21

229:                                              ; preds = %225
  %230 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7sc_core9sc_signalIN5sc_dt7sc_uintILi10EEELNS_16sc_writer_policyE0EE4readEv(ptr noundef nonnull align 8 dereferenceable(232) %14)
          to label %231 unwind label %205

231:                                              ; preds = %229
  %232 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %230)
          to label %233 unwind label %205

233:                                              ; preds = %231
  %234 = load i32, ptr %30, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [786 x %struct.stimuli], ptr @S, i64 0, i64 %235
  %237 = getelementptr inbounds %struct.stimuli, ptr %236, i32 0, i32 1
  %238 = load i32, ptr %237, align 4, !tbaa !22
  %239 = zext i32 %238 to i64
  %240 = icmp ne i64 %232, %239
  br i1 %240, label %241, label %278

241:                                              ; preds = %233
  %242 = load i32, ptr %30, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [786 x %struct.stimuli], ptr @S, i64 0, i64 %243
  %245 = getelementptr inbounds %struct.stimuli, ptr %244, i32 0, i32 0
  %246 = load i32, ptr %245, align 8, !tbaa !19
  %247 = load i32, ptr %30, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [786 x %struct.stimuli], ptr @S, i64 0, i64 %248
  %250 = getelementptr inbounds %struct.stimuli, ptr %249, i32 0, i32 1
  %251 = load i32, ptr %250, align 4, !tbaa !22
  %252 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7sc_core9sc_signalIN5sc_dt7sc_uintILi10EEELNS_16sc_writer_policyE0EE4readEv(ptr noundef nonnull align 8 dereferenceable(232) %14)
          to label %253 unwind label %205

253:                                              ; preds = %241
  %254 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %252)
          to label %255 unwind label %205

255:                                              ; preds = %253
  %256 = trunc i64 %254 to i32
  %257 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %246, i32 noundef %251, i32 noundef %256)
          to label %258 unwind label %205

258:                                              ; preds = %255
  %259 = load i32, ptr %15, align 4, !tbaa !5
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %15, align 4, !tbaa !5
  br label %278

261:                                              ; preds = %209
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %7, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #8
  br label %282

265:                                              ; preds = %211
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %7, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %8, align 4
  br label %273

269:                                              ; preds = %217
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %7, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %8, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  br label %273

273:                                              ; preds = %269, %265
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #8
  br label %282

274:                                              ; preds = %220
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %7, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #8
  br label %282

278:                                              ; preds = %258, %233
  br label %279

279:                                              ; preds = %278
  %280 = load i32, ptr %30, align 4, !tbaa !5
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %30, align 4, !tbaa !5
  br label %96, !llvm.loop !23

282:                                              ; preds = %274, %273, %261, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %302

283:                                              ; preds = %100
  %284 = load i32, ptr %15, align 4, !tbaa !5
  %285 = icmp ne i32 %284, 0
  br i1 %285, label %286, label %296

286:                                              ; preds = %283
  %287 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %288 unwind label %129

288:                                              ; preds = %286
  %289 = load i32, ptr %15, align 4, !tbaa !5
  %290 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %287, i32 noundef %289)
          to label %291 unwind label %129

291:                                              ; preds = %288
  %292 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %290, ptr noundef @.str.4)
          to label %293 unwind label %129

293:                                              ; preds = %291
  %294 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %292, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %295 unwind label %129

295:                                              ; preds = %293
  br label %301

296:                                              ; preds = %283
  %297 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
          to label %298 unwind label %129

298:                                              ; preds = %296
  %299 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %297, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %300 unwind label %129

300:                                              ; preds = %298
  br label %301

301:                                              ; preds = %300, %295
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi10EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(232) %14) #8
  call void @llvm.lifetime.end.p0(i64 232, ptr %14) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi18EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(232) %13) #8
  call void @llvm.lifetime.end.p0(i64 232, ptr %13) #8
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %12) #8
  call void @llvm.lifetime.end.p0(i64 224, ptr %12) #8
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %11) #8
  call void @llvm.lifetime.end.p0(i64 224, ptr %11) #8
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %10) #8
  call void @llvm.lifetime.end.p0(i64 224, ptr %10) #8
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %9) #8
  call void @llvm.lifetime.end.p0(i64 224, ptr %9) #8
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %6) #8
  call void @llvm.lifetime.end.p0(i64 224, ptr %6) #8
  call void @_ZN7sc_core8sc_clockD1Ev(ptr noundef nonnull align 8 dereferenceable(592) %5) #8
  call void @llvm.lifetime.end.p0(i64 592, ptr %5) #8
  ret i32 0

302:                                              ; preds = %282, %192, %188, %184, %183, %144, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi10EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(232) %14) #8
  br label %303

303:                                              ; preds = %302, %125
  call void @llvm.lifetime.end.p0(i64 232, ptr %14) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi18EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(232) %13) #8
  br label %304

304:                                              ; preds = %303, %121
  call void @llvm.lifetime.end.p0(i64 232, ptr %13) #8
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %12) #8
  br label %305

305:                                              ; preds = %304, %117
  call void @llvm.lifetime.end.p0(i64 224, ptr %12) #8
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %11) #8
  br label %306

306:                                              ; preds = %305, %113
  call void @llvm.lifetime.end.p0(i64 224, ptr %11) #8
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %10) #8
  br label %307

307:                                              ; preds = %306, %109
  call void @llvm.lifetime.end.p0(i64 224, ptr %10) #8
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %9) #8
  br label %308

308:                                              ; preds = %307, %105
  call void @llvm.lifetime.end.p0(i64 224, ptr %9) #8
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %6) #8
  br label %309

309:                                              ; preds = %308, %101
  call void @llvm.lifetime.end.p0(i64 224, ptr %6) #8
  call void @_ZN7sc_core8sc_clockD1Ev(ptr noundef nonnull align 8 dereferenceable(592) %5) #8
  call void @llvm.lifetime.end.p0(i64 592, ptr %5) #8
  br label %310

310:                                              ; preds = %309
  %311 = load ptr, ptr %7, align 8
  %312 = load i32, ptr %8, align 4
  %313 = insertvalue { ptr, i32 } poison, ptr %311, 0
  %314 = insertvalue { ptr, i32 } %313, i32 %312, 1
  resume { ptr, i32 } %314
}

declare void @_ZN7sc_core8sc_clockC1Ev(ptr noundef nonnull align 8 dereferenceable(592)) unnamed_addr #3

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

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

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

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

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

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

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

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

declare void @_ZN7sc_core9sc_moduleclERKNS_13sc_bind_proxyES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

declare void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 1 dereferenceable(1)) #2 align 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) #7

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi18EEELNS_16sc_writer_policyE0EE5writeERKS3_(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

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

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

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #7

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #7

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

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

; Function Attrs: nounwind
declare void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN7sc_core8sc_clockD1Ev(ptr noundef nonnull align 8 dereferenceable(592)) unnamed_addr #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTS7stimuli", !6, i64 0, !6, i64 4}
!21 = distinct !{!21, !18}
!22 = !{!20, !6, i64 4}
!23 = distinct !{!23, !18}


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

%struct.stimuli = type { i32, i32 }
%"struct.sc_core::sc_bind_proxy" = type { ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"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 }
%"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_time" = type { i64 }
%"class.sc_core::sc_event" = type { %"class.std::__cxx11::basic_string", ptr, ptr, i32, i32, ptr, %"class.std::vector.38", %"class.std::vector.38", %"class.std::vector.43", %"class.std::vector.43" }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = 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.43" = type { %"struct.std::_Vector_base.44" }
%"struct.std::_Vector_base.44" = 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_signal.48" = type { %"class.sc_core::sc_signal_inout_if.49", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, %"class.sc_dt::sc_uint", i64, %"class.sc_dt::sc_uint" }
%"class.sc_core::sc_signal_inout_if.49" = type { %"class.sc_core::sc_signal_in_if.50", %"class.sc_core::sc_signal_write_if.51" }
%"class.sc_core::sc_signal_in_if.50" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_signal_write_if.51" = type { %"class.sc_core::sc_interface" }
%"class.sc_dt::sc_uint" = type { %"class.sc_dt::sc_uint_base" }
%"class.sc_dt::sc_uint_base" = type { %"class.sc_dt::sc_value_base", i64, i32, i32 }
%"class.sc_dt::sc_value_base" = type { ptr }
%"class.sc_core::sc_signal.52" = type { %"class.sc_core::sc_signal_inout_if.53", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, %"class.sc_dt::sc_uint.37", i64, %"class.sc_dt::sc_uint.37" }
%"class.sc_core::sc_signal_inout_if.53" = type { %"class.sc_core::sc_signal_in_if.54", %"class.sc_core::sc_signal_write_if.55" }
%"class.sc_core::sc_signal_in_if.54" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_signal_write_if.55" = type { %"class.sc_core::sc_interface" }
%"class.sc_dt::sc_uint.37" = type { %"class.sc_dt::sc_uint_base" }
%"class.sc_core::sc_module_name" = type <{ ptr, ptr, ptr, ptr, i8, [7 x i8] }>

@S = external dso_local local_unnamed_addr global [786 x %struct.stimuli], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZN7sc_core17SC_BIND_PROXY_NILE = external global %"struct.sc_core::sc_bind_proxy", align 8
@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @sc_main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.sc_core::sc_clock", align 8
  %4 = alloca %"class.sc_core::sc_signal", align 8
  %5 = alloca %"class.sc_core::sc_signal", align 8
  %6 = alloca %"class.sc_core::sc_signal", align 8
  %7 = alloca %"class.sc_core::sc_signal", align 8
  %8 = alloca %"class.sc_core::sc_signal", align 8
  %9 = alloca %"class.sc_core::sc_signal.48", align 8
  %10 = alloca %"class.sc_core::sc_signal.52", align 8
  %11 = alloca %"class.sc_core::sc_module_name", align 8
  %12 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %13 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %14 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %15 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %16 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %17 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %18 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %19 = alloca %"struct.sc_core::sc_bind_proxy", align 8
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca %"class.sc_dt::sc_uint", align 8
  %25 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 592, ptr nonnull %3) #9
  call void @_ZN7sc_core8sc_clockC1Ev(ptr noundef nonnull align 8 dereferenceable(592) %3)
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %4) #9
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %4)
          to label %26 unwind label %87

26:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %5) #9
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %5)
          to label %27 unwind label %89

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %6) #9
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %6)
          to label %28 unwind label %91

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %7) #9
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %7)
          to label %29 unwind label %93

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %8) #9
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %8)
          to label %30 unwind label %95

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 232, ptr nonnull %9) #9
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi18EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(232) %9)
          to label %31 unwind label %97

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 232, ptr nonnull %10) #9
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi10EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(232) %10)
          to label %32 unwind label %99

32:                                               ; preds = %31
  %33 = invoke noalias noundef nonnull dereferenceable(1696) ptr @_Znwm(i64 noundef 1696) #10
          to label %34 unwind label %101

34:                                               ; preds = %32
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %11, ptr noundef nonnull @.str)
          to label %35 unwind label %103

35:                                               ; preds = %34
  invoke void @_ZN3isqC2EN7sc_core14sc_module_nameE(ptr noundef nonnull align 8 dereferenceable(1696) %33, ptr noundef nonnull %11)
          to label %36 unwind label %105

36:                                               ; preds = %35
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %11) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr i8, ptr %37, i64 -48
  %39 = load i64, ptr %38, align 8
  %40 = getelementptr inbounds i8, ptr %4, i64 %39
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %41 unwind label %108

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr i8, ptr %42, i64 -48
  %44 = load i64, ptr %43, align 8
  %45 = getelementptr inbounds i8, ptr %3, i64 %44
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %46 unwind label %110

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr i8, ptr %47, i64 -48
  %49 = load i64, ptr %48, align 8
  %50 = getelementptr inbounds i8, ptr %5, i64 %49
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) %50)
          to label %51 unwind label %112

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #9
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr i8, ptr %52, i64 -48
  %54 = load i64, ptr %53, align 8
  %55 = getelementptr inbounds i8, ptr %6, i64 %54
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %55)
          to label %56 unwind label %114

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #9
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr i8, ptr %57, i64 -48
  %59 = load i64, ptr %58, align 8
  %60 = getelementptr inbounds i8, ptr %9, i64 %59
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) %60)
          to label %61 unwind label %116

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #9
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr i8, ptr %62, i64 -48
  %64 = load i64, ptr %63, align 8
  %65 = getelementptr inbounds i8, ptr %8, i64 %64
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(8) %65)
          to label %66 unwind label %118

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #9
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr i8, ptr %67, i64 -48
  %69 = load i64, ptr %68, align 8
  %70 = getelementptr inbounds i8, ptr %7, i64 %69
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(8) %70)
          to label %71 unwind label %120

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #9
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr i8, ptr %72, i64 -48
  %74 = load i64, ptr %73, align 8
  %75 = getelementptr inbounds i8, ptr %10, i64 %74
  invoke void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(8) %75)
          to label %76 unwind label %122

76:                                               ; preds = %71
  invoke void @_ZN7sc_core9sc_moduleclERKNS_13sc_bind_proxyES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(232) %33, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE, ptr noundef nonnull align 8 dereferenceable(16) @_ZN7sc_core17SC_BIND_PROXY_NILE)
          to label %77 unwind label %122

77:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #9
  store i8 0, ptr %20, align 1, !tbaa !8
  %78 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %79 unwind label %131

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

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #9
  store i8 1, ptr %21, align 1, !tbaa !8
  %81 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %82 unwind label %133

82:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #9
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 2, i32 noundef 2, i32 noundef 1)
          to label %83 unwind label %101

83:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #9
  store i8 1, ptr %22, align 1, !tbaa !8
  %84 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %8, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %85 unwind label %135

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

.preheader:                                       ; preds = %85, %180
  %indvars.iv = phi i64 [ %indvars.iv.next, %180 ], [ 0, %85 ]
  %.01362 = phi i32 [ %.114, %180 ], [ 0, %85 ]
  br label %137

86:                                               ; preds = %180
  %.not = icmp eq i32 %.114, 0
  br i1 %.not, label %.invoke65, label %181

87:                                               ; preds = %2
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %197

89:                                               ; preds = %26
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %196

91:                                               ; preds = %27
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %195

93:                                               ; preds = %28
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %194

95:                                               ; preds = %29
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %193

97:                                               ; preds = %30
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %192

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

101:                                              ; preds = %.invoke65, %.invoke, %183, %181, %85, %82, %79, %32
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %190

103:                                              ; preds = %34
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %107

105:                                              ; preds = %35
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %11) #9
  br label %107

107:                                              ; preds = %103, %105
  %.pn = phi { ptr, i32 } [ %106, %105 ], [ %104, %103 ]
  call void @_ZdlPvm(ptr noundef nonnull %33, i64 noundef 1696) #11
  br label %190

108:                                              ; preds = %36
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %130

110:                                              ; preds = %41
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %129

112:                                              ; preds = %46
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %128

114:                                              ; preds = %51
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %127

116:                                              ; preds = %56
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %126

118:                                              ; preds = %61
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %125

120:                                              ; preds = %66
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %124

122:                                              ; preds = %76, %71
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  br label %124

124:                                              ; preds = %122, %120
  %.pn34 = phi { ptr, i32 } [ %123, %122 ], [ %121, %120 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  br label %125

125:                                              ; preds = %124, %118
  %.pn34.pn = phi { ptr, i32 } [ %.pn34, %124 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  br label %126

126:                                              ; preds = %125, %116
  %.pn34.pn.pn = phi { ptr, i32 } [ %.pn34.pn, %125 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  br label %127

127:                                              ; preds = %126, %114
  %.pn34.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn, %126 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  br label %128

128:                                              ; preds = %127, %112
  %.pn34.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn, %127 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  br label %129

129:                                              ; preds = %128, %110
  %.pn34.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn.pn, %128 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  br label %130

130:                                              ; preds = %129, %108
  %.pn34.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn.pn.pn, %129 ], [ %109, %108 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  br label %190

131:                                              ; preds = %77
  %132 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #9
  br label %190

133:                                              ; preds = %80
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #9
  br label %190

135:                                              ; preds = %83
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #9
  br label %190

137:                                              ; preds = %.preheader, %142
  %138 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(224) %5)
          to label %139 unwind label %.loopexit.split-lp

139:                                              ; preds = %137
  %140 = load i8, ptr %138, align 1, !tbaa !8, !range !11, !noundef !12
  %141 = trunc nuw i8 %140 to i1
  br i1 %141, label %143, label %142

142:                                              ; preds = %139
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
          to label %137 unwind label %.loopexit.split-lp, !llvm.loop !13

.loopexit:                                        ; preds = %150, %153
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %190

.loopexit.split-lp:                               ; preds = %137, %142
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %190

143:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #9
  store i8 1, ptr %23, align 1, !tbaa !8
  %144 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %6, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %145 unwind label %171

145:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %24) #9
  %146 = getelementptr inbounds [786 x %struct.stimuli], ptr @S, i64 0, i64 %indvars.iv
  %147 = load i32, ptr %146, align 8, !tbaa !15
  invoke void @_ZN5sc_dt7sc_uintILi18EEC2Ej(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef %147)
          to label %148 unwind label %173

148:                                              ; preds = %145
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi18EEELNS_16sc_writer_policyE0EE5writeERKS3_(ptr noundef nonnull align 8 dereferenceable(232) %9, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %149 unwind label %175

149:                                              ; preds = %148
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #9
  br label %150

150:                                              ; preds = %155, %149
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
          to label %151 unwind label %.loopexit

151:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #9
  store i8 0, ptr %25, align 1, !tbaa !8
  %152 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEaSERKb(ptr noundef nonnull align 8 dereferenceable(224) %6, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %153 unwind label %178

153:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #9
  %154 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEcvRKbEv(ptr noundef nonnull align 8 dereferenceable(224) %7)
          to label %155 unwind label %.loopexit

155:                                              ; preds = %153
  %156 = load i8, ptr %154, align 1, !tbaa !8, !range !11, !noundef !12
  %157 = trunc nuw i8 %156 to i1
  br i1 %157, label %158, label %150, !llvm.loop !18

158:                                              ; preds = %155
  %159 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7sc_core9sc_signalIN5sc_dt7sc_uintILi10EEELNS_16sc_writer_policyE0EE4readEv(ptr noundef nonnull align 8 dereferenceable(232) %10)
  %160 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %159)
  %161 = getelementptr inbounds i8, ptr %146, i64 4
  %162 = load i32, ptr %161, align 4, !tbaa !19
  %163 = zext i32 %162 to i64
  %.not44 = icmp eq i64 %160, %163
  br i1 %.not44, label %180, label %164

164:                                              ; preds = %158
  %165 = load i32, ptr %146, align 8, !tbaa !15
  %166 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7sc_core9sc_signalIN5sc_dt7sc_uintILi10EEELNS_16sc_writer_policyE0EE4readEv(ptr noundef nonnull align 8 dereferenceable(232) %10)
  %167 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %166)
  %168 = trunc i64 %167 to i32
  %169 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %165, i32 noundef %162, i32 noundef %168)
  %170 = add nsw i32 %.01362, 1
  br label %180

171:                                              ; preds = %143
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #9
  br label %190

173:                                              ; preds = %145
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %177

175:                                              ; preds = %148
  %176 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #9
  br label %177

177:                                              ; preds = %175, %173
  %.pn42 = phi { ptr, i32 } [ %176, %175 ], [ %174, %173 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #9
  br label %190

178:                                              ; preds = %151
  %179 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #9
  br label %190

180:                                              ; preds = %158, %164
  %.114 = phi i32 [ %170, %164 ], [ %.01362, %158 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 786
  br i1 %exitcond.not, label %86, label %.preheader, !llvm.loop !20

181:                                              ; preds = %86
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %183 unwind label %101

183:                                              ; preds = %181
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %182, i32 noundef %.114)
          to label %.invoke65 unwind label %101

.invoke65:                                        ; preds = %86, %183
  %185 = phi ptr [ %184, %183 ], [ @_ZSt4cout, %86 ]
  %186 = phi ptr [ @.str.4, %183 ], [ @.str.5, %86 ]
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %185, ptr noundef nonnull %186)
          to label %.invoke unwind label %101

.invoke:                                          ; preds = %.invoke65
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %187, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %189 unwind label %101

189:                                              ; preds = %.invoke
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi10EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(232) %10) #9
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %10) #9
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi18EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(232) %9) #9
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %9) #9
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %8) #9
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %8) #9
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %7) #9
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %7) #9
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %6) #9
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %6) #9
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %5) #9
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %5) #9
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %4) #9
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %4) #9
  call void @_ZN7sc_core8sc_clockD1Ev(ptr noundef nonnull align 8 dereferenceable(592) %3) #9
  call void @llvm.lifetime.end.p0(i64 592, ptr nonnull %3) #9
  ret i32 0

190:                                              ; preds = %.loopexit, %.loopexit.split-lp, %171, %177, %178, %107, %135, %133, %131, %130, %101
  %.pn45.pn = phi { ptr, i32 } [ %102, %101 ], [ %136, %135 ], [ %134, %133 ], [ %132, %131 ], [ %.pn34.pn.pn.pn.pn.pn.pn, %130 ], [ %.pn, %107 ], [ %179, %178 ], [ %.pn42, %177 ], [ %172, %171 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi10EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(232) %10) #9
  br label %191

191:                                              ; preds = %190, %99
  %.pn45.pn.pn = phi { ptr, i32 } [ %.pn45.pn, %190 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %10) #9
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi18EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(232) %9) #9
  br label %192

192:                                              ; preds = %191, %97
  %.pn45.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn, %191 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %9) #9
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %8) #9
  br label %193

193:                                              ; preds = %192, %95
  %.pn45.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn.pn, %192 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %8) #9
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %7) #9
  br label %194

194:                                              ; preds = %193, %93
  %.pn45.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn.pn.pn, %193 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %7) #9
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %6) #9
  br label %195

195:                                              ; preds = %194, %91
  %.pn45.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn.pn.pn.pn, %194 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %6) #9
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %5) #9
  br label %196

196:                                              ; preds = %195, %89
  %.pn45.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn.pn.pn.pn.pn, %195 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %5) #9
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %4) #9
  br label %197

197:                                              ; preds = %196, %87
  %.pn45.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn.pn.pn.pn.pn.pn, %196 ], [ %88, %87 ]
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %4) #9
  call void @_ZN7sc_core8sc_clockD1Ev(ptr noundef nonnull align 8 dereferenceable(592) %3) #9
  call void @llvm.lifetime.end.p0(i64 592, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn45.pn.pn.pn.pn.pn.pn.pn.pn
}

declare void @_ZN7sc_core8sc_clockC1Ev(ptr noundef nonnull align 8 dereferenceable(592)) unnamed_addr #3

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

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

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

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

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

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

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

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

declare void @_ZN7sc_core9sc_moduleclERKNS_13sc_bind_proxyES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

declare void @_ZN7sc_core13sc_bind_proxyC1ERNS_12sc_interfaceE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi18EEELNS_16sc_writer_policyE0EE5writeERKS3_(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #8

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #7

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #7

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

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

; Function Attrs: nounwind
declare void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN7sc_core8sc_clockD1Ev(ptr noundef nonnull align 8 dereferenceable(592)) unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nofree 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass