; LLVM IR from gem5/gem5 :: ext/systemc/src/sysc/datatypes/fx (scfx_rep)

; 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::scfx_rep" = type <{ %"class.sc_dt::scfx_mant", i32, i32, i32, i32, i32, i8, [3 x i8] }>
%"class.sc_dt::scfx_mant" = type <{ ptr, i32, [4 x i8] }>
%"class.sc_dt::scfx_index" = type { i32, i32 }

@_ZN5sc_dtL8min_mantE = external hidden constant i32, align 4

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt9scfx_mant5clearEv(ptr noundef nonnull align 8 dereferenceable(12)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37)) #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN5sc_dtL6n_wordEi(i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37)) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5sc_dt8scfx_repnwEm(i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt8scfx_repdlEPvm(ptr noundef, i64 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep7set_binEi(ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt6sc_maxIiEEKT_RS2_S3_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN5sc_dt12div_scfx_repERKNS_8scfx_repES2_i(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(37) %1, i32 noundef %2) #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %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
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.sc_dt::scfx_rep", align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.sc_dt::scfx_index", align 4
  %24 = alloca %"class.sc_dt::scfx_index", align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %25 = call noundef ptr @_ZN5sc_dt8scfx_repnwEm(i64 noundef 40)
  invoke void @_ZN5sc_dt8scfx_repC1Ev(ptr noundef nonnull align 8 dereferenceable(37) %25)
          to label %26 unwind label %47

26:                                               ; preds = %3
  store ptr %25, ptr %8, align 8, !tbaa !5
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37) %27)
  br i1 %28, label %44, label %29

29:                                               ; preds = %26
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37) %30)
  br i1 %31, label %44, label %32

32:                                               ; preds = %29
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37) %33)
  br i1 %34, label %35, label %38

35:                                               ; preds = %32
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37) %36)
  br i1 %37, label %44, label %38

38:                                               ; preds = %35, %32
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %39)
  br i1 %40, label %41, label %51

41:                                               ; preds = %38
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %42)
  br i1 %43, label %44, label %51

44:                                               ; preds = %41, %35, %29, %26
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN5sc_dt8scfx_rep7set_nanEv(ptr noundef nonnull align 8 dereferenceable(37) %45)
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %46, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %299

47:                                               ; preds = %3
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %9, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %10, align 4
  call void @_ZN5sc_dt8scfx_repdlEPvm(ptr noundef %25, i64 noundef 40) #5
  br label %301

51:                                               ; preds = %41, %38
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37) %52)
  br i1 %53, label %57, label %54

54:                                               ; preds = %51
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %55)
  br i1 %56, label %57, label %67

57:                                               ; preds = %54, %51
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %59, i32 0, i32 2
  %61 = load i32, ptr %60, align 4, !tbaa !11
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %62, i32 0, i32 2
  %64 = load i32, ptr %63, align 4, !tbaa !11
  %65 = mul nsw i32 %61, %64
  call void @_ZN5sc_dt8scfx_rep7set_infEi(ptr noundef nonnull align 8 dereferenceable(37) %58, i32 noundef %65)
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %66, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %299

67:                                               ; preds = %54
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %68)
  br i1 %69, label %73, label %70

70:                                               ; preds = %67
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37) %71)
  br i1 %72, label %73, label %83

73:                                               ; preds = %70, %67
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %75, i32 0, i32 2
  %77 = load i32, ptr %76, align 4, !tbaa !11
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %78, i32 0, i32 2
  %80 = load i32, ptr %79, align 4, !tbaa !11
  %81 = mul nsw i32 %77, %80
  call void @_ZN5sc_dt8scfx_rep8set_zeroEi(ptr noundef nonnull align 8 dereferenceable(37) %74, i32 noundef %81)
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %82, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %299

