; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/misc/sim_tests/cycle_dw8051_demo (cycle_model)

; 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.instr = type { i32, i32, %struct.operand, %struct.operand, %struct.operand, i32 }
%struct.operand = type { i32, i32 }
%struct.cycle_model = type <{ %"class.sc_core::sc_module", %"class.sc_core::sc_in", ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [65536 x i32], [65536 x i32], [2048 x i32], i32, [8 x i32], [4 x i8], ptr, i32, i32, i32, [4 x i8] }>
%"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_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] }
%"class.sc_core::sc_process_host" = type { ptr }
%"class.sc_core::sc_sensitive" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_pos" = type { ptr, i32, ptr }
%"class.sc_core::sc_sensitive_neg" = type { ptr, i32, ptr }
%"class.sc_core::sc_in" = type { %"class.sc_core::sc_port", ptr, ptr, ptr, ptr }
%"class.sc_core::sc_port" = type { %"class.sc_core::sc_port_b" }
%"class.sc_core::sc_port_b" = type { %"class.sc_core::sc_port_base", ptr, %"class.std::vector.8" }
%"class.sc_core::sc_port_base" = type { %"class.sc_core::sc_object", ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sc_core::sc_signal_in_if<bool> *, std::allocator<sc_core::sc_signal_in_if<bool> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.stack_el = type { i32, ptr }

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN11cycle_model13fetch_operandEP7operand(ptr noundef nonnull align 8 dereferenceable(533052), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN11cycle_model10write_backEP7operandi(ptr noundef nonnull align 8 dereferenceable(533052), ptr noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11cycle_model7executeEP5instr(ptr noundef nonnull align 8 dereferenceable(533052) %0, ptr noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.instr, ptr %18, i32 0, i32 1
  %20 = load i32, ptr %19, align 4, !tbaa !11
  %21 = icmp sge i32 %20, 1
  br i1 %21, label %22, label %26

22:                                               ; preds = %2
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.instr, ptr %23, i32 0, i32 2
  %25 = call noundef i32 @_ZN11cycle_model13fetch_operandEP7operand(ptr noundef nonnull align 8 dereferenceable(533052) %17, ptr noundef %24)
  store i32 %25, ptr %5, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %22, %2
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.instr, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = icmp sge i32 %29, 2
  br i1 %30, label %31, label %35

31:                                               ; preds = %26
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.instr, ptr %32, i32 0, i32 3
  %34 = call noundef i32 @_ZN11cycle_model13fetch_operandEP7operand(ptr noundef nonnull align 8 dereferenceable(533052) %17, ptr noundef %33)
  store i32 %34, ptr %6, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %31, %26
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.instr, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 4, !tbaa !16
  switch i32 %38, label %100 [
    i32 0, label %39
    i32 1, label %43
    i32 2, label %47
    i32 3, label %50
    i32 4, label %53
    i32 5, label %57
    i32 6, label %61
    i32 7, label %65
    i32 8, label %69
    i32 11, label %73
    i32 12, label %76
    i32 13, label %79
    i32 14, label %81
    i32 15, label %81
    i32 16, label %81
    i32 17, label %81
    i32 18, label %82
    i32 19, label %87
    i32 20, label %92
    i32 21, label %97
  ]

39:                                               ; preds = %35
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = load i32, ptr %6, align 4, !tbaa !9
  %42 = add nsw i32 %40, %41
  store i32 %42, ptr %7, align 4, !tbaa !9
  br label %101

43:                                               ; preds = %35
  %44 = load i32, ptr %5, align 4, !tbaa !9
  %45 = load i32, ptr %6, align 4, !tbaa !9
  %46 = sub nsw i32 %44, %45
  store i32 %46, ptr %7, align 4, !tbaa !9
  br label %101

47:                                               ; preds = %35
  %48 = load i32, ptr %5, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %7, align 4, !tbaa !9
  br label %101

50:                                               ; preds = %35
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = sub nsw i32 %51, 1
  store i32 %52, ptr %7, align 4, !tbaa !9
  br label %101

53:                                               ; preds = %35
  %54 = load i32, ptr %5, align 4, !tbaa !9
  %55 = load i32, ptr %6, align 4, !tbaa !9
  %56 = mul nsw i32 %54, %55
  store i32 %56, ptr %7, align 4, !tbaa !9
  br label %101

57:                                               ; preds = %35
  %58 = load i32, ptr %5, align 4, !tbaa !9
  %59 = load i32, ptr %6, align 4, !tbaa !9
  %60 = sdiv i32 %58, %59
  store i32 %60, ptr %7, align 4, !tbaa !9
  br label %101

61:                                               ; preds = %35
  %62 = load i32, ptr %5, align 4, !tbaa !9
  %63 = load i32, ptr %6, align 4, !tbaa !9
  %64 = and i32 %62, %63
  store i32 %64, ptr %7, align 4, !tbaa !9
  br label %101

65:                                               ; preds = %35
  %66 = load i32, ptr %5, align 4, !tbaa !9
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = or i32 %66, %67
  store i32 %68, ptr %7, align 4, !tbaa !9
  br label %101

69:                                               ; preds = %35
  %70 = load i32, ptr %5, align 4, !tbaa !9
  %71 = load i32, ptr %6, align 4, !tbaa !9
  %72 = xor i32 %70, %71
  store i32 %72, ptr %7, align 4, !tbaa !9
  br label %101

73:                                               ; preds = %35
  %74 = load i32, ptr %5, align 4, !tbaa !9
  %75 = shl i32 %74, 1
  store i32 %75, ptr %7, align 4, !tbaa !9
  br label %101

76:                                               ; preds = %35
  %77 = load i32, ptr %6, align 4, !tbaa !9
  %78 = ashr i32 %77, 1
  store i32 %78, ptr %7, align 4, !tbaa !9
  br label %101

79:                                               ; preds = %35
  %80 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %80, ptr %7, align 4, !tbaa !9
  br label %101

81:                                               ; preds = %35, %35, %35, %35
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %101

82:                                               ; preds = %35
  %83 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 17
  %84 = load i32, ptr %83, align 8, !tbaa !17
  %85 = icmp eq i32 %84, 0
  %86 = zext i1 %85 to i32
  store i32 %86, ptr %7, align 4, !tbaa !9
  br label %101

87:                                               ; preds = %35
  %88 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 17
  %89 = load i32, ptr %88, align 8, !tbaa !17
  %90 = icmp ne i32 %89, 0
  %91 = zext i1 %90 to i32
  store i32 %91, ptr %7, align 4, !tbaa !9
  br label %101

92:                                               ; preds = %35
  %93 = load i32, ptr %5, align 4, !tbaa !9
  %94 = load i32, ptr %6, align 4, !tbaa !9
  %95 = icmp ne i32 %93, %94
  %96 = zext i1 %95 to i32
  store i32 %96, ptr %7, align 4, !tbaa !9
  br label %101

97:                                               ; preds = %35
  %98 = load i32, ptr %5, align 4, !tbaa !9
  %99 = sub nsw i32 %98, 1
  store i32 %99, ptr %7, align 4, !tbaa !9
  br label %101

100:                                              ; preds = %35
  br label %101

101:                                              ; preds = %100, %97, %92, %87, %82, %81, %79, %76, %73, %69, %65, %61, %57, %53, %50, %47, %43, %39
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.instr, ptr %102, i32 0, i32 4
  %104 = load i32, ptr %7, align 4, !tbaa !9
  %105 = call noundef i32 @_ZN11cycle_model10write_backEP7operandi(ptr noundef nonnull align 8 dereferenceable(533052) %17, ptr noundef %103, i32 noundef %104)
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.instr, ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 4, !tbaa !16
  switch i32 %108, label %201 [
    i32 14, label %109
    i32 15, label %120
    i32 16, label %139
    i32 17, label %144
    i32 18, label %144
    i32 19, label %144
    i32 20, label %162
    i32 21, label %183
  ]

109:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %110 = call noalias ptr @malloc(i64 noundef 16) #5
  store ptr %110, ptr %8, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  %112 = load ptr, ptr %111, align 8, !tbaa !48
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.stack_el, ptr %113, i32 0, i32 1
  store ptr %112, ptr %114, align 8, !tbaa !49
  %115 = load i32, ptr %5, align 4, !tbaa !9
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.stack_el, ptr %116, i32 0, i32 0
  store i32 %115, ptr %117, align 8, !tbaa !51
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  store ptr %118, ptr %119, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %17, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %207

120:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %121 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  %122 = load ptr, ptr %121, align 8, !tbaa !48
  %123 = getelementptr inbounds %struct.stack_el, ptr %122, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8, !tbaa !49
  store ptr %124, ptr %10, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  %126 = load ptr, ptr %125, align 8, !tbaa !48
  call void @free(ptr noundef %126) #4
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  store ptr %127, ptr %128, align 8, !tbaa !48
  %129 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  %130 = load ptr, ptr %129, align 8, !tbaa !48
  %131 = icmp ne ptr %130, null
  br i1 %131, label %132, label %138

132:                                              ; preds = %120
  %133 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  %134 = load ptr, ptr %133, align 8, !tbaa !48
  %135 = getelementptr inbounds %struct.stack_el, ptr %134, i32 0, i32 0
  %136 = load i32, ptr %135, align 8, !tbaa !51
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %135, align 8, !tbaa !51
  br label %138

138:                                              ; preds = %132, %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %17, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %11)
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %17, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %11)
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %17, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %207

139:                                              ; preds = %101
  %140 = load i32, ptr %5, align 4, !tbaa !9
  %141 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  %142 = load ptr, ptr %141, align 8, !tbaa !48
  %143 = getelementptr inbounds %struct.stack_el, ptr %142, i32 0, i32 0
  store i32 %140, ptr %143, align 8, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %17, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %207

144:                                              ; preds = %101, %101, %101
  %145 = load i32, ptr %7, align 4, !tbaa !9
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %155

147:                                              ; preds = %144
  %148 = load i32, ptr %5, align 4, !tbaa !9
  %149 = add nsw i32 %148, 1
  %150 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  %151 = load ptr, ptr %150, align 8, !tbaa !48
  %152 = getelementptr inbounds %struct.stack_el, ptr %151, i32 0, i32 0
  %153 = load i32, ptr %152, align 8, !tbaa !51
  %154 = add nsw i32 %153, %149
  store i32 %154, ptr %152, align 8, !tbaa !51
  br label %161

155:                                              ; preds = %144
  %156 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  %157 = load ptr, ptr %156, align 8, !tbaa !48
  %158 = getelementptr inbounds %struct.stack_el, ptr %157, i32 0, i32 0
  %159 = load i32, ptr %158, align 8, !tbaa !51
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %158, align 8, !tbaa !51
  br label %161

161:                                              ; preds = %155, %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %17, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %207

162:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.instr, ptr %163, i32 0, i32 4
  %165 = call noundef i32 @_ZN11cycle_model13fetch_operandEP7operand(ptr noundef nonnull align 8 dereferenceable(533052) %17, ptr noundef %164)
  store i32 %165, ptr %14, align 4, !tbaa !9
  %166 = load i32, ptr %7, align 4, !tbaa !9
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %176

168:                                              ; preds = %162
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = add nsw i32 %169, 1
  %171 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  %172 = load ptr, ptr %171, align 8, !tbaa !48
  %173 = getelementptr inbounds %struct.stack_el, ptr %172, i32 0, i32 0
  %174 = load i32, ptr %173, align 8, !tbaa !51
  %175 = add nsw i32 %174, %170
  store i32 %175, ptr %173, align 8, !tbaa !51
  br label %182

176:                                              ; preds = %162
  %177 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  %178 = load ptr, ptr %177, align 8, !tbaa !48
  %179 = getelementptr inbounds %struct.stack_el, ptr %178, i32 0, i32 0
  %180 = load i32, ptr %179, align 8, !tbaa !51
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %179, align 8, !tbaa !51
  br label %182

182:                                              ; preds = %176, %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %17, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %15)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %207

183:                                              ; preds = %101
  %184 = load i32, ptr %7, align 4, !tbaa !9
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %194

186:                                              ; preds = %183
  %187 = load i32, ptr %6, align 4, !tbaa !9
  %188 = add nsw i32 %187, 1
  %189 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  %190 = load ptr, ptr %189, align 8, !tbaa !48
  %191 = getelementptr inbounds %struct.stack_el, ptr %190, i32 0, i32 0
  %192 = load i32, ptr %191, align 8, !tbaa !51
  %193 = add nsw i32 %192, %188
  store i32 %193, ptr %191, align 8, !tbaa !51
  br label %200

194:                                              ; preds = %183
  %195 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  %196 = load ptr, ptr %195, align 8, !tbaa !48
  %197 = getelementptr inbounds %struct.stack_el, ptr %196, i32 0, i32 0
  %198 = load i32, ptr %197, align 8, !tbaa !51
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %197, align 8, !tbaa !51
  br label %200

200:                                              ; preds = %194, %186
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %17, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef %16)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %207

201:                                              ; preds = %101
  %202 = getelementptr inbounds %struct.cycle_model, ptr %17, i32 0, i32 20
  %203 = load ptr, ptr %202, align 8, !tbaa !48
  %204 = getelementptr inbounds %struct.stack_el, ptr %203, i32 0, i32 0
  %205 = load i32, ptr %204, align 8, !tbaa !51
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %204, align 8, !tbaa !51
  br label %207

207:                                              ; preds = %201, %200, %182, %161, %139, %138, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

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 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"_ZTS5instr", !13, i64 0, !10, i64 4, !14, i64 8, !14, i64 16, !14, i64 24, !10, i64 32}
!13 = !{!"_ZTS10instr_type", !7, i64 0}
!14 = !{!"_ZTS7operand", !15, i64 0, !10, i64 4}
!15 = !{!"_ZTS7op_type", !7, i64 0}
!16 = !{!12, !13, i64 0}
!17 = !{!18, !10, i64 532992}
!18 = !{!"_ZTS11cycle_model", !19, i64 0, !40, i64 232, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !6, i64 504, !7, i64 512, !7, i64 262656, !7, i64 524800, !10, i64 532992, !7, i64 532996, !6, i64 533032, !10, i64 533040, !10, i64 533044, !10, i64 533048}
!19 = !{!"_ZTSN7sc_core9sc_moduleE", !20, i64 0, !32, i64 112, !33, i64 120, !35, i64 144, !37, i64 168, !39, i64 192, !6, i64 200, !10, i64 208, !6, i64 216, !6, i64 224}
!20 = !{!"_ZTSN7sc_core9sc_objectE", !6, i64 8, !21, i64 16, !25, i64 40, !29, i64 64, !6, i64 96, !6, i64 104}
!21 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !30, i64 0, !31, i64 8, !7, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!31 = !{!"long", !7, i64 0}
!32 = !{!"_ZTSN7sc_core15sc_process_hostE"}
!33 = !{!"_ZTSN7sc_core12sc_sensitiveE", !6, i64 0, !34, i64 8, !6, i64 16}
!34 = !{!"_ZTSN7sc_core12sc_sensitiveUt_E", !7, i64 0}
!35 = !{!"_ZTSN7sc_core16sc_sensitive_posE", !6, i64 0, !36, i64 8, !6, i64 16}
!36 = !{!"_ZTSN7sc_core16sc_sensitive_posUt_E", !7, i64 0}
!37 = !{!"_ZTSN7sc_core16sc_sensitive_negE", !6, i64 0, !38, i64 8, !6, i64 16}
!38 = !{!"_ZTSN7sc_core16sc_sensitive_negUt_E", !7, i64 0}
!39 = !{!"bool", !7, i64 0}
!40 = !{!"_ZTSN7sc_core5sc_inIbEE", !41, i64 0, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176}
!41 = !{!"_ZTSN7sc_core7sc_portINS_15sc_signal_in_ifIbEELi1ELNS_14sc_port_policyE0EEE", !42, i64 0}
!42 = !{!"_ZTSN7sc_core9sc_port_bINS_15sc_signal_in_ifIbEEEE", !43, i64 0, !6, i64 120, !44, i64 128}
!43 = !{!"_ZTSN7sc_core12sc_port_baseE", !20, i64 0, !6, i64 112}
!44 = !{!"_ZTSSt6vectorIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!48 = !{!18, !6, i64 533032}
!49 = !{!50, !6, i64 8}
!50 = !{!"_ZTS8stack_el", !10, i64 0, !6, i64 8}
!51 = !{!50, !10, i64 0}


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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN11cycle_model13fetch_operandEP7operand(ptr noundef nonnull align 8 dereferenceable(533052), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN11cycle_model10write_backEP7operandi(ptr noundef nonnull align 8 dereferenceable(533052), ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11cycle_model7executeEP5instr(ptr noundef nonnull align 8 dereferenceable(533052) %0, ptr noundef %1) local_unnamed_addr #1 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = getelementptr inbounds i8, ptr %1, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %12, label %.thread

12:                                               ; preds = %2
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = tail call noundef i32 @_ZN11cycle_model13fetch_operandEP7operand(ptr noundef nonnull align 8 dereferenceable(533052) %0, ptr noundef nonnull %13)
  %.pr = load i32, ptr %9, align 4, !tbaa !5
  %15 = icmp sgt i32 %.pr, 1
  br i1 %15, label %16, label %.thread

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %1, i64 16
  %18 = tail call noundef i32 @_ZN11cycle_model13fetch_operandEP7operand(ptr noundef nonnull align 8 dereferenceable(533052) %0, ptr noundef nonnull %17)
  br label %.thread

.thread:                                          ; preds = %2, %16, %12
  %.050 = phi i32 [ %14, %16 ], [ %14, %12 ], [ undef, %2 ]
  %.043 = phi i32 [ %18, %16 ], [ undef, %12 ], [ undef, %2 ]
  %19 = load i32, ptr %1, align 4, !tbaa !13
  switch i32 %19, label %59 [
    i32 0, label %20
    i32 1, label %22
    i32 2, label %24
    i32 3, label %26
    i32 4, label %28
    i32 5, label %30
    i32 6, label %32
    i32 7, label %34
    i32 8, label %36
    i32 11, label %38
    i32 12, label %40
    i32 13, label %42
    i32 14, label %43
    i32 15, label %43
    i32 16, label %43
    i32 17, label %43
    i32 18, label %44
    i32 19, label %49
    i32 20, label %54
    i32 21, label %57
  ]

20:                                               ; preds = %.thread
  %21 = add nsw i32 %.043, %.050
  br label %59

22:                                               ; preds = %.thread
  %23 = sub nsw i32 %.050, %.043
  br label %59

24:                                               ; preds = %.thread
  %25 = add nsw i32 %.050, 1
  br label %59

26:                                               ; preds = %.thread
  %27 = add nsw i32 %.050, -1
  br label %59

28:                                               ; preds = %.thread
  %29 = mul nsw i32 %.043, %.050
  br label %59

30:                                               ; preds = %.thread
  %31 = sdiv i32 %.050, %.043
  br label %59

32:                                               ; preds = %.thread
  %33 = and i32 %.043, %.050
  br label %59

34:                                               ; preds = %.thread
  %35 = or i32 %.043, %.050
  br label %59

36:                                               ; preds = %.thread
  %37 = xor i32 %.043, %.050
  br label %59

38:                                               ; preds = %.thread
  %39 = shl i32 %.050, 1
  br label %59

40:                                               ; preds = %.thread
  %41 = ashr i32 %.043, 1
  br label %59

42:                                               ; preds = %.thread
  br label %59

43:                                               ; preds = %.thread, %.thread, %.thread, %.thread
  br label %59

44:                                               ; preds = %.thread
  %45 = getelementptr inbounds i8, ptr %0, i64 532992
  %46 = load i32, ptr %45, align 8, !tbaa !14
  %47 = icmp eq i32 %46, 0
  %48 = zext i1 %47 to i32
  br label %59

49:                                               ; preds = %.thread
  %50 = getelementptr inbounds i8, ptr %0, i64 532992
  %51 = load i32, ptr %50, align 8, !tbaa !14
  %52 = icmp ne i32 %51, 0
  %53 = zext i1 %52 to i32
  br label %59

54:                                               ; preds = %.thread
  %55 = icmp ne i32 %.050, %.043
  %56 = zext i1 %55 to i32
  br label %59

57:                                               ; preds = %.thread
  %58 = add nsw i32 %.050, -1
  br label %59

59:                                               ; preds = %.thread, %57, %54, %49, %44, %43, %42, %40, %38, %36, %34, %32, %30, %28, %26, %24, %22, %20
  %.044 = phi i32 [ 0, %.thread ], [ %58, %57 ], [ %56, %54 ], [ %53, %49 ], [ %48, %44 ], [ 1, %43 ], [ %.050, %42 ], [ %41, %40 ], [ %39, %38 ], [ %37, %36 ], [ %35, %34 ], [ %33, %32 ], [ %31, %30 ], [ %29, %28 ], [ %27, %26 ], [ %25, %24 ], [ %23, %22 ], [ %21, %20 ]
  %60 = getelementptr inbounds i8, ptr %1, i64 24
  %61 = tail call noundef i32 @_ZN11cycle_model10write_backEP7operandi(ptr noundef nonnull align 8 dereferenceable(533052) %0, ptr noundef nonnull %60, i32 noundef %.044)
  %62 = load i32, ptr %1, align 4, !tbaa !13
  switch i32 %62, label %120 [
    i32 14, label %63
    i32 15, label %68
    i32 16, label %77
    i32 17, label %80
    i32 18, label %80
    i32 19, label %80
    i32 20, label %93
    i32 21, label %107
  ]

63:                                               ; preds = %59
  %64 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #4
  %65 = getelementptr inbounds i8, ptr %0, i64 533032
  %66 = load ptr, ptr %65, align 8, !tbaa !46
  %67 = getelementptr inbounds i8, ptr %64, i64 8
  store ptr %66, ptr %67, align 8, !tbaa !47
  store i32 %.050, ptr %64, align 8, !tbaa !49
  store ptr %64, ptr %65, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  br label %125

68:                                               ; preds = %59
  %69 = getelementptr inbounds i8, ptr %0, i64 533032
  %70 = load ptr, ptr %69, align 8, !tbaa !46
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  %72 = load ptr, ptr %71, align 8, !tbaa !47
  tail call void @free(ptr noundef %70) #5
  store ptr %72, ptr %69, align 8, !tbaa !46
  %.not48 = icmp eq ptr %72, null
  br i1 %.not48, label %76, label %73

73:                                               ; preds = %68
  %74 = load i32, ptr %72, align 8, !tbaa !49
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %72, align 8, !tbaa !49
  br label %76

76:                                               ; preds = %73, %68
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %4)
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %4)
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %125

77:                                               ; preds = %59
  %78 = getelementptr inbounds i8, ptr %0, i64 533032
  %79 = load ptr, ptr %78, align 8, !tbaa !46
  store i32 %.050, ptr %79, align 8, !tbaa !49
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %125

80:                                               ; preds = %59, %59, %59
  %.not47 = icmp eq i32 %.044, 0
  br i1 %.not47, label %87, label %81

81:                                               ; preds = %80
  %82 = add nsw i32 %.050, 1
  %83 = getelementptr inbounds i8, ptr %0, i64 533032
  %84 = load ptr, ptr %83, align 8, !tbaa !46
  %85 = load i32, ptr %84, align 8, !tbaa !49
  %86 = add nsw i32 %82, %85
  store i32 %86, ptr %84, align 8, !tbaa !49
  br label %92

87:                                               ; preds = %80
  %88 = getelementptr inbounds i8, ptr %0, i64 533032
  %89 = load ptr, ptr %88, align 8, !tbaa !46
  %90 = load i32, ptr %89, align 8, !tbaa !49
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %89, align 8, !tbaa !49
  br label %92

92:                                               ; preds = %87, %81
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %125

93:                                               ; preds = %59
  %94 = tail call noundef i32 @_ZN11cycle_model13fetch_operandEP7operand(ptr noundef nonnull align 8 dereferenceable(533052) %0, ptr noundef nonnull %60)
  %.not46 = icmp eq i32 %.044, 0
  br i1 %.not46, label %101, label %95

95:                                               ; preds = %93
  %96 = add nsw i32 %94, 1
  %97 = getelementptr inbounds i8, ptr %0, i64 533032
  %98 = load ptr, ptr %97, align 8, !tbaa !46
  %99 = load i32, ptr %98, align 8, !tbaa !49
  %100 = add nsw i32 %96, %99
  store i32 %100, ptr %98, align 8, !tbaa !49
  br label %106

101:                                              ; preds = %93
  %102 = getelementptr inbounds i8, ptr %0, i64 533032
  %103 = load ptr, ptr %102, align 8, !tbaa !46
  %104 = load i32, ptr %103, align 8, !tbaa !49
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %103, align 8, !tbaa !49
  br label %106

106:                                              ; preds = %101, %95
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %125

107:                                              ; preds = %59
  %.not = icmp eq i32 %.044, 0
  br i1 %.not, label %114, label %108

108:                                              ; preds = %107
  %109 = add nsw i32 %.043, 1
  %110 = getelementptr inbounds i8, ptr %0, i64 533032
  %111 = load ptr, ptr %110, align 8, !tbaa !46
  %112 = load i32, ptr %111, align 8, !tbaa !49
  %113 = add nsw i32 %109, %112
  store i32 %113, ptr %111, align 8, !tbaa !49
  br label %119

114:                                              ; preds = %107
  %115 = getelementptr inbounds i8, ptr %0, i64 533032
  %116 = load ptr, ptr %115, align 8, !tbaa !46
  %117 = load i32, ptr %116, align 8, !tbaa !49
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %116, align 8, !tbaa !49
  br label %119

119:                                              ; preds = %114, %108
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  call void @_ZN11cycle_model14exec_bus_cycleE14bus_cycle_typeiiPi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef 0, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %8)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %125

120:                                              ; preds = %59
  %121 = getelementptr inbounds i8, ptr %0, i64 533032
  %122 = load ptr, ptr %121, align 8, !tbaa !46
  %123 = load i32, ptr %122, align 8, !tbaa !49
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %122, align 8, !tbaa !49
  br label %125

125:                                              ; preds = %120, %119, %106, %92, %77, %76, %63
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 allocsize(0) }
attributes #5 = { 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, !10, i64 4}
!6 = !{!"_ZTS5instr", !7, i64 0, !10, i64 4, !11, i64 8, !11, i64 16, !11, i64 24, !10, i64 32}
!7 = !{!"_ZTS10instr_type", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS7operand", !12, i64 0, !10, i64 4}
!12 = !{!"_ZTS7op_type", !8, i64 0}
!13 = !{!6, !7, i64 0}
!14 = !{!15, !10, i64 532992}
!15 = !{!"_ZTS11cycle_model", !16, i64 0, !38, i64 232, !18, i64 416, !18, i64 424, !18, i64 432, !18, i64 440, !18, i64 448, !18, i64 456, !18, i64 464, !18, i64 472, !18, i64 480, !18, i64 488, !18, i64 496, !18, i64 504, !8, i64 512, !8, i64 262656, !8, i64 524800, !10, i64 532992, !8, i64 532996, !18, i64 533032, !10, i64 533040, !10, i64 533044, !10, i64 533048}
!16 = !{!"_ZTSN7sc_core9sc_moduleE", !17, i64 0, !30, i64 112, !31, i64 120, !33, i64 144, !35, i64 168, !37, i64 192, !18, i64 200, !10, i64 208, !18, i64 216, !18, i64 224}
!17 = !{!"_ZTSN7sc_core9sc_objectE", !18, i64 8, !19, i64 16, !23, i64 40, !27, i64 64, !18, i64 96, !18, i64 104}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!23 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !28, i64 0, !29, i64 8, !8, i64 16}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !18, i64 0}
!29 = !{!"long", !8, i64 0}
!30 = !{!"_ZTSN7sc_core15sc_process_hostE"}
!31 = !{!"_ZTSN7sc_core12sc_sensitiveE", !18, i64 0, !32, i64 8, !18, i64 16}
!32 = !{!"_ZTSN7sc_core12sc_sensitiveUt_E", !8, i64 0}
!33 = !{!"_ZTSN7sc_core16sc_sensitive_posE", !18, i64 0, !34, i64 8, !18, i64 16}
!34 = !{!"_ZTSN7sc_core16sc_sensitive_posUt_E", !8, i64 0}
!35 = !{!"_ZTSN7sc_core16sc_sensitive_negE", !18, i64 0, !36, i64 8, !18, i64 16}
!36 = !{!"_ZTSN7sc_core16sc_sensitive_negUt_E", !8, i64 0}
!37 = !{!"bool", !8, i64 0}
!38 = !{!"_ZTSN7sc_core5sc_inIbEE", !39, i64 0, !18, i64 152, !18, i64 160, !18, i64 168, !18, i64 176}
!39 = !{!"_ZTSN7sc_core7sc_portINS_15sc_signal_in_ifIbEELi1ELNS_14sc_port_policyE0EEE", !40, i64 0}
!40 = !{!"_ZTSN7sc_core9sc_port_bINS_15sc_signal_in_ifIbEEEE", !41, i64 0, !18, i64 120, !42, i64 128}
!41 = !{!"_ZTSN7sc_core12sc_port_baseE", !17, i64 0, !18, i64 112}
!42 = !{!"_ZTSSt6vectorIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!46 = !{!15, !18, i64 533032}
!47 = !{!48, !18, i64 8}
!48 = !{!"_ZTS8stack_el", !10, i64 0, !18, i64 8}
!49 = !{!48, !10, i64 0}


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