; 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.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 }

@_ZN7sc_core23SC_ID_ASSERTION_FAILED_E = external constant [0 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [28 x i8], align 1

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

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

declare void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN11cycle_model13fetch_operandEP7operand(ptr noundef nonnull align 8 dereferenceable(533052) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.operand, ptr %16, i32 0, i32 0
  %18 = load i32, ptr %17, align 4, !tbaa !9
  switch i32 %18, label %259 [
    i32 1, label %19
    i32 2, label %22
    i32 3, label %43
    i32 4, label %72
    i32 5, label %118
    i32 7, label %151
    i32 8, label %163
    i32 9, label %197
    i32 10, label %214
    i32 6, label %239
  ]

19:                                               ; preds = %2
  %20 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 17
  %21 = load i32, ptr %20, align 8, !tbaa !13
  store i32 %21, ptr %3, align 4
  br label %260

22:                                               ; preds = %2
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.operand, ptr %23, i32 0, i32 1
  %25 = load i32, ptr %24, align 4, !tbaa !44
  %26 = icmp slt i32 %25, 8
  br i1 %26, label %27, label %33

27:                                               ; preds = %22
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.operand, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 4, !tbaa !44
  %31 = icmp sge i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %27
  br label %34

33:                                               ; preds = %27, %22
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.12, ptr noundef @.str.10, i32 noundef 1365)
  br label %34

34:                                               ; preds = %33, %32
  %35 = phi i32 [ 0, %32 ], [ 0, %33 ]
  %36 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 18
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.operand, ptr %37, i32 0, i32 1
  %39 = load i32, ptr %38, align 4, !tbaa !44
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [8 x i32], ptr %36, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !45
  store i32 %42, ptr %3, align 4
  br label %260

43:                                               ; preds = %2
  %44 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %45 = load ptr, ptr %44, align 8, !tbaa !46
  %46 = getelementptr inbounds %struct.stack_el, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !47
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %46, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %49 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %50 = load ptr, ptr %49, align 8, !tbaa !46
  %51 = getelementptr inbounds %struct.stack_el, ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 8, !tbaa !47
  %53 = call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %15, i32 noundef %52)
  store i32 %53, ptr %6, align 4, !tbaa !45
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.operand, ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 4, !tbaa !44
  %57 = icmp slt i32 %56, 2048
  br i1 %57, label %58, label %64

58:                                               ; preds = %43
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.operand, ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 4, !tbaa !44
  %62 = icmp sge i32 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %58
  br label %65

64:                                               ; preds = %58, %43
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.13, ptr noundef @.str.10, i32 noundef 1376)
  br label %65

65:                                               ; preds = %64, %63
  %66 = phi i32 [ 0, %63 ], [ 0, %64 ]
  %67 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 16
  %68 = load i32, ptr %6, align 4, !tbaa !45
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [2048 x i32], ptr %67, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !45
  store i32 %71, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %260

72:                                               ; preds = %2
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.operand, ptr %73, i32 0, i32 1
  %75 = load i32, ptr %74, align 4, !tbaa !44
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %82, label %77

77:                                               ; preds = %72
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.operand, ptr %78, i32 0, i32 1
  %80 = load i32, ptr %79, align 4, !tbaa !44
  %81 = icmp eq i32 %80, 1
  br i1 %81, label %82, label %83

82:                                               ; preds = %77, %72
  br label %84

83:                                               ; preds = %77
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.14, ptr noundef @.str.10, i32 noundef 1381)
  br label %84

84:                                               ; preds = %83, %82
  %85 = phi i32 [ 0, %82 ], [ 0, %83 ]
  %86 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 18
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.operand, ptr %87, i32 0, i32 1
  %89 = load i32, ptr %88, align 4, !tbaa !44
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [8 x i32], ptr %86, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !45
  %93 = icmp slt i32 %92, 2048
  br i1 %93, label %94, label %104

94:                                               ; preds = %84
  %95 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 18
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.operand, ptr %96, i32 0, i32 1
  %98 = load i32, ptr %97, align 4, !tbaa !44
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [8 x i32], ptr %95, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !45
  %102 = icmp sge i32 %101, 0
  br i1 %102, label %103, label %104

103:                                              ; preds = %94
  br label %105