83:                                               ; preds = %70
  %84 = load i32, ptr %7, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %7, align 4, !tbaa !9
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = call noundef i32 @_ZN5sc_dtL6n_wordEi(i32 noundef %87)
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %12, align 4, !tbaa !9
  %90 = call noundef i32 @_ZN5sc_dt6sc_maxIiEEKT_RS2_S3_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) @_ZN5sc_dtL8min_mantE)
  call void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %86, i32 noundef %90, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %91, i32 0, i32 0
  call void @_ZN5sc_dt9scfx_mant5clearEv(ptr noundef nonnull align 8 dereferenceable(12) %92)
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %93, i32 0, i32 2
  %95 = load i32, ptr %94, align 4, !tbaa !11
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %96, i32 0, i32 2
  %98 = load i32, ptr %97, align 4, !tbaa !11
  %99 = mul nsw i32 %95, %98
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %100, i32 0, i32 2
  store i32 %99, ptr %101, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %104, i32 0, i32 4
  %106 = load i32, ptr %105, align 4, !tbaa !16
  %107 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %103, i32 noundef %106)
  %108 = zext i32 %107 to i64
  %109 = call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %108)
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %110, i32 0, i32 4
  %112 = load i32, ptr %111, align 4, !tbaa !16
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %113, i32 0, i32 1
  %115 = load i32, ptr %114, align 8, !tbaa !17
  %116 = sub nsw i32 %112, %115
  %117 = mul nsw i32 %116, 32
  %118 = add nsw i32 %109, %117
  store i32 %118, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %121, i32 0, i32 4
  %123 = load i32, ptr %122, align 4, !tbaa !16
  %124 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %120, i32 noundef %123)
  %125 = zext i32 %124 to i64
  %126 = call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %125)
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %127, i32 0, i32 4
  %129 = load i32, ptr %128, align 4, !tbaa !16
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %130, i32 0, i32 1
  %132 = load i32, ptr %131, align 8, !tbaa !17
  %133 = sub nsw i32 %129, %132
  %134 = mul nsw i32 %133, 32
  %135 = add nsw i32 %126, %134
  store i32 %135, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %136 = load i32, ptr %13, align 4, !tbaa !9
  %137 = load i32, ptr %14, align 4, !tbaa !9
  %138 = sub nsw i32 %136, %137
  store i32 %138, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %139 = load i32, ptr %15, align 4, !tbaa !9
  %140 = sub nsw i32 0, %139
  %141 = srem i32 %140, 32
  store i32 %141, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %142 = load i32, ptr %15, align 4, !tbaa !9
  %143 = srem i32 %142, 32
  %144 = icmp sge i32 %143, 0
  %145 = zext i1 %144 to i64
  %146 = select i1 %144, i32 1, i32 0
  store i32 %146, ptr %18, align 4, !tbaa !9
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = call noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %147)
  %149 = load i32, ptr %18, align 4, !tbaa !9
  %150 = sub nsw i32 %148, %149
  %151 = mul nsw i32 %150, 32
  %152 = load i32, ptr %15, align 4, !tbaa !9
  %153 = srem i32 %152, 32
  %154 = add nsw i32 %151, %153
  store i32 %154, ptr %17, align 4, !tbaa !9
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = call noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %155)
  %157 = load i32, ptr %18, align 4, !tbaa !9
  %158 = sub nsw i32 %156, %157
  %159 = load i32, ptr %15, align 4, !tbaa !9
  %160 = sdiv i32 %159, 32
  %161 = sub nsw i32 %158, %160
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %162, i32 0, i32 1
  store i32 %161, ptr %163, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #5
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %19, ptr noundef nonnull align 8 dereferenceable(37) %164)
  %165 = load i32, ptr %16, align 4, !tbaa !9
  invoke void @_ZN5sc_dt8scfx_rep6lshiftEi(ptr noundef nonnull align 8 dereferenceable(37) %19, i32 noundef %165)
          to label %166 unwind label %178

166:                                              ; preds = %83
  %167 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %19, i32 0, i32 4
  %168 = load i32, ptr %167, align 4, !tbaa !16
  %169 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %19)
          to label %170 unwind label %178

170:                                              ; preds = %166
  %171 = sub nsw i32 %169, 1
  %172 = icmp eq i32 %168, %171
  br i1 %172, label %173, label %182

173:                                              ; preds = %170
  %174 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %19)
          to label %175 unwind label %178

175:                                              ; preds = %173
  %176 = add nsw i32 %174, 1
  invoke void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %19, i32 noundef %176, i32 noundef 1)
          to label %177 unwind label %178

177:                                              ; preds = %175
  br label %182

178:                                              ; preds = %175, %173, %166, %83
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %9, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %10, align 4
  br label %298

