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

; 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.stimulus = type { i32, i32, i32 }
%"class.sc_core::sc_signal" = type { %"class.sc_core::sc_signal_inout_if", %"class.sc_core::sc_prim_channel", %"class.sc_dt::sc_uint", ptr, i64, i64, 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_uint_part_if" }
%"class.sc_core::sc_uint_part_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.3", %"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.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.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_clock" = type { %"class.sc_core::sc_signal.11", %"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.11" = type { %"class.sc_core::sc_signal_inout_if.12", %"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.12" = type { %"class.sc_core::sc_signal_in_if.13", %"class.sc_core::sc_signal_write_if.14" }
%"class.sc_core::sc_signal_in_if.13" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_signal_write_if.14" = type { %"class.sc_core::sc_interface" }
%"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.15", %"class.std::vector.15", %"class.std::vector.20", %"class.std::vector.20" }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = 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.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = 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.25" = type { %"class.sc_core::sc_signal_inout_if.26", %"class.sc_core::sc_prim_channel", %"class.sc_dt::sc_uint.29", ptr, i64, i64, ptr, ptr }
%"class.sc_core::sc_signal_inout_if.26" = type { %"class.sc_core::sc_signal_in_if.27", %"class.sc_core::sc_signal_write_if.28" }
%"class.sc_core::sc_signal_in_if.27" = type { %"class.sc_core::sc_uint_part_if" }
%"class.sc_core::sc_signal_write_if.28" = type { %"class.sc_core::sc_interface" }
%"class.sc_dt::sc_uint.29" = type { %"class.sc_dt::sc_uint_base" }
%struct.up_down = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", %"class.sc_core::sc_in.35", %"class.sc_core::sc_in.35", %"class.sc_core::sc_in.43", %"class.sc_core::sc_inout", %"class.sc_core::sc_inout", %"class.sc_core::sc_inout", %"class.sc_core::sc_inout.58", %"class.sc_dt::sc_uint.66", %"class.sc_dt::sc_uint.66", %"class.sc_dt::sc_uint.29", %"class.sc_dt::sc_uint" }
%"class.sc_core::sc_module" = type { %"class.sc_core::sc_object", %"class.sc_core::sc_process_host", %"class.sc_core::sc_sensitive", %"class.sc_core::sc_sensitive_pos", %"class.sc_core::sc_sensitive_neg", i8, ptr, i32, ptr, ptr }
%"class.sc_core::sc_process_host" = type { ptr }
%"class.sc_core::sc_sensitive" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_pos" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_neg" = type { ptr, i32, ptr }
%"class.sc_core::sc_in" = type { %"class.sc_core::sc_port", ptr, ptr, ptr, ptr }
%"class.sc_core::sc_port" = type { %"class.sc_core::sc_port_b" }
%"class.sc_core::sc_port_b" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.30" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_in.35" = type { %"class.sc_core::sc_port.36", %"class.sc_dt::sc_value_base", ptr }
%"class.sc_core::sc_port.36" = type { %"class.sc_core::sc_port_b.37" }
%"class.sc_core::sc_port_b.37" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.38" }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_in.43" = type { %"class.sc_core::sc_port.44", %"class.sc_dt::sc_value_base", ptr }
%"class.sc_core::sc_port.44" = type { %"class.sc_core::sc_port_b.45" }
%"class.sc_core::sc_port_b.45" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.46" }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_inout" = type { %"class.sc_core::sc_port.51", %"class.sc_dt::sc_value_base", ptr, ptr }
%"class.sc_core::sc_port.51" = type { %"class.sc_core::sc_port_b.52" }
%"class.sc_core::sc_port_b.52" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.53" }
%"class.std::vector.53" = type { %"struct.std::_Vector_base.54" }
%"struct.std::_Vector_base.54" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_inout.58" = type { %"class.sc_core::sc_port.59", %"class.sc_dt::sc_value_base", ptr, ptr }
%"class.sc_core::sc_port.59" = type { %"class.sc_core::sc_port_b.60" }
%"class.sc_core::sc_port_b.60" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.61" }
%"class.std::vector.61" = type { %"struct.std::_Vector_base.62" }
%"struct.std::_Vector_base.62" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_dt::sc_uint.66" = 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 [17 x %struct.stimulus], align 16
@.str.10 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [35 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @sc_main(i32 noundef %0, ptr noundef %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %"class.sc_core::sc_signal", 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_clock", align 8
  %10 = alloca %"class.sc_core::sc_signal.25", align 8
  %11 = alloca %"class.sc_core::sc_signal.25", align 8
  %12 = alloca %"class.sc_core::sc_signal", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.sc_core::sc_signal", align 8
  %15 = alloca %"class.sc_core::sc_signal", align 8
  %16 = alloca %struct.up_down, align 8
  %17 = alloca %"class.sc_core::sc_module_name", align 8
  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 208, ptr %5) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(208) %5)
  call void @llvm.lifetime.start.p0(i64 208, ptr %6) #7
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(208) %6)
          to label %18 unwind label %108

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 592, ptr %9) #7
  invoke void @_ZN7sc_core8sc_clockC1Ev(ptr noundef nonnull align 8 dereferenceable(592) %9)
          to label %19 unwind label %112

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 208, ptr %10) #7
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(208) %10)
          to label %20 unwind label %116

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 208, ptr %11) #7
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(208) %11)
          to label %21 unwind label %120

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 208, ptr %12) #7
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(208) %12)
          to label %22 unwind label %124

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 208, ptr %14) #7
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(208) %14)
          to label %23 unwind label %128

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 208, ptr %15) #7
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(208) %15)
          to label %24 unwind label %132

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 1720, ptr %16) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %17, ptr noundef @.str.10)
          to label %25 unwind label %136

25:                                               ; preds = %24
  invoke void @_ZN7up_downC2EN7sc_core14sc_module_nameE(ptr noundef nonnull align 8 dereferenceable(1720) %16, ptr noundef %17)
          to label %26 unwind label %140

26:                                               ; preds = %25
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %17) #7
  %27 = getelementptr inbounds %struct.up_down, ptr %16, i32 0, i32 7
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt7sc_uintILi1EEEEclERKNS_18sc_signal_inout_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(176) %27, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %28 unwind label %144

28:                                               ; preds = %26
  %29 = getelementptr inbounds %struct.up_down, ptr %16, i32 0, i32 6
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt7sc_uintILi1EEEEclERKNS_18sc_signal_inout_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(176) %29, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %30 unwind label %144

30:                                               ; preds = %28
  %31 = getelementptr inbounds %struct.up_down, ptr %16, i32 0, i32 4
  invoke void @_ZN7sc_core5sc_inIN5sc_dt7sc_uintILi9EEEEclERKNS_15sc_signal_in_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(168) %31, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %32 unwind label %144

32:                                               ; preds = %30
  %33 = getelementptr inbounds %struct.up_down, ptr %16, i32 0, i32 1
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %33, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %34 unwind label %144

34:                                               ; preds = %32
  %35 = getelementptr inbounds %struct.up_down, ptr %16, i32 0, i32 8
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt7sc_uintILi9EEEEclERKNS_18sc_signal_inout_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(176) %35, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %36 unwind label %144

36:                                               ; preds = %34
  %37 = getelementptr inbounds %struct.up_down, ptr %16, i32 0, i32 3
  invoke void @_ZN7sc_core5sc_inIN5sc_dt7sc_uintILi1EEEEclERKNS_15sc_signal_in_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(168) %37, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %38 unwind label %144

38:                                               ; preds = %36
  %39 = getelementptr inbounds %struct.up_down, ptr %16, i32 0, i32 5
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt7sc_uintILi1EEEEclERKNS_18sc_signal_inout_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(176) %39, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %40 unwind label %144

40:                                               ; preds = %38
  %41 = getelementptr inbounds %struct.up_down, ptr %16, i32 0, i32 2
  invoke void @_ZN7sc_core5sc_inIN5sc_dt7sc_uintILi1EEEEclERKNS_15sc_signal_in_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(168) %41, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %42 unwind label %144

42:                                               ; preds = %40
  %43 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef @.str.12, ptr noundef @.str.13, ptr noundef @.str.14, ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef @.str.17, ptr noundef @.str.18, ptr noundef @.str.19)
          to label %44 unwind label %144

44:                                               ; preds = %42
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %105, %44
  %46 = load i32, ptr %13, align 4, !tbaa !5
  %47 = zext i32 %46 to i64
  %48 = icmp ult i64 %47, 17
  br i1 %48, label %49, label %148

49:                                               ; preds = %45
  %50 = load i32, ptr %13, align 4, !tbaa !5
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds [17 x %struct.stimulus], ptr @s, i64 0, i64 %51
  %53 = getelementptr inbounds %struct.stimulus, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 4, !tbaa !11
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEaSEi(ptr noundef nonnull align 8 dereferenceable(208) %15, i32 noundef %54)
          to label %55 unwind label %144

55:                                               ; preds = %49
  %56 = load i32, ptr %13, align 4, !tbaa !5
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds [17 x %struct.stimulus], ptr @s, i64 0, i64 %57
  %59 = getelementptr inbounds %struct.stimulus, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !13
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEaSEi(ptr noundef nonnull align 8 dereferenceable(208) %12, i32 noundef %60)
          to label %61 unwind label %144

61:                                               ; preds = %55
  %62 = load i32, ptr %13, align 4, !tbaa !5
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds [17 x %struct.stimulus], ptr @s, i64 0, i64 %63
  %65 = getelementptr inbounds %struct.stimulus, ptr %64, i32 0, i32 2
  %66 = load i32, ptr %65, align 4, !tbaa !14
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EEaSEi(ptr noundef nonnull align 8 dereferenceable(208) %11, i32 noundef %66)
          to label %67 unwind label %144

67:                                               ; preds = %61
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
          to label %68 unwind label %144

68:                                               ; preds = %67
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv()
          to label %70 unwind label %144

70:                                               ; preds = %68
  %71 = invoke noundef double @_ZNK7sc_core7sc_time9to_doubleEv(ptr noundef nonnull align 8 dereferenceable(8) %69)
          to label %72 unwind label %144

72:                                               ; preds = %70
  %73 = fptosi double %71 to i32
  %74 = sdiv i32 %73, 1000
  %75 = getelementptr inbounds i8, ptr %15, i64 144
  %76 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %75)
          to label %77 unwind label %144

77:                                               ; preds = %72
  %78 = trunc i64 %76 to i32
  %79 = getelementptr inbounds i8, ptr %12, i64 144
  %80 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %79)
          to label %81 unwind label %144

81:                                               ; preds = %77
  %82 = trunc i64 %80 to i32
  %83 = getelementptr inbounds i8, ptr %11, i64 144
  %84 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %83)
          to label %85 unwind label %144

85:                                               ; preds = %81
  %86 = trunc i64 %84 to i32
  %87 = getelementptr inbounds i8, ptr %14, i64 144
  %88 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %87)
          to label %89 unwind label %144

89:                                               ; preds = %85
  %90 = trunc i64 %88 to i32
  %91 = getelementptr inbounds i8, ptr %6, i64 144
  %92 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %91)
          to label %93 unwind label %144

93:                                               ; preds = %89
  %94 = trunc i64 %92 to i32
  %95 = getelementptr inbounds i8, ptr %5, i64 144
  %96 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %95)
          to label %97 unwind label %144

97:                                               ; preds = %93
  %98 = trunc i64 %96 to i32
  %99 = getelementptr inbounds i8, ptr %10, i64 144
  %100 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %99)
          to label %101 unwind label %144

101:                                              ; preds = %97
  %102 = trunc i64 %100 to i32
  %103 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %74, i32 noundef %78, i32 noundef %82, i32 noundef %86, i32 noundef %90, i32 noundef %94, i32 noundef %98, i32 noundef %102)
          to label %104 unwind label %144

104:                                              ; preds = %101
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %13, align 4, !tbaa !5
  %107 = add i32 %106, 1
  store i32 %107, ptr %13, align 4, !tbaa !5
  br label %45, !llvm.loop !15

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

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

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

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

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

128:                                              ; preds = %22
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %7, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %8, align 4
  br label %187

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

136:                                              ; preds = %24
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %7, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %8, align 4
  br label %185

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

144:                                              ; preds = %181, %177, %173, %169, %165, %161, %157, %152, %150, %148, %101, %97, %93, %89, %85, %81, %77, %72, %70, %68, %67, %61, %55, %49, %42, %40, %38, %36, %34, %32, %30, %28, %26
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %7, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %8, align 4
  call void @_ZN7up_downD2Ev(ptr noundef nonnull align 8 dereferenceable(1720) %16) #7
  br label %185

148:                                              ; preds = %45
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv()
          to label %150 unwind label %144

150:                                              ; preds = %148
  %151 = invoke noundef double @_ZNK7sc_core7sc_time9to_doubleEv(ptr noundef nonnull align 8 dereferenceable(8) %149)
          to label %152 unwind label %144

152:                                              ; preds = %150
  %153 = fptosi double %151 to i32
  %154 = sdiv i32 %153, 1000
  %155 = getelementptr inbounds i8, ptr %15, i64 144
  %156 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %155)
          to label %157 unwind label %144

157:                                              ; preds = %152
  %158 = trunc i64 %156 to i32
  %159 = getelementptr inbounds i8, ptr %12, i64 144
  %160 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %159)
          to label %161 unwind label %144

161:                                              ; preds = %157
  %162 = trunc i64 %160 to i32
  %163 = getelementptr inbounds i8, ptr %11, i64 144
  %164 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %163)
          to label %165 unwind label %144

165:                                              ; preds = %161
  %166 = trunc i64 %164 to i32
  %167 = getelementptr inbounds i8, ptr %14, i64 144
  %168 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %167)
          to label %169 unwind label %144

169:                                              ; preds = %165
  %170 = trunc i64 %168 to i32
  %171 = getelementptr inbounds i8, ptr %6, i64 144
  %172 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %171)
          to label %173 unwind label %144

173:                                              ; preds = %169
  %174 = trunc i64 %172 to i32
  %175 = getelementptr inbounds i8, ptr %5, i64 144
  %176 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %175)
          to label %177 unwind label %144

177:                                              ; preds = %173
  %178 = trunc i64 %176 to i32
  %179 = getelementptr inbounds i8, ptr %10, i64 144
  %180 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %179)
          to label %181 unwind label %144

181:                                              ; preds = %177
  %182 = trunc i64 %180 to i32
  %183 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %154, i32 noundef %158, i32 noundef %162, i32 noundef %166, i32 noundef %170, i32 noundef %174, i32 noundef %178, i32 noundef %182)
          to label %184 unwind label %144

184:                                              ; preds = %181
  call void @_ZN7up_downD2Ev(ptr noundef nonnull align 8 dereferenceable(1720) %16) #7
  call void @llvm.lifetime.end.p0(i64 1720, ptr %16) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %15) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr %15) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %14) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %12) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr %12) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %11) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr %11) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %10) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr %10) #7
  call void @_ZN7sc_core8sc_clockD1Ev(ptr noundef nonnull align 8 dereferenceable(592) %9) #7
  call void @llvm.lifetime.end.p0(i64 592, ptr %9) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %6) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr %6) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %5) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr %5) #7
  ret i32 0

185:                                              ; preds = %144, %140, %136
  call void @llvm.lifetime.end.p0(i64 1720, ptr %16) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %15) #7
  br label %186

186:                                              ; preds = %185, %132
  call void @llvm.lifetime.end.p0(i64 208, ptr %15) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %14) #7
  br label %187

187:                                              ; preds = %186, %128
  call void @llvm.lifetime.end.p0(i64 208, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %12) #7
  br label %188

188:                                              ; preds = %187, %124
  call void @llvm.lifetime.end.p0(i64 208, ptr %12) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %11) #7
  br label %189

189:                                              ; preds = %188, %120
  call void @llvm.lifetime.end.p0(i64 208, ptr %11) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %10) #7
  br label %190

190:                                              ; preds = %189, %116
  call void @llvm.lifetime.end.p0(i64 208, ptr %10) #7
  call void @_ZN7sc_core8sc_clockD1Ev(ptr noundef nonnull align 8 dereferenceable(592) %9) #7
  br label %191

191:                                              ; preds = %190, %112
  call void @llvm.lifetime.end.p0(i64 592, ptr %9) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %6) #7
  br label %192

192:                                              ; preds = %191, %108
  call void @llvm.lifetime.end.p0(i64 208, ptr %6) #7
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %5) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr %5) #7
  br label %193

193:                                              ; preds = %192
  %194 = load ptr, ptr %7, align 8
  %195 = load i32, ptr %8, align 4
  %196 = insertvalue { ptr, i32 } poison, ptr %194, 0
  %197 = insertvalue { ptr, i32 } %196, i32 %195, 1
  resume { ptr, i32 } %197
}

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

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

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

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 @_ZN7up_downC2EN7sc_core14sc_module_nameE(ptr noundef nonnull align 8 dereferenceable(1720), ptr noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_inoutIN5sc_dt7sc_uintILi1EEEEclERKNS_18sc_signal_inout_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core5sc_inIN5sc_dt7sc_uintILi9EEEEclERKNS_15sc_signal_in_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_inoutIN5sc_dt7sc_uintILi9EEEEclERKNS_18sc_signal_inout_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core5sc_inIN5sc_dt7sc_uintILi1EEEEclERKNS_15sc_signal_in_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEaSEi(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EEaSEi(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef) #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) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv() #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7sc_core7sc_time9to_doubleEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

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

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

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.stimulus = type { i32, i32, i32 }
%"class.sc_core::sc_signal" = type { %"class.sc_core::sc_signal_inout_if", %"class.sc_core::sc_prim_channel", %"class.sc_dt::sc_uint", ptr, i64, i64, 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_uint_part_if" }
%"class.sc_core::sc_uint_part_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.3", %"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.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_object *, std::allocator<sc_core::sc_object *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.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_clock" = type { %"class.sc_core::sc_signal.11", %"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.11" = type { %"class.sc_core::sc_signal_inout_if.12", %"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.12" = type { %"class.sc_core::sc_signal_in_if.13", %"class.sc_core::sc_signal_write_if.14" }
%"class.sc_core::sc_signal_in_if.13" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_signal_write_if.14" = type { %"class.sc_core::sc_interface" }
%"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.15", %"class.std::vector.15", %"class.std::vector.20", %"class.std::vector.20" }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = 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.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = 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.25" = type { %"class.sc_core::sc_signal_inout_if.26", %"class.sc_core::sc_prim_channel", %"class.sc_dt::sc_uint.29", ptr, i64, i64, ptr, ptr }
%"class.sc_core::sc_signal_inout_if.26" = type { %"class.sc_core::sc_signal_in_if.27", %"class.sc_core::sc_signal_write_if.28" }
%"class.sc_core::sc_signal_in_if.27" = type { %"class.sc_core::sc_uint_part_if" }
%"class.sc_core::sc_signal_write_if.28" = type { %"class.sc_core::sc_interface" }
%"class.sc_dt::sc_uint.29" = type { %"class.sc_dt::sc_uint_base" }
%struct.up_down = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", %"class.sc_core::sc_in.35", %"class.sc_core::sc_in.35", %"class.sc_core::sc_in.43", %"class.sc_core::sc_inout", %"class.sc_core::sc_inout", %"class.sc_core::sc_inout", %"class.sc_core::sc_inout.58", %"class.sc_dt::sc_uint.66", %"class.sc_dt::sc_uint.66", %"class.sc_dt::sc_uint.29", %"class.sc_dt::sc_uint" }
%"class.sc_core::sc_module" = type { %"class.sc_core::sc_object", %"class.sc_core::sc_process_host", %"class.sc_core::sc_sensitive", %"class.sc_core::sc_sensitive_pos", %"class.sc_core::sc_sensitive_neg", i8, ptr, i32, ptr, ptr }
%"class.sc_core::sc_process_host" = type { ptr }
%"class.sc_core::sc_sensitive" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_pos" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_neg" = type { ptr, i32, ptr }
%"class.sc_core::sc_in" = type { %"class.sc_core::sc_port", ptr, ptr, ptr, ptr }
%"class.sc_core::sc_port" = type { %"class.sc_core::sc_port_b" }
%"class.sc_core::sc_port_b" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.30" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_in.35" = type { %"class.sc_core::sc_port.36", %"class.sc_dt::sc_value_base", ptr }
%"class.sc_core::sc_port.36" = type { %"class.sc_core::sc_port_b.37" }
%"class.sc_core::sc_port_b.37" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.38" }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<1>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_in.43" = type { %"class.sc_core::sc_port.44", %"class.sc_dt::sc_value_base", ptr }
%"class.sc_core::sc_port.44" = type { %"class.sc_core::sc_port_b.45" }
%"class.sc_core::sc_port_b.45" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.46" }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_in_if<sc_dt::sc_uint<9>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_inout" = type { %"class.sc_core::sc_port.51", %"class.sc_dt::sc_value_base", ptr, ptr }
%"class.sc_core::sc_port.51" = type { %"class.sc_core::sc_port_b.52" }
%"class.sc_core::sc_port_b.52" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.53" }
%"class.std::vector.53" = type { %"struct.std::_Vector_base.54" }
%"struct.std::_Vector_base.54" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<1>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_inout.58" = type { %"class.sc_core::sc_port.59", %"class.sc_dt::sc_value_base", ptr, ptr }
%"class.sc_core::sc_port.59" = type { %"class.sc_core::sc_port_b.60" }
%"class.sc_core::sc_port_b.60" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.61" }
%"class.std::vector.61" = type { %"struct.std::_Vector_base.62" }
%"struct.std::_Vector_base.62" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *, std::allocator<sc_core::sc_signal_inout_if<sc_dt::sc_uint<9>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_dt::sc_uint.66" = 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 [17 x %struct.stimulus], align 16
@.str.10 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [35 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @sc_main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.sc_core::sc_signal", align 8
  %4 = alloca %"class.sc_core::sc_signal", align 8
  %5 = alloca %"class.sc_core::sc_clock", align 8
  %6 = alloca %"class.sc_core::sc_signal.25", align 8
  %7 = alloca %"class.sc_core::sc_signal.25", align 8
  %8 = alloca %"class.sc_core::sc_signal", align 8
  %9 = alloca %"class.sc_core::sc_signal", align 8
  %10 = alloca %"class.sc_core::sc_signal", align 8
  %11 = alloca %struct.up_down, align 8
  %12 = alloca %"class.sc_core::sc_module_name", align 8
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %3) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(208) %3)
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %4) #8
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(208) %4)
          to label %13 unwind label %78

13:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 592, ptr nonnull %5) #8
  invoke void @_ZN7sc_core8sc_clockC1Ev(ptr noundef nonnull align 8 dereferenceable(592) %5)
          to label %14 unwind label %80

14:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %6) #8
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(208) %6)
          to label %15 unwind label %82

15:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %7) #8
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(208) %7)
          to label %16 unwind label %84

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %8) #8
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(208) %8)
          to label %17 unwind label %86

17:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %9) #8
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(208) %9)
          to label %18 unwind label %88

18:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %10) #8
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(208) %10)
          to label %19 unwind label %90

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 1720, ptr nonnull %11) #8
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %12, ptr noundef nonnull @.str.10)
          to label %20 unwind label %92

20:                                               ; preds = %19
  invoke void @_ZN7up_downC2EN7sc_core14sc_module_nameE(ptr noundef nonnull align 8 dereferenceable(1720) %11, ptr noundef nonnull %12)
          to label %21 unwind label %94

21:                                               ; preds = %20
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %12) #8
  %22 = getelementptr inbounds i8, ptr %11, i64 1272
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt7sc_uintILi1EEEEclERKNS_18sc_signal_inout_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(176) %22, ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %23 unwind label %.loopexit.split-lp

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %11, i64 1096
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt7sc_uintILi1EEEEclERKNS_18sc_signal_inout_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(176) %24, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %25 unwind label %.loopexit.split-lp

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %11, i64 752
  invoke void @_ZN7sc_core5sc_inIN5sc_dt7sc_uintILi9EEEEclERKNS_15sc_signal_in_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(168) %26, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %27 unwind label %.loopexit.split-lp

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %11, i64 232
  invoke void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184) %28, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %29 unwind label %.loopexit.split-lp

29:                                               ; preds = %27
  %30 = getelementptr inbounds i8, ptr %11, i64 1448
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt7sc_uintILi9EEEEclERKNS_18sc_signal_inout_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(176) %30, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %31 unwind label %.loopexit.split-lp

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %11, i64 584
  invoke void @_ZN7sc_core5sc_inIN5sc_dt7sc_uintILi1EEEEclERKNS_15sc_signal_in_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(168) %32, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %33 unwind label %.loopexit.split-lp

33:                                               ; preds = %31
  %34 = getelementptr inbounds i8, ptr %11, i64 920
  invoke void @_ZN7sc_core8sc_inoutIN5sc_dt7sc_uintILi1EEEEclERKNS_18sc_signal_inout_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(176) %34, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %35 unwind label %.loopexit.split-lp

35:                                               ; preds = %33
  %36 = getelementptr inbounds i8, ptr %11, i64 416
  invoke void @_ZN7sc_core5sc_inIN5sc_dt7sc_uintILi1EEEEclERKNS_15sc_signal_in_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(168) %36, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %37 unwind label %.loopexit.split-lp

37:                                               ; preds = %35
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.19)
  %39 = getelementptr inbounds i8, ptr %10, i64 144
  %40 = getelementptr inbounds i8, ptr %8, i64 144
  %41 = getelementptr inbounds i8, ptr %7, i64 144
  %42 = getelementptr inbounds i8, ptr %9, i64 144
  %43 = getelementptr inbounds i8, ptr %4, i64 144
  %44 = getelementptr inbounds i8, ptr %3, i64 144
  %45 = getelementptr inbounds i8, ptr %6, i64 144
  br label %46

46:                                               ; preds = %37, %60
  %indvars.iv = phi i64 [ 0, %37 ], [ %indvars.iv.next, %60 ]
  %47 = getelementptr inbounds [17 x %struct.stimulus], ptr @s, i64 0, i64 %indvars.iv
  %48 = load i32, ptr %47, align 4, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEaSEi(ptr noundef nonnull align 8 dereferenceable(208) %10, i32 noundef %48)
          to label %49 unwind label %.loopexit

49:                                               ; preds = %46
  %50 = getelementptr inbounds i8, ptr %47, i64 4
  %51 = load i32, ptr %50, align 4, !tbaa !10
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEaSEi(ptr noundef nonnull align 8 dereferenceable(208) %8, i32 noundef %51)
          to label %52 unwind label %.loopexit

52:                                               ; preds = %49
  %53 = getelementptr inbounds i8, ptr %47, i64 8
  %54 = load i32, ptr %53, align 4, !tbaa !11
  invoke void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EEaSEi(ptr noundef nonnull align 8 dereferenceable(208) %7, i32 noundef %54)
          to label %55 unwind label %.loopexit

55:                                               ; preds = %52
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 1, i32 noundef 2, i32 noundef 1)
          to label %56 unwind label %.loopexit

56:                                               ; preds = %55
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv()
          to label %58 unwind label %.loopexit

58:                                               ; preds = %56
  %59 = invoke noundef double @_ZNK7sc_core7sc_time9to_doubleEv(ptr noundef nonnull align 8 dereferenceable(8) %57)
          to label %60 unwind label %.loopexit

60:                                               ; preds = %58
  %61 = fptosi double %59 to i32
  %62 = sdiv i32 %61, 1000
  %63 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
  %64 = trunc i64 %63 to i32
  %65 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
  %66 = trunc i64 %65 to i32
  %67 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %41)
  %68 = trunc i64 %67 to i32
  %69 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %70 = trunc i64 %69 to i32
  %71 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  %72 = trunc i64 %71 to i32
  %73 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %44)
  %74 = trunc i64 %73 to i32
  %75 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %76 = trunc i64 %75 to i32
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %62, i32 noundef %64, i32 noundef %66, i32 noundef %68, i32 noundef %70, i32 noundef %72, i32 noundef %74, i32 noundef %76)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 17
  br i1 %exitcond.not, label %97, label %46, !llvm.loop !12

78:                                               ; preds = %2
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %126

80:                                               ; preds = %13
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %125

82:                                               ; preds = %14
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %124

84:                                               ; preds = %15
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %123

86:                                               ; preds = %16
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %122

88:                                               ; preds = %17
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %121

90:                                               ; preds = %18
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %120

92:                                               ; preds = %19
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %119

94:                                               ; preds = %20
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %12) #8
  br label %119

.loopexit:                                        ; preds = %46, %49, %52, %55, %56, %58
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %96

.loopexit.split-lp:                               ; preds = %21, %23, %25, %27, %29, %31, %33, %35, %97, %99
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %96

96:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN7up_downD2Ev(ptr noundef nonnull align 8 dereferenceable(1720) %11) #8
  br label %119

97:                                               ; preds = %60
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv()
          to label %99 unwind label %.loopexit.split-lp

99:                                               ; preds = %97
  %100 = invoke noundef double @_ZNK7sc_core7sc_time9to_doubleEv(ptr noundef nonnull align 8 dereferenceable(8) %98)
          to label %101 unwind label %.loopexit.split-lp

101:                                              ; preds = %99
  %102 = fptosi double %100 to i32
  %103 = sdiv i32 %102, 1000
  %104 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
  %105 = trunc i64 %104 to i32
  %106 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
  %107 = trunc i64 %106 to i32
  %108 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %41)
  %109 = trunc i64 %108 to i32
  %110 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %111 = trunc i64 %110 to i32
  %112 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  %113 = trunc i64 %112 to i32
  %114 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %44)
  %115 = trunc i64 %114 to i32
  %116 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %117 = trunc i64 %116 to i32
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %103, i32 noundef %105, i32 noundef %107, i32 noundef %109, i32 noundef %111, i32 noundef %113, i32 noundef %115, i32 noundef %117)
  call void @_ZN7up_downD2Ev(ptr noundef nonnull align 8 dereferenceable(1720) %11) #8
  call void @llvm.lifetime.end.p0(i64 1720, ptr nonnull %11) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %10) #8
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %10) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %9) #8
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %9) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %8) #8
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %8) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %7) #8
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %7) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %6) #8
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %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 nonnull %5) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %4) #8
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %4) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %3) #8
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %3) #8
  ret i32 0

119:                                              ; preds = %96, %94, %92
  %.pn = phi { ptr, i32 } [ %lpad.phi, %96 ], [ %95, %94 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 1720, ptr nonnull %11) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %10) #8
  br label %120

120:                                              ; preds = %119, %90
  %.pn.pn = phi { ptr, i32 } [ %.pn, %119 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %10) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %9) #8
  br label %121

121:                                              ; preds = %120, %88
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %120 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %9) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %8) #8
  br label %122

122:                                              ; preds = %121, %86
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %121 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %8) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %7) #8
  br label %123

123:                                              ; preds = %122, %84
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %122 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %7) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %6) #8
  br label %124

124:                                              ; preds = %123, %82
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %123 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %6) #8
  call void @_ZN7sc_core8sc_clockD1Ev(ptr noundef nonnull align 8 dereferenceable(592) %5) #8
  br label %125

125:                                              ; preds = %124, %80
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %124 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 592, ptr nonnull %5) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %4) #8
  br label %126

126:                                              ; preds = %125, %78
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %125 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %4) #8
  call void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(208) %3) #8
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

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 @_ZN7up_downC2EN7sc_core14sc_module_nameE(ptr noundef nonnull align 8 dereferenceable(1720), ptr noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_inoutIN5sc_dt7sc_uintILi1EEEEclERKNS_18sc_signal_inout_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core5sc_inIN5sc_dt7sc_uintILi9EEEEclERKNS_15sc_signal_in_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core5sc_inIbEclERKNS_15sc_signal_in_ifIbEE(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core8sc_inoutIN5sc_dt7sc_uintILi9EEEEclERKNS_18sc_signal_inout_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7sc_core5sc_inIN5sc_dt7sc_uintILi1EEEEclERKNS_15sc_signal_in_ifIS3_EE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi1EEELNS_16sc_writer_policyE0EEaSEi(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7sc_core9sc_signalIN5sc_dt7sc_uintILi9EEELNS_16sc_writer_policyE0EEaSEi(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef) 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 #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN7sc_core13sc_time_stampEv() local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7sc_core7sc_time9to_doubleEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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, !7, i64 0}
!6 = !{!"_ZTS8stimulus", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 8}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


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