104:                                              ; preds = %94, %84
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.15, ptr noundef @.str.10, i32 noundef 1382)
  br label %105

105:                                              ; preds = %104, %103
  %106 = phi i32 [ 0, %103 ], [ 0, %104 ]
  %107 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 16
  %108 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 18
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.operand, ptr %109, i32 0, i32 1
  %111 = load i32, ptr %110, align 4, !tbaa !44
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [8 x i32], ptr %108, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !45
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [2048 x i32], ptr %107, i64 0, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !45
  store i32 %117, ptr %3, align 4
  br label %260

118:                                              ; preds = %2
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.operand, ptr %119, i32 0, i32 1
  %121 = load i32, ptr %120, align 4, !tbaa !44
  %122 = icmp eq i32 %121, 1
  br i1 %122, label %128, label %123

123:                                              ; preds = %118
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.operand, ptr %124, i32 0, i32 1
  %126 = load i32, ptr %125, align 4, !tbaa !44
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %128, label %129

128:                                              ; preds = %123, %118
  br label %130

129:                                              ; preds = %123
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.16, ptr noundef @.str.10, i32 noundef 1387)
  br label %130

130:                                              ; preds = %129, %128
  %131 = phi i32 [ 0, %128 ], [ 0, %129 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %132 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 18
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.operand, ptr %133, i32 0, i32 1
  %135 = load i32, ptr %134, align 4, !tbaa !44
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [8 x i32], ptr %132, i64 0, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !45
  store i32 %138, ptr %7, align 4, !tbaa !45
  %139 = load i32, ptr %7, align 4, !tbaa !45
  %140 = icmp slt i32 %139, 65536
  br i1 %140, label %141, label %145

141:                                              ; preds = %130
  %142 = load i32, ptr %7, align 4, !tbaa !45
  %143 = icmp sge i32 %142, 0
  br i1 %143, label %144, label %145

144:                                              ; preds = %141
  br label %146

145:                                              ; preds = %141, %130
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.17, ptr noundef @.str.10, i32 noundef 1389)
  br label %146

146:                                              ; preds = %145, %144
  %147 = phi i32 [ 0, %144 ], [ 0, %145 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %148 = load i32, ptr %7, align 4, !tbaa !45
  %149 = call noundef i32 @_ZN11cycle_model10fetch_dataEi(ptr noundef nonnull align 8 dereferenceable(533052) %15, i32 noundef %148)
  store i32 %149, ptr %8, align 4, !tbaa !45
  %150 = load i32, ptr %8, align 4, !tbaa !45
  store i32 %150, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %260

151:                                              ; preds = %2
  %152 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %153 = load ptr, ptr %152, align 8, !tbaa !46
  %154 = getelementptr inbounds %struct.stack_el, ptr %153, i32 0, i32 0
  %155 = load i32, ptr %154, align 8, !tbaa !47
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %154, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %157 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %158 = load ptr, ptr %157, align 8, !tbaa !46
  %159 = getelementptr inbounds %struct.stack_el, ptr %158, i32 0, i32 0
  %160 = load i32, ptr %159, align 8, !tbaa !47
  %161 = call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %15, i32 noundef %160)
  store i32 %161, ptr %9, align 4, !tbaa !45
  %162 = load i32, ptr %9, align 4, !tbaa !45
  store i32 %162, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %260

163:                                              ; preds = %2
  %164 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %165 = load ptr, ptr %164, align 8, !tbaa !46
  %166 = getelementptr inbounds %struct.stack_el, ptr %165, i32 0, i32 0
  %167 = load i32, ptr %166, align 8, !tbaa !47
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %166, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %169 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %170 = load ptr, ptr %169, align 8, !tbaa !46
  %171 = getelementptr inbounds %struct.stack_el, ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 8, !tbaa !47
  %173 = call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %15, i32 noundef %172)
  store i32 %173, ptr %10, align 4, !tbaa !45
  %174 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %175 = load ptr, ptr %174, align 8, !tbaa !46
  %176 = getelementptr inbounds %struct.stack_el, ptr %175, i32 0, i32 0
  %177 = load i32, ptr %176, align 8, !tbaa !47
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %176, align 8, !tbaa !47
  %179 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %180 = load ptr, ptr %179, align 8, !tbaa !46
  %181 = getelementptr inbounds %struct.stack_el, ptr %180, i32 0, i32 0
  %182 = load i32, ptr %181, align 8, !tbaa !47
  %183 = icmp sle i32 %182, 65536
  br i1 %183, label %184, label %185