182:                                              ; preds = %177, %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %183, i32 0, i32 4
  %185 = load i32, ptr %184, align 4, !tbaa !16
  %186 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %19, i32 0, i32 4
  %187 = load i32, ptr %186, align 4, !tbaa !16
  %188 = sub nsw i32 %185, %187
  store i32 %188, ptr %20, align 4, !tbaa !9
  %189 = load i32, ptr %20, align 4, !tbaa !9
  %190 = icmp sgt i32 %189, 0
  br i1 %190, label %191, label %201

191:                                              ; preds = %182
  %192 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %19)
          to label %193 unwind label %197

193:                                              ; preds = %191
  %194 = load i32, ptr %20, align 4, !tbaa !9
  %195 = add nsw i32 %192, %194
  invoke void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %19, i32 noundef %195, i32 noundef -1)
          to label %196 unwind label %197

196:                                              ; preds = %193
  br label %201

197:                                              ; preds = %193, %191
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %9, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %10, align 4
  br label %297

201:                                              ; preds = %196, %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %202 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %202, ptr %21, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %247, %201
  %204 = load i32, ptr %21, align 4, !tbaa !9
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %210

206:                                              ; preds = %203
  %207 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %19)
          to label %208 unwind label %236

208:                                              ; preds = %206
  %209 = xor i1 %207, true
  br label %210

210:                                              ; preds = %208, %203
  %211 = phi i1 [ false, %203 ], [ %209, %208 ]
  br i1 %211, label %212, label %250

212:                                              ; preds = %210
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = invoke noundef i32 @_ZN5sc_dt14compare_msw_ffERKNS_8scfx_repES2_(ptr noundef nonnull align 8 dereferenceable(37) %213, ptr noundef nonnull align 8 dereferenceable(37) %19)
          to label %215 unwind label %236

215:                                              ; preds = %212
  %216 = icmp sle i32 %214, 0
  br i1 %216, label %217, label %240

217:                                              ; preds = %215
  %218 = load ptr, ptr %8, align 8, !tbaa !5
  %219 = load i32, ptr %17, align 4, !tbaa !9
  invoke void @_ZN5sc_dt8scfx_rep7set_binEi(ptr noundef nonnull align 8 dereferenceable(37) %218, i32 noundef %219)
          to label %220 unwind label %236

220:                                              ; preds = %217
  %221 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %19, i32 0, i32 0
  %222 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %19, i32 0, i32 4
  %223 = load i32, ptr %222, align 4, !tbaa !16
  %224 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %19, i32 0, i32 5
  %225 = load i32, ptr %224, align 8, !tbaa !18
  %226 = load ptr, ptr %6, align 8, !tbaa !5
  %227 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %226, i32 0, i32 0
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %228, i32 0, i32 4
  %230 = load i32, ptr %229, align 4, !tbaa !16
  %231 = load ptr, ptr %6, align 8, !tbaa !5
  %232 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %231, i32 0, i32 5
  %233 = load i32, ptr %232, align 8, !tbaa !18
  %234 = invoke noundef i32 @_ZN5sc_dtL14sub_with_indexERNS_9scfx_mantEiiRKS0_ii(ptr noundef nonnull align 8 dereferenceable(12) %221, i32 noundef %223, i32 noundef %225, ptr noundef nonnull align 8 dereferenceable(12) %227, i32 noundef %230, i32 noundef %233)
          to label %235 unwind label %236

235:                                              ; preds = %220
  br label %240

236:                                              ; preds = %292, %243, %240, %220, %217, %212, %206
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %9, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %10, align 4
  br label %296

240:                                              ; preds = %235, %215
  %241 = load i32, ptr %17, align 4, !tbaa !9
  %242 = add nsw i32 %241, -1
  store i32 %242, ptr %17, align 4, !tbaa !9
  invoke void @_ZN5sc_dt8scfx_rep10shift_leftEi(ptr noundef nonnull align 8 dereferenceable(37) %19, i32 noundef 1)
          to label %243 unwind label %236

243:                                              ; preds = %240
  %244 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep8find_lswEv(ptr noundef nonnull align 8 dereferenceable(37) %19)
          to label %245 unwind label %236

245:                                              ; preds = %243
  %246 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %19, i32 0, i32 5
  store i32 %244, ptr %246, align 8, !tbaa !18
  br label %247

247:                                              ; preds = %245
  %248 = load i32, ptr %21, align 4, !tbaa !9
  %249 = add nsw i32 %248, -1
  store i32 %249, ptr %21, align 4, !tbaa !9
  br label %203, !llvm.loop !19

250:                                              ; preds = %210
  %251 = load i32, ptr %21, align 4, !tbaa !9
  %252 = icmp eq i32 %251, 0
  br i1 %252, label %253, label %292

253:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %254 = load i32, ptr %17, align 4, !tbaa !9
  %255 = add nsw i32 %254, 1
  %256 = load ptr, ptr %8, align 8, !tbaa !5
  %257 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %256, i32 0, i32 1
  %258 = load i32, ptr %257, align 8, !tbaa !17
  %259 = mul nsw i32 %258, 32
  %260 = sub nsw i32 %255, %259
  store i32 %260, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %261 = load ptr, ptr %8, align 8, !tbaa !5
  %262 = load i32, ptr %22, align 4, !tbaa !9
  %263 = invoke i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %261, i32 noundef %262)
          to label %264 unwind label %280

264:                                              ; preds = %253
  store i64 %263, ptr %23, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %265 = load ptr, ptr %8, align 8, !tbaa !5
  %266 = load i32, ptr %22, align 4, !tbaa !9
  %267 = add nsw i32 %266, 1
  %268 = invoke i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %265, i32 noundef %267)
          to label %269 unwind label %284

269:                                              ; preds = %264
  store i64 %268, ptr %24, align 4
  %270 = load ptr, ptr %8, align 8, !tbaa !5
  %271 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %270, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %272 unwind label %284

272:                                              ; preds = %269
  br i1 %271, label %273, label %288

273:                                              ; preds = %272
  %274 = load ptr, ptr %8, align 8, !tbaa !5
  %275 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %274, ptr noundef nonnull align 4 dereferenceable(8) %24)
          to label %276 unwind label %284

276:                                              ; preds = %273
  br i1 %275, label %277, label %288

277:                                              ; preds = %276
  %278 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN5sc_dt8scfx_rep6q_incrERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %278, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %279 unwind label %284

279:                                              ; preds = %277
  br label %288

280:                                              ; preds = %253
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %9, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %10, align 4
  br label %291

284:                                              ; preds = %277, %273, %269, %264
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %9, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %291

288:                                              ; preds = %279, %276, %272
  %289 = load ptr, ptr %8, align 8, !tbaa !5
  %290 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %289, i32 0, i32 6
  store i8 1, ptr %290, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %292

291:                                              ; preds = %284, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %296

292:                                              ; preds = %288, %250
  %293 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37) %293)
          to label %294 unwind label %236

294:                                              ; preds = %292
  %295 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %295, ptr %4, align 8
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %19) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %299

296:                                              ; preds = %291, %236
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %297

297:                                              ; preds = %296, %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %298

298:                                              ; preds = %297, %178
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %19) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %301

299:                                              ; preds = %294, %73, %57, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %300 = load ptr, ptr %4, align 8
  ret ptr %300

301:                                              ; preds = %298, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %302

302:                                              ; preds = %301
  %303 = load ptr, ptr %9, align 8
  %304 = load i32, ptr %10, align 4
  %305 = insertvalue { ptr, i32 } poison, ptr %303, 0
  %306 = insertvalue { ptr, i32 } %305, i32 %304, 1
  resume { ptr, i32 } %306
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37)) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep7set_nanEv(ptr noundef nonnull align 8 dereferenceable(37)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep6lshiftEi(ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5sc_dt14compare_msw_ffERKNS_8scfx_repES2_(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(37)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN5sc_dtL14sub_with_indexERNS_9scfx_mantEiiRKS0_ii(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(12), i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep10shift_leftEi(ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5sc_dt8scfx_rep8find_lswEv(ptr noundef nonnull align 8 dereferenceable(37)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 4 dereferenceable(8)) #2 align 2

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

declare void @_ZN5sc_dt8scfx_repC1Ev(ptr)

declare void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr, ptr)

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

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

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


; 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::scfx_rep" = type <{ %"class.sc_dt::scfx_mant", i32, i32, i32, i32, i32, i8, [3 x i8] }>
%"class.sc_dt::scfx_mant" = type <{ ptr, i32, [4 x i8] }>
%"class.sc_dt::scfx_index" = type { i32, i32 }

@_ZN5sc_dtL8min_mantE = external hidden constant i32, align 4

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt9scfx_mant5clearEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #0 align 2

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN5sc_dtL6n_wordEi(i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5sc_dt8scfx_repnwEm(i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt8scfx_repdlEPvm(ptr noundef, i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep7set_binEi(ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt6sc_maxIiEEKT_RS2_S3_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN5sc_dt12div_scfx_repERKNS_8scfx_repES2_i(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(37) %1, i32 noundef %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca %"class.sc_dt::scfx_rep", align 8
  %6 = alloca %"class.sc_dt::scfx_index", align 8
  %7 = alloca %"class.sc_dt::scfx_index", align 8
  %8 = tail call noundef ptr @_ZN5sc_dt8scfx_repnwEm(i64 noundef 40)
  invoke void @_ZN5sc_dt8scfx_repC1Ev(ptr noundef nonnull align 8 dereferenceable(37) %8)
          to label %9 unwind label %22

9:                                                ; preds = %3
  %10 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %10, label %21, label %11

11:                                               ; preds = %9
  %12 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37) %1)
  br i1 %12, label %21, label %13

13:                                               ; preds = %11
  %14 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %14, label %15, label %17

15:                                               ; preds = %13
  %16 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37) %1)
  br i1 %16, label %21, label %17

17:                                               ; preds = %15, %13
  %18 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %18, label %19, label %24

19:                                               ; preds = %17
  %20 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %1)
  br i1 %20, label %21, label %24

21:                                               ; preds = %19, %15, %11, %9
  tail call void @_ZN5sc_dt8scfx_rep7set_nanEv(ptr noundef nonnull align 8 dereferenceable(37) %8)
  br label %154

22:                                               ; preds = %3
  %23 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN5sc_dt8scfx_repdlEPvm(ptr noundef %8, i64 noundef 40) #5
  br label %155

24:                                               ; preds = %19, %17
  %25 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %25, label %28, label %26

26:                                               ; preds = %24
  %27 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %1)
  br i1 %27, label %28, label %34

28:                                               ; preds = %26, %24
  %29 = getelementptr inbounds i8, ptr %0, i64 20
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %1, i64 20
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = mul nsw i32 %32, %30
  tail call void @_ZN5sc_dt8scfx_rep7set_infEi(ptr noundef nonnull align 8 dereferenceable(37) %8, i32 noundef %33)
  br label %154

34:                                               ; preds = %26
  %35 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %35, label %38, label %36

36:                                               ; preds = %34
  %37 = tail call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37) %1)
  br i1 %37, label %38, label %44

38:                                               ; preds = %36, %34
  %39 = getelementptr inbounds i8, ptr %0, i64 20
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %1, i64 20
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = mul nsw i32 %42, %40
  tail call void @_ZN5sc_dt8scfx_rep8set_zeroEi(ptr noundef nonnull align 8 dereferenceable(37) %8, i32 noundef %43)
  br label %154

44:                                               ; preds = %36
  %45 = add nsw i32 %2, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %46 = tail call noundef i32 @_ZN5sc_dtL6n_wordEi(i32 noundef %45)
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %4, align 4, !tbaa !14
  %48 = call noundef i32 @_ZN5sc_dt6sc_maxIiEEKT_RS2_S3_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) @_ZN5sc_dtL8min_mantE)
  call void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %8, i32 noundef %48, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @_ZN5sc_dt9scfx_mant5clearEv(ptr noundef nonnull align 8 dereferenceable(12) %8)
  %49 = getelementptr inbounds i8, ptr %0, i64 20
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %1, i64 20
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = mul nsw i32 %52, %50
  %54 = getelementptr inbounds i8, ptr %8, i64 20
  store i32 %53, ptr %54, align 4, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %0, i64 28
  %56 = load i32, ptr %55, align 4, !tbaa !15
  %57 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %56)
  %58 = zext i32 %57 to i64
  %59 = call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %58)
  %60 = load i32, ptr %55, align 4, !tbaa !15
  %61 = getelementptr inbounds i8, ptr %0, i64 16
  %62 = load i32, ptr %61, align 8, !tbaa !16
  %63 = sub i32 %60, %62
  %64 = getelementptr inbounds i8, ptr %1, i64 28
  %65 = load i32, ptr %64, align 4, !tbaa !15
  %66 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %1, i32 noundef %65)
  %67 = zext i32 %66 to i64
  %68 = call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %67)
  %69 = load i32, ptr %64, align 4, !tbaa !15
  %70 = getelementptr inbounds i8, ptr %1, i64 16
  %71 = load i32, ptr %70, align 8, !tbaa !16
  %.neg102 = sub i32 %71, %69
  %reass.add = add i32 %63, %.neg102
  %reass.mul = shl i32 %reass.add, 5
  %72 = sub i32 %59, %68
  %73 = add i32 %72, %reass.mul
  %74 = srem i32 %73, 32
  %75 = sub nsw i32 0, %74
  %76 = icmp sgt i32 %74, -1
  %.neg103 = sext i1 %76 to i32
  %77 = call noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %8)
  %78 = add i32 %77, %.neg103
  %79 = shl nsw i32 %78, 5
  %80 = add nsw i32 %79, %74
  %81 = call noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %8)
  %.neg = sdiv i32 %73, -32
  %82 = add i32 %.neg, %81
  %83 = add i32 %82, %.neg103
  %84 = getelementptr inbounds i8, ptr %8, i64 16
  store i32 %83, ptr %84, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #5
  call void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %5, ptr noundef nonnull align 8 dereferenceable(37) %0)
  invoke void @_ZN5sc_dt8scfx_rep6lshiftEi(ptr noundef nonnull align 8 dereferenceable(37) %5, i32 noundef %75)
          to label %85 unwind label %96

85:                                               ; preds = %44
  %86 = getelementptr inbounds i8, ptr %5, i64 28
  %87 = load i32, ptr %86, align 4, !tbaa !15
  %88 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %5)
          to label %89 unwind label %96

89:                                               ; preds = %85
  %90 = add nsw i32 %88, -1
  %91 = icmp eq i32 %87, %90
  br i1 %91, label %92, label %98

92:                                               ; preds = %89
  %93 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %5)
          to label %94 unwind label %96

94:                                               ; preds = %92
  %95 = add nsw i32 %93, 1
  invoke void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %5, i32 noundef %95, i32 noundef 1)
          to label %98 unwind label %96

96:                                               ; preds = %94, %92, %85, %44
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %153

98:                                               ; preds = %94, %89
  %99 = load i32, ptr %64, align 4, !tbaa !15
  %100 = load i32, ptr %86, align 4, !tbaa !15
  %101 = sub nsw i32 %99, %100
  %102 = icmp sgt i32 %101, 0
  br i1 %102, label %103, label %109

103:                                              ; preds = %98
  %104 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %5)
          to label %105 unwind label %107

105:                                              ; preds = %103
  %106 = add nsw i32 %104, %101
  invoke void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %5, i32 noundef %106, i32 noundef -1)
          to label %109 unwind label %107

107:                                              ; preds = %105, %103
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %153

109:                                              ; preds = %105, %98
  %cond99 = icmp eq i32 %45, 0
  br i1 %cond99, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %109
  %110 = getelementptr inbounds i8, ptr %5, i64 32
  %111 = getelementptr inbounds i8, ptr %1, i64 32
  br label %112

112:                                              ; preds = %.lr.ph, %130
  %.076101 = phi i32 [ %45, %.lr.ph ], [ %131, %130 ]
  %.078100 = phi i32 [ %80, %.lr.ph ], [ %127, %130 ]
  %113 = invoke noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %5)
          to label %114 unwind label %.loopexit

114:                                              ; preds = %112
  br i1 %113, label %.critedge, label %115

115:                                              ; preds = %114
  %116 = invoke noundef i32 @_ZN5sc_dt14compare_msw_ffERKNS_8scfx_repES2_(ptr noundef nonnull align 8 dereferenceable(37) %1, ptr noundef nonnull align 8 dereferenceable(37) %5)
          to label %117 unwind label %.loopexit

117:                                              ; preds = %115
  %118 = icmp slt i32 %116, 1
  br i1 %118, label %119, label %126

119:                                              ; preds = %117
  invoke void @_ZN5sc_dt8scfx_rep7set_binEi(ptr noundef nonnull align 8 dereferenceable(37) %8, i32 noundef %.078100)
          to label %120 unwind label %.loopexit

120:                                              ; preds = %119
  %121 = load i32, ptr %86, align 4, !tbaa !15
  %122 = load i32, ptr %110, align 8, !tbaa !17
  %123 = load i32, ptr %64, align 4, !tbaa !15
  %124 = load i32, ptr %111, align 8, !tbaa !17
  %125 = call noundef i32 @_ZN5sc_dtL14sub_with_indexERNS_9scfx_mantEiiRKS0_ii(ptr noundef nonnull align 8 dereferenceable(12) %5, i32 noundef %121, i32 noundef %122, ptr noundef nonnull align 8 dereferenceable(12) %1, i32 noundef %123, i32 noundef %124)
  br label %126

.loopexit:                                        ; preds = %112, %115, %119, %126, %128
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %153

.loopexit.split-lp:                               ; preds = %.critedge
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %153

126:                                              ; preds = %120, %117
  %127 = add nsw i32 %.078100, -1
  invoke void @_ZN5sc_dt8scfx_rep10shift_leftEi(ptr noundef nonnull align 8 dereferenceable(37) %5, i32 noundef 1)
          to label %128 unwind label %.loopexit

128:                                              ; preds = %126
  %129 = invoke noundef i32 @_ZNK5sc_dt8scfx_rep8find_lswEv(ptr noundef nonnull align 8 dereferenceable(37) %5)
          to label %130 unwind label %.loopexit

130:                                              ; preds = %128
  store i32 %129, ptr %110, align 8, !tbaa !17
  %131 = add nsw i32 %.076101, -1
  %cond = icmp eq i32 %131, 0
  br i1 %cond, label %._crit_edge, label %112, !llvm.loop !18

._crit_edge:                                      ; preds = %130, %109
  %.078.lcssa = phi i32 [ %80, %109 ], [ %127, %130 ]
  %132 = add nsw i32 %.078.lcssa, 1
  %133 = load i32, ptr %84, align 8, !tbaa !16
  %134 = shl i32 %133, 5
  %135 = sub i32 %132, %134
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %136 = invoke i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %8, i32 noundef %135)
          to label %137 unwind label %145

137:                                              ; preds = %._crit_edge
  store i64 %136, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %138 = add nsw i32 %135, 1
  %139 = invoke i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %8, i32 noundef %138)
          to label %140 unwind label %147

140:                                              ; preds = %137
  store i64 %139, ptr %7, align 8
  %141 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %8, ptr noundef nonnull align 4 dereferenceable(8) %6)
  br i1 %141, label %142, label %149

142:                                              ; preds = %140
  %143 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %8, ptr noundef nonnull align 4 dereferenceable(8) %7)
  br i1 %143, label %144, label %149

144:                                              ; preds = %142
  invoke void @_ZN5sc_dt8scfx_rep6q_incrERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %8, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %149 unwind label %147

145:                                              ; preds = %._crit_edge
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %151

147:                                              ; preds = %144, %137
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %151

149:                                              ; preds = %144, %142, %140
  %150 = getelementptr inbounds i8, ptr %8, i64 36
  store i8 1, ptr %150, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %.critedge

151:                                              ; preds = %147, %145
  %.pn = phi { ptr, i32 } [ %148, %147 ], [ %146, %145 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %153

.critedge:                                        ; preds = %114, %149
  invoke void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37) %8)
          to label %152 unwind label %.loopexit.split-lp

152:                                              ; preds = %.critedge
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  br label %154

153:                                              ; preds = %.loopexit, %.loopexit.split-lp, %107, %151, %96
  %.pn85.pn.pn = phi { ptr, i32 } [ %97, %96 ], [ %108, %107 ], [ %.pn, %151 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  br label %155

154:                                              ; preds = %152, %38, %28, %21
  ret ptr %8

155:                                              ; preds = %153, %22
  %.pn85.pn.pn.pn = phi { ptr, i32 } [ %.pn85.pn.pn, %153 ], [ %23, %22 ]
  resume { ptr, i32 } %.pn85.pn.pn.pn
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep7set_nanEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep6lshiftEi(ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5sc_dt14compare_msw_ffERKNS_8scfx_repES2_(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN5sc_dtL14sub_with_indexERNS_9scfx_mantEiiRKS0_ii(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(12), i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_rep10shift_leftEi(ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5sc_dt8scfx_rep8find_lswEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

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

declare void @_ZN5sc_dt8scfx_repC1Ev(ptr) local_unnamed_addr

declare void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr, ptr) local_unnamed_addr

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass