; 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_index" = type { i32, i32 }

@_ZN7sc_core26SC_ID_WRAP_SM_NOT_DEFINED_E = external constant [0 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [90 x i8], align 1

; 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

; 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 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8)) #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 zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5sc_dt11scfx_params2wlEv(ptr noundef nonnull align 4 dereferenceable(28)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5sc_dt11scfx_params3encEv(ptr noundef nonnull align 4 dereferenceable(28)) #3 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)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5sc_dt8scfx_rep8overflowERKNS_11scfx_paramsERb(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(28) %1, ptr noundef nonnull align 1 dereferenceable(1) %2) #4 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.sc_dt::scfx_index", align 4
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca %"class.sc_dt::scfx_index", align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.sc_dt::scfx_index", align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.sc_dt::scfx_index", align 4
  %19 = alloca %"class.sc_dt::scfx_index", align 4
  %20 = alloca %"class.sc_dt::scfx_index", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = call noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %22)
  %24 = sub nsw i32 %23, 1
  %25 = call i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %21, i32 noundef %24)
  store i64 %25, ptr %7, align 4
  %26 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %27 = call noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  %28 = icmp sge i32 %26, %27
  br i1 %28, label %29, label %32

29:                                               ; preds = %3
  %30 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %31 = add nsw i32 %30, 1
  call void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %21, i32 noundef %31, i32 noundef 1)
  br label %32

32:                                               ; preds = %29, %3
  %33 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %34 = icmp slt i32 %33, 0
  br i1 %34, label %35, label %39

35:                                               ; preds = %32
  %36 = call noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  %37 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %38 = sub nsw i32 %36, %37
  call void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %21, i32 noundef %38, i32 noundef -1)
  call void @_ZN5sc_dt10scfx_index2wiEi(ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef 0)
  br label %39

39:                                               ; preds = %35, %32
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  %40 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep11o_zero_leftERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %41 = zext i1 %40 to i8
  store i8 %41, ptr %8, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  %42 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %43 = zext i1 %42 to i8
  store i8 %43, ptr %9, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  %44 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep12o_zero_rightERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %45 = zext i1 %44 to i8
  store i8 %45, ptr %10, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  store i8 0, ptr %11, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  store i8 0, ptr %12, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = call noundef i32 @_ZNK5sc_dt11scfx_params3encEv(ptr noundef nonnull align 4 dereferenceable(28) %46)
  store i32 %47, ptr %13, align 4, !tbaa !11
  %48 = load i32, ptr %13, align 4, !tbaa !11
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %94

50:                                               ; preds = %39
  %51 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  br i1 %51, label %52, label %84

52:                                               ; preds = %50
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = call noundef i32 @_ZNK5sc_dt11scfx_params6o_modeEv(ptr noundef nonnull align 4 dereferenceable(28) %53)
  %55 = icmp eq i32 %54, 2
  br i1 %55, label %56, label %65

56:                                               ; preds = %52
  %57 = load i8, ptr %8, align 1, !tbaa !9, !range !13, !noundef !14
  %58 = trunc i8 %57 to i1
  br i1 %58, label %59, label %62

59:                                               ; preds = %56
  %60 = load i8, ptr %9, align 1, !tbaa !9, !range !13, !noundef !14
  %61 = trunc i8 %60 to i1
  br label %62

62:                                               ; preds = %59, %56
  %63 = phi i1 [ true, %56 ], [ %61, %59 ]
  %64 = zext i1 %63 to i8
  store i8 %64, ptr %11, align 1, !tbaa !9
  br label %83

65:                                               ; preds = %52
  %66 = load i8, ptr %8, align 1, !tbaa !9, !range !13, !noundef !14
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %80

68:                                               ; preds = %65
  %69 = load i8, ptr %8, align 1, !tbaa !9, !range !13, !noundef !14
  %70 = trunc i8 %69 to i1
  br i1 %70, label %71, label %78

71:                                               ; preds = %68
  %72 = load i8, ptr %9, align 1, !tbaa !9, !range !13, !noundef !14
  %73 = trunc i8 %72 to i1
  br i1 %73, label %74, label %78

74:                                               ; preds = %71
  %75 = load i8, ptr %10, align 1, !tbaa !9, !range !13, !noundef !14
  %76 = trunc i8 %75 to i1
  %77 = xor i1 %76, true
  br label %78

78:                                               ; preds = %74, %71, %68
  %79 = phi i1 [ false, %71 ], [ false, %68 ], [ %77, %74 ]
  br label %80

80:                                               ; preds = %78, %65
  %81 = phi i1 [ true, %65 ], [ %79, %78 ]
  %82 = zext i1 %81 to i8
  store i8 %82, ptr %11, align 1, !tbaa !9
  br label %83

83:                                               ; preds = %80, %62
  br label %93

84:                                               ; preds = %50
  %85 = load i8, ptr %8, align 1, !tbaa !9, !range !13, !noundef !14
  %86 = trunc i8 %85 to i1
  br i1 %86, label %87, label %90

87:                                               ; preds = %84
  %88 = load i8, ptr %9, align 1, !tbaa !9, !range !13, !noundef !14
  %89 = trunc i8 %88 to i1
  br label %90

90:                                               ; preds = %87, %84
  %91 = phi i1 [ true, %84 ], [ %89, %87 ]
  %92 = zext i1 %91 to i8
  store i8 %92, ptr %12, align 1, !tbaa !9
  br label %93

93:                                               ; preds = %90, %83
  br label %106

94:                                               ; preds = %39
  %95 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  br i1 %95, label %96, label %100

96:                                               ; preds = %94
  %97 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  %98 = xor i1 %97, true
  %99 = zext i1 %98 to i8
  store i8 %99, ptr %11, align 1, !tbaa !9
  br label %105

100:                                              ; preds = %94
  %101 = load i8, ptr %8, align 1, !tbaa !9, !range !13, !noundef !14
  %102 = trunc i8 %101 to i1
  %103 = xor i1 %102, true
  %104 = zext i1 %103 to i8
  store i8 %104, ptr %12, align 1, !tbaa !9
  br label %105

105:                                              ; preds = %100, %96
  br label %106

106:                                              ; preds = %105, %93
  %107 = load i8, ptr %11, align 1, !tbaa !9, !range !13, !noundef !14
  %108 = trunc i8 %107 to i1
  br i1 %108, label %112, label %109

109:                                              ; preds = %106
  %110 = load i8, ptr %12, align 1, !tbaa !9, !range !13, !noundef !14
  %111 = trunc i8 %110 to i1
  br label %112

112:                                              ; preds = %109, %106
  %113 = phi i1 [ true, %106 ], [ %111, %109 ]
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = zext i1 %113 to i8
  store i8 %115, ptr %114, align 1, !tbaa !9
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = load i8, ptr %116, align 1, !tbaa !9, !range !13, !noundef !14
  %118 = trunc i8 %117 to i1
  br i1 %118, label %119, label %267

119:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = call noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %120)
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = call noundef i32 @_ZNK5sc_dt11scfx_params2wlEv(ptr noundef nonnull align 4 dereferenceable(28) %122)
  %124 = sub nsw i32 %121, %123
  %125 = call i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %21, i32 noundef %124)
  store i64 %125, ptr %14, align 4
  %126 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %14)
  %127 = icmp slt i32 %126, 0
  br i1 %127, label %128, label %135

128:                                              ; preds = %119
  %129 = call noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  %130 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %14)
  %131 = sub nsw i32 %129, %130
  call void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %21, i32 noundef %131, i32 noundef -1)
  %132 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %133 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %14)
  %134 = sub nsw i32 %132, %133
  call void @_ZN5sc_dt10scfx_index2wiEi(ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef %134)
  call void @_ZN5sc_dt10scfx_index2wiEi(ptr noundef nonnull align 4 dereferenceable(8) %14, i32 noundef 0)
  br label %135

135:                                              ; preds = %128, %119
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = call noundef i32 @_ZNK5sc_dt11scfx_params6o_modeEv(ptr noundef nonnull align 4 dereferenceable(28) %136)
  switch i32 %137, label %265 [
    i32 3, label %138
    i32 0, label %171
    i32 2, label %179
    i32 1, label %191
    i32 4, label %192
  ]

138:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = call noundef i32 @_ZNK5sc_dt11scfx_params6n_bitsEv(ptr noundef nonnull align 4 dereferenceable(28) %139)
  store i32 %140, ptr %15, align 4, !tbaa !15
  %141 = load i32, ptr %15, align 4, !tbaa !15
  %142 = icmp eq i32 %141, 0
  br i1 %142, label %143, label %145

143:                                              ; preds = %138
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  %144 = load i32, ptr %13, align 4, !tbaa !11
  call void @_ZN5sc_dt8scfx_rep8o_extendERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef %144)
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  br label %170

145:                                              ; preds = %138
  %146 = load i32, ptr %15, align 4, !tbaa !15
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = call noundef i32 @_ZNK5sc_dt11scfx_params2wlEv(ptr noundef nonnull align 4 dereferenceable(28) %147)
  %149 = icmp slt i32 %146, %148
  br i1 %149, label %150, label %161

150:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = call noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %151)
  %153 = sub nsw i32 %152, 1
  %154 = load i32, ptr %15, align 4, !tbaa !15
  %155 = sub nsw i32 %153, %154
  %156 = call i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %21, i32 noundef %155)
  store i64 %156, ptr %16, align 4
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  %157 = load i32, ptr %13, align 4, !tbaa !11
  %158 = load i8, ptr %11, align 1, !tbaa !9, !range !13, !noundef !14
  %159 = trunc i8 %158 to i1
  call void @_ZN5sc_dt8scfx_rep5o_setERKNS_10scfx_indexES3_NS_6sc_encEb(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef %157, i1 noundef zeroext %159)
  %160 = load i32, ptr %13, align 4, !tbaa !11
  call void @_ZN5sc_dt8scfx_rep8o_extendERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef %160)
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %169

161:                                              ; preds = %145
  %162 = load i8, ptr %11, align 1, !tbaa !9, !range !13, !noundef !14
  %163 = trunc i8 %162 to i1
  br i1 %163, label %164, label %166

164:                                              ; preds = %161
  %165 = load i32, ptr %13, align 4, !tbaa !11
  call void @_ZN5sc_dt8scfx_rep9o_set_lowERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef %165)
  br label %168

166:                                              ; preds = %161
  %167 = load i32, ptr %13, align 4, !tbaa !11
  call void @_ZN5sc_dt8scfx_rep10o_set_highERKNS_10scfx_indexES3_NS_6sc_encEi(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %14, i32 noundef %167, i32 noundef 1)
  br label %168

168:                                              ; preds = %166, %164
  br label %169

169:                                              ; preds = %168, %150
  br label %170

170:                                              ; preds = %169, %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %266

171:                                              ; preds = %135
  %172 = load i8, ptr %11, align 1, !tbaa !9, !range !13, !noundef !14
  %173 = trunc i8 %172 to i1
  br i1 %173, label %174, label %176

174:                                              ; preds = %171
  %175 = load i32, ptr %13, align 4, !tbaa !11
  call void @_ZN5sc_dt8scfx_rep9o_set_lowERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef %175)
  br label %178

176:                                              ; preds = %171
  %177 = load i32, ptr %13, align 4, !tbaa !11
  call void @_ZN5sc_dt8scfx_rep10o_set_highERKNS_10scfx_indexES3_NS_6sc_encEi(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %14, i32 noundef %177, i32 noundef 1)
  br label %178

178:                                              ; preds = %176, %174
  br label %266

179:                                              ; preds = %135
  %180 = load i8, ptr %11, align 1, !tbaa !9, !range !13, !noundef !14
  %181 = trunc i8 %180 to i1
  br i1 %181, label %182, label %188

182:                                              ; preds = %179
  %183 = load i32, ptr %13, align 4, !tbaa !11
  %184 = icmp eq i32 %183, 0
  br i1 %184, label %185, label %186

185:                                              ; preds = %182
  call void @_ZN5sc_dt8scfx_rep10o_set_highERKNS_10scfx_indexES3_NS_6sc_encEi(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %14, i32 noundef 0, i32 noundef -1)
  br label %187

186:                                              ; preds = %182
  call void @_ZN5sc_dt8scfx_rep9o_set_lowERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef 1)
  br label %187

187:                                              ; preds = %186, %185
  br label %190

188:                                              ; preds = %179
  %189 = load i32, ptr %13, align 4, !tbaa !11
  call void @_ZN5sc_dt8scfx_rep10o_set_highERKNS_10scfx_indexES3_NS_6sc_encEi(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %14, i32 noundef %189, i32 noundef 1)
  br label %190

190:                                              ; preds = %188, %187
  br label %266

191:                                              ; preds = %135
  call void @_ZN5sc_dt8scfx_rep8set_zeroEi(ptr noundef nonnull align 8 dereferenceable(37) %21, i32 noundef 1)
  br label %266

192:                                              ; preds = %135
  %193 = load i32, ptr %13, align 4, !tbaa !11
  %194 = icmp eq i32 %193, 1
  br i1 %194, label %195, label %196

195:                                              ; preds = %192
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 2, ptr noundef @_ZN7sc_core26SC_ID_WRAP_SM_NOT_DEFINED_E, ptr noundef null, ptr noundef @.str.2, i32 noundef 2163)
  br label %196

196:                                              ; preds = %195, %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = call noundef i32 @_ZNK5sc_dt11scfx_params6n_bitsEv(ptr noundef nonnull align 4 dereferenceable(28) %197)
  store i32 %198, ptr %17, align 4, !tbaa !15
  %199 = load i32, ptr %17, align 4, !tbaa !15
  %200 = icmp eq i32 %199, 0
  br i1 %200, label %201, label %219

201:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = call noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %202)
  %204 = call i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %21, i32 noundef %203)
  store i64 %204, ptr %18, align 4
  %205 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %18)
  %206 = call noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  %207 = icmp sge i32 %205, %206
  br i1 %207, label %208, label %211

208:                                              ; preds = %201
  %209 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %18)
  %210 = add nsw i32 %209, 1
  call void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %21, i32 noundef %210, i32 noundef 1)
  br label %211

211:                                              ; preds = %208, %201
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  %212 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %18)
  %213 = zext i1 %212 to i32
  %214 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %215 = zext i1 %214 to i32
  %216 = icmp ne i32 %213, %215
  br i1 %216, label %217, label %218

217:                                              ; preds = %211
  call void @_ZN5sc_dt8scfx_rep8o_invertERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %14)
  br label %218

218:                                              ; preds = %217, %211
  call void @_ZN5sc_dt8scfx_rep8o_extendERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef 0)
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %264

219:                                              ; preds = %196
  %220 = load i32, ptr %17, align 4, !tbaa !15
  %221 = icmp eq i32 %220, 1
  br i1 %221, label %222, label %230

222:                                              ; preds = %219
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  %223 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  %224 = zext i1 %223 to i32
  %225 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %226 = zext i1 %225 to i32
  %227 = icmp ne i32 %224, %226
  br i1 %227, label %228, label %229

228:                                              ; preds = %222
  call void @_ZN5sc_dt8scfx_rep8o_invertERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %14)
  br label %229

229:                                              ; preds = %228, %222
  call void @_ZN5sc_dt8scfx_rep8o_extendERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef 0)
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  br label %263

230:                                              ; preds = %219
  %231 = load i32, ptr %17, align 4, !tbaa !15
  %232 = load ptr, ptr %5, align 8, !tbaa !5
  %233 = call noundef i32 @_ZNK5sc_dt11scfx_params2wlEv(ptr noundef nonnull align 4 dereferenceable(28) %232)
  %234 = icmp slt i32 %231, %233
  br i1 %234, label %235, label %256

235:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  %237 = call noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %236)
  %238 = sub nsw i32 %237, 1
  %239 = load i32, ptr %17, align 4, !tbaa !15
  %240 = sub nsw i32 %238, %239
  %241 = call i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %21, i32 noundef %240)
  store i64 %241, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = call noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %242)
  %244 = load i32, ptr %17, align 4, !tbaa !15
  %245 = sub nsw i32 %243, %244
  %246 = call i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %21, i32 noundef %245)
  store i64 %246, ptr %20, align 4
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  %247 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  %248 = zext i1 %247 to i32
  %249 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %20)
  %250 = zext i1 %249 to i32
  %251 = icmp eq i32 %248, %250
  br i1 %251, label %252, label %253

252:                                              ; preds = %235
  call void @_ZN5sc_dt8scfx_rep8o_invertERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %14)
  br label %253

253:                                              ; preds = %252, %235
  %254 = load i8, ptr %11, align 1, !tbaa !9, !range !13, !noundef !14
  %255 = trunc i8 %254 to i1
  call void @_ZN5sc_dt8scfx_rep5o_setERKNS_10scfx_indexES3_NS_6sc_encEb(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %19, i32 noundef 0, i1 noundef zeroext %255)
  call void @_ZN5sc_dt8scfx_rep8o_extendERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef 0)
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %262

256:                                              ; preds = %230
  %257 = load i8, ptr %11, align 1, !tbaa !9, !range !13, !noundef !14
  %258 = trunc i8 %257 to i1
  br i1 %258, label %259, label %260

259:                                              ; preds = %256
  call void @_ZN5sc_dt8scfx_rep9o_set_lowERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef 0)
  br label %261

260:                                              ; preds = %256
  call void @_ZN5sc_dt8scfx_rep10o_set_highERKNS_10scfx_indexES3_NS_6sc_encEi(ptr noundef nonnull align 8 dereferenceable(37) %21, ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %14, i32 noundef 0, i32 noundef 1)
  br label %261

261:                                              ; preds = %260, %259
  br label %262

262:                                              ; preds = %261, %253
  br label %263

263:                                              ; preds = %262, %229
  br label %264

264:                                              ; preds = %263, %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %266

265:                                              ; preds = %135
  br label %266

266:                                              ; preds = %265, %264, %191, %190, %178, %170
  call void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %267

267:                                              ; preds = %266, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5sc_dt11scfx_params6o_modeEv(ptr noundef nonnull align 4 dereferenceable(28)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5sc_dt11scfx_params6n_bitsEv(ptr noundef nonnull align 4 dereferenceable(28)) #0 align 2

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

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

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

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

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

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

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

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 = { 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 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN5sc_dt6sc_encE", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}


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

%"class.sc_dt::scfx_index" = type { i32, i32 }

@_ZN7sc_core26SC_ID_WRAP_SM_NOT_DEFINED_E = external constant [0 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [90 x i8], align 1

; 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

; 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 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8)) 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 zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5sc_dt11scfx_params2wlEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5sc_dt11scfx_params3encEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #3 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 #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5sc_dt8scfx_rep8overflowERKNS_11scfx_paramsERb(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(28) %1, ptr nocapture noundef nonnull writeonly align 1 dereferenceable(1) %2) local_unnamed_addr #4 align 2 {
  %4 = alloca %"class.sc_dt::scfx_index", align 8
  %5 = alloca %"class.sc_dt::scfx_index", align 8
  %6 = alloca %"class.sc_dt::scfx_index", align 8
  %7 = alloca %"class.sc_dt::scfx_index", align 8
  %8 = alloca %"class.sc_dt::scfx_index", align 8
  %9 = alloca %"class.sc_dt::scfx_index", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %10 = tail call noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %11 = add nsw i32 %10, -1
  %12 = tail call i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %11)
  store i64 %12, ptr %4, align 8
  %13 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %14 = call noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  %.not = icmp slt i32 %13, %14
  br i1 %.not, label %18, label %15

15:                                               ; preds = %3
  %16 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %17 = add nsw i32 %16, 1
  call void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %17, i32 noundef 1)
  br label %18

18:                                               ; preds = %15, %3
  %19 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %20 = icmp slt i32 %19, 0
  br i1 %20, label %21, label %25

21:                                               ; preds = %18
  %22 = call noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  %23 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %24 = sub nsw i32 %22, %23
  call void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %24, i32 noundef -1)
  call void @_ZN5sc_dt10scfx_index2wiEi(ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef 0)
  br label %25

25:                                               ; preds = %21, %18
  %26 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep11o_zero_leftERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4)
  %27 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4)
  %28 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep12o_zero_rightERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4)
  %29 = call noundef i32 @_ZNK5sc_dt11scfx_params3encEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %30 = icmp eq i32 %29, 0
  %31 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %30, label %32, label %43

32:                                               ; preds = %25
  br i1 %31, label %33, label %41

33:                                               ; preds = %32
  %34 = call noundef i32 @_ZNK5sc_dt11scfx_params6o_modeEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %35 = icmp eq i32 %34, 2
  br i1 %35, label %36, label %38

36:                                               ; preds = %33
  %not.56 = xor i1 %26, true
  %37 = or i1 %27, %not.56
  br label %49

38:                                               ; preds = %33
  br i1 %26, label %39, label %.thread

.thread:                                          ; preds = %38
  store i8 1, ptr %2, align 1, !tbaa !5
  br label %52

39:                                               ; preds = %38
  %40 = xor i1 %28, true
  %spec.select = and i1 %27, %40
  br label %49

41:                                               ; preds = %32
  %not. = xor i1 %26, true
  %42 = or i1 %27, %not.
  br label %49

43:                                               ; preds = %25
  br i1 %31, label %44, label %47

44:                                               ; preds = %43
  %45 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  %46 = xor i1 %45, true
  br label %49

47:                                               ; preds = %43
  %48 = xor i1 %26, true
  br label %49

49:                                               ; preds = %39, %44, %47, %41, %36
  %.052.shrunk = phi i1 [ false, %36 ], [ %42, %41 ], [ false, %44 ], [ %48, %47 ], [ false, %39 ]
  %.0.shrunk = phi i1 [ %37, %36 ], [ false, %41 ], [ %46, %44 ], [ false, %47 ], [ %spec.select, %39 ]
  %50 = or i1 %.052.shrunk, %.0.shrunk
  %51 = zext i1 %50 to i8
  store i8 %51, ptr %2, align 1, !tbaa !5
  br i1 %50, label %52, label %137

52:                                               ; preds = %.thread, %49
  %.0.shrunk62 = phi i1 [ true, %.thread ], [ %.0.shrunk, %49 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %53 = call noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %54 = call noundef i32 @_ZNK5sc_dt11scfx_params2wlEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %55 = sub nsw i32 %53, %54
  %56 = call i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %55)
  store i64 %56, ptr %5, align 8
  %57 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %58 = icmp slt i32 %57, 0
  br i1 %58, label %59, label %66

59:                                               ; preds = %52
  %60 = call noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  %61 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %62 = sub nsw i32 %60, %61
  call void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %62, i32 noundef -1)
  %63 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %64 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %65 = sub nsw i32 %63, %64
  call void @_ZN5sc_dt10scfx_index2wiEi(ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %65)
  call void @_ZN5sc_dt10scfx_index2wiEi(ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef 0)
  br label %66

66:                                               ; preds = %59, %52
  %67 = call noundef i32 @_ZNK5sc_dt11scfx_params6o_modeEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  switch i32 %67, label %136 [
    i32 3, label %68
    i32 0, label %83
    i32 2, label %86
    i32 1, label %91
    i32 4, label %92
  ]

68:                                               ; preds = %66
  %69 = call noundef i32 @_ZNK5sc_dt11scfx_params6n_bitsEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %68
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  call void @_ZN5sc_dt8scfx_rep8o_extendERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %29)
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br label %136

72:                                               ; preds = %68
  %73 = call noundef i32 @_ZNK5sc_dt11scfx_params2wlEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %74 = icmp slt i32 %69, %73
  br i1 %74, label %75, label %80

75:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %76 = call noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %77 = xor i32 %69, -1
  %78 = add i32 %76, %77
  %79 = call i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %78)
  store i64 %79, ptr %6, align 8
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  call void @_ZN5sc_dt8scfx_rep5o_setERKNS_10scfx_indexES3_NS_6sc_encEb(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef %29, i1 noundef zeroext %.0.shrunk62)
  call void @_ZN5sc_dt8scfx_rep8o_extendERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %29)
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %136

80:                                               ; preds = %72
  br i1 %.0.shrunk62, label %81, label %82

81:                                               ; preds = %80
  call void @_ZN5sc_dt8scfx_rep9o_set_lowERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %29)
  br label %136

82:                                               ; preds = %80
  call void @_ZN5sc_dt8scfx_rep10o_set_highERKNS_10scfx_indexES3_NS_6sc_encEi(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef %29, i32 noundef 1)
  br label %136

83:                                               ; preds = %66
  br i1 %.0.shrunk62, label %84, label %85

84:                                               ; preds = %83
  call void @_ZN5sc_dt8scfx_rep9o_set_lowERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %29)
  br label %136

85:                                               ; preds = %83
  call void @_ZN5sc_dt8scfx_rep10o_set_highERKNS_10scfx_indexES3_NS_6sc_encEi(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef %29, i32 noundef 1)
  br label %136

86:                                               ; preds = %66
  br i1 %.0.shrunk62, label %87, label %90

87:                                               ; preds = %86
  br i1 %30, label %88, label %89

88:                                               ; preds = %87
  call void @_ZN5sc_dt8scfx_rep10o_set_highERKNS_10scfx_indexES3_NS_6sc_encEi(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef 0, i32 noundef -1)
  br label %136

89:                                               ; preds = %87
  call void @_ZN5sc_dt8scfx_rep9o_set_lowERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef 1)
  br label %136

90:                                               ; preds = %86
  call void @_ZN5sc_dt8scfx_rep10o_set_highERKNS_10scfx_indexES3_NS_6sc_encEi(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef %29, i32 noundef 1)
  br label %136

91:                                               ; preds = %66
  call void @_ZN5sc_dt8scfx_rep8set_zeroEi(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef 1)
  br label %136

92:                                               ; preds = %66
  %93 = icmp eq i32 %29, 1
  br i1 %93, label %94, label %95

94:                                               ; preds = %92
  call void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 2, ptr noundef nonnull @_ZN7sc_core26SC_ID_WRAP_SM_NOT_DEFINED_E, ptr noundef null, ptr noundef nonnull @.str.2, i32 noundef 2163)
  br label %95

95:                                               ; preds = %94, %92
  %96 = call noundef i32 @_ZNK5sc_dt11scfx_params6n_bitsEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  switch i32 %96, label %117 [
    i32 0, label %97
    i32 1, label %111
  ]

97:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %98 = call noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %99 = call i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %98)
  store i64 %99, ptr %7, align 8
  %100 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %101 = call noundef i32 @_ZNK5sc_dt8scfx_rep4sizeEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  %.not58 = icmp slt i32 %100, %101
  br i1 %.not58, label %105, label %102

102:                                              ; preds = %97
  %103 = call noundef i32 @_ZNK5sc_dt10scfx_index2wiEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %104 = add nsw i32 %103, 1
  call void @_ZN5sc_dt8scfx_rep9resize_toEii(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %104, i32 noundef 1)
  br label %105

105:                                              ; preds = %102, %97
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  %106 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %107 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4)
  %108 = xor i1 %106, %107
  br i1 %108, label %109, label %110

109:                                              ; preds = %105
  call void @_ZN5sc_dt8scfx_rep8o_invertERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %5)
  br label %110

110:                                              ; preds = %109, %105
  call void @_ZN5sc_dt8scfx_rep8o_extendERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef 0)
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %136

111:                                              ; preds = %95
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  %112 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  %113 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4)
  %114 = xor i1 %112, %113
  br i1 %114, label %115, label %116

115:                                              ; preds = %111
  call void @_ZN5sc_dt8scfx_rep8o_invertERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %5)
  br label %116

116:                                              ; preds = %115, %111
  call void @_ZN5sc_dt8scfx_rep8o_extendERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef 0)
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br label %136

117:                                              ; preds = %95
  %118 = call noundef i32 @_ZNK5sc_dt11scfx_params2wlEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %119 = icmp slt i32 %96, %118
  br i1 %119, label %120, label %133

120:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %121 = call noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %122 = xor i32 %96, -1
  %123 = add i32 %121, %122
  %124 = call i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %123)
  store i64 %124, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %125 = call noundef i32 @_ZNK5sc_dt11scfx_params3iwlEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %126 = sub nsw i32 %125, %96
  %127 = call i64 @_ZNK5sc_dt8scfx_rep12calc_indicesEi(ptr noundef nonnull align 8 dereferenceable(37) %0, i32 noundef %126)
  store i64 %127, ptr %9, align 8
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  %128 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_negEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  %129 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep8o_bit_atERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %9)
  %130 = xor i1 %128, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %120
  call void @_ZN5sc_dt8scfx_rep8o_invertERKNS_10scfx_indexE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %5)
  br label %132

132:                                              ; preds = %131, %120
  call void @_ZN5sc_dt8scfx_rep5o_setERKNS_10scfx_indexES3_NS_6sc_encEb(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %8, i32 noundef 0, i1 noundef zeroext %.0.shrunk62)
  call void @_ZN5sc_dt8scfx_rep8o_extendERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef 0)
  call void @_ZN5sc_dt8scfx_rep9toggle_tcEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %136

133:                                              ; preds = %117
  br i1 %.0.shrunk62, label %134, label %135

134:                                              ; preds = %133
  call void @_ZN5sc_dt8scfx_rep9o_set_lowERKNS_10scfx_indexENS_6sc_encE(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef 0)
  br label %136

135:                                              ; preds = %133
  call void @_ZN5sc_dt8scfx_rep10o_set_highERKNS_10scfx_indexES3_NS_6sc_encEi(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef 0, i32 noundef 1)
  br label %136

136:                                              ; preds = %110, %132, %135, %134, %116, %71, %81, %82, %75, %66, %90, %89, %88, %84, %85, %91
  call void @_ZN5sc_dt8scfx_rep7find_swEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %137

137:                                              ; preds = %136, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  ret void
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5sc_dt11scfx_params6o_modeEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5sc_dt11scfx_params6n_bitsEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

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 = { 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 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

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


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