184:                                              ; preds = %163
  br label %186

185:                                              ; preds = %163
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.18, ptr noundef @.str.10, i32 noundef 1410)
  br label %186

186:                                              ; preds = %185, %184
  %187 = phi i32 [ 0, %184 ], [ 0, %185 ]
  %188 = load i32, ptr %10, align 4, !tbaa !45
  %189 = shl i32 %188, 8
  %190 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %191 = load ptr, ptr %190, align 8, !tbaa !46
  %192 = getelementptr inbounds %struct.stack_el, ptr %191, i32 0, i32 0
  %193 = load i32, ptr %192, align 8, !tbaa !47
  %194 = call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %15, i32 noundef %193)
  %195 = add nsw i32 %189, %194
  store i32 %195, ptr %10, align 4, !tbaa !45
  %196 = load i32, ptr %10, align 4, !tbaa !45
  store i32 %196, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %260

197:                                              ; preds = %2
  %198 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %199 = load ptr, ptr %198, align 8, !tbaa !46
  %200 = getelementptr inbounds %struct.stack_el, ptr %199, i32 0, i32 0
  %201 = load i32, ptr %200, align 8, !tbaa !47
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %200, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.operand, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %204, align 4, !tbaa !44
  %206 = shl i32 %205, 8
  %207 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %208 = load ptr, ptr %207, align 8, !tbaa !46
  %209 = getelementptr inbounds %struct.stack_el, ptr %208, i32 0, i32 0
  %210 = load i32, ptr %209, align 8, !tbaa !47
  %211 = call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %15, i32 noundef %210)
  %212 = add nsw i32 %206, %211
  store i32 %212, ptr %11, align 4, !tbaa !45
  %213 = load i32, ptr %11, align 4, !tbaa !45
  store i32 %213, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %260

214:                                              ; preds = %2
  %215 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %216 = load ptr, ptr %215, align 8, !tbaa !46
  %217 = getelementptr inbounds %struct.stack_el, ptr %216, i32 0, i32 0
  %218 = load i32, ptr %217, align 8, !tbaa !47
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %217, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %220 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %221 = load ptr, ptr %220, align 8, !tbaa !46
  %222 = getelementptr inbounds %struct.stack_el, ptr %221, i32 0, i32 0
  %223 = load i32, ptr %222, align 8, !tbaa !47
  %224 = call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %15, i32 noundef %223)
  store i32 %224, ptr %12, align 4, !tbaa !45
  %225 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %226 = load ptr, ptr %225, align 8, !tbaa !46
  %227 = getelementptr inbounds %struct.stack_el, ptr %226, i32 0, i32 0
  %228 = load i32, ptr %227, align 8, !tbaa !47
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %227, align 8, !tbaa !47
  %230 = load i32, ptr %12, align 4, !tbaa !45
  %231 = shl i32 %230, 8
  %232 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %233 = load ptr, ptr %232, align 8, !tbaa !46
  %234 = getelementptr inbounds %struct.stack_el, ptr %233, i32 0, i32 0
  %235 = load i32, ptr %234, align 8, !tbaa !47
  %236 = call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %15, i32 noundef %235)
  %237 = add nsw i32 %231, %236
  store i32 %237, ptr %12, align 4, !tbaa !45
  %238 = load i32, ptr %12, align 4, !tbaa !45
  store i32 %238, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %260

239:                                              ; preds = %2
  %240 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %241 = load ptr, ptr %240, align 8, !tbaa !46
  %242 = getelementptr inbounds %struct.stack_el, ptr %241, i32 0, i32 0
  %243 = load i32, ptr %242, align 8, !tbaa !47
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %242, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %245 = getelementptr inbounds %struct.cycle_model, ptr %15, i32 0, i32 20
  %246 = load ptr, ptr %245, align 8, !tbaa !46
  %247 = getelementptr inbounds %struct.stack_el, ptr %246, i32 0, i32 0
  %248 = load i32, ptr %247, align 8, !tbaa !47
  %249 = call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %15, i32 noundef %248)
  store i32 %249, ptr %13, align 4, !tbaa !45
  %250 = load i32, ptr %13, align 4, !tbaa !45
  %251 = icmp slt i32 %250, 128
  br i1 %251, label %252, label %254

252:                                              ; preds = %239
  %253 = load i32, ptr %13, align 4, !tbaa !45
  store i32 %253, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %258

254:                                              ; preds = %239
  %255 = load i32, ptr %13, align 4, !tbaa !45
  %256 = sub nsw i32 256, %255
  %257 = sub nsw i32 0, %256
  store i32 %257, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %258

258:                                              ; preds = %254, %252
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %260

259:                                              ; preds = %2
  store i32 -1, ptr %3, align 4
  br label %260

260:                                              ; preds = %259, %258, %214, %197, %186, %151, %146, %105, %65, %34, %19
  %261 = load i32, ptr %3, align 4
  ret i32 %261
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS7operand", !11, i64 0, !12, i64 4}
!11 = !{!"_ZTS7op_type", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 532992}
!14 = !{!"_ZTS11cycle_model", !15, i64 0, !36, 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, !12, i64 532992, !7, i64 532996, !6, i64 533032, !12, i64 533040, !12, i64 533044, !12, i64 533048}
!15 = !{!"_ZTSN7sc_core9sc_moduleE", !16, i64 0, !28, i64 112, !29, i64 120, !31, i64 144, !33, i64 168, !35, i64 192, !6, i64 200, !12, i64 208, !6, i64 216, !6, i64 224}
!16 = !{!"_ZTSN7sc_core9sc_objectE", !6, i64 8, !17, i64 16, !21, i64 40, !25, i64 64, !6, i64 96, !6, i64 104}
!17 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !27, i64 8, !7, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_ZTSN7sc_core15sc_process_hostE"}
!29 = !{!"_ZTSN7sc_core12sc_sensitiveE", !6, i64 0, !30, i64 8, !6, i64 16}
!30 = !{!"_ZTSN7sc_core12sc_sensitiveUt_E", !7, i64 0}
!31 = !{!"_ZTSN7sc_core16sc_sensitive_posE", !6, i64 0, !32, i64 8, !6, i64 16}
!32 = !{!"_ZTSN7sc_core16sc_sensitive_posUt_E", !7, i64 0}
!33 = !{!"_ZTSN7sc_core16sc_sensitive_negE", !6, i64 0, !34, i64 8, !6, i64 16}
!34 = !{!"_ZTSN7sc_core16sc_sensitive_negUt_E", !7, i64 0}
!35 = !{!"bool", !7, i64 0}
!36 = !{!"_ZTSN7sc_core5sc_inIbEE", !37, i64 0, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176}
!37 = !{!"_ZTSN7sc_core7sc_portINS_15sc_signal_in_ifIbEELi1ELNS_14sc_port_policyE0EEE", !38, i64 0}
!38 = !{!"_ZTSN7sc_core9sc_port_bINS_15sc_signal_in_ifIbEEEE", !39, i64 0, !6, i64 120, !40, i64 128}
!39 = !{!"_ZTSN7sc_core12sc_port_baseE", !16, i64 0, !6, i64 112}
!40 = !{!"_ZTSSt6vectorIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core15sc_signal_in_ifIbEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!44 = !{!10, !12, i64 4}
!45 = !{!12, !12, i64 0}
!46 = !{!14, !6, i64 533032}
!47 = !{!48, !12, i64 0}
!48 = !{!"_ZTS8stack_el", !12, i64 0, !6, i64 8}


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

@_ZN7sc_core23SC_ID_ASSERTION_FAILED_E = external constant [0 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [28 x i8], align 1

declare void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN11cycle_model13fetch_operandEP7operand(ptr noundef nonnull align 8 dereferenceable(533052) %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 align 2 {
  %3 = load i32, ptr %1, align 4, !tbaa !5
  switch i32 %3, label %112 [
    i32 1, label %4
    i32 2, label %7
    i32 3, label %17
    i32 4, label %31
    i32 5, label %48
    i32 7, label %61
    i32 8, label %67
    i32 9, label %83
    i32 10, label %93
    i32 6, label %105
  ]

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 532992
  %6 = load i32, ptr %5, align 8, !tbaa !11
  br label %112

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %1, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !43
  %or.cond38 = icmp ult i32 %9, 8
  br i1 %or.cond38, label %11, label %10

10:                                               ; preds = %7
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.10, i32 noundef 1365)
  %.pre48 = load i32, ptr %8, align 4, !tbaa !43
  br label %11

11:                                               ; preds = %7, %10
  %12 = phi i32 [ %9, %7 ], [ %.pre48, %10 ]
  %13 = getelementptr inbounds i8, ptr %0, i64 532996
  %14 = sext i32 %12 to i64
  %15 = getelementptr inbounds [8 x i32], ptr %13, i64 0, i64 %14
  %16 = load i32, ptr %15, align 4, !tbaa !44
  br label %112

17:                                               ; preds = %2
  %18 = getelementptr inbounds i8, ptr %0, i64 533032
  %19 = load ptr, ptr %18, align 8, !tbaa !45
  %20 = load i32, ptr %19, align 8, !tbaa !46
  %21 = add nsw i32 %20, 1
  store i32 %21, ptr %19, align 8, !tbaa !46
  %22 = tail call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef %21)
  %23 = getelementptr inbounds i8, ptr %1, i64 4
  %24 = load i32, ptr %23, align 4, !tbaa !43
  %or.cond39 = icmp ult i32 %24, 2048
  br i1 %or.cond39, label %26, label %25

25:                                               ; preds = %17
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.10, i32 noundef 1376)
  br label %26

26:                                               ; preds = %17, %25
  %27 = getelementptr inbounds i8, ptr %0, i64 524800
  %28 = sext i32 %22 to i64
  %29 = getelementptr inbounds [2048 x i32], ptr %27, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !44
  br label %112

31:                                               ; preds = %2
  %32 = getelementptr inbounds i8, ptr %1, i64 4
  %33 = load i32, ptr %32, align 4, !tbaa !43
  %switch = icmp ult i32 %33, 2
  br i1 %switch, label %35, label %34

34:                                               ; preds = %31
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.10, i32 noundef 1381)
  %.pre44 = load i32, ptr %32, align 4, !tbaa !43
  br label %35

35:                                               ; preds = %31, %34
  %36 = phi i32 [ %33, %31 ], [ %.pre44, %34 ]
  %37 = getelementptr inbounds i8, ptr %0, i64 532996
  %38 = sext i32 %36 to i64
  %39 = getelementptr inbounds [8 x i32], ptr %37, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !44
  %or.cond40 = icmp ult i32 %40, 2048
  br i1 %or.cond40, label %42, label %41

41:                                               ; preds = %35
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.10, i32 noundef 1382)
  %.pre45 = load i32, ptr %32, align 4, !tbaa !43
  %.phi.trans.insert = sext i32 %.pre45 to i64
  %.phi.trans.insert46 = getelementptr inbounds [8 x i32], ptr %37, i64 0, i64 %.phi.trans.insert
  %.pre47 = load i32, ptr %.phi.trans.insert46, align 4, !tbaa !44
  br label %42

42:                                               ; preds = %35, %41
  %43 = phi i32 [ %40, %35 ], [ %.pre47, %41 ]
  %44 = getelementptr inbounds i8, ptr %0, i64 524800
  %45 = sext i32 %43 to i64
  %46 = getelementptr inbounds [2048 x i32], ptr %44, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !44
  br label %112

48:                                               ; preds = %2
  %49 = getelementptr inbounds i8, ptr %1, i64 4
  %50 = load i32, ptr %49, align 4, !tbaa !43
  %switch41 = icmp ult i32 %50, 2
  br i1 %switch41, label %52, label %51

51:                                               ; preds = %48
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.10, i32 noundef 1387)
  %.pre43 = load i32, ptr %49, align 4, !tbaa !43
  br label %52

52:                                               ; preds = %48, %51
  %53 = phi i32 [ %50, %48 ], [ %.pre43, %51 ]
  %54 = getelementptr inbounds i8, ptr %0, i64 532996
  %55 = sext i32 %53 to i64
  %56 = getelementptr inbounds [8 x i32], ptr %54, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !44
  %or.cond = icmp ult i32 %57, 65536
  br i1 %or.cond, label %59, label %58

58:                                               ; preds = %52
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.10, i32 noundef 1389)
  br label %59

59:                                               ; preds = %52, %58
  %60 = tail call noundef i32 @_ZN11cycle_model10fetch_dataEi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef %57)
  br label %112

61:                                               ; preds = %2
  %62 = getelementptr inbounds i8, ptr %0, i64 533032
  %63 = load ptr, ptr %62, align 8, !tbaa !45
  %64 = load i32, ptr %63, align 8, !tbaa !46
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %63, align 8, !tbaa !46
  %66 = tail call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef %65)
  br label %112

67:                                               ; preds = %2
  %68 = getelementptr inbounds i8, ptr %0, i64 533032
  %69 = load ptr, ptr %68, align 8, !tbaa !45
  %70 = load i32, ptr %69, align 8, !tbaa !46
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %69, align 8, !tbaa !46
  %72 = tail call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef %71)
  %73 = load ptr, ptr %68, align 8, !tbaa !45
  %74 = load i32, ptr %73, align 8, !tbaa !46
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %73, align 8, !tbaa !46
  %76 = icmp slt i32 %74, 65536
  br i1 %76, label %78, label %77

77:                                               ; preds = %67
  tail call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.10, i32 noundef 1410)
  %.pre = load ptr, ptr %68, align 8, !tbaa !45
  %.pre42 = load i32, ptr %.pre, align 8, !tbaa !46
  br label %78

78:                                               ; preds = %67, %77
  %79 = phi i32 [ %75, %67 ], [ %.pre42, %77 ]
  %80 = shl i32 %72, 8
  %81 = tail call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef %79)
  %82 = add nsw i32 %81, %80
  br label %112

83:                                               ; preds = %2
  %84 = getelementptr inbounds i8, ptr %0, i64 533032
  %85 = load ptr, ptr %84, align 8, !tbaa !45
  %86 = load i32, ptr %85, align 8, !tbaa !46
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %85, align 8, !tbaa !46
  %88 = getelementptr inbounds i8, ptr %1, i64 4
  %89 = load i32, ptr %88, align 4, !tbaa !43
  %90 = shl i32 %89, 8
  %91 = tail call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef %87)
  %92 = add nsw i32 %90, %91
  br label %112

93:                                               ; preds = %2
  %94 = getelementptr inbounds i8, ptr %0, i64 533032
  %95 = load ptr, ptr %94, align 8, !tbaa !45
  %96 = load i32, ptr %95, align 8, !tbaa !46
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %95, align 8, !tbaa !46
  %98 = tail call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef %97)
  %99 = load ptr, ptr %94, align 8, !tbaa !45
  %100 = load i32, ptr %99, align 8, !tbaa !46
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %99, align 8, !tbaa !46
  %102 = shl i32 %98, 8
  %103 = tail call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef %101)
  %104 = add nsw i32 %103, %102
  br label %112

105:                                              ; preds = %2
  %106 = getelementptr inbounds i8, ptr %0, i64 533032
  %107 = load ptr, ptr %106, align 8, !tbaa !45
  %108 = load i32, ptr %107, align 8, !tbaa !46
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %107, align 8, !tbaa !46
  %110 = tail call noundef i32 @_ZN11cycle_model11fetch_instrEi(ptr noundef nonnull align 8 dereferenceable(533052) %0, i32 noundef %109)
  %111 = icmp slt i32 %110, 128
  %.neg = add nsw i32 %110, -256
  %.0 = select i1 %111, i32 %110, i32 %.neg
  br label %112

112:                                              ; preds = %2, %105, %93, %83, %78, %61, %59, %42, %26, %11, %4
  %.1 = phi i32 [ %.0, %105 ], [ %104, %93 ], [ %92, %83 ], [ %82, %78 ], [ %66, %61 ], [ %60, %59 ], [ %47, %42 ], [ %30, %26 ], [ %16, %11 ], [ %6, %4 ], [ -1, %2 ]
  ret i32 %.1
}

attributes #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 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" }

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

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


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass