; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/misc/user_guide/newsched/test4 (test4)

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

%"class.sc_core::sc_signal" = 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_signal.8" = type <{ %"class.sc_core::sc_signal_inout_if.9", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, i32, [4 x i8], i64, i32, [4 x i8] }>
%"class.sc_core::sc_signal_inout_if.9" = type { %"class.sc_core::sc_signal_in_if.10", %"class.sc_core::sc_signal_write_if.11" }
%"class.sc_core::sc_signal_in_if.10" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_signal_write_if.11" = type { %"class.sc_core::sc_interface" }
%struct.cgater = type { %"class.sc_core::sc_module", ptr, %"class.sc_core::sc_in", %"class.sc_core::sc_out" }
%"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.12" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = 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_out" = type { %"class.sc_core::sc_inout" }
%"class.sc_core::sc_inout" = type { %"class.sc_core::sc_port.17", ptr, ptr, ptr, ptr, ptr }
%"class.sc_core::sc_port.17" = type { %"class.sc_core::sc_port_b.18" }
%"class.sc_core::sc_port_b.18" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.19" }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_module_name" = type <{ ptr, ptr, ptr, ptr, i8, [7 x i8] }>
%struct.watcher = type { %"class.sc_core::sc_module", ptr, %"class.sc_core::sc_in", %"class.sc_core::sc_in", ptr }
%struct.gategen = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", ptr }
%struct.trigp = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", ptr }

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @sc_main(i32 noundef %0, ptr noundef %1) #0 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_signal", align 8
  %10 = alloca %"class.sc_core::sc_signal.8", align 8
  %11 = alloca %struct.cgater, align 8
  %12 = alloca %"class.sc_core::sc_module_name", align 8
  %13 = alloca %struct.watcher, align 8
  %14 = alloca %"class.sc_core::sc_module_name", align 8
  %15 = alloca %struct.gategen, align 8
  %16 = alloca %"class.sc_core::sc_module_name", align 8
  %17 = alloca %struct.trigp, align 8
  %18 = alloca %"class.sc_core::sc_module_name", align 8
  %19 = alloca ptr, align 8
  %20 = alloca i8, align 1
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = 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 224, ptr %5) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1EPKc(ptr noundef nonnull align 8 dereferenceable(224) %5, ptr noundef @.str)
  call void @llvm.lifetime.start.p0(i64 224, ptr %6) #7
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1EPKc(ptr noundef nonnull align 8 dereferenceable(224) %6, ptr noundef @.str.2)
          to label %24 unwind label %52

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

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 200, ptr %10) #7
  invoke void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(196) %10)
          to label %26 unwind label %60

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 616, ptr %11) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %12, ptr noundef @.str.3)
          to label %27 unwind label %64

27:                                               ; preds = %26
  invoke void @_ZN6cgaterC2EN7sc_core14sc_module_nameERKNS0_9sc_signalIbLNS0_16sc_writer_policyE0EEERNS0_15sc_signal_in_ifIbEERNS0_18sc_signal_inout_ifIbEE(ptr noundef nonnull align 8 dereferenceable(616) %11, ptr noundef %12, ptr noundef nonnull align 8 dereferenceable(224) %9, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %28 unwind label %68

28:                                               ; preds = %27
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %12) #7
  call void @llvm.lifetime.start.p0(i64 616, ptr %13) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %14, ptr noundef @.str.4)
          to label %29 unwind label %72

29:                                               ; preds = %28
  invoke void @_ZN7watcherC2EN7sc_core14sc_module_nameERKNS0_9sc_signalIbLNS0_16sc_writer_policyE0EEERNS0_15sc_signal_in_ifIbEES9_RKNS2_IiLS3_0EEE(ptr noundef nonnull align 8 dereferenceable(616) %13, ptr noundef %14, ptr noundef nonnull align 8 dereferenceable(224) %9, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(196) %10)
          to label %30 unwind label %76

30:                                               ; preds = %29
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %14) #7
  call void @llvm.lifetime.start.p0(i64 424, ptr %15) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %16, ptr noundef @.str.5)
          to label %31 unwind label %80

31:                                               ; preds = %30
  invoke void @_ZN7gategenC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIbLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(424) %15, ptr noundef %16, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(224) %9)
          to label %32 unwind label %84

32:                                               ; preds = %31
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %16) #7
  call void @llvm.lifetime.start.p0(i64 424, ptr %17) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %18, ptr noundef @.str.6)
          to label %33 unwind label %88

33:                                               ; preds = %32
  invoke void @_ZN5trigpC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(424) %17, ptr noundef %18, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(196) %10)
          to label %34 unwind label %92

34:                                               ; preds = %33
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %35 = invoke noundef ptr @_ZN7sc_core24sc_create_vcd_trace_fileEPKc(ptr noundef @.str.7)
          to label %36 unwind label %96

36:                                               ; preds = %34
  store ptr %35, ptr %19, align 8, !tbaa !9
  %37 = load ptr, ptr %19, align 8, !tbaa !9
  invoke void @_ZN7sc_core8sc_traceIbEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %37, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef @.str.8)
          to label %38 unwind label %96

38:                                               ; preds = %36
  %39 = load ptr, ptr %19, align 8, !tbaa !9
  invoke void @_ZN7sc_core8sc_traceIbEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %39, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef @.str.9)
          to label %40 unwind label %96

40:                                               ; preds = %38
  %41 = load ptr, ptr %19, align 8, !tbaa !9
  invoke void @_ZN7sc_core8sc_traceIbEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %41, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef @.str.10)
          to label %42 unwind label %96

42:                                               ; preds = %40
  %43 = load ptr, ptr %19, align 8, !tbaa !9
  invoke void @_ZN7sc_core8sc_traceIiEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %43, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @.str.11)
          to label %44 unwind label %96

44:                                               ; preds = %42
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 0, i32 noundef 2, i32 noundef 1)
          to label %45 unwind label %96

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  store i8 0, ptr %20, align 1, !tbaa !11
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %5, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %46 unwind label %100

46:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %47 unwind label %96

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %109, %47
  %49 = load i32, ptr %21, align 4, !tbaa !5
  %50 = icmp slt i32 %49, 30
  br i1 %50, label %104, label %51

51:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %125

52:                                               ; preds = %2
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %7, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %8, align 4
  br label %133

56:                                               ; preds = %24
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %7, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %8, align 4
  br label %132

60:                                               ; preds = %25
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %7, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %8, align 4
  br label %131

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

68:                                               ; preds = %27
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %7, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %8, align 4
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %12) #7
  br label %130

72:                                               ; preds = %28
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %7, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %8, align 4
  br label %129

76:                                               ; preds = %29
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %7, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %8, align 4
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %14) #7
  br label %129

80:                                               ; preds = %30
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %7, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %8, align 4
  br label %128

84:                                               ; preds = %31
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %7, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %8, align 4
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %16) #7
  br label %128

88:                                               ; preds = %32
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %7, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %8, align 4
  br label %127

92:                                               ; preds = %33
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %7, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %8, align 4
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %18) #7
  br label %127

96:                                               ; preds = %46, %44, %42, %40, %38, %36, %34
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %7, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %8, align 4
  br label %126

100:                                              ; preds = %45
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %7, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  br label %126

104:                                              ; preds = %48
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  store i8 1, ptr %22, align 1, !tbaa !11
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %5, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %105 unwind label %112

105:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %106 unwind label %116

106:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  store i8 0, ptr %23, align 1, !tbaa !11
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %5, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %107 unwind label %120

107:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %108 unwind label %116

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %21, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %21, align 4, !tbaa !5
  br label %48, !llvm.loop !13

112:                                              ; preds = %104
  %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
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %124

116:                                              ; preds = %107, %105
  %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 %124

120:                                              ; preds = %106
  %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
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  br label %124

124:                                              ; preds = %120, %116, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %126

125:                                              ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @_ZN5trigpD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %17) #7
  call void @llvm.lifetime.end.p0(i64 424, ptr %17) #7
  call void @_ZN7gategenD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %15) #7
  call void @llvm.lifetime.end.p0(i64 424, ptr %15) #7
  call void @_ZN7watcherD2Ev(ptr noundef nonnull align 8 dereferenceable(616) %13) #7
  call void @llvm.lifetime.end.p0(i64 616, ptr %13) #7
  call void @_ZN6cgaterD2Ev(ptr noundef nonnull align 8 dereferenceable(616) %11) #7
  call void @llvm.lifetime.end.p0(i64 616, ptr %11) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %10) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %10) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %9) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr %9) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %6) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr %6) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %5) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr %5) #7
  ret i32 0

126:                                              ; preds = %124, %100, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @_ZN5trigpD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %17) #7
  br label %127

127:                                              ; preds = %126, %92, %88
  call void @llvm.lifetime.end.p0(i64 424, ptr %17) #7
  call void @_ZN7gategenD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %15) #7
  br label %128

128:                                              ; preds = %127, %84, %80
  call void @llvm.lifetime.end.p0(i64 424, ptr %15) #7
  call void @_ZN7watcherD2Ev(ptr noundef nonnull align 8 dereferenceable(616) %13) #7
  br label %129

129:                                              ; preds = %128, %76, %72
  call void @llvm.lifetime.end.p0(i64 616, ptr %13) #7
  call void @_ZN6cgaterD2Ev(ptr noundef nonnull align 8 dereferenceable(616) %11) #7
  br label %130

130:                                              ; preds = %129, %68, %64
  call void @llvm.lifetime.end.p0(i64 616, ptr %11) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %10) #7
  br label %131

131:                                              ; preds = %130, %60
  call void @llvm.lifetime.end.p0(i64 200, ptr %10) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %9) #7
  br label %132

132:                                              ; preds = %131, %56
  call void @llvm.lifetime.end.p0(i64 224, ptr %9) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %6) #7
  br label %133

133:                                              ; preds = %132, %52
  call void @llvm.lifetime.end.p0(i64 224, ptr %6) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %5) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr %5) #7
  br label %134

134:                                              ; preds = %133
  %135 = load ptr, ptr %7, align 8
  %136 = load i32, ptr %8, align 4
  %137 = insertvalue { ptr, i32 } poison, ptr %135, 0
  %138 = insertvalue { ptr, i32 } %137, i32 %136, 1
  resume { ptr, i32 } %138
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

declare noundef ptr @_ZN7sc_core24sc_create_vcd_trace_fileEPKc(ptr noundef) #2

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

%"class.sc_core::sc_signal" = 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_signal.8" = type <{ %"class.sc_core::sc_signal_inout_if.9", %"class.sc_core::sc_prim_channel", %"struct.sc_core::sc_writer_policy_check", ptr, i32, [4 x i8], i64, i32, [4 x i8] }>
%"class.sc_core::sc_signal_inout_if.9" = type { %"class.sc_core::sc_signal_in_if.10", %"class.sc_core::sc_signal_write_if.11" }
%"class.sc_core::sc_signal_in_if.10" = type { %"class.sc_core::sc_interface" }
%"class.sc_core::sc_signal_write_if.11" = type { %"class.sc_core::sc_interface" }
%struct.cgater = type { %"class.sc_core::sc_module", ptr, %"class.sc_core::sc_in", %"class.sc_core::sc_out" }
%"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.12" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = 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_out" = type { %"class.sc_core::sc_inout" }
%"class.sc_core::sc_inout" = type { %"class.sc_core::sc_port.17", ptr, ptr, ptr, ptr, ptr }
%"class.sc_core::sc_port.17" = type { %"class.sc_core::sc_port_b.18" }
%"class.sc_core::sc_port_b.18" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.19" }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_inout_if<bool> *, std::allocator<sc_core::sc_signal_inout_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sc_core::sc_module_name" = type <{ ptr, ptr, ptr, ptr, i8, [7 x i8] }>
%struct.watcher = type { %"class.sc_core::sc_module", ptr, %"class.sc_core::sc_in", %"class.sc_core::sc_in", ptr }
%struct.gategen = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", ptr }
%struct.trigp = type { %"class.sc_core::sc_module", %"class.sc_core::sc_in", ptr }

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @sc_main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 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_signal", align 8
  %6 = alloca %"class.sc_core::sc_signal.8", align 8
  %7 = alloca %struct.cgater, align 8
  %8 = alloca %"class.sc_core::sc_module_name", align 8
  %9 = alloca %struct.watcher, align 8
  %10 = alloca %"class.sc_core::sc_module_name", align 8
  %11 = alloca %struct.gategen, align 8
  %12 = alloca %"class.sc_core::sc_module_name", align 8
  %13 = alloca %struct.trigp, align 8
  %14 = alloca %"class.sc_core::sc_module_name", align 8
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %3) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1EPKc(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull @.str)
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %4) #7
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EEC1EPKc(ptr noundef nonnull align 8 dereferenceable(224) %4, ptr noundef nonnull @.str.2)
          to label %18 unwind label %38

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

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %6) #7
  invoke void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EEC1Ev(ptr noundef nonnull align 8 dereferenceable(196) %6)
          to label %20 unwind label %42

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 616, ptr nonnull %7) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %8, ptr noundef nonnull @.str.3)
          to label %21 unwind label %44

21:                                               ; preds = %20
  invoke void @_ZN6cgaterC2EN7sc_core14sc_module_nameERKNS0_9sc_signalIbLNS0_16sc_writer_policyE0EEERNS0_15sc_signal_in_ifIbEERNS0_18sc_signal_inout_ifIbEE(ptr noundef nonnull align 8 dereferenceable(616) %7, ptr noundef nonnull %8, ptr noundef nonnull align 8 dereferenceable(224) %5, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %22 unwind label %46

22:                                               ; preds = %21
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %8) #7
  call void @llvm.lifetime.start.p0(i64 616, ptr nonnull %9) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %10, ptr noundef nonnull @.str.4)
          to label %23 unwind label %48

23:                                               ; preds = %22
  invoke void @_ZN7watcherC2EN7sc_core14sc_module_nameERKNS0_9sc_signalIbLNS0_16sc_writer_policyE0EEERNS0_15sc_signal_in_ifIbEES9_RKNS2_IiLS3_0EEE(ptr noundef nonnull align 8 dereferenceable(616) %9, ptr noundef nonnull %10, ptr noundef nonnull align 8 dereferenceable(224) %5, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(196) %6)
          to label %24 unwind label %50

24:                                               ; preds = %23
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %10) #7
  call void @llvm.lifetime.start.p0(i64 424, ptr nonnull %11) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %12, ptr noundef nonnull @.str.5)
          to label %25 unwind label %52

25:                                               ; preds = %24
  invoke void @_ZN7gategenC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIbLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(424) %11, ptr noundef nonnull %12, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(224) %5)
          to label %26 unwind label %54

26:                                               ; preds = %25
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %12) #7
  call void @llvm.lifetime.start.p0(i64 424, ptr nonnull %13) #7
  invoke void @_ZN7sc_core14sc_module_nameC1EPKc(ptr noundef nonnull align 8 dereferenceable(33) %14, ptr noundef nonnull @.str.6)
          to label %27 unwind label %56

27:                                               ; preds = %26
  invoke void @_ZN5trigpC2EN7sc_core14sc_module_nameERNS0_15sc_signal_in_ifIbEERNS0_9sc_signalIiLNS0_16sc_writer_policyE0EEE(ptr noundef nonnull align 8 dereferenceable(424) %13, ptr noundef nonnull %14, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(196) %6)
          to label %28 unwind label %58

28:                                               ; preds = %27
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %14) #7
  %29 = invoke noundef ptr @_ZN7sc_core24sc_create_vcd_trace_fileEPKc(ptr noundef nonnull @.str.7)
          to label %30 unwind label %60

30:                                               ; preds = %28
  invoke void @_ZN7sc_core8sc_traceIbEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %29, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str.8)
          to label %31 unwind label %60

31:                                               ; preds = %30
  invoke void @_ZN7sc_core8sc_traceIbEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %29, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.9)
          to label %32 unwind label %60

32:                                               ; preds = %31
  invoke void @_ZN7sc_core8sc_traceIbEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %29, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull @.str.10)
          to label %33 unwind label %60

33:                                               ; preds = %32
  invoke void @_ZN7sc_core8sc_traceIiEEvPNS_13sc_trace_fileERKNS_15sc_signal_in_ifIT_EEPKc(ptr noundef %29, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.11)
          to label %34 unwind label %60

34:                                               ; preds = %33
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 0, i32 noundef 2, i32 noundef 1)
          to label %35 unwind label %60

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

36:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  invoke void @_ZN7sc_core8sc_startEiNS_12sc_time_unitENS_20sc_starvation_policyE(i32 noundef 5, i32 noundef 2, i32 noundef 1)
          to label %.preheader unwind label %60

37:                                               ; preds = %67
  call void @_ZN5trigpD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %13) #7
  call void @llvm.lifetime.end.p0(i64 424, ptr nonnull %13) #7
  call void @_ZN7gategenD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %11) #7
  call void @llvm.lifetime.end.p0(i64 424, ptr nonnull %11) #7
  call void @_ZN7watcherD2Ev(ptr noundef nonnull align 8 dereferenceable(616) %9) #7
  call void @llvm.lifetime.end.p0(i64 616, ptr nonnull %9) #7
  call void @_ZN6cgaterD2Ev(ptr noundef nonnull align 8 dereferenceable(616) %7) #7
  call void @llvm.lifetime.end.p0(i64 616, ptr nonnull %7) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %6) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %6) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %5) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %5) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %4) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %4) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %3) #7
  ret i32 0

38:                                               ; preds = %2
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %82

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

42:                                               ; preds = %19
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %80

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

46:                                               ; preds = %21
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %8) #7
  br label %79

48:                                               ; preds = %22
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %78

50:                                               ; preds = %23
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %10) #7
  br label %78

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

54:                                               ; preds = %25
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %12) #7
  br label %77

56:                                               ; preds = %26
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %76

58:                                               ; preds = %27
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7sc_core14sc_module_nameD1Ev(ptr noundef nonnull align 8 dereferenceable(33) %14) #7
  br label %76

60:                                               ; preds = %36, %34, %33, %32, %31, %30, %28
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %75

62:                                               ; preds = %35
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  br label %75

.preheader:                                       ; preds = %36, %67
  %.026 = phi i32 [ %68, %67 ], [ 0, %36 ]
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #7
  store i8 1, ptr %16, align 1, !tbaa !5
  invoke void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EE5writeERKb(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %64 unwind label %69

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

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

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

67:                                               ; preds = %66
  %68 = add nuw nsw i32 %.026, 1
  %exitcond.not = icmp eq i32 %68, 30
  br i1 %exitcond.not, label %37, label %.preheader, !llvm.loop !9

69:                                               ; preds = %.preheader
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #7
  br label %75

71:                                               ; preds = %66, %64
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %65
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #7
  br label %75

75:                                               ; preds = %69, %71, %73, %62, %60
  %.pn.pn = phi { ptr, i32 } [ %61, %60 ], [ %63, %62 ], [ %72, %71 ], [ %74, %73 ], [ %70, %69 ]
  call void @_ZN5trigpD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %13) #7
  br label %76

76:                                               ; preds = %75, %58, %56
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %75 ], [ %59, %58 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 424, ptr nonnull %13) #7
  call void @_ZN7gategenD2Ev(ptr noundef nonnull align 8 dereferenceable(424) %11) #7
  br label %77

77:                                               ; preds = %76, %54, %52
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %76 ], [ %55, %54 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 424, ptr nonnull %11) #7
  call void @_ZN7watcherD2Ev(ptr noundef nonnull align 8 dereferenceable(616) %9) #7
  br label %78

78:                                               ; preds = %77, %50, %48
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %77 ], [ %51, %50 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 616, ptr nonnull %9) #7
  call void @_ZN6cgaterD2Ev(ptr noundef nonnull align 8 dereferenceable(616) %7) #7
  br label %79

79:                                               ; preds = %78, %46, %44
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %78 ], [ %47, %46 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 616, ptr nonnull %7) #7
  call void @_ZN7sc_core9sc_signalIiLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(196) %6) #7
  br label %80

80:                                               ; preds = %79, %42
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %79 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %6) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %5) #7
  br label %81

81:                                               ; preds = %80, %40
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %80 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %5) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %4) #7
  br label %82

82:                                               ; preds = %81, %38
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %81 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %4) #7
  call void @_ZN7sc_core9sc_signalIbLNS_16sc_writer_policyE0EED1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

; 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 #4

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

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

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

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

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

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

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

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

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

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

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


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