; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/misc/examples/a2901 (a2901_output_and_shifter)

; 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_dt::sc_uint" = type { %"class.sc_dt::sc_uint_base" }
%"class.sc_dt::sc_uint_base" = type { %"class.sc_dt::sc_value_base", i64, i32, i32 }
%"class.sc_dt::sc_value_base" = type { ptr }
%"class.sc_dt::sc_uint.0" = type { %"class.sc_dt::sc_uint_base" }
%struct.a2901_output_and_shifter = type { %"class.sc_core::sc_module", ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"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.1", %"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.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = 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 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24a2901_output_and_shifter5entryEv(ptr noundef nonnull align 8 dereferenceable(312) %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca %"class.sc_dt::sc_uint", align 8
  %10 = alloca %"class.sc_dt::sc_uint.0", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.sc_dt::sc_uint.0", align 8
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %18 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #4
  call void @_ZN5sc_dt7sc_uintILi3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  invoke void @_ZN5sc_dt7sc_uintILi4EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %19 unwind label %272

19:                                               ; preds = %1
  %20 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi4EEaSEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 0)
          to label %21 unwind label %276

21:                                               ; preds = %19
  %22 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 1
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = load ptr, ptr %23, align 8, !tbaa !33
  %25 = getelementptr inbounds ptr, ptr %24, i64 5
  %26 = load ptr, ptr %25, align 8
  %27 = invoke noundef nonnull align 8 dereferenceable(24) ptr %26(ptr noundef nonnull align 8 dereferenceable(232) %23)
          to label %28 unwind label %276

28:                                               ; preds = %21
  %29 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK5sc_dt12sc_uint_base5rangeEii(ptr noundef nonnull align 8 dereferenceable(24) %27, i32 noundef 8, i32 noundef 6)
          to label %30 unwind label %276

30:                                               ; preds = %28
  %31 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi3EEaSERKNS_16sc_uint_subref_rE(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(28) %29)
          to label %32 unwind label %276

32:                                               ; preds = %30
  %33 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = load ptr, ptr %34, align 8, !tbaa !33
  %36 = getelementptr inbounds ptr, ptr %35, i64 5
  %37 = load ptr, ptr %36, align 8
  %38 = invoke noundef nonnull align 8 dereferenceable(24) ptr %37(ptr noundef nonnull align 8 dereferenceable(232) %34)
          to label %39 unwind label %276

39:                                               ; preds = %32
  %40 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %38, i32 noundef 8)
          to label %41 unwind label %276

41:                                               ; preds = %39
  %42 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
          to label %43 unwind label %276

43:                                               ; preds = %41
  %44 = icmp ne i64 %42, 0
  %45 = zext i1 %44 to i8
  store i8 %45, ptr %3, align 1, !tbaa !35
  %46 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = load ptr, ptr %47, align 8, !tbaa !33
  %49 = getelementptr inbounds ptr, ptr %48, i64 5
  %50 = load ptr, ptr %49, align 8
  %51 = invoke noundef nonnull align 8 dereferenceable(24) ptr %50(ptr noundef nonnull align 8 dereferenceable(232) %47)
          to label %52 unwind label %276

52:                                               ; preds = %43
  %53 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %51, i32 noundef 7)
          to label %54 unwind label %276

54:                                               ; preds = %52
  %55 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
          to label %56 unwind label %276

56:                                               ; preds = %54
  %57 = icmp ne i64 %55, 0
  %58 = zext i1 %57 to i8
  store i8 %58, ptr %4, align 1, !tbaa !35
  %59 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !36
  %61 = load ptr, ptr %60, align 8, !tbaa !33
  %62 = getelementptr inbounds ptr, ptr %61, i64 5
  %63 = load ptr, ptr %62, align 8
  %64 = invoke noundef nonnull align 8 dereferenceable(24) ptr %63(ptr noundef nonnull align 8 dereferenceable(232) %60)
          to label %65 unwind label %276

65:                                               ; preds = %56
  %66 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %64, i32 noundef 0)
          to label %67 unwind label %276

67:                                               ; preds = %65
  %68 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %66)
          to label %69 unwind label %276

69:                                               ; preds = %67
  %70 = icmp ne i64 %68, 0
  %71 = zext i1 %70 to i8
  store i8 %71, ptr %5, align 1, !tbaa !35
  %72 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 4
  %73 = load ptr, ptr %72, align 8, !tbaa !36
  %74 = load ptr, ptr %73, align 8, !tbaa !33
  %75 = getelementptr inbounds ptr, ptr %74, i64 5
  %76 = load ptr, ptr %75, align 8
  %77 = invoke noundef nonnull align 8 dereferenceable(24) ptr %76(ptr noundef nonnull align 8 dereferenceable(232) %73)
          to label %78 unwind label %276

78:                                               ; preds = %69
  %79 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %77, i32 noundef 3)
          to label %80 unwind label %276

80:                                               ; preds = %78
  %81 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %79)
          to label %82 unwind label %276

82:                                               ; preds = %80
  %83 = icmp ne i64 %81, 0
  %84 = zext i1 %83 to i8
  store i8 %84, ptr %6, align 1, !tbaa !35
  %85 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 5
  %86 = load ptr, ptr %85, align 8, !tbaa !37
  %87 = load ptr, ptr %86, align 8, !tbaa !33
  %88 = getelementptr inbounds ptr, ptr %87, i64 5
  %89 = load ptr, ptr %88, align 8
  %90 = invoke noundef nonnull align 8 dereferenceable(24) ptr %89(ptr noundef nonnull align 8 dereferenceable(232) %86)
          to label %91 unwind label %276

91:                                               ; preds = %82
  %92 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %90, i32 noundef 0)
          to label %93 unwind label %276

93:                                               ; preds = %91
  %94 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %92)
          to label %95 unwind label %276

95:                                               ; preds = %93
  %96 = icmp ne i64 %94, 0
  %97 = zext i1 %96 to i8
  store i8 %97, ptr %7, align 1, !tbaa !35
  %98 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 5
  %99 = load ptr, ptr %98, align 8, !tbaa !37
  %100 = load ptr, ptr %99, align 8, !tbaa !33
  %101 = getelementptr inbounds ptr, ptr %100, i64 5
  %102 = load ptr, ptr %101, align 8
  %103 = invoke noundef nonnull align 8 dereferenceable(24) ptr %102(ptr noundef nonnull align 8 dereferenceable(232) %99)
          to label %104 unwind label %276

104:                                              ; preds = %95
  %105 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %103, i32 noundef 3)
          to label %106 unwind label %276

106:                                              ; preds = %104
  %107 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %105)
          to label %108 unwind label %276

108:                                              ; preds = %106
  %109 = icmp ne i64 %107, 0
  %110 = zext i1 %109 to i8
  store i8 %110, ptr %8, align 1, !tbaa !35
  %111 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 6
  %112 = load ptr, ptr %111, align 8, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #4
  %113 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %114 unwind label %280

114:                                              ; preds = %108
  %115 = icmp eq i64 %113, 2
  br i1 %115, label %116, label %138

116:                                              ; preds = %114
  %117 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 2
  %118 = load ptr, ptr %117, align 8, !tbaa !39
  %119 = load ptr, ptr %118, align 8, !tbaa !33
  %120 = getelementptr inbounds ptr, ptr %119, i64 7
  %121 = load ptr, ptr %120, align 8
  %122 = invoke noundef nonnull align 1 dereferenceable(1) ptr %121(ptr noundef nonnull align 8 dereferenceable(224) %118)
          to label %123 unwind label %280

123:                                              ; preds = %116
  %124 = load i8, ptr %122, align 1, !tbaa !35, !range !40, !noundef !41
  %125 = trunc i8 %124 to i1
  %126 = zext i1 %125 to i32
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %128, label %138

128:                                              ; preds = %123
  %129 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 3
  %130 = load ptr, ptr %129, align 8, !tbaa !42
  %131 = load ptr, ptr %130, align 8, !tbaa !33
  %132 = getelementptr inbounds ptr, ptr %131, i64 5
  %133 = load ptr, ptr %132, align 8
  %134 = invoke noundef nonnull align 8 dereferenceable(24) ptr %133(ptr noundef nonnull align 8 dereferenceable(232) %130)
          to label %135 unwind label %280

135:                                              ; preds = %128
  %136 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %134)
          to label %137 unwind label %280

137:                                              ; preds = %135
  br label %169

138:                                              ; preds = %123, %114
  %139 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %140 unwind label %280

140:                                              ; preds = %138
  %141 = icmp eq i64 %139, 2
  br i1 %141, label %164, label %142

142:                                              ; preds = %140
  %143 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 2
  %144 = load ptr, ptr %143, align 8, !tbaa !39
  %145 = load ptr, ptr %144, align 8, !tbaa !33
  %146 = getelementptr inbounds ptr, ptr %145, i64 7
  %147 = load ptr, ptr %146, align 8
  %148 = invoke noundef nonnull align 1 dereferenceable(1) ptr %147(ptr noundef nonnull align 8 dereferenceable(224) %144)
          to label %149 unwind label %280

149:                                              ; preds = %142
  %150 = load i8, ptr %148, align 1, !tbaa !35, !range !40, !noundef !41
  %151 = trunc i8 %150 to i1
  %152 = zext i1 %151 to i32
  %153 = icmp eq i32 %152, 0
  br i1 %153, label %154, label %164

154:                                              ; preds = %149
  %155 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 4
  %156 = load ptr, ptr %155, align 8, !tbaa !36
  %157 = load ptr, ptr %156, align 8, !tbaa !33
  %158 = getelementptr inbounds ptr, ptr %157, i64 5
  %159 = load ptr, ptr %158, align 8
  %160 = invoke noundef nonnull align 8 dereferenceable(24) ptr %159(ptr noundef nonnull align 8 dereferenceable(232) %156)
          to label %161 unwind label %280

161:                                              ; preds = %154
  %162 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %160)
          to label %163 unwind label %280

163:                                              ; preds = %161
  br label %167

164:                                              ; preds = %149, %140
  %165 = invoke noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %166 unwind label %280

166:                                              ; preds = %164
  br label %167

167:                                              ; preds = %166, %163
  %168 = phi i64 [ %162, %163 ], [ %165, %166 ]
  br label %169

169:                                              ; preds = %167, %137
  %170 = phi i64 [ %136, %137 ], [ %168, %167 ]
  invoke void @_ZN5sc_dt7sc_uintILi4EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %170)
          to label %171 unwind label %280

171:                                              ; preds = %169
  %172 = load ptr, ptr %112, align 8, !tbaa !33
  %173 = getelementptr inbounds ptr, ptr %172, i64 9
  %174 = load ptr, ptr %173, align 8
  invoke void %174(ptr noundef nonnull align 8 dereferenceable(232) %112, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %175 unwind label %284

175:                                              ; preds = %171
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  %176 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 7
  %177 = load ptr, ptr %176, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  %178 = load i8, ptr %3, align 1, !tbaa !35, !range !40, !noundef !41
  %179 = trunc i8 %178 to i1
  %180 = zext i1 %179 to i32
  %181 = icmp eq i32 %180, 1
  br i1 %181, label %182, label %191

182:                                              ; preds = %175
  %183 = load i8, ptr %4, align 1, !tbaa !35, !range !40, !noundef !41
  %184 = trunc i8 %183 to i1
  %185 = zext i1 %184 to i32
  %186 = icmp eq i32 %185, 0
  br i1 %186, label %187, label %191

187:                                              ; preds = %182
  %188 = load i8, ptr %5, align 1, !tbaa !35, !range !40, !noundef !41
  %189 = trunc i8 %188 to i1
  %190 = zext i1 %189 to i32
  br label %192

191:                                              ; preds = %182, %175
  br label %192

192:                                              ; preds = %191, %187
  %193 = phi i32 [ %190, %187 ], [ 0, %191 ]
  %194 = icmp ne i32 %193, 0
  %195 = zext i1 %194 to i8
  store i8 %195, ptr %14, align 1, !tbaa !35
  %196 = load ptr, ptr %177, align 8, !tbaa !33
  %197 = getelementptr inbounds ptr, ptr %196, i64 14
  %198 = load ptr, ptr %197, align 8
  invoke void %198(ptr noundef nonnull align 8 dereferenceable(224) %177, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %199 unwind label %289

199:                                              ; preds = %192
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  %200 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 8
  %201 = load ptr, ptr %200, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  %202 = load i8, ptr %3, align 1, !tbaa !35, !range !40, !noundef !41
  %203 = trunc i8 %202 to i1
  %204 = zext i1 %203 to i32
  %205 = icmp eq i32 %204, 1
  br i1 %205, label %206, label %215

206:                                              ; preds = %199
  %207 = load i8, ptr %4, align 1, !tbaa !35, !range !40, !noundef !41
  %208 = trunc i8 %207 to i1
  %209 = zext i1 %208 to i32
  %210 = icmp eq i32 %209, 1
  br i1 %210, label %211, label %215

211:                                              ; preds = %206
  %212 = load i8, ptr %6, align 1, !tbaa !35, !range !40, !noundef !41
  %213 = trunc i8 %212 to i1
  %214 = zext i1 %213 to i32
  br label %216

215:                                              ; preds = %206, %199
  br label %216

216:                                              ; preds = %215, %211
  %217 = phi i32 [ %214, %211 ], [ 0, %215 ]
  %218 = icmp ne i32 %217, 0
  %219 = zext i1 %218 to i8
  store i8 %219, ptr %15, align 1, !tbaa !35
  %220 = load ptr, ptr %201, align 8, !tbaa !33
  %221 = getelementptr inbounds ptr, ptr %220, i64 14
  %222 = load ptr, ptr %221, align 8
  invoke void %222(ptr noundef nonnull align 8 dereferenceable(224) %201, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %223 unwind label %293

223:                                              ; preds = %216
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  %224 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 10
  %225 = load ptr, ptr %224, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  %226 = load i8, ptr %3, align 1, !tbaa !35, !range !40, !noundef !41
  %227 = trunc i8 %226 to i1
  %228 = zext i1 %227 to i32
  %229 = icmp eq i32 %228, 1
  br i1 %229, label %230, label %239

230:                                              ; preds = %223
  %231 = load i8, ptr %4, align 1, !tbaa !35, !range !40, !noundef !41
  %232 = trunc i8 %231 to i1
  %233 = zext i1 %232 to i32
  %234 = icmp eq i32 %233, 1
  br i1 %234, label %235, label %239

235:                                              ; preds = %230
  %236 = load i8, ptr %8, align 1, !tbaa !35, !range !40, !noundef !41
  %237 = trunc i8 %236 to i1
  %238 = zext i1 %237 to i32
  br label %240

239:                                              ; preds = %230, %223
  br label %240

240:                                              ; preds = %239, %235
  %241 = phi i32 [ %238, %235 ], [ 0, %239 ]
  %242 = icmp ne i32 %241, 0
  %243 = zext i1 %242 to i8
  store i8 %243, ptr %16, align 1, !tbaa !35
  %244 = load ptr, ptr %225, align 8, !tbaa !33
  %245 = getelementptr inbounds ptr, ptr %244, i64 14
  %246 = load ptr, ptr %245, align 8
  invoke void %246(ptr noundef nonnull align 8 dereferenceable(224) %225, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %247 unwind label %297

247:                                              ; preds = %240
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  %248 = getelementptr inbounds %struct.a2901_output_and_shifter, ptr %18, i32 0, i32 9
  %249 = load ptr, ptr %248, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  %250 = load i8, ptr %3, align 1, !tbaa !35, !range !40, !noundef !41
  %251 = trunc i8 %250 to i1
  %252 = zext i1 %251 to i32
  %253 = icmp eq i32 %252, 1
  br i1 %253, label %254, label %263

254:                                              ; preds = %247
  %255 = load i8, ptr %4, align 1, !tbaa !35, !range !40, !noundef !41
  %256 = trunc i8 %255 to i1
  %257 = zext i1 %256 to i32
  %258 = icmp eq i32 %257, 0
  br i1 %258, label %259, label %263

259:                                              ; preds = %254
  %260 = load i8, ptr %7, align 1, !tbaa !35, !range !40, !noundef !41
  %261 = trunc i8 %260 to i1
  %262 = zext i1 %261 to i32
  br label %264

263:                                              ; preds = %254, %247
  br label %264

264:                                              ; preds = %263, %259
  %265 = phi i32 [ %262, %259 ], [ 0, %263 ]
  %266 = icmp ne i32 %265, 0
  %267 = zext i1 %266 to i8
  store i8 %267, ptr %17, align 1, !tbaa !35
  %268 = load ptr, ptr %249, align 8, !tbaa !33
  %269 = getelementptr inbounds ptr, ptr %268, i64 14
  %270 = load ptr, ptr %269, align 8
  invoke void %270(ptr noundef nonnull align 8 dereferenceable(224) %249, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %271 unwind label %301

271:                                              ; preds = %264
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #4
  ret void

272:                                              ; preds = %1
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %11, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %12, align 4
  br label %306

276:                                              ; preds = %106, %104, %95, %93, %91, %82, %80, %78, %69, %67, %65, %56, %54, %52, %43, %41, %39, %32, %30, %28, %21, %19
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %11, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %12, align 4
  br label %305

280:                                              ; preds = %169, %164, %161, %154, %142, %138, %135, %128, %116, %108
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %11, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %12, align 4
  br label %288

284:                                              ; preds = %171
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %11, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %12, align 4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  br label %288

288:                                              ; preds = %284, %280
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  br label %305

289:                                              ; preds = %192
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %11, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  br label %305

293:                                              ; preds = %216
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %11, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  br label %305

297:                                              ; preds = %240
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %11, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  br label %305

301:                                              ; preds = %264
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %11, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  br label %305

305:                                              ; preds = %301, %297, %293, %289, %288, %276
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  br label %306

306:                                              ; preds = %305, %272
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #4
  br label %307

307:                                              ; preds = %306
  %308 = load ptr, ptr %11, align 8
  %309 = load i32, ptr %12, align 4
  %310 = insertvalue { ptr, i32 } poison, ptr %308, 0
  %311 = insertvalue { ptr, i32 } %310, i32 %309, 1
  resume { ptr, i32 } %311
}

; 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 @_ZN5sc_dt7sc_uintILi3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(28) ptr @_ZNK5sc_dt12sc_uint_base5rangeEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi3EEaSERKNS_16sc_uint_subref_rE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(28)) #0 align 2

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

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

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

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

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

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

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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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, !6, i64 232}
!10 = !{!"_ZTS24a2901_output_and_shifter", !11, i64 0, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304}
!11 = !{!"_ZTSN7sc_core9sc_moduleE", !12, i64 0, !24, i64 112, !25, i64 120, !27, i64 144, !29, i64 168, !31, i64 192, !6, i64 200, !32, i64 208, !6, i64 216, !6, i64 224}
!12 = !{!"_ZTSN7sc_core9sc_objectE", !6, i64 8, !13, i64 16, !17, i64 40, !21, i64 64, !6, i64 96, !6, i64 104}
!13 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !23, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSN7sc_core15sc_process_hostE"}
!25 = !{!"_ZTSN7sc_core12sc_sensitiveE", !6, i64 0, !26, i64 8, !6, i64 16}
!26 = !{!"_ZTSN7sc_core12sc_sensitiveUt_E", !7, i64 0}
!27 = !{!"_ZTSN7sc_core16sc_sensitive_posE", !6, i64 0, !28, i64 8, !6, i64 16}
!28 = !{!"_ZTSN7sc_core16sc_sensitive_posUt_E", !7, i64 0}
!29 = !{!"_ZTSN7sc_core16sc_sensitive_negE", !6, i64 0, !30, i64 8, !6, i64 16}
!30 = !{!"_ZTSN7sc_core16sc_sensitive_negUt_E", !7, i64 0}
!31 = !{!"bool", !7, i64 0}
!32 = !{!"int", !7, i64 0}
!33 = !{!34, !34, i64 0}
!34 = !{!"vtable pointer", !8, i64 0}
!35 = !{!31, !31, i64 0}
!36 = !{!10, !6, i64 256}
!37 = !{!10, !6, i64 264}
!38 = !{!10, !6, i64 272}
!39 = !{!10, !6, i64 240}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = !{!10, !6, i64 248}
!43 = !{!10, !6, i64 280}
!44 = !{!10, !6, i64 288}
!45 = !{!10, !6, i64 304}
!46 = !{!10, !6, i64 296}


; 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_dt::sc_uint" = type { %"class.sc_dt::sc_uint_base" }
%"class.sc_dt::sc_uint_base" = type { %"class.sc_dt::sc_value_base", i64, i32, i32 }
%"class.sc_dt::sc_value_base" = type { ptr }
%"class.sc_dt::sc_uint.0" = type { %"class.sc_dt::sc_uint_base" }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24a2901_output_and_shifter5entryEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(312) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.sc_dt::sc_uint", align 8
  %3 = alloca %"class.sc_dt::sc_uint.0", align 8
  %4 = alloca %"class.sc_dt::sc_uint.0", align 8
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #4
  call void @_ZN5sc_dt7sc_uintILi3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  invoke void @_ZN5sc_dt7sc_uintILi4EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %9 unwind label %158

9:                                                ; preds = %1
  %10 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi4EEaSEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 0)
          to label %11 unwind label %160

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %0, i64 232
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = load ptr, ptr %13, align 8, !tbaa !32
  %15 = getelementptr inbounds i8, ptr %14, i64 40
  %16 = load ptr, ptr %15, align 8
  %17 = invoke noundef nonnull align 8 dereferenceable(24) ptr %16(ptr noundef nonnull align 8 dereferenceable(232) %13)
          to label %18 unwind label %160

18:                                               ; preds = %11
  %19 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZNK5sc_dt12sc_uint_base5rangeEii(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 8, i32 noundef 6)
          to label %20 unwind label %160

20:                                               ; preds = %18
  %21 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi3EEaSERKNS_16sc_uint_subref_rE(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(28) %19)
          to label %22 unwind label %160

22:                                               ; preds = %20
  %23 = load ptr, ptr %12, align 8, !tbaa !5
  %24 = load ptr, ptr %23, align 8, !tbaa !32
  %25 = getelementptr inbounds i8, ptr %24, i64 40
  %26 = load ptr, ptr %25, align 8
  %27 = invoke noundef nonnull align 8 dereferenceable(24) ptr %26(ptr noundef nonnull align 8 dereferenceable(232) %23)
          to label %28 unwind label %160

28:                                               ; preds = %22
  %29 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %27, i32 noundef 8)
          to label %30 unwind label %160

30:                                               ; preds = %28
  %31 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %32 unwind label %160

32:                                               ; preds = %30
  %.not = icmp ne i64 %31, 0
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  %34 = load ptr, ptr %33, align 8, !tbaa !32
  %35 = getelementptr inbounds i8, ptr %34, i64 40
  %36 = load ptr, ptr %35, align 8
  %37 = invoke noundef nonnull align 8 dereferenceable(24) ptr %36(ptr noundef nonnull align 8 dereferenceable(232) %33)
          to label %38 unwind label %160

38:                                               ; preds = %32
  %39 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %37, i32 noundef 7)
          to label %40 unwind label %160

40:                                               ; preds = %38
  %41 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
          to label %42 unwind label %160

42:                                               ; preds = %40
  %.not18 = icmp eq i64 %41, 0
  %43 = getelementptr inbounds i8, ptr %0, i64 256
  %44 = load ptr, ptr %43, align 8, !tbaa !34
  %45 = load ptr, ptr %44, align 8, !tbaa !32
  %46 = getelementptr inbounds i8, ptr %45, i64 40
  %47 = load ptr, ptr %46, align 8
  %48 = invoke noundef nonnull align 8 dereferenceable(24) ptr %47(ptr noundef nonnull align 8 dereferenceable(232) %44)
          to label %49 unwind label %160

49:                                               ; preds = %42
  %50 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %48, i32 noundef 0)
          to label %51 unwind label %160

51:                                               ; preds = %49
  %52 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %50)
          to label %53 unwind label %160

53:                                               ; preds = %51
  %54 = icmp ne i64 %52, 0
  %55 = load ptr, ptr %43, align 8, !tbaa !34
  %56 = load ptr, ptr %55, align 8, !tbaa !32
  %57 = getelementptr inbounds i8, ptr %56, i64 40
  %58 = load ptr, ptr %57, align 8
  %59 = invoke noundef nonnull align 8 dereferenceable(24) ptr %58(ptr noundef nonnull align 8 dereferenceable(232) %55)
          to label %60 unwind label %160

60:                                               ; preds = %53
  %61 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %59, i32 noundef 3)
          to label %62 unwind label %160

62:                                               ; preds = %60
  %63 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %61)
          to label %64 unwind label %160

64:                                               ; preds = %62
  %65 = icmp ne i64 %63, 0
  %66 = getelementptr inbounds i8, ptr %0, i64 264
  %67 = load ptr, ptr %66, align 8, !tbaa !35
  %68 = load ptr, ptr %67, align 8, !tbaa !32
  %69 = getelementptr inbounds i8, ptr %68, i64 40
  %70 = load ptr, ptr %69, align 8
  %71 = invoke noundef nonnull align 8 dereferenceable(24) ptr %70(ptr noundef nonnull align 8 dereferenceable(232) %67)
          to label %72 unwind label %160

72:                                               ; preds = %64
  %73 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %71, i32 noundef 0)
          to label %74 unwind label %160

74:                                               ; preds = %72
  %75 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %73)
          to label %76 unwind label %160

76:                                               ; preds = %74
  %77 = icmp ne i64 %75, 0
  %78 = load ptr, ptr %66, align 8, !tbaa !35
  %79 = load ptr, ptr %78, align 8, !tbaa !32
  %80 = getelementptr inbounds i8, ptr %79, i64 40
  %81 = load ptr, ptr %80, align 8
  %82 = invoke noundef nonnull align 8 dereferenceable(24) ptr %81(ptr noundef nonnull align 8 dereferenceable(232) %78)
          to label %83 unwind label %160

83:                                               ; preds = %76
  %84 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5sc_dt12sc_uint_baseixEi(ptr noundef nonnull align 8 dereferenceable(24) %82, i32 noundef 3)
          to label %85 unwind label %160

85:                                               ; preds = %83
  %86 = invoke noundef i64 @_ZNK5sc_dt16sc_uint_bitref_rcvyEv(ptr noundef nonnull align 8 dereferenceable(24) %84)
          to label %87 unwind label %160

87:                                               ; preds = %85
  %88 = icmp ne i64 %86, 0
  %89 = getelementptr inbounds i8, ptr %0, i64 272
  %90 = load ptr, ptr %89, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  %91 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %92 = icmp eq i64 %91, 2
  br i1 %92, label %93, label %105

93:                                               ; preds = %87
  %94 = getelementptr inbounds i8, ptr %0, i64 240
  %95 = load ptr, ptr %94, align 8, !tbaa !37
  %96 = load ptr, ptr %95, align 8, !tbaa !32
  %97 = getelementptr inbounds i8, ptr %96, i64 56
  %98 = load ptr, ptr %97, align 8
  %99 = invoke noundef nonnull align 1 dereferenceable(1) ptr %98(ptr noundef nonnull align 8 dereferenceable(224) %95)
          to label %100 unwind label %162

100:                                              ; preds = %93
  %101 = load i8, ptr %99, align 1, !tbaa !38, !range !39, !noundef !40
  %102 = icmp eq i8 %101, 0
  br i1 %102, label %103, label %105

103:                                              ; preds = %100
  %104 = getelementptr inbounds i8, ptr %0, i64 248
  br label %.invoke

105:                                              ; preds = %100, %87
  %106 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %107 = icmp eq i64 %106, 2
  br i1 %107, label %123, label %108

108:                                              ; preds = %105
  %109 = getelementptr inbounds i8, ptr %0, i64 240
  %110 = load ptr, ptr %109, align 8, !tbaa !37
  %111 = load ptr, ptr %110, align 8, !tbaa !32
  %112 = getelementptr inbounds i8, ptr %111, i64 56
  %113 = load ptr, ptr %112, align 8
  %114 = invoke noundef nonnull align 1 dereferenceable(1) ptr %113(ptr noundef nonnull align 8 dereferenceable(224) %110)
          to label %115 unwind label %162

115:                                              ; preds = %108
  %116 = load i8, ptr %114, align 1, !tbaa !38, !range !39, !noundef !40
  %117 = icmp eq i8 %116, 0
  br i1 %117, label %.invoke, label %123

.invoke:                                          ; preds = %115, %103
  %.sink36 = phi ptr [ %104, %103 ], [ %43, %115 ]
  %118 = load ptr, ptr %.sink36, align 8, !tbaa !41
  %119 = load ptr, ptr %118, align 8, !tbaa !32
  %120 = getelementptr inbounds i8, ptr %119, i64 40
  %121 = load ptr, ptr %120, align 8
  %122 = invoke noundef nonnull align 8 dereferenceable(24) ptr %121(ptr noundef nonnull align 8 dereferenceable(232) %118)
          to label %123 unwind label %162

123:                                              ; preds = %.invoke, %105, %115
  %.sink = phi ptr [ %3, %115 ], [ %3, %105 ], [ %122, %.invoke ]
  %124 = call noundef i64 @_ZNK5sc_dt12sc_uint_basecvyEv(ptr noundef nonnull align 8 dereferenceable(24) %.sink)
  invoke void @_ZN5sc_dt7sc_uintILi4EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %124)
          to label %125 unwind label %162

125:                                              ; preds = %123
  %126 = load ptr, ptr %90, align 8, !tbaa !32
  %127 = getelementptr inbounds i8, ptr %126, i64 72
  %128 = load ptr, ptr %127, align 8
  invoke void %128(ptr noundef nonnull align 8 dereferenceable(232) %90, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %129 unwind label %164

129:                                              ; preds = %125
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  %130 = getelementptr inbounds i8, ptr %0, i64 280
  %131 = load ptr, ptr %130, align 8, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  %narrow = and i1 %.not18, %54
  %narrow25 = and i1 %.not, %narrow
  %132 = zext i1 %narrow25 to i8
  store i8 %132, ptr %5, align 1, !tbaa !38
  %133 = load ptr, ptr %131, align 8, !tbaa !32
  %134 = getelementptr inbounds i8, ptr %133, i64 112
  %135 = load ptr, ptr %134, align 8
  invoke void %135(ptr noundef nonnull align 8 dereferenceable(224) %131, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %136 unwind label %167

136:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  %137 = getelementptr inbounds i8, ptr %0, i64 288
  %138 = load ptr, ptr %137, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  %not..not18 = xor i1 %.not18, true
  %narrow26 = and i1 %65, %not..not18
  %narrow27 = and i1 %.not, %narrow26
  %139 = zext i1 %narrow27 to i8
  store i8 %139, ptr %6, align 1, !tbaa !38
  %140 = load ptr, ptr %138, align 8, !tbaa !32
  %141 = getelementptr inbounds i8, ptr %140, i64 112
  %142 = load ptr, ptr %141, align 8
  invoke void %142(ptr noundef nonnull align 8 dereferenceable(224) %138, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %143 unwind label %169

143:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  %144 = getelementptr inbounds i8, ptr %0, i64 304
  %145 = load ptr, ptr %144, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #4
  %narrow28 = and i1 %88, %not..not18
  %narrow30 = and i1 %.not, %narrow28
  %146 = zext i1 %narrow30 to i8
  store i8 %146, ptr %7, align 1, !tbaa !38
  %147 = load ptr, ptr %145, align 8, !tbaa !32
  %148 = getelementptr inbounds i8, ptr %147, i64 112
  %149 = load ptr, ptr %148, align 8
  invoke void %149(ptr noundef nonnull align 8 dereferenceable(224) %145, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %150 unwind label %171

150:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  %151 = getelementptr inbounds i8, ptr %0, i64 296
  %152 = load ptr, ptr %151, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #4
  %narrow31 = and i1 %.not18, %77
  %narrow32 = and i1 %.not, %narrow31
  %153 = zext i1 %narrow32 to i8
  store i8 %153, ptr %8, align 1, !tbaa !38
  %154 = load ptr, ptr %152, align 8, !tbaa !32
  %155 = getelementptr inbounds i8, ptr %154, i64 112
  %156 = load ptr, ptr %155, align 8
  invoke void %156(ptr noundef nonnull align 8 dereferenceable(224) %152, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %157 unwind label %173

157:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  ret void

158:                                              ; preds = %1
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %176

160:                                              ; preds = %85, %83, %76, %74, %72, %64, %62, %60, %53, %51, %49, %42, %40, %38, %32, %30, %28, %22, %20, %18, %11, %9
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %175

162:                                              ; preds = %.invoke, %123, %108, %93
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %166

164:                                              ; preds = %125
  %165 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %166

166:                                              ; preds = %164, %162
  %.pn = phi { ptr, i32 } [ %165, %164 ], [ %163, %162 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  br label %175

167:                                              ; preds = %129
  %168 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  br label %175

169:                                              ; preds = %136
  %170 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  br label %175

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

173:                                              ; preds = %150
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  br label %175

175:                                              ; preds = %173, %171, %169, %167, %166, %160
  %.pn19 = phi { ptr, i32 } [ %174, %173 ], [ %172, %171 ], [ %170, %169 ], [ %168, %167 ], [ %.pn, %166 ], [ %161, %160 ]
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %176

176:                                              ; preds = %175, %158
  %.pn19.pn = phi { ptr, i32 } [ %.pn19, %175 ], [ %159, %158 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  call void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn19.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 @_ZN5sc_dt7sc_uintILi3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi4EEaSEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(28) ptr @_ZNK5sc_dt12sc_uint_base5rangeEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5sc_dt7sc_uintILi3EEaSERKNS_16sc_uint_subref_rE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt7sc_uintILi4EEC2Ey(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #0 align 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: mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt13sc_value_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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, !9, i64 232}
!6 = !{!"_ZTS24a2901_output_and_shifter", !7, i64 0, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !9, i64 272, !9, i64 280, !9, i64 288, !9, i64 296, !9, i64 304}
!7 = !{!"_ZTSN7sc_core9sc_moduleE", !8, i64 0, !23, i64 112, !24, i64 120, !26, i64 144, !28, i64 168, !30, i64 192, !9, i64 200, !31, i64 208, !9, i64 216, !9, i64 224}
!8 = !{!"_ZTSN7sc_core9sc_objectE", !9, i64 8, !12, i64 16, !16, i64 40, !20, i64 64, !9, i64 96, !9, i64 104}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSSt6vectorIPN7sc_core8sc_eventESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core8sc_eventESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!16 = !{!"_ZTSSt6vectorIPN7sc_core9sc_objectESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7sc_core9sc_objectESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !10, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!22 = !{!"long", !10, i64 0}
!23 = !{!"_ZTSN7sc_core15sc_process_hostE"}
!24 = !{!"_ZTSN7sc_core12sc_sensitiveE", !9, i64 0, !25, i64 8, !9, i64 16}
!25 = !{!"_ZTSN7sc_core12sc_sensitiveUt_E", !10, i64 0}
!26 = !{!"_ZTSN7sc_core16sc_sensitive_posE", !9, i64 0, !27, i64 8, !9, i64 16}
!27 = !{!"_ZTSN7sc_core16sc_sensitive_posUt_E", !10, i64 0}
!28 = !{!"_ZTSN7sc_core16sc_sensitive_negE", !9, i64 0, !29, i64 8, !9, i64 16}
!29 = !{!"_ZTSN7sc_core16sc_sensitive_negUt_E", !10, i64 0}
!30 = !{!"bool", !10, i64 0}
!31 = !{!"int", !10, i64 0}
!32 = !{!33, !33, i64 0}
!33 = !{!"vtable pointer", !11, i64 0}
!34 = !{!6, !9, i64 256}
!35 = !{!6, !9, i64 264}
!36 = !{!6, !9, i64 272}
!37 = !{!6, !9, i64 240}
!38 = !{!30, !30, i64 0}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = !{!9, !9, i64 0}
!42 = !{!6, !9, i64 280}
!43 = !{!6, !9, i64 288}
!44 = !{!6, !9, i64 304}
!45 = !{!6, !9, i64 296}


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